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
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
722 extra_liboffloadmic_configure_flags
749 TOPLEVEL_CONFIGURE_ARGUMENTS
777 program_transform_name
788 ac_subst_files='serialization_dependencies
794 enable_option_checking
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
802 enable_compressed_debug_sections
804 enable_libquadmath_support
823 with_static_standard_libraries
830 enable_isl_version_check
832 enable_linker_plugin_configure_flags
833 enable_linker_plugin_flags
835 enable_stage1_languages
838 with_target_bdw_gc_include
839 with_target_bdw_gc_lib
840 with_gcc_major_version_only
842 with_debug_prefix_map
845 enable_serial_configure
846 with_build_time_tools
847 enable_maintainer_mode
848 enable_stage1_checking
851 ac_precious_vars='build_alias
903 # Initialize some variables set by options.
905 ac_init_version=false
906 ac_unrecognized_opts=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
917 program_transform_name=s,x,x,
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1210 -site=* | --site=* | --sit=*)
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval with_$ac_useropt=no ;;
1269 # Obsolete; use --with-x.
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1337 # Be sure to have absolute directory names.
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 as_fn_error $? "path to source, $srcdir, contains spaces"
1432 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1517 if test -n "$ac_init_help"; then
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1540 Enable compressed debug sections for gas, gold or ld
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
1545 --enable-libada build libada directory
1546 --enable-libssp build libssp directory
1547 --disable-libstdcxx do not build libstdc++-v3 directory
1548 --enable-liboffloadmic=ARG
1549 build liboffloadmic [ARG={no,host,target}]
1550 --enable-bootstrap enable bootstrapping [yes if native build]
1551 --enable-pgo-build[=lto]
1552 enable the PGO build
1553 --disable-isl-version-check
1554 disable check for isl version
1555 --enable-lto enable link time optimization support
1556 --enable-linker-plugin-configure-flags=FLAGS
1557 additional flags for configuring linker plugins
1559 --enable-linker-plugin-flags=FLAGS
1560 additional flags for configuring and building linker
1562 --enable-host-shared build host code as shared libraries
1563 --enable-stage1-languages[=all]
1564 choose additional languages to build during stage1.
1565 Mostly useful for compiler development
1566 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1568 --enable-vtable-verify Enable vtable verification feature
1569 --enable-serial-[{host,target,build}-]configure
1570 force sequential configuration of sub-packages for
1571 the host, target or build machine, or all
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-stage1-checking[=all]
1577 choose additional checking for stage1 of the
1579 --enable-werror enable -Werror in bootstrap stage2 and later
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-build-libsubdir=DIR Directory where to find libraries for build system
1585 --with-system-zlib use installed libz
1586 --with-mpc=PATH specify prefix directory for installed MPC package.
1587 Equivalent to --with-mpc-include=PATH/include plus
1588 --with-mpc-lib=PATH/lib
1589 --with-mpc-include=PATH specify directory for installed MPC include files
1590 --with-mpc-lib=PATH specify directory for the installed MPC library
1591 --with-mpfr-dir=PATH this option has been REMOVED
1592 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1593 Equivalent to --with-mpfr-include=PATH/include plus
1594 --with-mpfr-lib=PATH/lib
1595 --with-mpfr-include=PATH
1596 specify directory for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1598 --with-gmp-dir=PATH this option has been REMOVED
1599 --with-gmp=PATH specify prefix directory for the installed GMP
1600 package. Equivalent to
1601 --with-gmp-include=PATH/include plus
1602 --with-gmp-lib=PATH/lib
1603 --with-gmp-include=PATH specify directory for installed GMP include files
1604 --with-gmp-lib=PATH specify directory for the installed GMP library
1605 --with-stage1-libs=LIBS libraries for stage1
1606 --with-static-standard-libraries
1607 use -static-libstdc++ and -static-libgcc
1609 --with-stage1-ldflags=FLAGS
1610 linker flags for stage1
1611 --with-boot-libs=LIBS libraries for stage2 and later
1612 --with-boot-ldflags=FLAGS
1613 linker flags for stage2 and later
1614 --with-isl=PATH Specify prefix directory for the installed isl
1615 package. Equivalent to
1616 --with-isl-include=PATH/include plus
1617 --with-isl-lib=PATH/lib
1618 --with-isl-include=PATH Specify directory for installed isl include files
1619 --with-isl-lib=PATH Specify the directory for the installed isl library
1620 --with-target-bdw-gc=PATHLIST
1621 specify prefix directory for installed bdw-gc
1622 package. Equivalent to
1623 --with-target-bdw-gc-include=PATH/include plus
1624 --with-target-bdw-gc-lib=PATH/lib
1625 --with-target-bdw-gc-include=PATHLIST
1626 specify directories for installed bdw-gc include
1628 --with-target-bdw-gc-lib=PATHLIST
1629 specify directories for installed bdw-gc library
1630 --with-gcc-major-version-only
1631 use only GCC major number in filesystem paths
1632 --with-build-sysroot=SYSROOT
1633 use sysroot as the system root during the build
1634 --with-debug-prefix-map='A=B C=D ...'
1635 map A to B, C to D ... in debug information
1636 --with-build-config='NAME NAME2...'
1637 use config/NAME.mk build configuration
1638 --with-build-time-tools=PATH
1639 use given path to find target tools during the build
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1652 additional configure arguments for build directories
1654 additional configure arguments for host directories
1656 additional configure arguments for target directories
1659 DLLTOOL DLLTOOL for the host
1660 DSYMUTIL DSYMUTIL for the host
1662 LIPO LIPO for the host
1664 RANLIB RANLIB for the host
1665 STRIP STRIP for the host
1666 WINDRES WINDRES for the host
1667 WINDMC WINDMC for the host
1668 OBJCOPY OBJCOPY for the host
1669 OBJDUMP OBJDUMP for the host
1670 OTOOL OTOOL for the host
1671 READELF READELF for the host
1679 GFORTRAN for the target
1689 DLLTOOL for the target
1691 DSYMUTIL for the target
1699 OBJCOPY for the target
1701 OBJDUMP for the target
1703 OTOOL for the target
1705 RANLIB for the target
1707 READELF for the target
1709 STRIP for the target
1711 WINDRES for the target
1713 WINDMC for the target
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1748 .) # We are building in place.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1782 generated by GNU Autoconf 2.69
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_cxx_try_link LINENO
1872 # -------------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_link
1917 # ac_fn_c_try_link LINENO
1918 # -----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_link
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1966 It was created by $as_me, which was
1967 generated by GNU Autoconf 2.69. Invocation command line was
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_must_keep_next=false
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056 -* ) ac_must_keep_next=true ;;
2059 as_fn_append ac_configure_args " '$ac_arg'"
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2077 $as_echo "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2081 # The following way of writing the cache mishandles newlines in values,
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 $as_echo "## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##"
2117 for ac_var in $ac_subst_vars
2119 eval ac_val=\$$ac_var
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 $as_echo "$ac_var='\''$ac_val'\''"
2127 if test -n "$ac_subst_files"; then
2128 $as_echo "## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##"
2132 for ac_var in $ac_subst_files
2134 eval ac_val=\$$ac_var
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 $as_echo "$ac_var='\''$ac_val'\''"
2143 if test -s confdefs.h; then
2144 $as_echo "## ----------- ##
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2167 $as_echo "/* confdefs.h */" > confdefs.h
2169 # Predefined preprocessor variables.
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2200 if test -n "$CONFIG_SITE"; then
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 test "x$ac_site_file" = xNONE && continue
2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 as_fn_error $? "failed to load site script $ac_site_file
2225 See \`config.log' for more details" "$LINENO" 5; }
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246 # Check that the precious variables saved in the cache have kept the same
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 # if PWD already has a value, it is probably wrong.
2322 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2324 # Export original configure arguments for use by sub-configures.
2325 # Quote arguments with shell meta charatcers.
2326 TOPLEVEL_CONFIGURE_ARGUMENTS=
2327 set -- "$progname" "$@"
2331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2333 # if the argument is of the form -foo=baz, quote the baz part only
2334 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2337 # Add the quoted argument to the list.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2340 if test "$silent" = yes; then
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2343 # Remove the initial space we just introduced and, as these will be
2344 # expanded by make, quote '$'.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2348 # Find the build, host, and target systems.
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351 if test -f "$ac_dir/install-sh"; then
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2355 elif test -f "$ac_dir/install.sh"; then
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2359 elif test -f "$ac_dir/shtool"; then
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2365 if test -z "$ac_aux_dir"; then
2366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2369 # These three variables are undocumented and unsupported,
2370 # and are intended to be withdrawn in a future Autoconf release.
2371 # They can cause serious problems if a builder's source tree is in a directory
2372 # whose full name contains unusual characters.
2373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378 # Make sure we can run config.sub.
2379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2380 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2383 $as_echo_n "checking build system type... " >&6; }
2384 if ${ac_cv_build+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 ac_build_alias=$build_alias
2388 test "x$ac_build_alias" = x &&
2389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2390 test "x$ac_build_alias" = x &&
2391 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2392 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2397 $as_echo "$ac_cv_build" >&6; }
2398 case $ac_cv_build in
2400 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2403 ac_save_IFS=$IFS; IFS='-'
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2413 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2416 case ${build_alias} in
2417 "") build_noncanonical=${build} ;;
2418 *) build_noncanonical=${build_alias} ;;
2423 case ${host_alias} in
2424 "") host_noncanonical=${build_noncanonical} ;;
2425 *) host_noncanonical=${host_alias} ;;
2430 case ${target_alias} in
2431 "") target_noncanonical=${host_noncanonical} ;;
2432 *) target_noncanonical=${target_alias} ;;
2438 test "$host_noncanonical" = "$target_noncanonical" &&
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2441 program_transform_name=s,y,y,
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2444 $as_echo_n "checking host system type... " >&6; }
2445 if ${ac_cv_host+:} false; then :
2446 $as_echo_n "(cached) " >&6
2448 if test "x$host_alias" = x; then
2449 ac_cv_host=$ac_cv_build
2451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2457 $as_echo "$ac_cv_host" >&6; }
2460 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2463 ac_save_IFS=$IFS; IFS='-'
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2477 $as_echo_n "checking target system type... " >&6; }
2478 if ${ac_cv_target+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 if test "x$target_alias" = x; then
2482 ac_cv_target=$ac_cv_host
2484 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2490 $as_echo "$ac_cv_target" >&6; }
2491 case $ac_cv_target in
2493 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2495 target=$ac_cv_target
2496 ac_save_IFS=$IFS; IFS='-'
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2509 # The aliases save the names the user supplied, while $host etc.
2510 # will get canonicalized.
2511 test -n "$target_alias" &&
2512 test "$program_prefix$program_suffix$program_transform_name" = \
2514 program_prefix=${target_alias}-
2516 test "$program_prefix" != NONE &&
2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518 # Use a double $ so make ignores it.
2519 test "$program_suffix" != NONE &&
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521 # Double any \ or $.
2522 # By default was `s,x,x', remove it if useless.
2523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2528 # Get 'install' or 'install-sh' and its variants.
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 # Reject install programs that cannot install multiple files.
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2598 rm -rf conftest.one conftest.two conftest.dir
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2623 $as_echo_n "checking whether ln works... " >&6; }
2624 if ${acx_cv_prog_LN+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 rm -f conftestdata_t
2628 echo >conftestdata_f
2629 if ln conftestdata_f conftestdata_t 2>/dev/null
2635 rm -f conftestdata_f conftestdata_t
2638 if test $acx_cv_prog_LN = no; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2641 $as_echo "no, using $LN" >&6; }
2643 LN="$acx_cv_prog_LN"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2649 $as_echo_n "checking whether ln -s works... " >&6; }
2651 if test "$LN_S" = "ln -s"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2656 $as_echo "no, using $LN_S" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2661 if ${ac_cv_path_SED+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2665 for ac_i in 1 2 3 4 5 6 7; do
2666 ac_script="$ac_script$as_nl$ac_script"
2668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2669 { ac_script=; unset ac_script;}
2670 if test -z "$SED"; then
2671 ac_path_SED_found=false
2672 # Loop through the user's path and test for each of PROGNAME-LIST
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in sed gsed; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2681 as_fn_executable_p "$ac_path_SED" || continue
2682 # Check for GNU ac_path_SED and select it if it is found.
2683 # Check for GNU $ac_path_SED
2684 case `"$ac_path_SED" --version 2>&1` in
2686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2689 $as_echo_n 0123456789 >"conftest.in"
2692 cat "conftest.in" "conftest.in" >"conftest.tmp"
2693 mv "conftest.tmp" "conftest.in"
2694 cp "conftest.in" "conftest.nl"
2695 $as_echo '' >> "conftest.nl"
2696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2698 as_fn_arith $ac_count + 1 && ac_count=$as_val
2699 if test $ac_count -gt ${ac_path_SED_max-0}; then
2700 # Best one so far, save it but keep looking for a better one
2701 ac_cv_path_SED="$ac_path_SED"
2702 ac_path_SED_max=$ac_count
2704 # 10*(2^10) chars as input seems more than enough
2705 test $ac_count -gt 10 && break
2707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2710 $ac_path_SED_found && break 3
2715 if test -z "$ac_cv_path_SED"; then
2716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2724 $as_echo "$ac_cv_path_SED" >&6; }
2725 SED="$ac_cv_path_SED"
2728 for ac_prog in gawk mawk nawk awk
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_AWK+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$AWK" && break
2771 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2773 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2775 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2776 INSTALL="${srcpwd}/install-sh -c"
2779 # Set srcdir to "." if that's what it is.
2780 # This is important for multilib support.
2782 if test "${pwd}" = "${srcpwd}" ; then
2790 ### To add a new directory to the tree, first choose whether it is a target
2791 ### or a host dependent tool. Then put it into the appropriate list
2792 ### (library or tools, host or target), doing a dependency sort.
2794 # Subdirs will be configured in the order listed in build_configdirs,
2795 # configdirs, or target_configdirs; see the serialization section below.
2797 # Dependency sorting is only needed when *configuration* must be done in
2798 # a particular order. In all cases a dependency should be specified in
2799 # the Makefile, whether or not it's implicitly specified here.
2801 # Double entries in build_configdirs, configdirs, or target_configdirs may
2802 # cause circular dependencies and break everything horribly.
2804 # these library is used by various programs built for the build
2807 build_libs="build-libiberty build-libcpp"
2809 # these tools are built for the build environment
2810 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2812 # these libraries are used by various programs built for the host environment
2814 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2816 # these tools are built for the host environment
2817 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2818 # know that we are building the simulator.
2819 # binutils, gas and ld appear in that order because it makes sense to run
2820 # "make check" in that particular order.
2821 # If --enable-gold is used, "gold" may replace "ld".
2822 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"
2824 # these libraries are built for the target environment, and are built after
2825 # the host libraries and the host tools (which may be a cross compiler)
2826 # Note that libiberty is not a target library.
2827 target_libraries="target-libgcc \
2828 target-libbacktrace \
2832 target-liboffloadmic \
2835 target-libstdc++-v3 \
2836 target-libsanitizer \
2839 target-libquadmath \
2840 target-libgfortran \
2848 # these tools are built using the target libraries, and are intended to
2849 # run only in the target environment
2851 # note: any program that *uses* libraries that are in the "target_libraries"
2852 # list belongs in this list.
2854 target_tools="target-rda"
2856 ################################################################################
2858 ## All tools belong in one of the four categories, and are assigned above
2859 ## We assign ${configdirs} this way to remove all embedded newlines. This
2860 ## is important because configure will choke if they ever get through.
2861 ## ${configdirs} is directories we build using the host tools.
2862 ## ${target_configdirs} is directories we build using the target tools.
2863 configdirs=`echo ${host_libs} ${host_tools}`
2864 target_configdirs=`echo ${target_libraries} ${target_tools}`
2865 build_configdirs=`echo ${build_libs} ${build_tools}`
2869 ################################################################################
2871 srcname="gnu development package"
2873 # This gets set non-empty for some net releases of packages.
2876 # Define is_cross_compiler to save on calls to 'test'.
2878 if test x"${host}" = x"${target}" ; then
2879 is_cross_compiler=no
2881 is_cross_compiler=yes
2884 # Find the build and target subdir names.
2886 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2887 # have matching libraries, they should use host libraries: Makefile.tpl
2888 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2889 # However, they still use the build modules, because the corresponding
2890 # host modules (e.g. bison) are only built for the host when bootstrap
2892 # - build_subdir is where we find build modules, and never changes.
2893 # - build_libsubdir is where we find build libraries, and can be overridden.
2895 # Prefix 'build-' so this never conflicts with target_subdir.
2896 build_subdir="build-${build_noncanonical}"
2898 # Check whether --with-build-libsubdir was given.
2899 if test "${with_build_libsubdir+set}" = set; then :
2900 withval=$with_build_libsubdir; build_libsubdir="$withval"
2902 build_libsubdir="$build_subdir"
2905 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2906 if ( test $srcdir = . && test -d gcc ) \
2907 || test -d $srcdir/../host-${host_noncanonical}; then
2908 host_subdir="host-${host_noncanonical}"
2913 target_subdir=${target_noncanonical}
2915 # Be sure to cover against remnants of an in-tree build.
2916 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2917 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2918 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2921 # Skipdirs are removed silently.
2923 # Noconfigdirs are removed loudly.
2927 # Make sure we don't let GNU ld be added if we didn't want it.
2928 if test x$with_gnu_ld = xno ; then
2930 noconfigdirs="$noconfigdirs ld gold"
2934 # Make sure we don't let GNU as be added if we didn't want it.
2935 if test x$with_gnu_as = xno ; then
2937 noconfigdirs="$noconfigdirs gas"
2942 # Check whether --with-system-zlib was given.
2943 if test "${with_system_zlib+set}" = set; then :
2944 withval=$with_system_zlib;
2947 # Make sure we don't let ZLIB be added if we didn't want it.
2948 if test x$with_system_zlib = xyes ; then
2949 use_included_zlib=no
2950 noconfigdirs="$noconfigdirs zlib"
2953 # some tools are so dependent upon X11 that if we're not building with X,
2954 # it's not even worth trying to configure, much less build, that tool.
2957 yes | "") ;; # the default value for this tree is that X11 is available
2959 skipdirs="${skipdirs} tk itcl libgui"
2960 # We won't be able to build gdbtk without X.
2963 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2966 # Some are only suitable for cross toolchains.
2967 # Remove these if host=target.
2968 cross_only="target-libgloss target-newlib target-opcodes"
2970 case $is_cross_compiler in
2971 no) skipdirs="${skipdirs} ${cross_only}" ;;
2974 # If both --with-headers and --with-libs are specified, default to
2976 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2978 if test x"${with_newlib}" = x ; then
2983 # Recognize --with-newlib/--without-newlib.
2984 case ${with_newlib} in
2985 no) skipdirs="${skipdirs} target-newlib" ;;
2986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2989 # Check whether --enable-as-accelerator-for was given.
2990 if test "${enable_as_accelerator_for+set}" = set; then :
2991 enableval=$enable_as_accelerator_for;
2995 # Check whether --enable-offload-targets was given.
2996 if test "${enable_offload_targets+set}" = set; then :
2997 enableval=$enable_offload_targets;
2998 if test x"$enable_offload_targets" = x; then
2999 as_fn_error $? "no offload targets specified" "$LINENO" 5
3003 enable_offload_targets=
3007 # Check whether --enable-offload-defaulted was given.
3008 if test "${enable_offload_defaulted+set}" = set; then :
3009 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3011 enable_offload_defaulted=
3015 # Handle --enable-gold, --enable-ld.
3016 # --disable-gold [--enable-ld]
3017 # Build only ld. Default option.
3018 # --enable-gold [--enable-ld]
3019 # Build both gold and ld. Install gold as "ld.gold", install ld
3020 # as "ld.bfd" and "ld".
3021 # --enable-gold=default [--enable-ld]
3022 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3023 # install ld as "ld.bfd".
3024 # --enable-gold[=default] --disable-ld
3025 # Build only gold, which is then installed as both "ld.gold" and "ld".
3026 # --enable-gold --enable-ld=default
3027 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3029 # In other words, ld is default
3030 # --enable-gold=default --enable-ld=default
3034 # Check whether --enable-gold was given.
3035 if test "${enable_gold+set}" = set; then :
3036 enableval=$enable_gold; ENABLE_GOLD=$enableval
3041 case "${ENABLE_GOLD}" in
3043 # Check for ELF target.
3046 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3047 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3048 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3049 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3051 *-*-linux*aout* | *-*-linux*oldld*)
3059 if test "$is_elf" = "yes"; then
3060 # Check for target supported by gold.
3062 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3063 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3064 configdirs="$configdirs gold"
3065 if test x${ENABLE_GOLD} = xdefault; then
3076 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3080 # Check whether --enable-ld was given.
3081 if test "${enable_ld+set}" = set; then :
3082 enableval=$enable_ld; ENABLE_LD=$enableval
3088 case "${ENABLE_LD}" in
3090 if test x${default_ld} != x; then
3091 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3097 if test x${ENABLE_GOLD} != xyes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3099 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3101 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3104 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3109 # Decide the default method for compressing debug sections.
3110 # Provide a configure time option to override our default.
3111 # Check whether --enable-compressed_debug_sections was given.
3112 if test "${enable_compressed_debug_sections+set}" = set; then :
3113 enableval=$enable_compressed_debug_sections;
3114 if test x"$enable_compressed_debug_sections" = xyes; then
3115 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3119 enable_compressed_debug_sections=
3123 # Configure extra directories which are host specific
3127 configdirs="$configdirs libtermcap" ;;
3130 # A target can indicate whether a language isn't supported for some reason.
3131 # Only spaces may be used in this macro; not newlines or tabs.
3132 unsupported_languages=
3134 # Remove more programs from consideration, based on the host or
3135 # target this usually means that a port of the program doesn't
3139 i[3456789]86-*-msdosdjgpp*)
3140 noconfigdirs="$noconfigdirs tcl tk itcl"
3145 # Check whether --enable-libquadmath was given.
3146 if test "${enable_libquadmath+set}" = set; then :
3147 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3149 ENABLE_LIBQUADMATH=yes
3152 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3153 noconfigdirs="$noconfigdirs target-libquadmath"
3157 # Check whether --enable-libquadmath-support was given.
3158 if test "${enable_libquadmath_support+set}" = set; then :
3159 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3161 ENABLE_LIBQUADMATH_SUPPORT=yes
3164 enable_libquadmath_support=
3165 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3166 enable_libquadmath_support=no
3170 # Check whether --enable-libada was given.
3171 if test "${enable_libada+set}" = set; then :
3172 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3177 if test "${ENABLE_LIBADA}" != "yes" ; then
3178 noconfigdirs="$noconfigdirs gnattools"
3181 # Check whether --enable-libssp was given.
3182 if test "${enable_libssp+set}" = set; then :
3183 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3189 # Check whether --enable-libstdcxx was given.
3190 if test "${enable_libstdcxx+set}" = set; then :
3191 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3193 ENABLE_LIBSTDCXX=default
3196 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3200 # If this is accelerator compiler and its target is intelmic we enable
3201 # target liboffloadmic by default. If this is compiler with offloading
3202 # for intelmic we enable host liboffloadmic by default. Otherwise
3203 # liboffloadmic is disabled by default.
3204 # Check whether --enable-liboffloadmic was given.
3205 if test "${enable_liboffloadmic+set}" = set; then :
3206 enableval=$enable_liboffloadmic; case "$enableval" in
3208 enable_liboffloadmic=$enableval ;;
3210 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3213 if test x"$enable_as_accelerator_for" != x; then
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=target
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3220 enable_liboffloadmic=no
3224 case "${enable_offload_targets}" in
3225 *-intelmic-* | *-intelmicemul-*)
3226 enable_liboffloadmic=host
3227 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3230 enable_liboffloadmic=no
3238 # Enable libgomp by default on hosted POSIX systems, and a few others.
3239 if test x$enable_libgomp = x ; then
3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3245 *-*-solaris2* | *-*-hpux11*)
3247 *-*-darwin* | *-*-aix*)
3249 nvptx*-*-* | amdgcn*-*-*)
3252 noconfigdirs="$noconfigdirs target-libgomp"
3257 # Disable libatomic on unsupported systems.
3258 if test -d ${srcdir}/libatomic; then
3259 if test x$enable_libatomic = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3261 $as_echo_n "checking for libatomic support... " >&6; }
3262 if (srcdir=${srcdir}/libatomic; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libatomic"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3276 # Disable liboffloadmic on unsupported systems.
3277 if test -d ${srcdir}/liboffloadmic; then
3278 if test x$enable_liboffloadmic != xno; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3280 $as_echo_n "checking for liboffloadmic support... " >&6; }
3281 if (srcdir=${srcdir}/liboffloadmic; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-liboffloadmic"
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3295 # Disable libitm on unsupported systems.
3296 if test -d ${srcdir}/libitm; then
3297 if test x$enable_libitm = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3299 $as_echo_n "checking for libitm support... " >&6; }
3300 if (srcdir=${srcdir}/libitm; \
3301 . ${srcdir}/configure.tgt; \
3302 test -n "$UNSUPPORTED")
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libitm"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3314 # Disable libsanitizer on unsupported systems.
3315 if test -d ${srcdir}/libsanitizer; then
3316 if test x$enable_libsanitizer = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3318 $as_echo_n "checking for libsanitizer support... " >&6; }
3319 if (srcdir=${srcdir}/libsanitizer; \
3320 . ${srcdir}/configure.tgt; \
3321 test -n "$UNSUPPORTED")
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 noconfigdirs="$noconfigdirs target-libsanitizer"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3333 # Disable libvtv on unsupported systems.
3334 if test -d ${srcdir}/libvtv; then
3335 if test x$enable_libvtv = x; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3337 $as_echo_n "checking for libvtv support... " >&6; }
3338 if (srcdir=${srcdir}/libvtv; \
3339 . ${srcdir}/configure.tgt; \
3340 test "$VTV_SUPPORTED" != "yes")
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 noconfigdirs="$noconfigdirs target-libvtv"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3352 # Disable libquadmath for some systems.
3355 noconfigdirs="$noconfigdirs target-libquadmath"
3357 # libquadmath is unused on AIX and libquadmath build process use of
3358 # LD_LIBRARY_PATH can break AIX bootstrap.
3359 powerpc-*-aix* | rs6000-*-aix*)
3360 noconfigdirs="$noconfigdirs target-libquadmath"
3364 # Disable libssp for some systems.
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3371 noconfigdirs="$noconfigdirs target-libssp"
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3381 # libssp uses a misaligned load to trigger a fault, but the RL78
3382 # doesn't fault for those - instead, it gives a build-time error
3383 # for explicit misaligned loads.
3384 noconfigdirs="$noconfigdirs target-libssp"
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3392 # Disable libstdc++-v3 for some systems.
3393 # Allow user to override this if they pass --enable-libstdc++-v3
3394 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3397 # VxWorks uses the Dinkumware C++ library.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 # Not ported/fails to build when using newlib.
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 # the C++ libraries don't build on top of CE's C libraries
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3420 # Disable C++ on systems where it is known to not work.
3421 # For testing, you can override this with --enable-languages=c++.
3422 case ,${enable_languages}, in
3428 unsupported_languages="$unsupported_languages c++"
3434 # Disable Objc on systems where it is known to not work.
3435 # For testing, you can override this with --enable-languages=objc.
3436 case ,${enable_languages}, in
3442 unsupported_languages="$unsupported_languages objc"
3448 # Disable D on systems where it is known to not work.
3449 # For testing, you can override this with --enable-languages=d.
3450 case ,${enable_languages}, in
3456 unsupported_languages="$unsupported_languages d"
3462 # Disable libphobos on unsupported systems.
3463 # For testing, you can override this with --enable-libphobos.
3464 if test -d ${srcdir}/libphobos; then
3465 if test x$enable_libphobos = x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3467 $as_echo_n "checking for libphobos support... " >&6; }
3468 if (srcdir=${srcdir}/libphobos; \
3469 . ${srcdir}/configure.tgt; \
3470 test "$LIBPHOBOS_SUPPORTED" != "yes")
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 noconfigdirs="$noconfigdirs target-libphobos"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3482 # Disable Fortran for some systems.
3485 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3486 unsupported_languages="$unsupported_languages fortran"
3489 unsupported_languages="$unsupported_languages fortran"
3493 # Disable libffi for some systems.
3497 i[3456789]86-*-darwin*)
3499 x86_64-*-darwin[912]*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3505 noconfigdirs="$noconfigdirs target-libffi"
3508 noconfigdirs="$noconfigdirs target-libffi"
3511 noconfigdirs="$noconfigdirs target-libffi"
3514 noconfigdirs="$noconfigdirs target-libffi"
3517 noconfigdirs="$noconfigdirs target-libffi"
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 aarch64*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3526 noconfigdirs="$noconfigdirs target-libffi"
3529 noconfigdirs="$noconfigdirs target-libffi"
3532 noconfigdirs="$noconfigdirs target-libffi"
3535 noconfigdirs="$noconfigdirs target-libffi"
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 cris-*-* | crisv32-*-*)
3544 *) # See PR46792 regarding target-libffi.
3545 noconfigdirs="$noconfigdirs target-libffi";;
3549 noconfigdirs="$noconfigdirs target-libffi"
3554 noconfigdirs="$noconfigdirs target-libffi"
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 i[3456789]86-w64-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 i[3456789]86-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3566 noconfigdirs="$noconfigdirs target-libffi"
3569 noconfigdirs="$noconfigdirs target-libffi"
3576 noconfigdirs="$noconfigdirs target-libffi"
3579 noconfigdirs="$noconfigdirs target-libffi"
3583 # Disable the go frontend on systems where it is known to not work. Please keep
3584 # this in sync with contrib/config-list.mk.
3586 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3587 unsupported_languages="$unsupported_languages go"
3591 # Only allow gdbserver on some systems.
3592 if test -d ${srcdir}/gdbserver; then
3593 if test x$enable_gdbserver = x; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3595 $as_echo_n "checking for gdbserver support... " >&6; }
3596 if (srcdir=${srcdir}/gdbserver; \
3597 . ${srcdir}/configure.srv; \
3598 test -n "$UNSUPPORTED")
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 noconfigdirs="$noconfigdirs gdbserver"
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3610 # Disable libgo for some systems where it is known to not work.
3611 # For testing, you can easily override this with --enable-libgo.
3612 if test x$enable_libgo = x; then
3616 noconfigdirs="$noconfigdirs target-libgo"
3618 *-*-cygwin* | *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3622 noconfigdirs="$noconfigdirs target-libgo"
3627 # Default libgloss CPU subdirectory.
3628 libgloss_dir="$target_cpu"
3631 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3635 libgloss_dir=aarch64
3640 cris-*-* | crisv32-*-*)
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3652 m68*-*-* | fido-*-*)
3669 # Disable newlib and libgloss for various target OSes.
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3760 x86_64-*-darwin[912]*)
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
3771 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3772 && ! test -d ${srcdir}/gmp \
3773 && test -f /usr/local/include/gmp.h; then
3778 # Remove unsupported stuff on all kaOS configurations.
3779 noconfigdirs="$noconfigdirs target-libgloss"
3786 noconfigdirs="$noconfigdirs target-libgloss"
3789 noconfigdirs="$noconfigdirs target-libgloss"
3791 # The tpf target doesn't support gdb yet.
3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3796 noconfigdirs="$noconfigdirs target-rda"
3801 # ld works, but does not support shared libraries.
3802 # gas doesn't generate exception information.
3803 noconfigdirs="$noconfigdirs gas ld"
3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3809 # newlib is not 64 bit ready
3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3819 noconfigdirs="$noconfigdirs sim"
3822 noconfigdirs="$noconfigdirs target-libgloss"
3825 noconfigdirs="$noconfigdirs ld target-libgloss"
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3832 c4x-*-* | tic4x-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
3839 noconfigdirs="$noconfigdirs target-libgloss"
3842 noconfigdirs="$noconfigdirs gdb"
3845 noconfigdirs="$noconfigdirs gdb"
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3851 noconfigdirs="$noconfigdirs"
3854 noconfigdirs="$noconfigdirs target-libgloss"
3857 noconfigdirs="$noconfigdirs target-libgloss"
3859 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3862 noconfigdirs="$noconfigdirs gdb"
3865 noconfigdirs="$noconfigdirs gdb ld"
3873 hppa*-*-openbsd* | \
3879 noconfigdirs="$noconfigdirs ld"
3882 noconfigdirs="$noconfigdirs gdb"
3885 # No gdb support yet.
3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
3896 i[3456789]86-w64-mingw*)
3898 i[3456789]86-*-mingw*)
3899 target_configdirs="$target_configdirs target-winsup"
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3903 noconfigdirs="$noconfigdirs target-libgloss"
3904 # always build newlib if winsup directory is present.
3905 if test -d "$srcdir/winsup/cygwin"; then
3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3907 elif test -d "$srcdir/newlib"; then
3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3912 noconfigdirs="$noconfigdirs target-libgloss"
3914 i[3456789]86-*-sco3.2v5*)
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
3917 noconfigdirs="$noconfigdirs ld target-libgloss"
3919 i[3456789]86-*-sco*)
3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3923 noconfigdirs="$noconfigdirs target-libgloss"
3925 i[3456789]86-*-sysv4*)
3926 noconfigdirs="$noconfigdirs target-libgloss"
3928 i[3456789]86-*-beos*)
3929 noconfigdirs="$noconfigdirs gdb"
3931 i[3456789]86-*-rdos*)
3932 noconfigdirs="$noconfigdirs gdb"
3935 noconfigdirs="$noconfigdirs gdb"
3938 noconfigdirs="$noconfigdirs sim"
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3945 noconfigdirs="$noconfigdirs gdb gprof"
3948 # copied from rs6000-*-* entry
3949 noconfigdirs="$noconfigdirs gprof"
3951 powerpc*-*-winnt* | powerpc*-*-pe*)
3952 target_configdirs="$target_configdirs target-winsup"
3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3962 noconfigdirs="$noconfigdirs gdb"
3965 noconfigdirs="$noconfigdirs gprof"
3968 noconfigdirs="$noconfigdirs gprof"
3971 noconfigdirs="$noconfigdirs gprof"
3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3977 noconfigdirs="$noconfigdirs gprof"
3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
4000 noconfigdirs="$noconfigdirs gprof"
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
4014 if test x${is_cross_compiler} = xno ; then
4019 noconfigdirs="$noconfigdirs sim"
4021 tilepro*-*-* | tilegx*-*-*)
4022 noconfigdirs="$noconfigdirs sim"
4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4031 noconfigdirs="$noconfigdirs ld"
4035 # If we aren't building newlib, then don't build libgloss, since libgloss
4036 # depends upon some newlib header files.
4037 case "${noconfigdirs}" in
4038 *target-libgloss*) ;;
4039 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4042 # Work in distributions that contain no compiler tools, like Autoconf.
4043 host_makefile_frag=/dev/null
4044 if test -d ${srcdir}/config ; then
4046 i[3456789]86-*-msdosdjgpp*)
4047 host_makefile_frag="config/mh-djgpp"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4052 $as_echo_n "checking to see if cat works as expected... " >&6; }
4053 echo a >cygwin-cat-check
4054 if test `cat cygwin-cat-check` = a ; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 as_fn_error $? "The cat command does not ignore carriage return characters.
4063 Please either mount the build directory in binary mode or run the following
4064 commands before running any configure script:
4070 host_makefile_frag="config/mh-cygwin"
4073 host_makefile_frag="config/mh-mingw"
4076 host_makefile_frag="config/mh-alpha-linux"
4079 host_makefile_frag="config/mh-pa-hpux10"
4082 host_makefile_frag="config/mh-pa"
4085 host_makefile_frag="config/mh-pa"
4087 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4088 host_makefile_frag="config/mh-darwin"
4091 host_makefile_frag="config/mh-ppc-aix"
4094 host_makefile_frag="config/mh-ppc-aix"
4099 if test "${build}" != "${host}" ; then
4100 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4101 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4102 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4103 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
4118 CC_FOR_BUILD="\$(CC)"
4119 CXX_FOR_BUILD="\$(CXX)"
4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4122 GOC_FOR_BUILD="\$(GOC)"
4123 GDC_FOR_BUILD="\$(GDC)"
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_CC+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4176 if test -z "$ac_cv_prog_CC"; then
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4214 if test "x$ac_ct_CC" = x; then
4217 case $cross_compiling:$ac_tool_warned in
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_CC+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 if test -n "$CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4270 if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272 set dummy cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4305 if test $# != 0; then
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4328 for ac_prog in cl.exe
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$CC" && break
4370 if test -z "$CC"; then
4372 for ac_prog in cl.exe
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_CC="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 $as_echo "$ac_ct_CC" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4411 test -n "$ac_ct_CC" && break
4414 if test "x$ac_ct_CC" = x; then
4417 case $cross_compiling:$ac_tool_warned in
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "no acceptable C compiler found in \$PATH
4433 See \`config.log' for more details" "$LINENO" 5; }
4435 # Provide some information about the compiler.
4436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4439 for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4449 if test -s conftest.err; then
4451 ... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
4455 rm -f conftest.er1 conftest.err
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4471 ac_clean_files_save=$ac_clean_files
4472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4473 # Try to create an executable without -o first, disregard a.out.
4474 # It will help us diagnose broken compilers, and finding out an intuition
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 $as_echo_n "checking whether the C compiler works... " >&6; }
4478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480 # The possible output files:
4481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4484 for ac_file in $ac_files
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4493 if { { ac_try="$ac_link_default"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4507 # so that the user can short-circuit this test for compilers unknown to
4509 for ac_file in $ac_files ''
4511 test -f "$ac_file" || continue
4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4516 # We found the default executable, but exeext='' is most
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4534 test "$ac_cv_exeext" = no && ac_cv_exeext=
4539 if test -z "$ac_file"; then :
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error 77 "C compiler cannot create executables
4548 See \`config.log' for more details" "$LINENO" 5; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554 $as_echo_n "checking for C compiler default output file name... " >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556 $as_echo "$ac_file" >&6; }
4557 ac_exeext=$ac_cv_exeext
4559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562 $as_echo_n "checking for suffix of executables... " >&6; }
4563 if { { ac_try="$ac_link"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576 # work properly (i.e., refer to `conftest.exe'), while it won't with
4578 for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details" "$LINENO" 5; }
4593 rm -f conftest conftest$ac_cv_exeext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595 $as_echo "$ac_cv_exeext" >&6; }
4597 rm -f conftest.$ac_ext
4598 EXEEXT=$ac_cv_exeext
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4606 FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4613 ac_clean_files="$ac_clean_files conftest.out"
4614 # Check that the compiler produces executables we can run. If not, either
4615 # the compiler is broken, or we cross compile.
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617 $as_echo_n "checking whether we are cross compiling... " >&6; }
4618 if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4643 if test "$cross_compiling" = maybe; then
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot run C compiled programs.
4649 If you meant to cross compile, use \`--host'.
4650 See \`config.log' for more details" "$LINENO" 5; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655 $as_echo "$cross_compiling" >&6; }
4657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658 ac_clean_files=$ac_clean_files_save
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660 $as_echo_n "checking for suffix of object files... " >&6; }
4661 if ${ac_cv_objext+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 rm -f conftest.o conftest.obj
4676 if { { ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error $? "cannot compute suffix of object files: cannot compile
4702 See \`config.log' for more details" "$LINENO" 5; }
4704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707 $as_echo "$ac_cv_objext" >&6; }
4708 OBJEXT=$ac_cv_objext
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if ${ac_cv_c_compiler_gnu+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4729 if ac_fn_c_try_compile "$LINENO"; then :
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if ${ac_cv_prog_cc_g+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4767 if ac_fn_c_try_compile "$LINENO"; then :
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4782 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4798 if ac_fn_c_try_compile "$LINENO"; then :
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4819 if test "$GCC" = yes; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if ${ac_cv_prog_cc_c89+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 ac_cv_prog_cc_c89=no
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4851 s = g (p, va_arg (v,int));
4856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
4859 as 'x'. The following induces an error, until -std is added to get
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
4862 that's true only with -std. */
4863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870 int test (int i, double x);
4871 struct s1 {int (*f) (int a);};
4872 struct s2 {int (*f) (double a);};
4873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 CC="$ac_save_CC $ac_arg"
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
4891 rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 rm -f conftest.$ac_ext
4899 case "x$ac_cv_prog_cc_c89" in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 $as_echo "none needed" >&6; } ;;
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 $as_echo "unsupported" >&6; } ;;
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 if test "x$ac_cv_prog_cc_c89" != xno; then :
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4922 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4923 if ${ac_cv_prog_cc_c99+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 ac_cv_prog_cc_c99=no
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4931 #include <stdbool.h>
4936 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4937 #define debug(...) fprintf (stderr, __VA_ARGS__)
4938 #define showlist(...) puts (#__VA_ARGS__)
4939 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4941 test_varargs_macros (void)
4946 debug ("X = %d\n", x);
4947 showlist (The first, second, and third items.);
4948 report (x>y, "x is %d but y is %d", x, y);
4951 // Check long long types.
4952 #define BIG64 18446744073709551615ull
4953 #define BIG32 4294967295ul
4954 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4956 your preprocessor is broken;
4960 your preprocessor is broken;
4962 static long long int bignum = -9223372036854775807LL;
4963 static unsigned long long int ubignum = BIG64;
4965 struct incomplete_array
4973 const wchar_t *name;
4977 typedef const char *ccp;
4980 test_restrict (ccp restrict text)
4982 // See if C++-style comments work.
4983 // Iterate through items via the restricted pointer.
4984 // Also check for declarations in for loops.
4985 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4990 // Check varargs and va_copy.
4992 test_varargs (const char *format, ...)
4995 va_start (args, format);
4997 va_copy (args_copy, args);
5008 str = va_arg (args_copy, const char *);
5011 number = va_arg (args_copy, int);
5014 fnumber = va_arg (args_copy, double);
5029 _Bool success = false;
5032 if (test_restrict ("String literal") == 0)
5034 char *restrict newvar = "Another string";
5037 test_varargs ("s, d' f .", "string", 65, 34.234);
5038 test_varargs_macros ();
5040 // Check flexible array members.
5041 struct incomplete_array *ia =
5042 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5044 for (int i = 0; i < ia->datasize; ++i)
5045 ia->data[i] = i * 1.234;
5047 // Check named initializers.
5048 struct named_init ni = {
5050 .name = L"Test wide string",
5051 .average = 543.34343,
5056 int dynamic_array[ni.number];
5057 dynamic_array[ni.number - 1] = 543;
5059 // work around unused variable warnings
5060 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5061 || dynamic_array[ni.number - 1] != 543);
5067 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_c99=$ac_arg
5073 rm -f core conftest.err conftest.$ac_objext
5074 test "x$ac_cv_prog_cc_c99" != "xno" && break
5076 rm -f conftest.$ac_ext
5081 case "x$ac_cv_prog_cc_c99" in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5084 $as_echo "none needed" >&6; } ;;
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 $as_echo "unsupported" >&6; } ;;
5089 CC="$CC $ac_cv_prog_cc_c99"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5091 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5093 if test "x$ac_cv_prog_cc_c99" != xno; then :
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 if test -z "$CXX"; then
5104 if test -n "$CCC"; then
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -n "$CXX"; then
5118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 if test -n "$CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5140 $as_echo "$CXX" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$CXX" && break
5150 if test -z "$CXX"; then
5152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$ac_ct_CXX"; then
5162 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_CXX="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5182 if test -n "$ac_ct_CXX"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5184 $as_echo "$ac_ct_CXX" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$ac_ct_CXX" && break
5194 if test "x$ac_ct_CXX" = x; then
5197 case $cross_compiling:$ac_tool_warned in
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5209 # Provide some information about the compiler.
5210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5213 for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220 $as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5223 if test -s conftest.err; then
5225 ... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5235 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5236 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5237 $as_echo_n "(cached) " >&6
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5263 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5264 if test $ac_compiler_gnu = yes; then
5269 ac_test_CXXFLAGS=${CXXFLAGS+set}
5270 ac_save_CXXFLAGS=$CXXFLAGS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5272 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5273 if ${ac_cv_prog_cxx_g+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277 ac_cxx_werror_flag=yes
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5291 if ac_fn_cxx_try_compile "$LINENO"; then :
5292 ac_cv_prog_cxx_g=yes
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5306 if ac_fn_cxx_try_compile "$LINENO"; then :
5309 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5322 if ac_fn_cxx_try_compile "$LINENO"; then :
5323 ac_cv_prog_cxx_g=yes
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5333 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5334 if test "$ac_test_CXXFLAGS" = set; then
5335 CXXFLAGS=$ac_save_CXXFLAGS
5336 elif test $ac_cv_prog_cxx_g = yes; then
5337 if test "$GXX" = yes; then
5343 if test "$GXX" = yes; then
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 # We must set the default linker to the linker used by gcc for the correct
5357 # operation of libtool. If LD is not defined and we are using gcc, try to
5358 # set the LD default to the ld used by gcc.
5359 if test -z "$LD"; then
5360 if test "$GCC" = yes; then
5363 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5365 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5367 case $gcc_prog_ld in
5368 # Accept absolute paths.
5369 [\\/]* | [A-Za-z]:[\\/]*)
5370 LD="$gcc_prog_ld" ;;
5375 # Check whether -static-libstdc++ -static-libgcc is supported.
5377 if test "$GCC" = yes; then
5378 saved_LDFLAGS="$LDFLAGS"
5380 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5382 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5384 ac_cpp='$CXXCPP $CPPFLAGS'
5385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5394 #error -static-libstdc++ not implemented
5398 if ac_fn_cxx_try_link "$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }; have_static_libs=yes
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 LDFLAGS="$saved_LDFLAGS"
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_GNATBIND+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 if test -n "$GNATBIND"; then
5429 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 GNATBIND=$ac_cv_prog_GNATBIND
5449 if test -n "$GNATBIND"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5451 $as_echo "$GNATBIND" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5459 if test -z "$ac_cv_prog_GNATBIND"; then
5460 ac_ct_GNATBIND=$GNATBIND
5461 # Extract the first word of "gnatbind", so it can be a program name with args.
5462 set dummy gnatbind; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5466 $as_echo_n "(cached) " >&6
5468 if test -n "$ac_ct_GNATBIND"; then
5469 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5489 if test -n "$ac_ct_GNATBIND"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5491 $as_echo "$ac_ct_GNATBIND" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5497 if test "x$ac_ct_GNATBIND" = x; then
5500 case $cross_compiling:$ac_tool_warned in
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5506 GNATBIND=$ac_ct_GNATBIND
5509 GNATBIND="$ac_cv_prog_GNATBIND"
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_GNATMAKE+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 if test -n "$GNATMAKE"; then
5521 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 GNATMAKE=$ac_cv_prog_GNATMAKE
5541 if test -n "$GNATMAKE"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5543 $as_echo "$GNATMAKE" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test -z "$ac_cv_prog_GNATMAKE"; then
5552 ac_ct_GNATMAKE=$GNATMAKE
5553 # Extract the first word of "gnatmake", so it can be a program name with args.
5554 set dummy gnatmake; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 if test -n "$ac_ct_GNATMAKE"; then
5561 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5581 if test -n "$ac_ct_GNATMAKE"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5583 $as_echo "$ac_ct_GNATMAKE" >&6; }
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5589 if test "x$ac_ct_GNATMAKE" = x; then
5592 case $cross_compiling:$ac_tool_warned in
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5598 GNATMAKE=$ac_ct_GNATMAKE
5601 GNATMAKE="$ac_cv_prog_GNATMAKE"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5605 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5606 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 cat >conftest.adb <<EOF
5610 procedure conftest is begin null; end conftest;
5612 acx_cv_cc_gcc_supports_ada=no
5613 # There is a bug in old released versions of GCC which causes the
5614 # driver to exit successfully when the appropriate language module
5615 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5616 # Therefore we must check for the error message as well as an
5617 # unsuccessful exit.
5618 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5619 # given a .adb file, but produce no object file. So we must check
5620 # if an object file was really produced to guard against this.
5621 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5622 if test x"$errors" = x && test -f conftest.$ac_objext; then
5623 acx_cv_cc_gcc_supports_ada=yes
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5628 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5630 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$GDC"; then
5647 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 if test -n "$GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5669 $as_echo "$GDC" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5677 if test -z "$ac_cv_prog_GDC"; then
5679 # Extract the first word of "gdc", so it can be a program name with args.
5680 set dummy gdc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$ac_ct_GDC"; then
5687 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_GDC="gdc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5707 if test -n "$ac_ct_GDC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5709 $as_echo "$ac_ct_GDC" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5715 if test "x$ac_ct_GDC" = x; then
5718 case $cross_compiling:$ac_tool_warned in
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5727 GDC="$ac_cv_prog_GDC"
5730 if test "x$GDC" != xno; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5737 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5738 if ${gcc_cv_prog_cmp_skip+:} false; then :
5739 $as_echo_n "(cached) " >&6
5743 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5744 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5745 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5748 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5751 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5752 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5755 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5762 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5763 do_compare="$gcc_cv_prog_cmp_skip"
5767 # Check whether --enable-bootstrap was given.
5768 if test "${enable_bootstrap+set}" = set; then :
5769 enableval=$enable_bootstrap;
5771 enable_bootstrap=default
5775 # Issue errors and warnings for invalid/strange bootstrap combinations.
5776 if test -r $srcdir/gcc/configure; then
5782 case "$have_compiler:$host:$target:$enable_bootstrap" in
5785 # Default behavior. Enable bootstrap if we have a compiler
5786 # and we are in a native configuration.
5787 yes:$build:$build:default)
5788 enable_bootstrap=yes ;;
5791 enable_bootstrap=no ;;
5793 # We have a compiler and we are in a native configuration, bootstrap is ok
5794 yes:$build:$build:yes)
5797 # Other configurations, but we have a compiler. Assume the user knows
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5801 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5804 # No compiler: if they passed --enable-bootstrap explicitly, fail
5806 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5808 # Fail if wrong command line
5810 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5814 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5815 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5816 # require C++11 (or higher).
5817 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5818 CXX="$CXX -std=c++11"
5819 elif test "$have_compiler" = yes; then
5820 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5822 ac_cpp='$CXXCPP $CPPFLAGS'
5823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5829 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5830 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5831 $as_echo_n "(cached) " >&6
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5837 // If the compiler admits that it is not ready for C++11, why torture it?
5838 // Hopefully, this will speed up the test.
5842 #error "This is not a C++ compiler"
5844 #elif __cplusplus < 201103L
5846 #error "This is not a C++11 compiler"
5853 namespace test_static_assert
5856 template <typename T>
5859 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5864 namespace test_final_override
5873 struct Derived : public Base
5875 virtual ~Derived() override {}
5876 virtual void f() override {}
5881 namespace test_double_right_angle_brackets
5884 template < typename T >
5887 typedef check<void> single_type;
5888 typedef check<check<void>> double_type;
5889 typedef check<check<check<void>>> triple_type;
5890 typedef check<check<check<check<void>>>> quadruple_type;
5894 namespace test_decltype
5907 namespace test_type_deduction
5910 template < typename T1, typename T2 >
5913 static const bool value = false;
5916 template < typename T >
5917 struct is_same<T, T>
5919 static const bool value = true;
5922 template < typename T1, typename T2 >
5924 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5930 test(const int c, volatile int v)
5932 static_assert(is_same<int, decltype(0)>::value == true, "");
5933 static_assert(is_same<int, decltype(c)>::value == false, "");
5934 static_assert(is_same<int, decltype(v)>::value == false, "");
5937 auto sumi = ac + av + 'x';
5938 auto sumf = ac + av + 1.0;
5939 static_assert(is_same<int, decltype(ac)>::value == true, "");
5940 static_assert(is_same<int, decltype(av)>::value == true, "");
5941 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5942 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5943 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5944 return (sumf > 0.0) ? sumi : add(c, v);
5949 namespace test_noexcept
5952 int f() { return 0; }
5953 int g() noexcept { return 0; }
5955 static_assert(noexcept(f()) == false, "");
5956 static_assert(noexcept(g()) == true, "");
5960 namespace test_constexpr
5963 template < typename CharT >
5964 unsigned long constexpr
5965 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5967 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5970 template < typename CharT >
5971 unsigned long constexpr
5972 strlen_c(const CharT *const s) noexcept
5974 return strlen_c_r(s, 0UL);
5977 static_assert(strlen_c("") == 0UL, "");
5978 static_assert(strlen_c("1") == 1UL, "");
5979 static_assert(strlen_c("example") == 7UL, "");
5980 static_assert(strlen_c("another\0example") == 7UL, "");
5984 namespace test_rvalue_references
5990 static constexpr int value = N;
5993 answer<1> f(int&) { return answer<1>(); }
5994 answer<2> f(const int&) { return answer<2>(); }
5995 answer<3> f(int&&) { return answer<3>(); }
6002 static_assert(decltype(f(i))::value == 1, "");
6003 static_assert(decltype(f(c))::value == 2, "");
6004 static_assert(decltype(f(0))::value == 3, "");
6009 namespace test_uniform_initialization
6014 static const int zero {};
6015 static const int one {1};
6018 static_assert(test::zero == 0, "");
6019 static_assert(test::one == 1, "");
6023 namespace test_lambdas
6029 auto lambda1 = [](){};
6030 auto lambda2 = lambda1;
6038 auto a = [](int i, int j){ return i + j; }(1, 2);
6039 auto b = []() -> int { return '0'; }();
6040 auto c = [=](){ return a + b; }();
6041 auto d = [&](){ return c; }();
6042 auto e = [a, &b](int x) mutable {
6043 const auto identity = [](int y){ return y; };
6044 for (auto i = 0; i < a; ++i)
6046 return x + identity(a + b);
6048 return a + b + c + d + e;
6054 const auto nullary = [](){ return 0; };
6055 const auto unary = [](int x){ return x; };
6056 using nullary_t = decltype(nullary);
6057 using unary_t = decltype(unary);
6058 const auto higher1st = [](nullary_t f){ return f(); };
6059 const auto higher2nd = [unary](nullary_t f1){
6060 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6062 return higher1st(nullary) + higher2nd(nullary)(unary);
6067 namespace test_variadic_templates
6073 template <int N0, int... N1toN>
6074 struct sum<N0, N1toN...>
6076 static constexpr auto value = N0 + sum<N1toN...>::value;
6082 static constexpr auto value = 0;
6085 static_assert(sum<>::value == 0, "");
6086 static_assert(sum<1>::value == 1, "");
6087 static_assert(sum<23>::value == 23, "");
6088 static_assert(sum<1, 2>::value == 3, "");
6089 static_assert(sum<5, 5, 11>::value == 21, "");
6090 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6094 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6095 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6097 namespace test_template_alias_sfinae
6102 template<typename T>
6103 using member = typename T::member_type;
6105 template<typename T>
6108 template<typename T>
6109 void func(member<T>*) {}
6113 void test() { func<foo>(0); }
6117 } // namespace cxx11
6119 #endif // __cplusplus >= 201103L
6124 if ac_fn_cxx_try_compile "$LINENO"; then :
6125 ax_cv_cxx_compile_cxx11=yes
6127 ax_cv_cxx_compile_cxx11=no
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6132 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6133 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6137 if test x$ac_success = xno; then
6138 for alternative in ${ax_cxx_compile_alternatives}; do
6139 switch="-std=gnu++${alternative}"
6140 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6142 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6143 if eval \${$cachevar+:} false; then :
6144 $as_echo_n "(cached) " >&6
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6152 // If the compiler admits that it is not ready for C++11, why torture it?
6153 // Hopefully, this will speed up the test.
6157 #error "This is not a C++ compiler"
6159 #elif __cplusplus < 201103L
6161 #error "This is not a C++11 compiler"
6168 namespace test_static_assert
6171 template <typename T>
6174 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6179 namespace test_final_override
6188 struct Derived : public Base
6190 virtual ~Derived() override {}
6191 virtual void f() override {}
6196 namespace test_double_right_angle_brackets
6199 template < typename T >
6202 typedef check<void> single_type;
6203 typedef check<check<void>> double_type;
6204 typedef check<check<check<void>>> triple_type;
6205 typedef check<check<check<check<void>>>> quadruple_type;
6209 namespace test_decltype
6222 namespace test_type_deduction
6225 template < typename T1, typename T2 >
6228 static const bool value = false;
6231 template < typename T >
6232 struct is_same<T, T>
6234 static const bool value = true;
6237 template < typename T1, typename T2 >
6239 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6245 test(const int c, volatile int v)
6247 static_assert(is_same<int, decltype(0)>::value == true, "");
6248 static_assert(is_same<int, decltype(c)>::value == false, "");
6249 static_assert(is_same<int, decltype(v)>::value == false, "");
6252 auto sumi = ac + av + 'x';
6253 auto sumf = ac + av + 1.0;
6254 static_assert(is_same<int, decltype(ac)>::value == true, "");
6255 static_assert(is_same<int, decltype(av)>::value == true, "");
6256 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6257 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6258 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6259 return (sumf > 0.0) ? sumi : add(c, v);
6264 namespace test_noexcept
6267 int f() { return 0; }
6268 int g() noexcept { return 0; }
6270 static_assert(noexcept(f()) == false, "");
6271 static_assert(noexcept(g()) == true, "");
6275 namespace test_constexpr
6278 template < typename CharT >
6279 unsigned long constexpr
6280 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6282 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6285 template < typename CharT >
6286 unsigned long constexpr
6287 strlen_c(const CharT *const s) noexcept
6289 return strlen_c_r(s, 0UL);
6292 static_assert(strlen_c("") == 0UL, "");
6293 static_assert(strlen_c("1") == 1UL, "");
6294 static_assert(strlen_c("example") == 7UL, "");
6295 static_assert(strlen_c("another\0example") == 7UL, "");
6299 namespace test_rvalue_references
6305 static constexpr int value = N;
6308 answer<1> f(int&) { return answer<1>(); }
6309 answer<2> f(const int&) { return answer<2>(); }
6310 answer<3> f(int&&) { return answer<3>(); }
6317 static_assert(decltype(f(i))::value == 1, "");
6318 static_assert(decltype(f(c))::value == 2, "");
6319 static_assert(decltype(f(0))::value == 3, "");
6324 namespace test_uniform_initialization
6329 static const int zero {};
6330 static const int one {1};
6333 static_assert(test::zero == 0, "");
6334 static_assert(test::one == 1, "");
6338 namespace test_lambdas
6344 auto lambda1 = [](){};
6345 auto lambda2 = lambda1;
6353 auto a = [](int i, int j){ return i + j; }(1, 2);
6354 auto b = []() -> int { return '0'; }();
6355 auto c = [=](){ return a + b; }();
6356 auto d = [&](){ return c; }();
6357 auto e = [a, &b](int x) mutable {
6358 const auto identity = [](int y){ return y; };
6359 for (auto i = 0; i < a; ++i)
6361 return x + identity(a + b);
6363 return a + b + c + d + e;
6369 const auto nullary = [](){ return 0; };
6370 const auto unary = [](int x){ return x; };
6371 using nullary_t = decltype(nullary);
6372 using unary_t = decltype(unary);
6373 const auto higher1st = [](nullary_t f){ return f(); };
6374 const auto higher2nd = [unary](nullary_t f1){
6375 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6377 return higher1st(nullary) + higher2nd(nullary)(unary);
6382 namespace test_variadic_templates
6388 template <int N0, int... N1toN>
6389 struct sum<N0, N1toN...>
6391 static constexpr auto value = N0 + sum<N1toN...>::value;
6397 static constexpr auto value = 0;
6400 static_assert(sum<>::value == 0, "");
6401 static_assert(sum<1>::value == 1, "");
6402 static_assert(sum<23>::value == 23, "");
6403 static_assert(sum<1, 2>::value == 3, "");
6404 static_assert(sum<5, 5, 11>::value == 21, "");
6405 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6409 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6410 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6412 namespace test_template_alias_sfinae
6417 template<typename T>
6418 using member = typename T::member_type;
6420 template<typename T>
6423 template<typename T>
6424 void func(member<T>*) {}
6428 void test() { func<foo>(0); }
6432 } // namespace cxx11
6434 #endif // __cplusplus >= 201103L
6439 if ac_fn_cxx_try_compile "$LINENO"; then :
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 eval ac_res=\$$cachevar
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6449 $as_echo "$ac_res" >&6; }
6450 if eval test x\$$cachevar = xyes; then
6452 if test -n "$CXXCPP" ; then
6453 CXXCPP="$CXXCPP $switch"
6461 if test x$ac_success = xno; then
6462 for alternative in ${ax_cxx_compile_alternatives}; do
6463 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6464 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6466 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6467 if eval \${$cachevar+:} false; then :
6468 $as_echo_n "(cached) " >&6
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6476 // If the compiler admits that it is not ready for C++11, why torture it?
6477 // Hopefully, this will speed up the test.
6481 #error "This is not a C++ compiler"
6483 #elif __cplusplus < 201103L
6485 #error "This is not a C++11 compiler"
6492 namespace test_static_assert
6495 template <typename T>
6498 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6503 namespace test_final_override
6512 struct Derived : public Base
6514 virtual ~Derived() override {}
6515 virtual void f() override {}
6520 namespace test_double_right_angle_brackets
6523 template < typename T >
6526 typedef check<void> single_type;
6527 typedef check<check<void>> double_type;
6528 typedef check<check<check<void>>> triple_type;
6529 typedef check<check<check<check<void>>>> quadruple_type;
6533 namespace test_decltype
6546 namespace test_type_deduction
6549 template < typename T1, typename T2 >
6552 static const bool value = false;
6555 template < typename T >
6556 struct is_same<T, T>
6558 static const bool value = true;
6561 template < typename T1, typename T2 >
6563 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6569 test(const int c, volatile int v)
6571 static_assert(is_same<int, decltype(0)>::value == true, "");
6572 static_assert(is_same<int, decltype(c)>::value == false, "");
6573 static_assert(is_same<int, decltype(v)>::value == false, "");
6576 auto sumi = ac + av + 'x';
6577 auto sumf = ac + av + 1.0;
6578 static_assert(is_same<int, decltype(ac)>::value == true, "");
6579 static_assert(is_same<int, decltype(av)>::value == true, "");
6580 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6581 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6582 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6583 return (sumf > 0.0) ? sumi : add(c, v);
6588 namespace test_noexcept
6591 int f() { return 0; }
6592 int g() noexcept { return 0; }
6594 static_assert(noexcept(f()) == false, "");
6595 static_assert(noexcept(g()) == true, "");
6599 namespace test_constexpr
6602 template < typename CharT >
6603 unsigned long constexpr
6604 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6606 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6609 template < typename CharT >
6610 unsigned long constexpr
6611 strlen_c(const CharT *const s) noexcept
6613 return strlen_c_r(s, 0UL);
6616 static_assert(strlen_c("") == 0UL, "");
6617 static_assert(strlen_c("1") == 1UL, "");
6618 static_assert(strlen_c("example") == 7UL, "");
6619 static_assert(strlen_c("another\0example") == 7UL, "");
6623 namespace test_rvalue_references
6629 static constexpr int value = N;
6632 answer<1> f(int&) { return answer<1>(); }
6633 answer<2> f(const int&) { return answer<2>(); }
6634 answer<3> f(int&&) { return answer<3>(); }
6641 static_assert(decltype(f(i))::value == 1, "");
6642 static_assert(decltype(f(c))::value == 2, "");
6643 static_assert(decltype(f(0))::value == 3, "");
6648 namespace test_uniform_initialization
6653 static const int zero {};
6654 static const int one {1};
6657 static_assert(test::zero == 0, "");
6658 static_assert(test::one == 1, "");
6662 namespace test_lambdas
6668 auto lambda1 = [](){};
6669 auto lambda2 = lambda1;
6677 auto a = [](int i, int j){ return i + j; }(1, 2);
6678 auto b = []() -> int { return '0'; }();
6679 auto c = [=](){ return a + b; }();
6680 auto d = [&](){ return c; }();
6681 auto e = [a, &b](int x) mutable {
6682 const auto identity = [](int y){ return y; };
6683 for (auto i = 0; i < a; ++i)
6685 return x + identity(a + b);
6687 return a + b + c + d + e;
6693 const auto nullary = [](){ return 0; };
6694 const auto unary = [](int x){ return x; };
6695 using nullary_t = decltype(nullary);
6696 using unary_t = decltype(unary);
6697 const auto higher1st = [](nullary_t f){ return f(); };
6698 const auto higher2nd = [unary](nullary_t f1){
6699 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6701 return higher1st(nullary) + higher2nd(nullary)(unary);
6706 namespace test_variadic_templates
6712 template <int N0, int... N1toN>
6713 struct sum<N0, N1toN...>
6715 static constexpr auto value = N0 + sum<N1toN...>::value;
6721 static constexpr auto value = 0;
6724 static_assert(sum<>::value == 0, "");
6725 static_assert(sum<1>::value == 1, "");
6726 static_assert(sum<23>::value == 23, "");
6727 static_assert(sum<1, 2>::value == 3, "");
6728 static_assert(sum<5, 5, 11>::value == 21, "");
6729 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6733 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6734 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6736 namespace test_template_alias_sfinae
6741 template<typename T>
6742 using member = typename T::member_type;
6744 template<typename T>
6747 template<typename T>
6748 void func(member<T>*) {}
6752 void test() { func<foo>(0); }
6756 } // namespace cxx11
6758 #endif // __cplusplus >= 201103L
6763 if ac_fn_cxx_try_compile "$LINENO"; then :
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 eval ac_res=\$$cachevar
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6773 $as_echo "$ac_res" >&6; }
6774 if eval test x\$$cachevar = xyes; then
6776 if test -n "$CXXCPP" ; then
6777 CXXCPP="$CXXCPP $switch"
6783 if test x$ac_success = xyes; then
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6795 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6796 if test x$ac_success = xno; then
6797 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6800 if test x$ac_success = xno; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6803 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6807 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6813 if test "${build}" != "${host}"; then
6814 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6821 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6822 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6823 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6824 CXX="$CXX_FOR_BUILD"
6825 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6826 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6828 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6829 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6836 // If the compiler admits that it is not ready for C++11, why torture it?
6837 // Hopefully, this will speed up the test.
6841 #error "This is not a C++ compiler"
6843 #elif __cplusplus < 201103L
6845 #error "This is not a C++11 compiler"
6852 namespace test_static_assert
6855 template <typename T>
6858 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6863 namespace test_final_override
6872 struct Derived : public Base
6874 virtual ~Derived() override {}
6875 virtual void f() override {}
6880 namespace test_double_right_angle_brackets
6883 template < typename T >
6886 typedef check<void> single_type;
6887 typedef check<check<void>> double_type;
6888 typedef check<check<check<void>>> triple_type;
6889 typedef check<check<check<check<void>>>> quadruple_type;
6893 namespace test_decltype
6906 namespace test_type_deduction
6909 template < typename T1, typename T2 >
6912 static const bool value = false;
6915 template < typename T >
6916 struct is_same<T, T>
6918 static const bool value = true;
6921 template < typename T1, typename T2 >
6923 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6929 test(const int c, volatile int v)
6931 static_assert(is_same<int, decltype(0)>::value == true, "");
6932 static_assert(is_same<int, decltype(c)>::value == false, "");
6933 static_assert(is_same<int, decltype(v)>::value == false, "");
6936 auto sumi = ac + av + 'x';
6937 auto sumf = ac + av + 1.0;
6938 static_assert(is_same<int, decltype(ac)>::value == true, "");
6939 static_assert(is_same<int, decltype(av)>::value == true, "");
6940 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6941 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6942 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6943 return (sumf > 0.0) ? sumi : add(c, v);
6948 namespace test_noexcept
6951 int f() { return 0; }
6952 int g() noexcept { return 0; }
6954 static_assert(noexcept(f()) == false, "");
6955 static_assert(noexcept(g()) == true, "");
6959 namespace test_constexpr
6962 template < typename CharT >
6963 unsigned long constexpr
6964 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6966 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c(const CharT *const s) noexcept
6973 return strlen_c_r(s, 0UL);
6976 static_assert(strlen_c("") == 0UL, "");
6977 static_assert(strlen_c("1") == 1UL, "");
6978 static_assert(strlen_c("example") == 7UL, "");
6979 static_assert(strlen_c("another\0example") == 7UL, "");
6983 namespace test_rvalue_references
6989 static constexpr int value = N;
6992 answer<1> f(int&) { return answer<1>(); }
6993 answer<2> f(const int&) { return answer<2>(); }
6994 answer<3> f(int&&) { return answer<3>(); }
7001 static_assert(decltype(f(i))::value == 1, "");
7002 static_assert(decltype(f(c))::value == 2, "");
7003 static_assert(decltype(f(0))::value == 3, "");
7008 namespace test_uniform_initialization
7013 static const int zero {};
7014 static const int one {1};
7017 static_assert(test::zero == 0, "");
7018 static_assert(test::one == 1, "");
7022 namespace test_lambdas
7028 auto lambda1 = [](){};
7029 auto lambda2 = lambda1;
7037 auto a = [](int i, int j){ return i + j; }(1, 2);
7038 auto b = []() -> int { return '0'; }();
7039 auto c = [=](){ return a + b; }();
7040 auto d = [&](){ return c; }();
7041 auto e = [a, &b](int x) mutable {
7042 const auto identity = [](int y){ return y; };
7043 for (auto i = 0; i < a; ++i)
7045 return x + identity(a + b);
7047 return a + b + c + d + e;
7053 const auto nullary = [](){ return 0; };
7054 const auto unary = [](int x){ return x; };
7055 using nullary_t = decltype(nullary);
7056 using unary_t = decltype(unary);
7057 const auto higher1st = [](nullary_t f){ return f(); };
7058 const auto higher2nd = [unary](nullary_t f1){
7059 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7061 return higher1st(nullary) + higher2nd(nullary)(unary);
7066 namespace test_variadic_templates
7072 template <int N0, int... N1toN>
7073 struct sum<N0, N1toN...>
7075 static constexpr auto value = N0 + sum<N1toN...>::value;
7081 static constexpr auto value = 0;
7084 static_assert(sum<>::value == 0, "");
7085 static_assert(sum<1>::value == 1, "");
7086 static_assert(sum<23>::value == 23, "");
7087 static_assert(sum<1, 2>::value == 3, "");
7088 static_assert(sum<5, 5, 11>::value == 21, "");
7089 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7093 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7094 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7096 namespace test_template_alias_sfinae
7101 template<typename T>
7102 using member = typename T::member_type;
7104 template<typename T>
7107 template<typename T>
7108 void func(member<T>*) {}
7112 void test() { func<foo>(0); }
7116 } // namespace cxx11
7118 #endif // __cplusplus >= 201103L
7123 if ac_fn_cxx_try_compile "$LINENO"; then :
7124 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7126 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7131 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7132 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7136 if test x$ac_success = xno; then
7137 for alternative in ${ax_cxx_compile_alternatives}; do
7138 switch="-std=gnu++${alternative}"
7139 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7141 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7142 if eval \${$cachevar+:} false; then :
7143 $as_echo_n "(cached) " >&6
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7151 // If the compiler admits that it is not ready for C++11, why torture it?
7152 // Hopefully, this will speed up the test.
7156 #error "This is not a C++ compiler"
7158 #elif __cplusplus < 201103L
7160 #error "This is not a C++11 compiler"
7167 namespace test_static_assert
7170 template <typename T>
7173 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7178 namespace test_final_override
7187 struct Derived : public Base
7189 virtual ~Derived() override {}
7190 virtual void f() override {}
7195 namespace test_double_right_angle_brackets
7198 template < typename T >
7201 typedef check<void> single_type;
7202 typedef check<check<void>> double_type;
7203 typedef check<check<check<void>>> triple_type;
7204 typedef check<check<check<check<void>>>> quadruple_type;
7208 namespace test_decltype
7221 namespace test_type_deduction
7224 template < typename T1, typename T2 >
7227 static const bool value = false;
7230 template < typename T >
7231 struct is_same<T, T>
7233 static const bool value = true;
7236 template < typename T1, typename T2 >
7238 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7244 test(const int c, volatile int v)
7246 static_assert(is_same<int, decltype(0)>::value == true, "");
7247 static_assert(is_same<int, decltype(c)>::value == false, "");
7248 static_assert(is_same<int, decltype(v)>::value == false, "");
7251 auto sumi = ac + av + 'x';
7252 auto sumf = ac + av + 1.0;
7253 static_assert(is_same<int, decltype(ac)>::value == true, "");
7254 static_assert(is_same<int, decltype(av)>::value == true, "");
7255 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7256 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7257 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7258 return (sumf > 0.0) ? sumi : add(c, v);
7263 namespace test_noexcept
7266 int f() { return 0; }
7267 int g() noexcept { return 0; }
7269 static_assert(noexcept(f()) == false, "");
7270 static_assert(noexcept(g()) == true, "");
7274 namespace test_constexpr
7277 template < typename CharT >
7278 unsigned long constexpr
7279 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7281 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7284 template < typename CharT >
7285 unsigned long constexpr
7286 strlen_c(const CharT *const s) noexcept
7288 return strlen_c_r(s, 0UL);
7291 static_assert(strlen_c("") == 0UL, "");
7292 static_assert(strlen_c("1") == 1UL, "");
7293 static_assert(strlen_c("example") == 7UL, "");
7294 static_assert(strlen_c("another\0example") == 7UL, "");
7298 namespace test_rvalue_references
7304 static constexpr int value = N;
7307 answer<1> f(int&) { return answer<1>(); }
7308 answer<2> f(const int&) { return answer<2>(); }
7309 answer<3> f(int&&) { return answer<3>(); }
7316 static_assert(decltype(f(i))::value == 1, "");
7317 static_assert(decltype(f(c))::value == 2, "");
7318 static_assert(decltype(f(0))::value == 3, "");
7323 namespace test_uniform_initialization
7328 static const int zero {};
7329 static const int one {1};
7332 static_assert(test::zero == 0, "");
7333 static_assert(test::one == 1, "");
7337 namespace test_lambdas
7343 auto lambda1 = [](){};
7344 auto lambda2 = lambda1;
7352 auto a = [](int i, int j){ return i + j; }(1, 2);
7353 auto b = []() -> int { return '0'; }();
7354 auto c = [=](){ return a + b; }();
7355 auto d = [&](){ return c; }();
7356 auto e = [a, &b](int x) mutable {
7357 const auto identity = [](int y){ return y; };
7358 for (auto i = 0; i < a; ++i)
7360 return x + identity(a + b);
7362 return a + b + c + d + e;
7368 const auto nullary = [](){ return 0; };
7369 const auto unary = [](int x){ return x; };
7370 using nullary_t = decltype(nullary);
7371 using unary_t = decltype(unary);
7372 const auto higher1st = [](nullary_t f){ return f(); };
7373 const auto higher2nd = [unary](nullary_t f1){
7374 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7376 return higher1st(nullary) + higher2nd(nullary)(unary);
7381 namespace test_variadic_templates
7387 template <int N0, int... N1toN>
7388 struct sum<N0, N1toN...>
7390 static constexpr auto value = N0 + sum<N1toN...>::value;
7396 static constexpr auto value = 0;
7399 static_assert(sum<>::value == 0, "");
7400 static_assert(sum<1>::value == 1, "");
7401 static_assert(sum<23>::value == 23, "");
7402 static_assert(sum<1, 2>::value == 3, "");
7403 static_assert(sum<5, 5, 11>::value == 21, "");
7404 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7408 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7409 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7411 namespace test_template_alias_sfinae
7416 template<typename T>
7417 using member = typename T::member_type;
7419 template<typename T>
7422 template<typename T>
7423 void func(member<T>*) {}
7427 void test() { func<foo>(0); }
7431 } // namespace cxx11
7433 #endif // __cplusplus >= 201103L
7438 if ac_fn_cxx_try_compile "$LINENO"; then :
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 eval ac_res=\$$cachevar
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7448 $as_echo "$ac_res" >&6; }
7449 if eval test x\$$cachevar = xyes; then
7451 if test -n "$CXXCPP" ; then
7452 CXXCPP="$CXXCPP $switch"
7460 if test x$ac_success = xno; then
7461 for alternative in ${ax_cxx_compile_alternatives}; do
7462 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7463 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7465 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7466 if eval \${$cachevar+:} false; then :
7467 $as_echo_n "(cached) " >&6
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7475 // If the compiler admits that it is not ready for C++11, why torture it?
7476 // Hopefully, this will speed up the test.
7480 #error "This is not a C++ compiler"
7482 #elif __cplusplus < 201103L
7484 #error "This is not a C++11 compiler"
7491 namespace test_static_assert
7494 template <typename T>
7497 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7502 namespace test_final_override
7511 struct Derived : public Base
7513 virtual ~Derived() override {}
7514 virtual void f() override {}
7519 namespace test_double_right_angle_brackets
7522 template < typename T >
7525 typedef check<void> single_type;
7526 typedef check<check<void>> double_type;
7527 typedef check<check<check<void>>> triple_type;
7528 typedef check<check<check<check<void>>>> quadruple_type;
7532 namespace test_decltype
7545 namespace test_type_deduction
7548 template < typename T1, typename T2 >
7551 static const bool value = false;
7554 template < typename T >
7555 struct is_same<T, T>
7557 static const bool value = true;
7560 template < typename T1, typename T2 >
7562 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7568 test(const int c, volatile int v)
7570 static_assert(is_same<int, decltype(0)>::value == true, "");
7571 static_assert(is_same<int, decltype(c)>::value == false, "");
7572 static_assert(is_same<int, decltype(v)>::value == false, "");
7575 auto sumi = ac + av + 'x';
7576 auto sumf = ac + av + 1.0;
7577 static_assert(is_same<int, decltype(ac)>::value == true, "");
7578 static_assert(is_same<int, decltype(av)>::value == true, "");
7579 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7580 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7581 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7582 return (sumf > 0.0) ? sumi : add(c, v);
7587 namespace test_noexcept
7590 int f() { return 0; }
7591 int g() noexcept { return 0; }
7593 static_assert(noexcept(f()) == false, "");
7594 static_assert(noexcept(g()) == true, "");
7598 namespace test_constexpr
7601 template < typename CharT >
7602 unsigned long constexpr
7603 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7605 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7608 template < typename CharT >
7609 unsigned long constexpr
7610 strlen_c(const CharT *const s) noexcept
7612 return strlen_c_r(s, 0UL);
7615 static_assert(strlen_c("") == 0UL, "");
7616 static_assert(strlen_c("1") == 1UL, "");
7617 static_assert(strlen_c("example") == 7UL, "");
7618 static_assert(strlen_c("another\0example") == 7UL, "");
7622 namespace test_rvalue_references
7628 static constexpr int value = N;
7631 answer<1> f(int&) { return answer<1>(); }
7632 answer<2> f(const int&) { return answer<2>(); }
7633 answer<3> f(int&&) { return answer<3>(); }
7640 static_assert(decltype(f(i))::value == 1, "");
7641 static_assert(decltype(f(c))::value == 2, "");
7642 static_assert(decltype(f(0))::value == 3, "");
7647 namespace test_uniform_initialization
7652 static const int zero {};
7653 static const int one {1};
7656 static_assert(test::zero == 0, "");
7657 static_assert(test::one == 1, "");
7661 namespace test_lambdas
7667 auto lambda1 = [](){};
7668 auto lambda2 = lambda1;
7676 auto a = [](int i, int j){ return i + j; }(1, 2);
7677 auto b = []() -> int { return '0'; }();
7678 auto c = [=](){ return a + b; }();
7679 auto d = [&](){ return c; }();
7680 auto e = [a, &b](int x) mutable {
7681 const auto identity = [](int y){ return y; };
7682 for (auto i = 0; i < a; ++i)
7684 return x + identity(a + b);
7686 return a + b + c + d + e;
7692 const auto nullary = [](){ return 0; };
7693 const auto unary = [](int x){ return x; };
7694 using nullary_t = decltype(nullary);
7695 using unary_t = decltype(unary);
7696 const auto higher1st = [](nullary_t f){ return f(); };
7697 const auto higher2nd = [unary](nullary_t f1){
7698 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7700 return higher1st(nullary) + higher2nd(nullary)(unary);
7705 namespace test_variadic_templates
7711 template <int N0, int... N1toN>
7712 struct sum<N0, N1toN...>
7714 static constexpr auto value = N0 + sum<N1toN...>::value;
7720 static constexpr auto value = 0;
7723 static_assert(sum<>::value == 0, "");
7724 static_assert(sum<1>::value == 1, "");
7725 static_assert(sum<23>::value == 23, "");
7726 static_assert(sum<1, 2>::value == 3, "");
7727 static_assert(sum<5, 5, 11>::value == 21, "");
7728 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7732 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7733 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7735 namespace test_template_alias_sfinae
7740 template<typename T>
7741 using member = typename T::member_type;
7743 template<typename T>
7746 template<typename T>
7747 void func(member<T>*) {}
7751 void test() { func<foo>(0); }
7755 } // namespace cxx11
7757 #endif // __cplusplus >= 201103L
7762 if ac_fn_cxx_try_compile "$LINENO"; then :
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 eval ac_res=\$$cachevar
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7772 $as_echo "$ac_res" >&6; }
7773 if eval test x\$$cachevar = xyes; then
7775 if test -n "$CXXCPP" ; then
7776 CXXCPP="$CXXCPP $switch"
7782 if test x$ac_success = xyes; then
7787 CXX_FOR_BUILD="$CXX"
7788 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7789 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7790 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7791 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7792 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7800 if test x$ac_success = xno; then
7801 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7804 if test x$ac_success = xno; then
7805 HAVE_CXX11_FOR_BUILD=0
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7807 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7809 HAVE_CXX11_FOR_BUILD=1
7811 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7819 # Check whether --enable-pgo-build was given.
7820 if test "${enable_pgo_build+set}" = set; then :
7821 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7827 # Issue errors and warnings for invalid/strange PGO build combinations.
7828 case "$have_compiler:$host:$target:$enable_pgo_build" in
7831 # Allow the PGO build only if we aren't building a compiler and
7832 # we are in a native configuration.
7833 no:$build:$build:yes | no:$build:$build:lto) ;;
7835 # Disallow the PGO bootstrap if we are building a compiler.
7836 yes:*:*:yes | yes:*:*:lto)
7837 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7840 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7844 if test "$enable_pgo_build" != "no"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7846 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7847 old_CFLAGS="$CFLAGS"
7848 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7849 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7855 if ac_fn_c_try_compile "$LINENO"; then :
7858 PGO_BUILD_GEN_CFLAGS=
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 CFLAGS="$old_CFLAGS"
7862 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7865 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7872 if test "$enable_pgo_build" = "lto"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7874 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7875 old_CFLAGS="$CFLAGS"
7876 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7877 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7882 if ac_fn_c_try_compile "$LINENO"; then :
7885 PGO_BUILD_LTO_CFLAGS=
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 CFLAGS="$old_CFLAGS"
7889 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7891 $as_echo "yes" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7896 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7904 # Used for setting $lt_cv_objdir
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7906 $as_echo_n "checking for objdir... " >&6; }
7907 if ${lt_cv_objdir+:} false; then :
7908 $as_echo_n "(cached) " >&6
7910 rm -f .libs 2>/dev/null
7911 mkdir .libs 2>/dev/null
7912 if test -d .libs; then
7915 # MS-DOS does not allow filenames that begin with a dot.
7918 rmdir .libs 2>/dev/null
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7921 $as_echo "$lt_cv_objdir" >&6; }
7922 objdir=$lt_cv_objdir
7928 cat >>confdefs.h <<_ACEOF
7929 #define LT_OBJDIR "$lt_cv_objdir/"
7934 # Check for GMP, MPFR and MPC
7935 gmplibs="-lmpc -lmpfr -lgmp"
7939 # Specify a location for mpc
7940 # check for this first so it ends up on the link line before mpfr.
7942 # Check whether --with-mpc was given.
7943 if test "${with_mpc+set}" = set; then :
7948 # Check whether --with-mpc-include was given.
7949 if test "${with_mpc_include+set}" = set; then :
7950 withval=$with_mpc_include;
7954 # Check whether --with-mpc-lib was given.
7955 if test "${with_mpc_lib+set}" = set; then :
7956 withval=$with_mpc_lib;
7960 if test "x$with_mpc" != x; then
7961 gmplibs="-L$with_mpc/lib $gmplibs"
7962 gmpinc="-I$with_mpc/include $gmpinc"
7964 if test "x$with_mpc_include" != x; then
7965 gmpinc="-I$with_mpc_include $gmpinc"
7967 if test "x$with_mpc_lib" != x; then
7968 gmplibs="-L$with_mpc_lib $gmplibs"
7970 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7971 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7972 gmpinc='-I$$s/mpc/src '"$gmpinc"
7973 # Do not test the mpc version. Assume that it is sufficient, since
7974 # it is in the source tree, and the library has not been built yet
7975 # but it would be included on the link line in the version check below
7976 # hence making the test fail.
7980 # Specify a location for mpfr
7981 # check for this first so it ends up on the link line before gmp.
7983 # Check whether --with-mpfr-dir was given.
7984 if test "${with_mpfr_dir+set}" = set; then :
7985 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7986 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7991 # Check whether --with-mpfr was given.
7992 if test "${with_mpfr+set}" = set; then :
7997 # Check whether --with-mpfr-include was given.
7998 if test "${with_mpfr_include+set}" = set; then :
7999 withval=$with_mpfr_include;
8003 # Check whether --with-mpfr-lib was given.
8004 if test "${with_mpfr_lib+set}" = set; then :
8005 withval=$with_mpfr_lib;
8009 if test "x$with_mpfr" != x; then
8010 gmplibs="-L$with_mpfr/lib $gmplibs"
8011 gmpinc="-I$with_mpfr/include $gmpinc"
8013 if test "x$with_mpfr_include" != x; then
8014 gmpinc="-I$with_mpfr_include $gmpinc"
8016 if test "x$with_mpfr_lib" != x; then
8017 gmplibs="-L$with_mpfr_lib $gmplibs"
8019 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8020 # MPFR v3.1.0 moved the sources into a src sub-directory.
8021 if ! test -d ${srcdir}/mpfr/src; then
8022 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8024 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8025 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8026 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8027 # Do not test the mpfr version. Assume that it is sufficient, since
8028 # it is in the source tree, and the library has not been built yet
8029 # but it would be included on the link line in the version check below
8030 # hence making the test fail.
8034 # Specify a location for gmp
8036 # Check whether --with-gmp-dir was given.
8037 if test "${with_gmp_dir+set}" = set; then :
8038 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
8039 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8044 # Check whether --with-gmp was given.
8045 if test "${with_gmp+set}" = set; then :
8050 # Check whether --with-gmp-include was given.
8051 if test "${with_gmp_include+set}" = set; then :
8052 withval=$with_gmp_include;
8056 # Check whether --with-gmp-lib was given.
8057 if test "${with_gmp_lib+set}" = set; then :
8058 withval=$with_gmp_lib;
8063 if test "x$with_gmp" != x; then
8064 gmplibs="-L$with_gmp/lib $gmplibs"
8065 gmpinc="-I$with_gmp/include $gmpinc"
8067 if test "x$with_gmp_include" != x; then
8068 gmpinc="-I$with_gmp_include $gmpinc"
8070 if test "x$with_gmp_lib" != x; then
8071 gmplibs="-L$with_gmp_lib $gmplibs"
8073 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8074 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8075 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8076 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8077 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8078 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8079 # Do not test the gmp version. Assume that it is sufficient, since
8080 # it is in the source tree, and the library has not been built yet
8081 # but it would be included on the link line in the version check below
8082 # hence making the test fail.
8086 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8088 saved_CFLAGS="$CFLAGS"
8089 CFLAGS="$CFLAGS $gmpinc"
8090 # Check for the recommended and required versions of GMP.
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8092 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8100 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8101 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8102 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8118 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8119 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8120 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8133 $as_echo "buggy but acceptable" >&6; }
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }; have_gmp=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 # If we have GMP, check the MPFR version.
8143 if test x"$have_gmp" = xyes; then
8144 # Check for the recommended and required versions of MPFR.
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8146 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8155 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8172 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182 $as_echo "yes" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8185 $as_echo "buggy but acceptable" >&6; }
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }; have_gmp=no
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 # Check for the MPC header version.
8196 if test x"$have_gmp" = xyes ; then
8197 # Check for the recommended and required versions of MPC.
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8199 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8207 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8215 if ac_fn_c_try_compile "$LINENO"; then :
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8223 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8236 $as_echo "buggy but acceptable" >&6; }
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }; have_gmp=no
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 # Now check the MPFR library.
8247 if test x"$have_gmp" = xyes; then
8249 LIBS="$LIBS $gmplibs"
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8251 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8265 mpfr_atan2 (n, n, x, MPFR_RNDN);
8266 mpfr_erfc (n, x, MPFR_RNDN);
8267 mpfr_subnormalize (x, t, MPFR_RNDN);
8271 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8272 mpc_cosh (c, c, MPC_RNDNN);
8273 mpc_pow (c, c, c, MPC_RNDNN);
8274 mpc_acosh (c, c, MPC_RNDNN);
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }; have_gmp=no
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8293 CFLAGS="$saved_CFLAGS"
8295 # The library versions listed in the error message below should match
8296 # the HARD-minimums enforced above.
8297 if test x$have_gmp != xyes; then
8298 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8299 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8300 their locations. Source code for these libraries can be found at
8301 their respective hosting sites as well as at
8302 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8303 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8304 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8305 make sure that you have installed both the libraries and the header
8306 files. They may be located in separate packages." "$LINENO" 5
8310 # Flags needed for both GMP, MPFR and/or MPC.
8318 # Libraries to use for stage1 or when not bootstrapping.
8320 # Check whether --with-stage1-libs was given.
8321 if test "${with_stage1_libs+set}" = set; then :
8322 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8325 stage1_libs=$withval
8333 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8334 # default is yes if gcc is being built; no otherwise. The reason for
8335 # this default is that gdb is sometimes linked against GNU Source
8336 # Highlight, which is a shared library that uses C++ exceptions. In
8337 # this case, -static-libstdc++ will cause crashes.
8339 # Check whether --with-static-standard-libraries was given.
8340 if test "${with_static_standard_libraries+set}" = set; then :
8341 withval=$with_static_standard_libraries;
8343 with_static_standard_libraries=auto
8346 if test "$with_static_standard_libraries" = auto; then
8347 with_static_standard_libraries=$have_compiler
8350 # Linker flags to use for stage1 or when not bootstrapping.
8352 # Check whether --with-stage1-ldflags was given.
8353 if test "${with_stage1_ldflags+set}" = set; then :
8354 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8357 stage1_ldflags=$withval
8361 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8362 # if supported. But if the user explicitly specified the libraries to use,
8363 # trust that they are doing what they want.
8364 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8365 -a "$have_static_libs" = yes; then
8366 stage1_ldflags="-static-libstdc++ -static-libgcc"
8372 # Libraries to use for stage2 and later builds.
8374 # Check whether --with-boot-libs was given.
8375 if test "${with_boot_libs+set}" = set; then :
8376 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8379 poststage1_libs=$withval
8387 # Linker flags to use for stage2 and later builds.
8389 # Check whether --with-boot-ldflags was given.
8390 if test "${with_boot_ldflags+set}" = set; then :
8391 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8394 poststage1_ldflags=$withval
8398 # In stages 2 and 3, default to linking libstdc++ and libgcc
8399 # statically. But if the user explicitly specified the libraries to
8400 # use, trust that they are doing what they want.
8401 if test "$poststage1_libs" = ""; then
8402 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8408 # GCC GRAPHITE dependency isl.
8409 # Basic setup is inlined here, actual checks are in config/isl.m4
8412 # Check whether --with-isl was given.
8413 if test "${with_isl+set}" = set; then :
8418 # Treat --without-isl as a request to disable
8419 # GRAPHITE support and skip all following checks.
8420 if test "x$with_isl" != "xno"; then
8424 # Check whether --with-isl-include was given.
8425 if test "${with_isl_include+set}" = set; then :
8426 withval=$with_isl_include;
8430 # Check whether --with-isl-lib was given.
8431 if test "${with_isl_lib+set}" = set; then :
8432 withval=$with_isl_lib;
8436 # Check whether --enable-isl-version-check was given.
8437 if test "${enable_isl_version_check+set}" = set; then :
8438 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8440 ENABLE_ISL_CHECK=yes
8444 # Initialize isllibs and islinc.
8453 isllibs="-L$with_isl/lib"
8454 islinc="-I$with_isl/include"
8457 if test "x${with_isl_include}" != x ; then
8458 islinc="-I$with_isl_include"
8460 if test "x${with_isl_lib}" != x; then
8461 isllibs="-L$with_isl_lib"
8463 if test "x${islinc}" = x && test "x${isllibs}" = x \
8464 && test -d ${srcdir}/isl; then
8465 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8466 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8469 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8472 isllibs="${isllibs} -lisl"
8476 if test "${ENABLE_ISL_CHECK}" = yes ; then
8477 _isl_saved_CFLAGS=$CFLAGS
8478 _isl_saved_LDFLAGS=$LDFLAGS
8479 _isl_saved_LIBS=$LIBS
8481 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8482 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8483 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8486 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <isl/schedule.h>
8493 isl_options_set_schedule_serialize_sccs (NULL, 0);
8498 if ac_fn_c_try_link "$LINENO"; then :
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8506 $as_echo "$gcc_cv_isl" >&6; }
8508 if test "${gcc_cv_isl}" = no ; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8510 $as_echo "required isl version is 0.15 or later" >&6; }
8513 CFLAGS=$_isl_saved_CFLAGS
8514 LDFLAGS=$_isl_saved_LDFLAGS
8515 LIBS=$_isl_saved_LIBS
8523 if test "x${with_isl}" = xno; then
8524 graphite_requested=no
8525 elif test "x${with_isl}" != x \
8526 || test "x${with_isl_include}" != x \
8527 || test "x${with_isl_lib}" != x ; then
8528 graphite_requested=yes
8530 graphite_requested=no
8535 if test "${gcc_cv_isl}" = no ; then
8540 if test "${graphite_requested}" = yes \
8541 && test "x${isllibs}" = x \
8542 && test "x${islinc}" = x ; then
8544 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8550 # If the isl check failed, disable builds of in-tree variant of isl
8551 if test "x$with_isl" = xno ||
8552 test "x$gcc_cv_isl" = xno; then
8553 noconfigdirs="$noconfigdirs isl"
8560 # Check for LTO support.
8561 # Check whether --enable-lto was given.
8562 if test "${enable_lto+set}" = set; then :
8563 enableval=$enable_lto; enable_lto=$enableval
8565 enable_lto=yes; default_enable_lto=yes
8574 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8575 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8576 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8585 if test $target_elf = yes; then :
8586 # ELF platforms build the lto-plugin always.
8587 build_lto_plugin=yes
8590 if test x"$default_enable_lto" = x"yes" ; then
8592 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8593 # On other non-ELF platforms, LTO has yet to be validated.
8597 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8598 # It would also be nice to check the binutils support, but we don't
8599 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8600 # warn during gcc/ subconfigure; unless you're bootstrapping with
8601 # -flto it won't be needed until after installation anyway.
8603 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8604 *) if test x"$enable_lto" = x"yes"; then
8605 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8610 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8611 # Build it unless LTO was explicitly disabled.
8613 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8620 # Check whether --enable-linker-plugin-configure-flags was given.
8621 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8622 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8624 extra_linker_plugin_configure_flags=
8628 # Check whether --enable-linker-plugin-flags was given.
8629 if test "${enable_linker_plugin_flags+set}" = set; then :
8630 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8632 extra_linker_plugin_flags=
8637 # Enable --enable-host-shared.
8638 # Checked early to determine whether jit is an 'all' language
8639 # Check whether --enable-host-shared was given.
8640 if test "${enable_host_shared+set}" = set; then :
8641 enableval=$enable_host_shared; host_shared=$enableval
8643 x86_64-*-darwin* | aarch64-*-darwin*)
8644 if test x$host_shared != xyes ; then
8645 # PIC is the default, and actually cannot be switched off.
8646 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8653 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8654 *) host_shared=no ;;
8660 # By default, C and C++ are the only stage 1 languages.
8661 stage1_languages=,c,
8663 # Target libraries that we bootstrap.
8664 bootstrap_target_libs=,target-libgcc,
8666 # Figure out what language subdirectories are present.
8667 # Look if the user specified --enable-languages="..."; if not, use
8668 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8670 # NB: embedded tabs in this IF block -- do not untabify
8671 if test -d ${srcdir}/gcc; then
8672 if test x"${enable_languages+set}" != xset; then
8673 if test x"${LANGUAGES+set}" = xset; then
8674 enable_languages="${LANGUAGES}"
8675 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8677 enable_languages=default
8680 if test x"${enable_languages}" = x ||
8681 test x"${enable_languages}" = xyes;
8683 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8687 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8689 # 'f95' is the old name for the 'fortran' language. We issue a warning
8690 # and make the substitution.
8691 case ,${enable_languages}, in
8693 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8694 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8698 # If bootstrapping, C++ must be enabled.
8699 case ",$enable_languages,:$enable_bootstrap" in
8702 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8703 enable_languages="${enable_languages},c++"
8705 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8710 # First scan to see if an enabled language requires some other language.
8711 # We assume that a given config-lang.in will list all the language
8712 # front ends it requires, even if some are required indirectly.
8713 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8714 case ${lang_frag} in
8716 # The odd quoting in the next line works around
8717 # an apparent bug in bash 1.12 on linux.
8718 ${srcdir}/gcc/[*]/config-lang.in) ;;
8720 # From the config-lang.in, get $language, $lang_requires, and
8721 # $lang_requires_boot_languages.
8724 lang_requires_boot_languages=
8725 # set srcdir during sourcing lang_frag to the gcc dir.
8726 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8727 # polutes this shell
8728 saved_srcdir=${srcdir}
8729 srcdir=${srcdir}/gcc . ${lang_frag}
8730 srcdir=${saved_srcdir}
8731 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8732 case ,${enable_languages}, in
8737 echo " \`$other' language required by \`$language'; enabling" 1>&2
8738 enable_languages="${enable_languages},${other}"
8742 for other in ${lang_requires_boot_languages} ; do
8743 if test "$other" != "c"; then
8744 case ,${enable_stage1_languages}, in
8749 case ,${enable_languages}, in
8751 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8752 enable_stage1_languages="$enable_stage1_languages,${other}"
8763 new_enable_languages=,c,
8765 # If LTO is enabled, add the LTO front end.
8766 if test "$enable_lto" = "yes" ; then
8767 case ,${enable_languages}, in
8769 *) enable_languages="${enable_languages},lto" ;;
8771 if test "${build_lto_plugin}" = "yes" ; then
8772 configdirs="$configdirs lto-plugin"
8776 # If we're building an offloading compiler, add the LTO front end.
8777 if test x"$enable_as_accelerator_for" != x ; then
8778 case ,${enable_languages}, in
8780 *) enable_languages="${enable_languages},lto" ;;
8784 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8785 potential_languages=,c,
8787 enabled_target_libs=
8788 disabled_target_libs=
8790 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8791 case ${lang_frag} in
8793 # The odd quoting in the next line works around
8794 # an apparent bug in bash 1.12 on linux.
8795 ${srcdir}/gcc/[*]/config-lang.in) ;;
8797 # From the config-lang.in, get $language, $target_libs,
8798 # $lang_dirs, $boot_language, and $build_by_default
8804 build_by_default=yes
8805 # set srcdir during sourcing. See above about save & restore
8806 saved_srcdir=${srcdir}
8807 srcdir=${srcdir}/gcc . ${lang_frag}
8808 srcdir=${saved_srcdir}
8809 if test x${language} = x; then
8810 echo "${lang_frag} doesn't set \$language." 1>&2
8814 if test "$language" = "c++"; then
8819 # C is always enabled, so no need to add it again
8820 if test "$language" != "c"; then
8821 case ,${enable_languages}, in
8823 # Language was explicitly selected; include it
8827 # All languages are enabled
8831 # 'default' was selected, select it if it is a default language
8832 add_this_lang=${build_by_default}
8837 # Disable languages that need other directories if these aren't available.
8838 for i in $subdir_requires; do
8839 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8840 case ${add_this_lang} in
8842 # Specifically requested language; tell them.
8843 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8847 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8848 add_this_lang=unsupported
8852 add_this_lang=unsupported
8857 # Disable Ada if no preexisting GNAT is available.
8858 case ${add_this_lang}:${language}:${have_gnat} in
8860 # Specifically requested language; tell them.
8861 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8865 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8866 add_this_lang=unsupported
8870 add_this_lang=unsupported
8874 # Disable D if no preexisting GDC is available.
8875 case ${add_this_lang}:${language}:${have_gdc} in
8877 # Specifically requested language; tell them.
8878 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8882 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8883 add_this_lang=unsupported
8887 add_this_lang=unsupported
8891 # Disable jit if -enable-host-shared not specified
8892 # but not if building for Mingw. All code in Windows
8893 # is position independent code (PIC).
8897 case ${add_this_lang}:${language}:${host_shared} in
8899 # PR jit/64780: explicitly specify --enable-host-shared
8901 Enabling language \"jit\" requires --enable-host-shared.
8903 --enable-host-shared typically slows the rest of the compiler down by
8904 a few %, so you must explicitly enable it.
8906 If you want to build both the jit and the regular compiler, it is often
8907 best to do this via two separate configure/builds, in separate
8908 directories, to avoid imposing the performance cost of
8909 --enable-host-shared on the regular compiler." "$LINENO" 5
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8913 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8914 add_this_lang=unsupported
8918 add_this_lang=unsupported
8924 # Disable a language that is unsupported by the target.
8925 case "${add_this_lang}: $unsupported_languages " in
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8930 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8931 add_this_lang=unsupported
8935 case $add_this_lang in
8937 # Remove language-dependent dirs.
8938 disabled_target_libs="$disabled_target_libs $target_libs"
8939 noconfigdirs="$noconfigdirs $lang_dirs"
8942 # Remove language-dependent dirs; still show language as supported.
8943 disabled_target_libs="$disabled_target_libs $target_libs"
8944 noconfigdirs="$noconfigdirs $lang_dirs"
8945 potential_languages="${potential_languages}${language},"
8948 new_enable_languages="${new_enable_languages}${language},"
8949 potential_languages="${potential_languages}${language},"
8950 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8951 enabled_target_libs="$enabled_target_libs $target_libs"
8952 case "${boot_language}:,$enable_stage1_languages," in
8953 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8954 # Add to (comma-separated) list of stage 1 languages.
8955 case ",$stage1_languages," in
8956 *,$language,* | ,yes, | ,all,) ;;
8957 *) stage1_languages="${stage1_languages}${language}," ;;
8959 # We need to bootstrap any supporting libraries.
8960 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8969 # Add target libraries which are only needed for disabled languages
8971 if test -n "$disabled_target_libs"; then
8972 for dir in $disabled_target_libs; do
8973 case " $enabled_target_libs " in
8975 *) noconfigdirs="$noconfigdirs $dir" ;;
8980 # Check whether --enable-stage1-languages was given.
8981 if test "${enable_stage1_languages+set}" = set; then :
8982 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8984 # Set it to something that will have no effect in the loop below
8985 enable_stage1_languages=c ;;
8987 enable_stage1_languages=`echo $new_enable_languages | \
8988 sed -e "s/^,//" -e "s/,$//" ` ;;
8990 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8991 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8994 # Add "good" languages from enable_stage1_languages to stage1_languages,
8995 # while "bad" languages go in missing_languages. Leave no duplicates.
8996 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8997 case $potential_languages in
8999 case $stage1_languages in
9001 *) stage1_languages="$stage1_languages$i," ;;
9004 case $missing_languages in
9006 *) missing_languages="$missing_languages$i," ;;
9013 # Remove leading/trailing commas that were added for simplicity
9014 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9015 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9016 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9017 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9019 if test "x$missing_languages" != x; then
9021 The following requested languages could not be built: ${missing_languages}
9022 Supported languages are: ${potential_languages}" "$LINENO" 5
9024 if test "x$new_enable_languages" != "x$enable_languages"; then
9025 echo The following languages will be built: ${new_enable_languages}
9026 enable_languages="$new_enable_languages"
9030 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9033 # Handle --disable-<component> generically.
9034 for dir in $configdirs $build_configdirs $target_configdirs ; do
9035 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9036 varname=`echo $dirname | sed -e s/+/_/g`
9037 if eval test x\${enable_${varname}} "=" xno ; then
9038 noconfigdirs="$noconfigdirs $dir"
9042 # Check for Boehm's garbage collector
9043 # Check whether --enable-objc-gc was given.
9044 if test "${enable_objc_gc+set}" = set; then :
9045 enableval=$enable_objc_gc;
9049 # Check whether --with-target-bdw-gc was given.
9050 if test "${with_target_bdw_gc+set}" = set; then :
9051 withval=$with_target_bdw_gc;
9055 # Check whether --with-target-bdw-gc-include was given.
9056 if test "${with_target_bdw_gc_include+set}" = set; then :
9057 withval=$with_target_bdw_gc_include;
9061 # Check whether --with-target-bdw-gc-lib was given.
9062 if test "${with_target_bdw_gc_lib+set}" = set; then :
9063 withval=$with_target_bdw_gc_lib;
9067 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9069 $as_echo_n "checking for bdw garbage collector... " >&6; }
9070 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9072 $as_echo "using bdw-gc in default locations" >&6; }
9074 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9075 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9076 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9077 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9080 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9085 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9086 case ,${enable_languages}, in
9088 # Disable libitm, libsanitizer if we're not building libstdc++
9089 case "${noconfigdirs}" in
9090 *target-libstdc++-v3*)
9091 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9097 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9101 # If gcc/ is not in the source tree then we'll not be building a
9102 # target compiler, assume in that case we don't want to build any
9103 # target libraries or tools.
9105 # This was added primarily for the benefit for binutils-gdb who reuse
9106 # this configure script, but don't always have target tools available.
9107 if test ! -d ${srcdir}/gcc; then
9108 skipdirs="${skipdirs} ${target_configdirs}"
9111 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9112 # $build_configdirs and $target_configdirs.
9113 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9116 for dir in . $skipdirs $noconfigdirs ; do
9117 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9118 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9119 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9120 if test -r $srcdir/$dirname/configure ; then
9121 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9124 notsupp="$notsupp $dir"
9128 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9129 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9130 if test -r $srcdir/$dirname/configure ; then
9131 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134 notsupp="$notsupp $dir"
9138 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9139 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9140 if test -r $srcdir/$dirname/configure ; then
9141 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9144 notsupp="$notsupp $dir"
9150 # Quietly strip out all directories which aren't configurable in this tree.
9151 # This relies on all configurable subdirectories being autoconfiscated, which
9153 build_configdirs_all="$build_configdirs"
9155 for i in ${build_configdirs_all} ; do
9156 j=`echo $i | sed -e s/build-//g`
9157 if test -f ${srcdir}/$j/configure ; then
9158 build_configdirs="${build_configdirs} $i"
9162 configdirs_all="$configdirs"
9164 for i in ${configdirs_all} ; do
9165 if test -f ${srcdir}/$i/configure ; then
9166 configdirs="${configdirs} $i"
9170 target_configdirs_all="$target_configdirs"
9172 for i in ${target_configdirs_all} ; do
9173 j=`echo $i | sed -e s/target-//g`
9174 if test -f ${srcdir}/$j/configure ; then
9175 target_configdirs="${target_configdirs} $i"
9179 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9180 # so we have to add it after the preceding checks.
9181 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9183 case " $configdirs " in
9185 # If we can build libiberty, we can also build libiberty-linker-plugin.
9186 configdirs="$configdirs libiberty-linker-plugin"
9187 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9188 --with-libiberty=../libiberty-linker-plugin";;
9190 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9194 # Sometimes we have special requirements for the host libiberty.
9195 extra_host_libiberty_configure_flags=
9196 extra_host_zlib_configure_flags=
9197 case " $configdirs " in
9198 *" lto-plugin "* | *" libcc1 "*)
9199 # When these are to be built as shared libraries, the same applies to
9201 extra_host_libiberty_configure_flags=--enable-shared
9204 # When bfd is to be built as a shared library, the same applies to
9206 if test "$enable_shared" = "yes"; then
9207 extra_host_zlib_configure_flags=--enable-host-shared
9214 # Produce a warning message for the subdirs we can't configure.
9215 # This isn't especially interesting in the Cygnus tree, but in the individual
9216 # FSF releases, it's important to let people know when their machine isn't
9217 # supported by the one or two programs in a package.
9219 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9220 # If $appdirs is non-empty, at least one of those directories must still
9221 # be configured, or we error out. (E.g., if the gas release supports a
9222 # specified target in some subdirs but not the gas subdir, we shouldn't
9223 # pretend that all is well.)
9224 if test -n "$appdirs" ; then
9225 for dir in $appdirs ; do
9226 if test -r $dir/Makefile.in ; then
9227 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9231 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9237 if test -n "$appdirs" ; then
9238 echo "*** This configuration is not supported by this package." 1>&2
9242 # Okay, some application will build, or we don't care to check. Still
9243 # notify of subdirs not getting built.
9244 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9245 echo " ${notsupp}" 1>&2
9246 echo " (Any other directories should still work fine.)" 1>&2
9254 # To find our prefix, in gcc_cv_tool_prefix.
9256 # The user is always right.
9257 if test "${PATH_SEPARATOR+set}" != set; then
9258 echo "#! /bin/sh" >conf$$.sh
9259 echo "exit 0" >>conf$$.sh
9261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9270 get_gcc_base_ver="cat"
9272 # Check whether --with-gcc-major-version-only was given.
9273 if test "${with_gcc_major_version_only+set}" = set; then :
9274 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9275 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9285 if test "x$exec_prefix" = xNONE; then
9286 if test "x$prefix" = xNONE; then
9287 gcc_cv_tool_prefix=$ac_default_prefix
9289 gcc_cv_tool_prefix=$prefix
9292 gcc_cv_tool_prefix=$exec_prefix
9295 # If there is no compiler in the tree, use the PATH only. In any
9296 # case, if there is no compiler in the tree nobody should use
9297 # AS_FOR_TARGET and LD_FOR_TARGET.
9298 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9299 if test x$with_gcc_major_version_only = xyes ; then
9300 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9302 gcc_version=`cat $srcdir/gcc/BASE-VER`
9304 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9305 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9306 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9307 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9308 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9309 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9314 if test x$build = x$target && test -n "$md_exec_prefix"; then
9315 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9323 # Check whether --with-build-sysroot was given.
9324 if test "${with_build_sysroot+set}" = set; then :
9325 withval=$with_build_sysroot; if test x"$withval" != x ; then
9326 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9329 SYSROOT_CFLAGS_FOR_TARGET=
9335 # Check whether --with-debug-prefix-map was given.
9336 if test "${with_debug_prefix_map+set}" = set; then :
9337 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9338 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9339 for debug_map in $withval; do
9340 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9344 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9349 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9350 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9351 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9352 # We want to ensure that TARGET libraries (which we know are built with
9353 # gcc) are built with "-O2 -g", so include those options when setting
9354 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9355 if test "x$CFLAGS_FOR_TARGET" = x; then
9356 if test "x${is_cross_compiler}" = xyes; then
9357 CFLAGS_FOR_TARGET="-g -O2"
9359 CFLAGS_FOR_TARGET=$CFLAGS
9362 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9365 *" -g "* | *" -g3 "*) ;;
9366 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9372 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9373 if test "x${is_cross_compiler}" = xyes; then
9374 CXXFLAGS_FOR_TARGET="-g -O2"
9376 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9377 case " $CXXFLAGS " in
9379 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9381 case " $CXXFLAGS " in
9382 *" -g "* | *" -g3 "*) ;;
9383 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9391 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9392 # the named directory are copied to $(tooldir)/sys-include.
9393 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9394 if test x${is_cross_compiler} = xno ; then
9395 echo 1>&2 '***' --with-headers is only supported when cross compiling
9398 if test x"${with_headers}" != xyes ; then
9399 x=${gcc_cv_tool_prefix}
9400 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9404 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9405 # the name directories are copied to $(tooldir)/lib. Multiple directories
9407 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9408 if test x${is_cross_compiler} = xno ; then
9409 echo 1>&2 '***' --with-libs is only supported when cross compiling
9412 if test x"${with_libs}" != xyes ; then
9413 # Copy the libraries in reverse order, so that files in the first named
9414 # library override files in subsequent libraries.
9415 x=${gcc_cv_tool_prefix}
9416 for l in ${with_libs}; do
9417 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9422 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9424 # This is done by determining whether or not the appropriate directory
9425 # is available, and by checking whether or not specific configurations
9426 # have requested that this magic not happen.
9428 # The command line options always override the explicit settings in
9429 # configure.ac, and the settings in configure.ac override this magic.
9431 # If the default for a toolchain is to use GNU as and ld, and you don't
9432 # want to do that, then you should use the --without-gnu-as and
9433 # --without-gnu-ld options for the configure script. Similarly, if
9434 # the default is to use the included zlib and you don't want to do that,
9435 # you should use the --with-system-zlib option for the configure script.
9437 if test x${use_gnu_as} = x &&
9438 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9440 extra_host_args="$extra_host_args --with-gnu-as"
9443 if test x${use_gnu_ld} = x &&
9444 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9446 extra_host_args="$extra_host_args --with-gnu-ld"
9449 if test x${use_included_zlib} = x &&
9450 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9453 with_system_zlib=yes
9454 extra_host_args="$extra_host_args --with-system-zlib"
9457 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9458 # can detect this case.
9460 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9462 extra_host_args="$extra_host_args --with-newlib"
9465 # Handle ${copy_dirs}
9466 set fnord ${copy_dirs}
9468 while test $# != 0 ; do
9469 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9472 echo Copying $1 to $2
9474 # Use the install script to create the directory and all required
9475 # parent directories.
9476 if test -d $2 ; then
9480 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9483 # Copy the directory, assuming we have tar.
9484 # FIXME: Should we use B in the second tar? Not all systems support it.
9485 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9487 # It is the responsibility of the user to correctly adjust all
9488 # symlinks. If somebody can figure out how to handle them correctly
9489 # here, feel free to add the code.
9496 # Determine a target-dependent exec_prefix that the installed
9497 # gcc will search in. Keep this list sorted by triplet, with
9498 # the *-*-osname triplets last.
9501 i[34567]86-pc-msdosdjgpp*)
9502 md_exec_prefix=/dev/env/DJDIR/bin
9507 md_exec_prefix=/usr/ccs/bin
9511 extra_arflags_for_target=
9512 extra_nmflags_for_target=
9513 extra_ranlibflags_for_target=
9514 target_makefile_frag=/dev/null
9517 target_makefile_frag="config/mt-spu"
9519 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9520 target_makefile_frag="config/mt-sde"
9522 mipsisa*-*-elfoabi*)
9523 target_makefile_frag="config/mt-mips-elfoabi"
9525 mips*-*-*linux* | mips*-*-gnu*)
9526 target_makefile_frag="config/mt-mips-gnu"
9529 target_makefile_frag="config/mt-nios2-elf"
9532 target_makefile_frag="config/mt-android"
9534 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9535 target_makefile_frag="config/mt-gnu"
9537 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9538 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9539 # commands to handle both 32-bit and 64-bit objects. These flags are
9540 # harmless if we're using GNU nm or ar.
9541 extra_arflags_for_target=" -X32_64"
9542 extra_nmflags_for_target=" -B -X32_64"
9546 alphaieee_frag=/dev/null
9549 # This just makes sure to use the -mieee option to build target libs.
9550 # This should probably be set individually by each library.
9551 alphaieee_frag="config/mt-alphaieee"
9555 # If --enable-target-optspace always use -Os instead of -O2 to build
9556 # the target libraries, similarly if it is not specified, use -Os
9557 # on selected platforms.
9558 ospace_frag=/dev/null
9559 case "${enable_target_optspace}:${target}" in
9561 ospace_frag="config/mt-ospace"
9564 ospace_frag="config/mt-d30v"
9566 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9567 ospace_frag="config/mt-ospace"
9572 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9576 # Some systems (e.g., one of the i386-aix systems the gas testers are
9577 # using) don't handle "\$" correctly, so don't use it here.
9578 tooldir='${exec_prefix}'/${target_noncanonical}
9579 build_tooldir=${tooldir}
9581 # Create a .gdbinit file which runs the one in srcdir
9582 # and tells GDB to look there for source files.
9584 if test -r ${srcdir}/.gdbinit ; then
9587 *) cat > ./.gdbinit <<EOF
9591 source ${srcdir}/.gdbinit
9597 # Make sure that the compiler is able to generate an executable. If it
9598 # can't, we are probably in trouble. We don't care whether we can run the
9599 # executable--we might be using a cross compiler--we only care whether it
9600 # can be created. At this point the main configure script has set CC.
9602 echo "int main () { return 0; }" > conftest.c
9603 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9604 if test $? = 0 ; then
9605 if test -s conftest || test -s conftest.exe ; then
9611 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9612 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9619 # Decide which environment variable is used to find dynamic libraries.
9621 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9622 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9623 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9624 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9627 # On systems where the dynamic library environment variable is PATH,
9628 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9629 # built executables to PATH.
9630 if test "$RPATH_ENVVAR" = PATH; then
9631 GCC_SHLIB_SUBDIR=/shlib
9636 # Adjust the toplevel makefile according to whether bootstrap was selected.
9637 case $enable_bootstrap in
9639 bootstrap_suffix=bootstrap
9640 BUILD_CONFIG=bootstrap-debug
9643 bootstrap_suffix=no-bootstrap
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9649 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9652 # Check whether --with-build-config was given.
9653 if test "${with_build_config+set}" = set; then :
9654 withval=$with_build_config; case $with_build_config in
9655 yes) with_build_config= ;;
9656 no) with_build_config= BUILD_CONFIG= ;;
9661 if test "x${with_build_config}" != x; then
9662 BUILD_CONFIG=$with_build_config
9664 case $BUILD_CONFIG in
9666 if echo "int f (void) { return 0; }" > conftest.c &&
9667 ${CC} -c conftest.c &&
9668 mv conftest.o conftest.o.g0 &&
9669 ${CC} -c -g conftest.c &&
9670 mv conftest.o conftest.o.g &&
9671 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9676 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9681 $as_echo "$BUILD_CONFIG" >&6; }
9684 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9686 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9687 # Check whether --enable-vtable-verify was given.
9688 if test "${enable_vtable_verify+set}" = set; then :
9689 enableval=$enable_vtable_verify; case "$enableval" in
9690 yes) enable_vtable_verify=yes ;;
9691 no) enable_vtable_verify=no ;;
9692 *) enable_vtable_verify=no;;
9695 enable_vtable_verify=no
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9699 $as_echo "$enable_vtable_verify" >&6; }
9701 # Record target_configdirs and the configure arguments for target and
9702 # build configuration in Makefile.
9703 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9704 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9705 bootstrap_fixincludes=no
9707 # If we are building libgomp, bootstrap it.
9708 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9709 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9712 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9713 # or bootstrap-ubsan, bootstrap it.
9714 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9715 case "$BUILD_CONFIG" in
9716 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9717 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9718 bootstrap_fixincludes=yes
9723 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9724 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9725 test "$enable_vtable_verify" != no; then
9726 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9729 # If we are building libatomic and the list of enabled languages includes the
9730 # D frontend, bootstrap it.
9731 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9732 case ,${enable_languages}, in
9734 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9739 # Determine whether gdb needs tk/tcl or not.
9740 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9741 # and in that case we want gdb to be built without tk. Ugh!
9742 # In fact I believe gdb is the *only* package directly dependent on tk,
9743 # so we should be able to put the 'maybe's in unconditionally and
9744 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9745 # 100% sure that that's safe though.
9747 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9748 case "$enable_gdbtk" in
9752 GDB_TK="${gdb_tk}" ;;
9754 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9755 # distro. Eventually someone will fix this and move Insight, nee
9756 # gdbtk to a separate directory.
9757 if test -d ${srcdir}/gdb/gdbtk ; then
9764 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9765 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9767 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9768 # else does, only include them if one of these is built. The Makefile
9769 # provides the ordering, so it's enough here to add to the list.
9770 case " ${configdirs} " in
9772 configdirs="${configdirs} gnulib gdbsupport"
9775 configdirs="${configdirs} gnulib gdbsupport"
9778 configdirs="${configdirs} gnulib"
9782 # Strip out unwanted targets.
9784 # While at that, we remove Makefiles if we were started for recursive
9785 # configuration, so that the top-level Makefile reconfigures them,
9786 # like we used to do when configure itself was recursive.
9788 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9789 # but now we're fixing up the Makefile ourselves with the additional
9790 # commands passed to AC_CONFIG_FILES. Use separate variables
9791 # extrasub-{build,host,target} not because there is any reason to split
9792 # the substitutions up that way, but only to remain below the limit of
9793 # 99 commands in a script, for HP-UX sed.
9795 # Do not nest @if/@endif or @unless/@endunless pairs, because
9796 # configure will not warn you at all.
9798 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9799 yes:yes:*\ gold\ *:*,c++,*) ;;
9800 yes:yes:*\ gold\ *:*)
9801 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9806 for module in ${build_configdirs} ; do
9807 if test -z "${no_recursion}" \
9808 && test -f ${build_subdir}/${module}/Makefile; then
9809 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9810 rm -f ${build_subdir}/${module}/Makefile
9812 extrasub_build="$extrasub_build
9813 /^@if build-$module\$/d
9814 /^@endif build-$module\$/d
9815 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9816 /^@if build-$module-$bootstrap_suffix\$/d
9817 /^@endif build-$module-$bootstrap_suffix\$/d
9818 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9821 for module in ${configdirs} ; do
9822 if test -z "${no_recursion}"; then
9823 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9824 if test -f ${file}; then
9825 echo 1>&2 "*** removing ${file} to force reconfigure"
9830 case ${module},${bootstrap_fixincludes} in
9831 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9832 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9834 extrasub_host="$extrasub_host
9836 /^@endif $module\$/d
9837 /^@unless $module\$/,/^@endunless $module\$/d
9838 /^@if $module-$host_bootstrap_suffix\$/d
9839 /^@endif $module-$host_bootstrap_suffix\$/d
9840 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9843 for module in ${target_configdirs} ; do
9844 if test -z "${no_recursion}" \
9845 && test -f ${target_subdir}/${module}/Makefile; then
9846 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9847 rm -f ${target_subdir}/${module}/Makefile
9850 # We only bootstrap target libraries listed in bootstrap_target_libs.
9851 case $bootstrap_target_libs in
9852 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9853 *) target_bootstrap_suffix=no-bootstrap ;;
9856 extrasub_target="$extrasub_target
9857 /^@if target-$module\$/d
9858 /^@endif target-$module\$/d
9859 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9860 /^@if target-$module-$target_bootstrap_suffix\$/d
9861 /^@endif target-$module-$target_bootstrap_suffix\$/d
9862 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9865 # Do the final fixup along with target modules.
9866 extrasub_target="$extrasub_target
9871 if test "$enable_pgo_build" != "no"; then
9872 extrasub_build="$extrasub_build
9874 /^@endif pgo-build\$/d"
9877 # Create the serialization dependencies. This uses a temporary file.
9879 # Check whether --enable-serial-configure was given.
9880 if test "${enable_serial_configure+set}" = set; then :
9881 enableval=$enable_serial_configure;
9885 case ${enable_serial_configure} in
9887 enable_serial_build_configure=yes
9888 enable_serial_host_configure=yes
9889 enable_serial_target_configure=yes
9893 # These force 'configure's to be done one at a time, to avoid problems
9894 # with contention over a shared config.cache.
9896 echo '# serdep.tmp' > serdep.tmp
9898 test "x${enable_serial_build_configure}" = xyes &&
9899 for item in ${build_configdirs} ; do
9902 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9907 test "x${enable_serial_host_configure}" = xyes &&
9908 for item in ${configdirs} ; do
9911 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9916 test "x${enable_serial_target_configure}" = xyes &&
9917 for item in ${target_configdirs} ; do
9920 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9924 serialization_dependencies=serdep.tmp
9927 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9928 # target, nonopt, and variable assignments. These are the ones we
9929 # might not want to pass down to subconfigures. The exception being
9930 # --cache-file=/dev/null, which is used to turn off the use of cache
9931 # files altogether, and which should be passed on to subconfigures.
9932 # Also strip program-prefix, program-suffix, and program-transform-name,
9933 # so that we can pass down a consistent program-transform-name.
9938 eval "set -- $ac_configure_args"
9941 if test X"$skip_next" = X"yes"; then
9945 if test X"$keep_next" = X"yes"; then
9948 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9950 baseargs="$baseargs '$ac_arg'"
9951 tbaseargs="$tbaseargs '$ac_arg'"
9956 # Handle separated arguments. Based on the logic generated by
9959 *=* | --config-cache | -C | -disable-* | --disable-* \
9960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9962 | -with-* | --with-* | -without-* | --without-* | --x)
9976 --with-* | --without-*)
9977 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9981 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9984 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9993 mpc | mpfr | gmp | isl)
9994 # If we're processing --with-$lib, --with-$lib-include or
9995 # --with-$lib-lib, for one of the libs above, and target is
9996 # different from host, don't pass the current argument to any
9997 # target library's configure.
9998 if test x$is_cross_compiler = xyes; then
10007 --cache-file=/dev/null | \
10008 -cache-file=/dev/null )
10009 # Handled here to avoid the test to skip args below.
10010 baseargs="$baseargs '$ac_arg'"
10011 tbaseargs="$tbaseargs '$ac_arg'"
10012 # Assert: $separate_arg should always be no.
10013 keep_next=$separate_arg
10029 -program-prefix* | \
10030 -program-suffix* | \
10031 -program-transform-name* )
10032 skip_next=$separate_arg
10036 # An option. Add it.
10039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10041 baseargs="$baseargs '$ac_arg'"
10042 if test X"$skip_targ" = Xno; then
10043 tbaseargs="$tbaseargs '$ac_arg'"
10045 keep_next=$separate_arg
10048 # Either a variable assignment, or a nonopt (triplet). Don't
10049 # pass it down; let the Makefile handle this.
10054 # Remove the initial space we just introduced and, as these will be
10055 # expanded by make, quote '$'.
10056 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10058 # Add in --program-transform-name, after --program-prefix and
10059 # --program-suffix have been applied to it. Autoconf has already
10060 # doubled dollar signs and backslashes in program_transform_name; we want
10061 # the backslashes un-doubled, and then the entire thing wrapped in single
10062 # quotes, because this will be expanded first by make and then by the shell.
10063 # Also, because we want to override the logic in subdir configure scripts to
10064 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10065 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10066 ${program_transform_name}
10068 gcc_transform_name=`cat conftestsed.out`
10069 rm -f conftestsed.out
10070 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10071 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10072 if test "$silent" = yes; then
10073 baseargs="$baseargs --silent"
10074 tbaseargs="$tbaseargs --silent"
10076 baseargs="$baseargs --disable-option-checking"
10077 tbaseargs="$tbaseargs --disable-option-checking"
10079 # Record and document user additions to sub configure arguments.
10084 # For the build-side libraries, we just need to pretend we're native,
10085 # and not use the same cache file. Multilibs are neither needed nor
10086 # desired. We can't even use the same cache file for all build-side
10087 # libraries, as they're compiled differently; some with C, some with
10088 # C++ or with different feature-enabling options.
10089 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10091 # For host modules, accept cache file option, or specification as blank.
10092 case "${cache_file}" in
10094 cache_file_option="" ;;
10095 /* | [A-Za-z]:[\\/]* ) # absolute path
10096 cache_file_option="--cache-file=${cache_file}" ;;
10098 cache_file_option="--cache-file=../${cache_file}" ;;
10101 # Host dirs don't like to share a cache file either, horribly enough.
10102 # This seems to be due to autoconf 2.5x stupidity.
10103 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10105 target_configargs="$target_configargs ${tbaseargs}"
10107 # Passing a --with-cross-host argument lets the target libraries know
10108 # whether they are being built with a cross-compiler or being built
10109 # native. However, it would be better to use other mechanisms to make the
10110 # sorts of decisions they want to make on this basis. Please consider
10111 # this option to be deprecated. FIXME.
10112 if test x${is_cross_compiler} = xyes ; then
10113 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10116 # Special user-friendly check for native x86_64-linux build, if
10117 # multilib is not explicitly enabled.
10118 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10119 x86_64-*linux*:yes:$build:$build:)
10120 # Make sure we have a development environment that handles 32-bit
10122 echo "int main () { return 0; }" > conftest.c
10123 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10124 if test $? = 0 ; then
10125 if test -s conftest || test -s conftest.exe ; then
10130 if test x${dev64} != xyes ; then
10131 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
10136 # Default to --enable-multilib.
10137 if test x${enable_multilib} = x ; then
10138 target_configargs="--enable-multilib ${target_configargs}"
10141 # Pass --with-newlib if appropriate. Note that target_configdirs has
10142 # changed from the earlier setting of with_newlib.
10143 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10144 target_configargs="--with-newlib ${target_configargs}"
10147 # Different target subdirs use different values of certain variables
10148 # (notably CXX). Worse, multilibs use *lots* of different values.
10149 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10150 # it doesn't automatically accept command-line overrides of them.
10151 # This means it's not safe for target subdirs to share a cache file,
10152 # which is disgusting, but there you have it. Hopefully this can be
10153 # fixed in future. It's still worthwhile to use a cache file for each
10154 # directory. I think.
10156 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10157 # We need to pass --target, as newer autoconf's requires consistency
10158 # for target_alias and gcc doesn't manage it consistently.
10159 target_configargs="--cache-file=./config.cache ${target_configargs}"
10162 case " $target_configdirs " in
10164 case " $target_configargs " in
10165 *" --with-newlib "*)
10168 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10172 # If we're not building GCC, don't discard standard headers.
10173 if test -d ${srcdir}/gcc; then
10174 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10176 if test "${build}" != "${host}"; then
10177 # On Canadian crosses, CC_FOR_TARGET will have already been set
10178 # by `configure', so we won't have an opportunity to add -Bgcc/
10179 # to it. This is right: we don't want to search that directory
10180 # for binaries, but we want the header files in there, so add
10182 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10184 # Someone might think of using the pre-installed headers on
10185 # Canadian crosses, in case the installed compiler is not fully
10186 # compatible with the compiler being built. In this case, it
10187 # would be better to flag an error than risking having
10188 # incompatible object files being constructed. We can't
10189 # guarantee that an error will be flagged, but let's hope the
10190 # compiler will do it, when presented with incompatible header
10195 case "${target}-${is_cross_compiler}" in
10196 i[3456789]86-*-linux*-no)
10197 # Here host == target, so we don't need to build gcc,
10198 # so we don't want to discard standard headers.
10199 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10202 # If we're building newlib, use its generic headers last, but search
10203 # for any libc-related directories first (so make it the last -B
10205 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10207 # If we're building libgloss, find the startup file, simulator library
10208 # and linker script.
10209 case " $target_configdirs " in
10211 # Look for startup file, simulator library and maybe linker script.
10212 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10213 # Look for libnosys.a in case the target needs it.
10214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10215 # Most targets have the linker script in the source directory.
10216 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10227 x86_64-*mingw* | *-w64-mingw*)
10228 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10229 # however, use a symlink named 'mingw' in ${prefix} .
10230 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10233 # MinGW can't be handled as Cygwin above since it does not use newlib.
10234 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'
10238 # Allow the user to override the flags for
10239 # our build compiler if desired.
10240 if test x"${build}" = x"${host}" ; then
10241 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10242 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10243 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10244 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10247 # On Canadian crosses, we'll be searching the right directories for
10248 # the previously-installed cross compiler, so don't bother to add
10249 # flags for directories within the install tree of the compiler
10250 # being built; programs in there won't even run.
10251 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10252 # Search for pre-installed headers if nothing else fits.
10253 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10256 if test "x${use_gnu_ld}" = x &&
10257 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10258 # Arrange for us to find uninstalled linker scripts.
10259 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10262 # Search for other target-specific linker scripts and such.
10263 case "${target}" in
10265 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10269 # Makefile fragments.
10270 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10272 eval fragval=\$$frag
10273 if test $fragval != /dev/null; then
10274 eval $frag=${srcdir}/$fragval
10282 # Miscellanea: directories, flags, etc.
10291 # Build module lists & subconfigure args.
10295 # Host module lists & subconfigure args.
10300 # Target module lists & subconfigure args.
10325 # Generate default definitions for YACC, M4, LEX and other programs that run
10326 # on the build machine. These are used if the Makefile can't locate these
10327 # programs in objdir.
10328 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10330 for ac_prog in 'bison -y' byacc yacc
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_YACC+:} false; then :
10337 $as_echo_n "(cached) " >&6
10339 if test -n "$YACC"; then
10340 ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 YACC=$ac_cv_prog_YACC
10360 if test -n "$YACC"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10362 $as_echo "$YACC" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10369 test -n "$YACC" && break
10371 test -n "$YACC" || YACC="$MISSING bison -y"
10373 case " $build_configdirs " in
10374 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10377 for ac_prog in bison
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_BISON+:} false; then :
10384 $as_echo_n "(cached) " >&6
10386 if test -n "$BISON"; then
10387 ac_cv_prog_BISON="$BISON" # 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_BISON="$ac_prog"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 BISON=$ac_cv_prog_BISON
10407 if test -n "$BISON"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10409 $as_echo "$BISON" >&6; }
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 test -n "$BISON" && break
10418 test -n "$BISON" || BISON="$MISSING bison"
10420 case " $build_configdirs " in
10421 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10424 for ac_prog in gm4 gnum4 m4
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_prog_M4+:} false; then :
10431 $as_echo_n "(cached) " >&6
10433 if test -n "$M4"; then
10434 ac_cv_prog_M4="$M4" # Let the user override the test.
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_M4="$ac_prog"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 if test -n "$M4"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10456 $as_echo "$M4" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10463 test -n "$M4" && break
10465 test -n "$M4" || M4="$MISSING m4"
10467 case " $build_configdirs " in
10468 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10471 for ac_prog in flex lex
10473 # Extract the first word of "$ac_prog", so it can be a program name with args.
10474 set dummy $ac_prog; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if ${ac_cv_prog_LEX+:} false; then :
10478 $as_echo_n "(cached) " >&6
10480 if test -n "$LEX"; then
10481 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_LEX="$ac_prog"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 LEX=$ac_cv_prog_LEX
10501 if test -n "$LEX"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10503 $as_echo "$LEX" >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10510 test -n "$LEX" && break
10512 test -n "$LEX" || LEX="$MISSING flex"
10514 case " $build_configdirs " in
10515 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10516 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10519 for ac_prog in flex
10521 # Extract the first word of "$ac_prog", so it can be a program name with args.
10522 set dummy $ac_prog; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_FLEX+:} false; then :
10526 $as_echo_n "(cached) " >&6
10528 if test -n "$FLEX"; then
10529 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_FLEX="$ac_prog"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 FLEX=$ac_cv_prog_FLEX
10549 if test -n "$FLEX"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10551 $as_echo "$FLEX" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10558 test -n "$FLEX" && break
10560 test -n "$FLEX" || FLEX="$MISSING flex"
10562 case " $build_configdirs " in
10563 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10566 for ac_prog in makeinfo
10568 # Extract the first word of "$ac_prog", so it can be a program name with args.
10569 set dummy $ac_prog; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if ${ac_cv_prog_MAKEINFO+:} false; then :
10573 $as_echo_n "(cached) " >&6
10575 if test -n "$MAKEINFO"; then
10576 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_prog_MAKEINFO="$ac_prog"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 MAKEINFO=$ac_cv_prog_MAKEINFO
10596 if test -n "$MAKEINFO"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10598 $as_echo "$MAKEINFO" >&6; }
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10605 test -n "$MAKEINFO" && break
10607 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10609 case " $build_configdirs " in
10610 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10613 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10614 # higher, else we use the "missing" dummy.
10615 if ${MAKEINFO} --version \
10616 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10619 MAKEINFO="$MISSING makeinfo"
10625 # FIXME: expect and dejagnu may become build tools?
10627 for ac_prog in expect
10629 # Extract the first word of "$ac_prog", so it can be a program name with args.
10630 set dummy $ac_prog; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if ${ac_cv_prog_EXPECT+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 if test -n "$EXPECT"; then
10637 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_EXPECT="$ac_prog"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 EXPECT=$ac_cv_prog_EXPECT
10657 if test -n "$EXPECT"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10659 $as_echo "$EXPECT" >&6; }
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10666 test -n "$EXPECT" && break
10668 test -n "$EXPECT" || EXPECT="expect"
10670 case " $configdirs " in
10672 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10676 for ac_prog in runtest
10678 # Extract the first word of "$ac_prog", so it can be a program name with args.
10679 set dummy $ac_prog; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if ${ac_cv_prog_RUNTEST+:} false; then :
10683 $as_echo_n "(cached) " >&6
10685 if test -n "$RUNTEST"; then
10686 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_prog_RUNTEST="$ac_prog"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 RUNTEST=$ac_cv_prog_RUNTEST
10706 if test -n "$RUNTEST"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10708 $as_echo "$RUNTEST" >&6; }
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10715 test -n "$RUNTEST" && break
10717 test -n "$RUNTEST" || RUNTEST="runtest"
10719 case " $configdirs " in
10721 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10728 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10729 ncn_target_tool_prefix=
10730 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10734 if test -n "$AR"; then
10736 elif test -n "$ac_cv_prog_AR"; then
10740 if test -n "$ac_cv_prog_AR"; then
10741 for ncn_progname in ar; do
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743 set dummy ${ncn_progname}; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_prog_AR+:} false; then :
10747 $as_echo_n "(cached) " >&6
10749 if test -n "$AR"; then
10750 ac_cv_prog_AR="$AR" # Let the user override the test.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_AR="${ncn_progname}"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 if test -n "$AR"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10772 $as_echo "$AR" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10782 for ncn_progname in ar; do
10783 if test -n "$ncn_tool_prefix"; then
10784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_AR+:} false; then :
10789 $as_echo_n "(cached) " >&6
10791 if test -n "$AR"; then
10792 ac_cv_prog_AR="$AR" # Let the user override the test.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 if test -n "$AR"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10814 $as_echo "$AR" >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10822 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_prog_AR+:} false; then :
10828 $as_echo_n "(cached) " >&6
10830 if test -n "$AR"; then
10831 ac_cv_prog_AR="$AR" # Let the user override the test.
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_AR="${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 if test -n "$AR"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10853 $as_echo "$AR" >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10861 test -n "$ac_cv_prog_AR" && break
10864 if test -z "$ac_cv_prog_AR" ; then
10866 if test $build = $host ; then
10869 AR="${ncn_tool_prefix}$2"
10875 if test -n "$AS"; then
10877 elif test -n "$ac_cv_prog_AS"; then
10881 if test -n "$ac_cv_prog_AS"; then
10882 for ncn_progname in as; do
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884 set dummy ${ncn_progname}; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if ${ac_cv_prog_AS+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 if test -n "$AS"; then
10891 ac_cv_prog_AS="$AS" # Let the user override the test.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_AS="${ncn_progname}"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 if test -n "$AS"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10913 $as_echo "$AS" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10923 for ncn_progname in as; do
10924 if test -n "$ncn_tool_prefix"; then
10925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10926 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928 $as_echo_n "checking for $ac_word... " >&6; }
10929 if ${ac_cv_prog_AS+:} false; then :
10930 $as_echo_n "(cached) " >&6
10932 if test -n "$AS"; then
10933 ac_cv_prog_AS="$AS" # Let the user override the test.
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 if test -n "$AS"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10955 $as_echo "$AS" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10963 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_AS+:} false; then :
10969 $as_echo_n "(cached) " >&6
10971 if test -n "$AS"; then
10972 ac_cv_prog_AS="$AS" # Let the user override the test.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_AS="${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 if test -n "$AS"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10994 $as_echo "$AS" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11002 test -n "$ac_cv_prog_AS" && break
11005 if test -z "$ac_cv_prog_AS" ; then
11007 if test $build = $host ; then
11010 AS="${ncn_tool_prefix}$2"
11016 if test -n "$DLLTOOL"; then
11017 ac_cv_prog_DLLTOOL=$DLLTOOL
11018 elif test -n "$ac_cv_prog_DLLTOOL"; then
11019 DLLTOOL=$ac_cv_prog_DLLTOOL
11022 if test -n "$ac_cv_prog_DLLTOOL"; then
11023 for ncn_progname in dlltool; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025 set dummy ${ncn_progname}; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_prog_DLLTOOL+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 if test -n "$DLLTOOL"; then
11032 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_DLLTOOL="${ncn_progname}"
11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 DLLTOOL=$ac_cv_prog_DLLTOOL
11052 if test -n "$DLLTOOL"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11054 $as_echo "$DLLTOOL" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11064 for ncn_progname in dlltool; do
11065 if test -n "$ncn_tool_prefix"; then
11066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_DLLTOOL+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 if test -n "$DLLTOOL"; then
11074 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 DLLTOOL=$ac_cv_prog_DLLTOOL
11094 if test -n "$DLLTOOL"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11096 $as_echo "$DLLTOOL" >&6; }
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11104 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_prog_DLLTOOL+:} false; then :
11110 $as_echo_n "(cached) " >&6
11112 if test -n "$DLLTOOL"; then
11113 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_DLLTOOL="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 DLLTOOL=$ac_cv_prog_DLLTOOL
11133 if test -n "$DLLTOOL"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11135 $as_echo "$DLLTOOL" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11143 test -n "$ac_cv_prog_DLLTOOL" && break
11146 if test -z "$ac_cv_prog_DLLTOOL" ; then
11148 if test $build = $host ; then
11151 DLLTOOL="${ncn_tool_prefix}$2"
11157 if test -n "$DSYMUTIL"; then
11158 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11159 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11160 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11163 if test -n "$ac_cv_prog_DSYMUTIL"; then
11164 for ncn_progname in dsymutil; do
11165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166 set dummy ${ncn_progname}; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 if test -n "$DSYMUTIL"; then
11173 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11193 if test -n "$DSYMUTIL"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11195 $as_echo "$DSYMUTIL" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11205 for ncn_progname in dsymutil; do
11206 if test -n "$ncn_tool_prefix"; then
11207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11208 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11212 $as_echo_n "(cached) " >&6
11214 if test -n "$DSYMUTIL"; then
11215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11235 if test -n "$DSYMUTIL"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11237 $as_echo "$DSYMUTIL" >&6; }
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11245 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11251 $as_echo_n "(cached) " >&6
11253 if test -n "$DSYMUTIL"; then
11254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11274 if test -n "$DSYMUTIL"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11276 $as_echo "$DSYMUTIL" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11284 test -n "$ac_cv_prog_DSYMUTIL" && break
11287 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11289 if test $build = $host ; then
11292 DSYMUTIL="${ncn_tool_prefix}$2"
11298 if test -n "$LD"; then
11300 elif test -n "$ac_cv_prog_LD"; then
11304 if test -n "$ac_cv_prog_LD"; then
11305 for ncn_progname in ld; do
11306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11307 set dummy ${ncn_progname}; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if ${ac_cv_prog_LD+:} false; then :
11311 $as_echo_n "(cached) " >&6
11313 if test -n "$LD"; then
11314 ac_cv_prog_LD="$LD" # Let the user override the test.
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11323 ac_cv_prog_LD="${ncn_progname}"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 if test -n "$LD"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11336 $as_echo "$LD" >&6; }
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11346 for ncn_progname in ld; do
11347 if test -n "$ncn_tool_prefix"; then
11348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_LD+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 if test -n "$LD"; then
11356 ac_cv_prog_LD="$LD" # Let the user override the test.
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 if test -n "$LD"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11378 $as_echo "$LD" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_LD+:} false; then :
11392 $as_echo_n "(cached) " >&6
11394 if test -n "$LD"; then
11395 ac_cv_prog_LD="$LD" # Let the user override the test.
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_LD="${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 if test -n "$LD"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11417 $as_echo "$LD" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11425 test -n "$ac_cv_prog_LD" && break
11428 if test -z "$ac_cv_prog_LD" ; then
11430 if test $build = $host ; then
11433 LD="${ncn_tool_prefix}$2"
11439 if test -n "$LIPO"; then
11440 ac_cv_prog_LIPO=$LIPO
11441 elif test -n "$ac_cv_prog_LIPO"; then
11442 LIPO=$ac_cv_prog_LIPO
11445 if test -n "$ac_cv_prog_LIPO"; then
11446 for ncn_progname in lipo; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448 set dummy ${ncn_progname}; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_LIPO+:} false; then :
11452 $as_echo_n "(cached) " >&6
11454 if test -n "$LIPO"; then
11455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_prog_LIPO="${ncn_progname}"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 LIPO=$ac_cv_prog_LIPO
11475 if test -n "$LIPO"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11477 $as_echo "$LIPO" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11487 for ncn_progname in lipo; do
11488 if test -n "$ncn_tool_prefix"; then
11489 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11490 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_prog_LIPO+:} false; then :
11494 $as_echo_n "(cached) " >&6
11496 if test -n "$LIPO"; then
11497 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 LIPO=$ac_cv_prog_LIPO
11517 if test -n "$LIPO"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11519 $as_echo "$LIPO" >&6; }
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11527 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11529 set dummy ${ncn_progname}; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if ${ac_cv_prog_LIPO+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 if test -n "$LIPO"; then
11536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_LIPO="${ncn_progname}"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 LIPO=$ac_cv_prog_LIPO
11556 if test -n "$LIPO"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11558 $as_echo "$LIPO" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11566 test -n "$ac_cv_prog_LIPO" && break
11569 if test -z "$ac_cv_prog_LIPO" ; then
11571 if test $build = $host ; then
11574 LIPO="${ncn_tool_prefix}$2"
11580 if test -n "$NM"; then
11582 elif test -n "$ac_cv_prog_NM"; then
11586 if test -n "$ac_cv_prog_NM"; then
11587 for ncn_progname in nm; do
11588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11589 set dummy ${ncn_progname}; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if ${ac_cv_prog_NM+:} false; then :
11593 $as_echo_n "(cached) " >&6
11595 if test -n "$NM"; then
11596 ac_cv_prog_NM="$NM" # Let the user override the test.
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11605 ac_cv_prog_NM="${ncn_progname}"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 if test -n "$NM"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11618 $as_echo "$NM" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11628 for ncn_progname in nm; do
11629 if test -n "$ncn_tool_prefix"; then
11630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11631 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_prog_NM+:} false; then :
11635 $as_echo_n "(cached) " >&6
11637 if test -n "$NM"; then
11638 ac_cv_prog_NM="$NM" # Let the user override the test.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 if test -n "$NM"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11660 $as_echo "$NM" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11668 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11670 set dummy ${ncn_progname}; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if ${ac_cv_prog_NM+:} false; then :
11674 $as_echo_n "(cached) " >&6
11676 if test -n "$NM"; then
11677 ac_cv_prog_NM="$NM" # Let the user override the test.
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11683 test -z "$as_dir" && as_dir=.
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11686 ac_cv_prog_NM="${ncn_progname}"
11687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 if test -n "$NM"; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11699 $as_echo "$NM" >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11707 test -n "$ac_cv_prog_NM" && break
11710 if test -z "$ac_cv_prog_NM" ; then
11712 if test $build = $host ; then
11715 NM="${ncn_tool_prefix}$2"
11721 if test -n "$RANLIB"; then
11722 ac_cv_prog_RANLIB=$RANLIB
11723 elif test -n "$ac_cv_prog_RANLIB"; then
11724 RANLIB=$ac_cv_prog_RANLIB
11727 if test -n "$ac_cv_prog_RANLIB"; then
11728 for ncn_progname in ranlib; do
11729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11730 set dummy ${ncn_progname}; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_prog_RANLIB+:} false; then :
11734 $as_echo_n "(cached) " >&6
11736 if test -n "$RANLIB"; then
11737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_prog_RANLIB="${ncn_progname}"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 RANLIB=$ac_cv_prog_RANLIB
11757 if test -n "$RANLIB"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11759 $as_echo "$RANLIB" >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11769 for ncn_progname in ranlib; do
11770 if test -n "$ncn_tool_prefix"; then
11771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11772 set dummy ${ncn_tool_prefix}${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_RANLIB+:} false; then :
11776 $as_echo_n "(cached) " >&6
11778 if test -n "$RANLIB"; then
11779 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798 RANLIB=$ac_cv_prog_RANLIB
11799 if test -n "$RANLIB"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11801 $as_echo "$RANLIB" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11809 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11811 set dummy ${ncn_progname}; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_RANLIB+:} false; then :
11815 $as_echo_n "(cached) " >&6
11817 if test -n "$RANLIB"; then
11818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_RANLIB="${ncn_progname}"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 RANLIB=$ac_cv_prog_RANLIB
11838 if test -n "$RANLIB"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11840 $as_echo "$RANLIB" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11848 test -n "$ac_cv_prog_RANLIB" && break
11851 if test -z "$ac_cv_prog_RANLIB" ; then
11857 if test -n "$STRIP"; then
11858 ac_cv_prog_STRIP=$STRIP
11859 elif test -n "$ac_cv_prog_STRIP"; then
11860 STRIP=$ac_cv_prog_STRIP
11863 if test -n "$ac_cv_prog_STRIP"; then
11864 for ncn_progname in strip; do
11865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11866 set dummy ${ncn_progname}; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_prog_STRIP+:} false; then :
11870 $as_echo_n "(cached) " >&6
11872 if test -n "$STRIP"; then
11873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_STRIP="${ncn_progname}"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 STRIP=$ac_cv_prog_STRIP
11893 if test -n "$STRIP"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11895 $as_echo "$STRIP" >&6; }
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11905 for ncn_progname in strip; do
11906 if test -n "$ncn_tool_prefix"; then
11907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_tool_prefix}${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_STRIP+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 if test -n "$STRIP"; then
11915 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 STRIP=$ac_cv_prog_STRIP
11935 if test -n "$STRIP"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11937 $as_echo "$STRIP" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11945 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11947 set dummy ${ncn_progname}; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_STRIP+:} false; then :
11951 $as_echo_n "(cached) " >&6
11953 if test -n "$STRIP"; then
11954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_STRIP="${ncn_progname}"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 STRIP=$ac_cv_prog_STRIP
11974 if test -n "$STRIP"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11976 $as_echo "$STRIP" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11984 test -n "$ac_cv_prog_STRIP" && break
11987 if test -z "$ac_cv_prog_STRIP" ; then
11993 if test -n "$WINDRES"; then
11994 ac_cv_prog_WINDRES=$WINDRES
11995 elif test -n "$ac_cv_prog_WINDRES"; then
11996 WINDRES=$ac_cv_prog_WINDRES
11999 if test -n "$ac_cv_prog_WINDRES"; then
12000 for ncn_progname in windres; do
12001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12002 set dummy ${ncn_progname}; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_prog_WINDRES+:} false; then :
12006 $as_echo_n "(cached) " >&6
12008 if test -n "$WINDRES"; then
12009 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_prog_WINDRES="${ncn_progname}"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 WINDRES=$ac_cv_prog_WINDRES
12029 if test -n "$WINDRES"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12031 $as_echo "$WINDRES" >&6; }
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12041 for ncn_progname in windres; do
12042 if test -n "$ncn_tool_prefix"; then
12043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_prog_WINDRES+:} false; then :
12048 $as_echo_n "(cached) " >&6
12050 if test -n "$WINDRES"; then
12051 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12060 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 WINDRES=$ac_cv_prog_WINDRES
12071 if test -n "$WINDRES"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12073 $as_echo "$WINDRES" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12081 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_WINDRES+:} false; then :
12087 $as_echo_n "(cached) " >&6
12089 if test -n "$WINDRES"; then
12090 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_WINDRES="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109 WINDRES=$ac_cv_prog_WINDRES
12110 if test -n "$WINDRES"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12112 $as_echo "$WINDRES" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12120 test -n "$ac_cv_prog_WINDRES" && break
12123 if test -z "$ac_cv_prog_WINDRES" ; then
12125 if test $build = $host ; then
12128 WINDRES="${ncn_tool_prefix}$2"
12134 if test -n "$WINDMC"; then
12135 ac_cv_prog_WINDMC=$WINDMC
12136 elif test -n "$ac_cv_prog_WINDMC"; then
12137 WINDMC=$ac_cv_prog_WINDMC
12140 if test -n "$ac_cv_prog_WINDMC"; then
12141 for ncn_progname in windmc; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143 set dummy ${ncn_progname}; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_prog_WINDMC+:} false; then :
12147 $as_echo_n "(cached) " >&6
12149 if test -n "$WINDMC"; then
12150 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_prog_WINDMC="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 WINDMC=$ac_cv_prog_WINDMC
12170 if test -n "$WINDMC"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12172 $as_echo "$WINDMC" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12182 for ncn_progname in windmc; do
12183 if test -n "$ncn_tool_prefix"; then
12184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_prog_WINDMC+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 if test -n "$WINDMC"; then
12192 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 WINDMC=$ac_cv_prog_WINDMC
12212 if test -n "$WINDMC"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12214 $as_echo "$WINDMC" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12222 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_prog_WINDMC+:} false; then :
12228 $as_echo_n "(cached) " >&6
12230 if test -n "$WINDMC"; then
12231 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_prog_WINDMC="${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 WINDMC=$ac_cv_prog_WINDMC
12251 if test -n "$WINDMC"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12253 $as_echo "$WINDMC" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12261 test -n "$ac_cv_prog_WINDMC" && break
12264 if test -z "$ac_cv_prog_WINDMC" ; then
12266 if test $build = $host ; then
12269 WINDMC="${ncn_tool_prefix}$2"
12275 if test -n "$OBJCOPY"; then
12276 ac_cv_prog_OBJCOPY=$OBJCOPY
12277 elif test -n "$ac_cv_prog_OBJCOPY"; then
12278 OBJCOPY=$ac_cv_prog_OBJCOPY
12281 if test -n "$ac_cv_prog_OBJCOPY"; then
12282 for ncn_progname in objcopy; do
12283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12284 set dummy ${ncn_progname}; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_prog_OBJCOPY+:} false; then :
12288 $as_echo_n "(cached) " >&6
12290 if test -n "$OBJCOPY"; then
12291 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300 ac_cv_prog_OBJCOPY="${ncn_progname}"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 OBJCOPY=$ac_cv_prog_OBJCOPY
12311 if test -n "$OBJCOPY"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12313 $as_echo "$OBJCOPY" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12323 for ncn_progname in objcopy; do
12324 if test -n "$ncn_tool_prefix"; then
12325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_OBJCOPY+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 if test -n "$OBJCOPY"; then
12333 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 OBJCOPY=$ac_cv_prog_OBJCOPY
12353 if test -n "$OBJCOPY"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12355 $as_echo "$OBJCOPY" >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12363 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_prog_OBJCOPY+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 if test -n "$OBJCOPY"; then
12372 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_OBJCOPY="${ncn_progname}"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 OBJCOPY=$ac_cv_prog_OBJCOPY
12392 if test -n "$OBJCOPY"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12394 $as_echo "$OBJCOPY" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12402 test -n "$ac_cv_prog_OBJCOPY" && break
12405 if test -z "$ac_cv_prog_OBJCOPY" ; then
12407 if test $build = $host ; then
12410 OBJCOPY="${ncn_tool_prefix}$2"
12416 if test -n "$OBJDUMP"; then
12417 ac_cv_prog_OBJDUMP=$OBJDUMP
12418 elif test -n "$ac_cv_prog_OBJDUMP"; then
12419 OBJDUMP=$ac_cv_prog_OBJDUMP
12422 if test -n "$ac_cv_prog_OBJDUMP"; then
12423 for ncn_progname in objdump; do
12424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12425 set dummy ${ncn_progname}; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_prog_OBJDUMP+:} false; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$OBJDUMP"; then
12432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_prog_OBJDUMP="${ncn_progname}"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 OBJDUMP=$ac_cv_prog_OBJDUMP
12452 if test -n "$OBJDUMP"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12454 $as_echo "$OBJDUMP" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12464 for ncn_progname in objdump; do
12465 if test -n "$ncn_tool_prefix"; then
12466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_OBJDUMP+:} false; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$OBJDUMP"; then
12474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 OBJDUMP=$ac_cv_prog_OBJDUMP
12494 if test -n "$OBJDUMP"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12496 $as_echo "$OBJDUMP" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12504 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if ${ac_cv_prog_OBJDUMP+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 if test -n "$OBJDUMP"; then
12513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_OBJDUMP="${ncn_progname}"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 OBJDUMP=$ac_cv_prog_OBJDUMP
12533 if test -n "$OBJDUMP"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12535 $as_echo "$OBJDUMP" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12543 test -n "$ac_cv_prog_OBJDUMP" && break
12546 if test -z "$ac_cv_prog_OBJDUMP" ; then
12548 if test $build = $host ; then
12551 OBJDUMP="${ncn_tool_prefix}$2"
12557 if test -n "$OTOOL"; then
12558 ac_cv_prog_OTOOL=$OTOOL
12559 elif test -n "$ac_cv_prog_OTOOL"; then
12560 OTOOL=$ac_cv_prog_OTOOL
12563 if test -n "$ac_cv_prog_OTOOL"; then
12564 for ncn_progname in otool; do
12565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12566 set dummy ${ncn_progname}; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_prog_OTOOL+:} false; then :
12570 $as_echo_n "(cached) " >&6
12572 if test -n "$OTOOL"; then
12573 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582 ac_cv_prog_OTOOL="${ncn_progname}"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 OTOOL=$ac_cv_prog_OTOOL
12593 if test -n "$OTOOL"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12595 $as_echo "$OTOOL" >&6; }
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12605 for ncn_progname in otool; do
12606 if test -n "$ncn_tool_prefix"; then
12607 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12608 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if ${ac_cv_prog_OTOOL+:} false; then :
12612 $as_echo_n "(cached) " >&6
12614 if test -n "$OTOOL"; then
12615 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12618 for as_dir in $PATH
12621 test -z "$as_dir" && as_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12624 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 OTOOL=$ac_cv_prog_OTOOL
12635 if test -n "$OTOOL"; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12637 $as_echo "$OTOOL" >&6; }
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12645 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12647 set dummy ${ncn_progname}; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649 $as_echo_n "checking for $ac_word... " >&6; }
12650 if ${ac_cv_prog_OTOOL+:} false; then :
12651 $as_echo_n "(cached) " >&6
12653 if test -n "$OTOOL"; then
12654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 ac_cv_prog_OTOOL="${ncn_progname}"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 OTOOL=$ac_cv_prog_OTOOL
12674 if test -n "$OTOOL"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12676 $as_echo "$OTOOL" >&6; }
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12684 test -n "$ac_cv_prog_OTOOL" && break
12687 if test -z "$ac_cv_prog_OTOOL" ; then
12689 if test $build = $host ; then
12692 OTOOL="${ncn_tool_prefix}$2"
12698 if test -n "$READELF"; then
12699 ac_cv_prog_READELF=$READELF
12700 elif test -n "$ac_cv_prog_READELF"; then
12701 READELF=$ac_cv_prog_READELF
12704 if test -n "$ac_cv_prog_READELF"; then
12705 for ncn_progname in readelf; do
12706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707 set dummy ${ncn_progname}; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if ${ac_cv_prog_READELF+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 if test -n "$READELF"; then
12714 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12723 ac_cv_prog_READELF="${ncn_progname}"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 READELF=$ac_cv_prog_READELF
12734 if test -n "$READELF"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12736 $as_echo "$READELF" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12746 for ncn_progname in readelf; do
12747 if test -n "$ncn_tool_prefix"; then
12748 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12749 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_prog_READELF+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 if test -n "$READELF"; then
12756 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 READELF=$ac_cv_prog_READELF
12776 if test -n "$READELF"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12778 $as_echo "$READELF" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12786 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12788 set dummy ${ncn_progname}; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if ${ac_cv_prog_READELF+:} false; then :
12792 $as_echo_n "(cached) " >&6
12794 if test -n "$READELF"; then
12795 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12804 ac_cv_prog_READELF="${ncn_progname}"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 READELF=$ac_cv_prog_READELF
12815 if test -n "$READELF"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12817 $as_echo "$READELF" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12825 test -n "$ac_cv_prog_READELF" && break
12828 if test -z "$ac_cv_prog_READELF" ; then
12830 if test $build = $host ; then
12833 READELF="${ncn_tool_prefix}$2"
12846 # Check whether --with-build-time-tools was given.
12847 if test "${with_build_time_tools+set}" = set; then :
12848 withval=$with_build_time_tools; case x"$withval" in
12851 with_build_time_tools=
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12853 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12857 with_build_time_tools=
12863 if test -n "$CC_FOR_TARGET"; then
12864 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12865 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12866 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12869 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12870 for ncn_progname in cc gcc; do
12871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12872 set dummy ${ncn_progname}; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12876 $as_echo_n "(cached) " >&6
12878 if test -n "$CC_FOR_TARGET"; then
12879 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12888 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12899 if test -n "$CC_FOR_TARGET"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12901 $as_echo "$CC_FOR_TARGET" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12911 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12912 for ncn_progname in cc gcc; do
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12915 if test -x $with_build_time_tools/${ncn_progname}; then
12916 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12927 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12928 for ncn_progname in cc gcc; do
12929 if test -n "$ncn_target_tool_prefix"; then
12930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12935 $as_echo_n "(cached) " >&6
12937 if test -n "$CC_FOR_TARGET"; then
12938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12958 if test -n "$CC_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12960 $as_echo "$CC_FOR_TARGET" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12968 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12974 $as_echo_n "(cached) " >&6
12976 if test -n "$CC_FOR_TARGET"; then
12977 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12997 if test -n "$CC_FOR_TARGET"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12999 $as_echo "$CC_FOR_TARGET" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13007 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13011 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13013 if test $build = $target ; then
13016 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13019 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13024 if test -n "$CXX_FOR_TARGET"; then
13025 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13026 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13027 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13030 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13031 for ncn_progname in c++ g++ cxx gxx; do
13032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13033 set dummy ${ncn_progname}; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13037 $as_echo_n "(cached) " >&6
13039 if test -n "$CXX_FOR_TARGET"; then
13040 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13060 if test -n "$CXX_FOR_TARGET"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13062 $as_echo "$CXX_FOR_TARGET" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13072 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13073 for ncn_progname in c++ g++ cxx gxx; do
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13075 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13076 if test -x $with_build_time_tools/${ncn_progname}; then
13077 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13088 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13089 for ncn_progname in c++ g++ cxx gxx; do
13090 if test -n "$ncn_target_tool_prefix"; then
13091 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13092 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13096 $as_echo_n "(cached) " >&6
13098 if test -n "$CXX_FOR_TARGET"; then
13099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13119 if test -n "$CXX_FOR_TARGET"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13121 $as_echo "$CXX_FOR_TARGET" >&6; }
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13129 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 if test -n "$CXX_FOR_TARGET"; then
13138 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13158 if test -n "$CXX_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13160 $as_echo "$CXX_FOR_TARGET" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13172 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13173 set dummy c++ g++ cxx gxx
13174 if test $build = $target ; then
13175 CXX_FOR_TARGET="$2"
13177 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13180 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13185 if test -n "$GCC_FOR_TARGET"; then
13186 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13187 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13188 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13191 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13192 for ncn_progname in gcc; do
13193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached) " >&6
13200 if test -n "$GCC_FOR_TARGET"; then
13201 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13221 if test -n "$GCC_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13223 $as_echo "$GCC_FOR_TARGET" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13233 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13234 for ncn_progname in gcc; do
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13236 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13237 if test -x $with_build_time_tools/${ncn_progname}; then
13238 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13249 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13250 for ncn_progname in gcc; do
13251 if test -n "$ncn_target_tool_prefix"; then
13252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13253 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13257 $as_echo_n "(cached) " >&6
13259 if test -n "$GCC_FOR_TARGET"; then
13260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13269 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13280 if test -n "$GCC_FOR_TARGET"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13282 $as_echo "$GCC_FOR_TARGET" >&6; }
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13290 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13296 $as_echo_n "(cached) " >&6
13298 if test -n "$GCC_FOR_TARGET"; then
13299 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13319 if test -n "$GCC_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13321 $as_echo "$GCC_FOR_TARGET" >&6; }
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13333 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13334 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13336 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13341 if test -n "$GFORTRAN_FOR_TARGET"; then
13342 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13343 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13344 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13347 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13348 for ncn_progname in gfortran; do
13349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13350 set dummy ${ncn_progname}; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13354 $as_echo_n "(cached) " >&6
13356 if test -n "$GFORTRAN_FOR_TARGET"; then
13357 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13377 if test -n "$GFORTRAN_FOR_TARGET"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13379 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13389 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13390 for ncn_progname in gfortran; do
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13392 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13393 if test -x $with_build_time_tools/${ncn_progname}; then
13394 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13396 $as_echo "yes" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13405 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13406 for ncn_progname in gfortran; do
13407 if test -n "$ncn_target_tool_prefix"; then
13408 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13409 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411 $as_echo_n "checking for $ac_word... " >&6; }
13412 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13413 $as_echo_n "(cached) " >&6
13415 if test -n "$GFORTRAN_FOR_TARGET"; then
13416 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13436 if test -n "$GFORTRAN_FOR_TARGET"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13438 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13446 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13452 $as_echo_n "(cached) " >&6
13454 if test -n "$GFORTRAN_FOR_TARGET"; then
13455 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13475 if test -n "$GFORTRAN_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13477 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13485 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13489 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13491 if test $build = $target ; then
13492 GFORTRAN_FOR_TARGET="$2"
13494 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13497 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13502 if test -n "$GOC_FOR_TARGET"; then
13503 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13504 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13505 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13508 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13509 for ncn_progname in gccgo; do
13510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13511 set dummy ${ncn_progname}; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13515 $as_echo_n "(cached) " >&6
13517 if test -n "$GOC_FOR_TARGET"; then
13518 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13527 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13538 if test -n "$GOC_FOR_TARGET"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13540 $as_echo "$GOC_FOR_TARGET" >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13550 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13551 for ncn_progname in gccgo; do
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13553 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13554 if test -x $with_build_time_tools/${ncn_progname}; then
13555 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 $as_echo "yes" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13566 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13567 for ncn_progname in gccgo; do
13568 if test -n "$ncn_target_tool_prefix"; then
13569 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13570 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 if test -n "$GOC_FOR_TARGET"; then
13577 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13597 if test -n "$GOC_FOR_TARGET"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13599 $as_echo "$GOC_FOR_TARGET" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13607 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13609 set dummy ${ncn_progname}; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13613 $as_echo_n "(cached) " >&6
13615 if test -n "$GOC_FOR_TARGET"; then
13616 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13636 if test -n "$GOC_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13638 $as_echo "$GOC_FOR_TARGET" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13646 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13650 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13652 if test $build = $target ; then
13653 GOC_FOR_TARGET="$2"
13655 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13658 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13663 if test -n "$GDC_FOR_TARGET"; then
13664 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13665 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13666 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13669 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13670 for ncn_progname in gdc; do
13671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13672 set dummy ${ncn_progname}; ac_word=$2
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 $as_echo_n "checking for $ac_word... " >&6; }
13675 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13676 $as_echo_n "(cached) " >&6
13678 if test -n "$GDC_FOR_TARGET"; then
13679 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13699 if test -n "$GDC_FOR_TARGET"; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13701 $as_echo "$GDC_FOR_TARGET" >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13711 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13712 for ncn_progname in gdc; do
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13714 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13715 if test -x $with_build_time_tools/${ncn_progname}; then
13716 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718 $as_echo "yes" >&6; }
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13727 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13728 for ncn_progname in gdc; do
13729 if test -n "$ncn_target_tool_prefix"; then
13730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13731 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13735 $as_echo_n "(cached) " >&6
13737 if test -n "$GDC_FOR_TARGET"; then
13738 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13758 if test -n "$GDC_FOR_TARGET"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13760 $as_echo "$GDC_FOR_TARGET" >&6; }
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13768 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13774 $as_echo_n "(cached) " >&6
13776 if test -n "$GDC_FOR_TARGET"; then
13777 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13797 if test -n "$GDC_FOR_TARGET"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13799 $as_echo "$GDC_FOR_TARGET" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13807 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13811 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13813 if test $build = $target ; then
13814 GDC_FOR_TARGET="$2"
13816 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13819 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13824 cat > conftest.c << \EOF
13829 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13830 have_gcc_for_target=yes
13832 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13833 have_gcc_for_target=no
13840 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13841 if test -n "$with_build_time_tools"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13843 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13844 if test -x $with_build_time_tools/ar; then
13845 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13846 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13848 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13853 elif test $build != $host && test $have_gcc_for_target = yes; then
13854 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13855 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13856 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13859 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13860 # Extract the first word of "ar", so it can be a program name with args.
13861 set dummy ar; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13865 $as_echo_n "(cached) " >&6
13867 case $AR_FOR_TARGET in
13869 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873 for as_dir in $gcc_cv_tool_dirs
13876 test -z "$as_dir" && as_dir=.
13877 for ac_exec_ext in '' $ac_executable_extensions; do
13878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13879 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13891 if test -n "$AR_FOR_TARGET"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13893 $as_echo "$AR_FOR_TARGET" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13901 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13904 if test -n "$AR_FOR_TARGET"; then
13905 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13906 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13907 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13910 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13911 for ncn_progname in ar; do
13912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13913 set dummy ${ncn_progname}; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13915 $as_echo_n "checking for $ac_word... " >&6; }
13916 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13917 $as_echo_n "(cached) " >&6
13919 if test -n "$AR_FOR_TARGET"; then
13920 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13939 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13940 if test -n "$AR_FOR_TARGET"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13942 $as_echo "$AR_FOR_TARGET" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13952 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13953 for ncn_progname in ar; do
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13956 if test -x $with_build_time_tools/${ncn_progname}; then
13957 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13959 $as_echo "yes" >&6; }
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13968 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13969 for ncn_progname in ar; do
13970 if test -n "$ncn_target_tool_prefix"; then
13971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13974 $as_echo_n "checking for $ac_word... " >&6; }
13975 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13976 $as_echo_n "(cached) " >&6
13978 if test -n "$AR_FOR_TARGET"; then
13979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13999 if test -n "$AR_FOR_TARGET"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14001 $as_echo "$AR_FOR_TARGET" >&6; }
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14009 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14011 set dummy ${ncn_progname}; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14015 $as_echo_n "(cached) " >&6
14017 if test -n "$AR_FOR_TARGET"; then
14018 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14038 if test -n "$AR_FOR_TARGET"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14040 $as_echo "$AR_FOR_TARGET" >&6; }
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14048 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14052 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14054 if test $build = $target ; then
14057 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14060 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14064 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14070 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14071 if test -n "$with_build_time_tools"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14073 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14074 if test -x $with_build_time_tools/as; then
14075 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14076 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14078 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14083 elif test $build != $host && test $have_gcc_for_target = yes; then
14084 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14085 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14086 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14089 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14090 # Extract the first word of "as", so it can be a program name with args.
14091 set dummy as; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14095 $as_echo_n "(cached) " >&6
14097 case $AS_FOR_TARGET in
14099 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $gcc_cv_tool_dirs
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14121 if test -n "$AS_FOR_TARGET"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14123 $as_echo "$AS_FOR_TARGET" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14131 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14134 if test -n "$AS_FOR_TARGET"; then
14135 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14136 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14137 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14140 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14141 for ncn_progname in as; do
14142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14143 set dummy ${ncn_progname}; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14147 $as_echo_n "(cached) " >&6
14149 if test -n "$AS_FOR_TARGET"; then
14150 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14159 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14170 if test -n "$AS_FOR_TARGET"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14172 $as_echo "$AS_FOR_TARGET" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14182 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14183 for ncn_progname in as; do
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14186 if test -x $with_build_time_tools/${ncn_progname}; then
14187 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14198 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14199 for ncn_progname in as; do
14200 if test -n "$ncn_target_tool_prefix"; then
14201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14204 $as_echo_n "checking for $ac_word... " >&6; }
14205 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14206 $as_echo_n "(cached) " >&6
14208 if test -n "$AS_FOR_TARGET"; then
14209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14228 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14229 if test -n "$AS_FOR_TARGET"; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14231 $as_echo "$AS_FOR_TARGET" >&6; }
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234 $as_echo "no" >&6; }
14239 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14245 $as_echo_n "(cached) " >&6
14247 if test -n "$AS_FOR_TARGET"; then
14248 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14268 if test -n "$AS_FOR_TARGET"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14270 $as_echo "$AS_FOR_TARGET" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14278 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14282 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14284 if test $build = $target ; then
14287 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14290 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14294 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14300 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14301 if test -n "$with_build_time_tools"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14303 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14304 if test -x $with_build_time_tools/dlltool; then
14305 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14306 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14308 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14313 elif test $build != $host && test $have_gcc_for_target = yes; then
14314 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14315 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14316 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14319 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14320 # Extract the first word of "dlltool", so it can be a program name with args.
14321 set dummy dlltool; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 case $DLLTOOL_FOR_TARGET in
14329 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $gcc_cv_tool_dirs
14336 test -z "$as_dir" && as_dir=.
14337 for ac_exec_ext in '' $ac_executable_extensions; do
14338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14339 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14351 if test -n "$DLLTOOL_FOR_TARGET"; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14353 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356 $as_echo "no" >&6; }
14361 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14364 if test -n "$DLLTOOL_FOR_TARGET"; then
14365 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14366 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14367 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14370 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14371 for ncn_progname in dlltool; do
14372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14373 set dummy ${ncn_progname}; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14377 $as_echo_n "(cached) " >&6
14379 if test -n "$DLLTOOL_FOR_TARGET"; then
14380 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14400 if test -n "$DLLTOOL_FOR_TARGET"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14402 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14412 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14413 for ncn_progname in dlltool; do
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14416 if test -x $with_build_time_tools/${ncn_progname}; then
14417 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14419 $as_echo "yes" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14428 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14429 for ncn_progname in dlltool; do
14430 if test -n "$ncn_target_tool_prefix"; then
14431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14436 $as_echo_n "(cached) " >&6
14438 if test -n "$DLLTOOL_FOR_TARGET"; then
14439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14459 if test -n "$DLLTOOL_FOR_TARGET"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14461 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14469 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached) " >&6
14477 if test -n "$DLLTOOL_FOR_TARGET"; then
14478 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14497 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14498 if test -n "$DLLTOOL_FOR_TARGET"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14508 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14512 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14514 if test $build = $target ; then
14515 DLLTOOL_FOR_TARGET="$2"
14517 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14520 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14524 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14530 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14531 if test -n "$with_build_time_tools"; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14533 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14534 if test -x $with_build_time_tools/dsymutil; then
14535 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14536 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14538 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14543 elif test $build != $host && test $have_gcc_for_target = yes; then
14544 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14545 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14546 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14549 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14550 # Extract the first word of "dsymutil", so it can be a program name with args.
14551 set dummy dsymutil; ac_word=$2
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14553 $as_echo_n "checking for $ac_word... " >&6; }
14554 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14555 $as_echo_n "(cached) " >&6
14557 case $DSYMUTIL_FOR_TARGET in
14559 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $gcc_cv_tool_dirs
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14581 if test -n "$DSYMUTIL_FOR_TARGET"; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14583 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14591 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14594 if test -n "$DSYMUTIL_FOR_TARGET"; then
14595 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14596 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14597 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14600 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14601 for ncn_progname in dsymutil; do
14602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14603 set dummy ${ncn_progname}; ac_word=$2
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14605 $as_echo_n "checking for $ac_word... " >&6; }
14606 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14607 $as_echo_n "(cached) " >&6
14609 if test -n "$DSYMUTIL_FOR_TARGET"; then
14610 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14613 for as_dir in $PATH
14616 test -z "$as_dir" && as_dir=.
14617 for ac_exec_ext in '' $ac_executable_extensions; do
14618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14619 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14629 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14630 if test -n "$DSYMUTIL_FOR_TARGET"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14632 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14642 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14643 for ncn_progname in dsymutil; do
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14646 if test -x $with_build_time_tools/${ncn_progname}; then
14647 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 $as_echo "yes" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14658 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14659 for ncn_progname in dsymutil; do
14660 if test -n "$ncn_target_tool_prefix"; then
14661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14666 $as_echo_n "(cached) " >&6
14668 if test -n "$DSYMUTIL_FOR_TARGET"; then
14669 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14688 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14689 if test -n "$DSYMUTIL_FOR_TARGET"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14691 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14699 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached) " >&6
14707 if test -n "$DSYMUTIL_FOR_TARGET"; then
14708 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14728 if test -n "$DSYMUTIL_FOR_TARGET"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14730 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14738 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14742 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14744 if test $build = $target ; then
14745 DSYMUTIL_FOR_TARGET="$2"
14747 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14750 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14754 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14760 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14761 if test -n "$with_build_time_tools"; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14763 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14764 if test -x $with_build_time_tools/ld; then
14765 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14766 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14768 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14773 elif test $build != $host && test $have_gcc_for_target = yes; then
14774 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14775 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14776 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14779 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14780 # Extract the first word of "ld", so it can be a program name with args.
14781 set dummy ld; ac_word=$2
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14783 $as_echo_n "checking for $ac_word... " >&6; }
14784 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14785 $as_echo_n "(cached) " >&6
14787 case $LD_FOR_TARGET in
14789 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $gcc_cv_tool_dirs
14796 test -z "$as_dir" && as_dir=.
14797 for ac_exec_ext in '' $ac_executable_extensions; do
14798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14799 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14810 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14811 if test -n "$LD_FOR_TARGET"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14813 $as_echo "$LD_FOR_TARGET" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816 $as_echo "no" >&6; }
14821 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14824 if test -n "$LD_FOR_TARGET"; then
14825 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14826 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14827 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14830 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14831 for ncn_progname in ld; do
14832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14833 set dummy ${ncn_progname}; ac_word=$2
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14835 $as_echo_n "checking for $ac_word... " >&6; }
14836 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14837 $as_echo_n "(cached) " >&6
14839 if test -n "$LD_FOR_TARGET"; then
14840 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14843 for as_dir in $PATH
14846 test -z "$as_dir" && as_dir=.
14847 for ac_exec_ext in '' $ac_executable_extensions; do
14848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14849 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14859 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14860 if test -n "$LD_FOR_TARGET"; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14862 $as_echo "$LD_FOR_TARGET" >&6; }
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 $as_echo "no" >&6; }
14872 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14873 for ncn_progname in ld; do
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14876 if test -x $with_build_time_tools/${ncn_progname}; then
14877 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 $as_echo "yes" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14888 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14889 for ncn_progname in ld; do
14890 if test -n "$ncn_target_tool_prefix"; then
14891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14896 $as_echo_n "(cached) " >&6
14898 if test -n "$LD_FOR_TARGET"; then
14899 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $PATH
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14918 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14919 if test -n "$LD_FOR_TARGET"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14921 $as_echo "$LD_FOR_TARGET" >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14929 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached) " >&6
14937 if test -n "$LD_FOR_TARGET"; then
14938 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14958 if test -n "$LD_FOR_TARGET"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14960 $as_echo "$LD_FOR_TARGET" >&6; }
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14968 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14972 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14974 if test $build = $target ; then
14977 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14980 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14984 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14990 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14991 if test -n "$with_build_time_tools"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14993 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14994 if test -x $with_build_time_tools/lipo; then
14995 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14996 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14998 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15003 elif test $build != $host && test $have_gcc_for_target = yes; then
15004 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15005 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15006 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15009 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15010 # Extract the first word of "lipo", so it can be a program name with args.
15011 set dummy lipo; ac_word=$2
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15013 $as_echo_n "checking for $ac_word... " >&6; }
15014 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15015 $as_echo_n "(cached) " >&6
15017 case $LIPO_FOR_TARGET in
15019 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in $gcc_cv_tool_dirs
15026 test -z "$as_dir" && as_dir=.
15027 for ac_exec_ext in '' $ac_executable_extensions; do
15028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15029 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15040 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15041 if test -n "$LIPO_FOR_TARGET"; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15043 $as_echo "$LIPO_FOR_TARGET" >&6; }
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 $as_echo "no" >&6; }
15051 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15054 if test -n "$LIPO_FOR_TARGET"; then
15055 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15056 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15057 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15060 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15061 for ncn_progname in lipo; do
15062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15063 set dummy ${ncn_progname}; ac_word=$2
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15065 $as_echo_n "checking for $ac_word... " >&6; }
15066 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15067 $as_echo_n "(cached) " >&6
15069 if test -n "$LIPO_FOR_TARGET"; then
15070 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15073 for as_dir in $PATH
15076 test -z "$as_dir" && as_dir=.
15077 for ac_exec_ext in '' $ac_executable_extensions; do
15078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15079 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15089 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15090 if test -n "$LIPO_FOR_TARGET"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15092 $as_echo "$LIPO_FOR_TARGET" >&6; }
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15102 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15103 for ncn_progname in lipo; do
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15106 if test -x $with_build_time_tools/${ncn_progname}; then
15107 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15109 $as_echo "yes" >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15118 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15119 for ncn_progname in lipo; do
15120 if test -n "$ncn_target_tool_prefix"; then
15121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15124 $as_echo_n "checking for $ac_word... " >&6; }
15125 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15126 $as_echo_n "(cached) " >&6
15128 if test -n "$LIPO_FOR_TARGET"; then
15129 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $PATH
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15148 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15149 if test -n "$LIPO_FOR_TARGET"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15151 $as_echo "$LIPO_FOR_TARGET" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15159 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached) " >&6
15167 if test -n "$LIPO_FOR_TARGET"; then
15168 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15188 if test -n "$LIPO_FOR_TARGET"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15190 $as_echo "$LIPO_FOR_TARGET" >&6; }
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15198 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15202 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15204 if test $build = $target ; then
15205 LIPO_FOR_TARGET="$2"
15207 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15210 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15214 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15220 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15221 if test -n "$with_build_time_tools"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15223 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15224 if test -x $with_build_time_tools/nm; then
15225 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15226 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15228 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15233 elif test $build != $host && test $have_gcc_for_target = yes; then
15234 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15235 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15236 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15239 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15240 # Extract the first word of "nm", so it can be a program name with args.
15241 set dummy nm; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15243 $as_echo_n "checking for $ac_word... " >&6; }
15244 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15245 $as_echo_n "(cached) " >&6
15247 case $NM_FOR_TARGET in
15249 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $gcc_cv_tool_dirs
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15270 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15271 if test -n "$NM_FOR_TARGET"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15273 $as_echo "$NM_FOR_TARGET" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15281 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15284 if test -n "$NM_FOR_TARGET"; then
15285 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15286 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15287 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15290 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15291 for ncn_progname in nm; do
15292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15293 set dummy ${ncn_progname}; ac_word=$2
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15295 $as_echo_n "checking for $ac_word... " >&6; }
15296 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15297 $as_echo_n "(cached) " >&6
15299 if test -n "$NM_FOR_TARGET"; then
15300 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15303 for as_dir in $PATH
15306 test -z "$as_dir" && as_dir=.
15307 for ac_exec_ext in '' $ac_executable_extensions; do
15308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15309 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15319 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15320 if test -n "$NM_FOR_TARGET"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15322 $as_echo "$NM_FOR_TARGET" >&6; }
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15332 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15333 for ncn_progname in nm; do
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15336 if test -x $with_build_time_tools/${ncn_progname}; then
15337 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15339 $as_echo "yes" >&6; }
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15348 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15349 for ncn_progname in nm; do
15350 if test -n "$ncn_target_tool_prefix"; then
15351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15354 $as_echo_n "checking for $ac_word... " >&6; }
15355 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15356 $as_echo_n "(cached) " >&6
15358 if test -n "$NM_FOR_TARGET"; then
15359 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15378 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15379 if test -n "$NM_FOR_TARGET"; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15381 $as_echo "$NM_FOR_TARGET" >&6; }
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15384 $as_echo "no" >&6; }
15389 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached) " >&6
15397 if test -n "$NM_FOR_TARGET"; then
15398 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15418 if test -n "$NM_FOR_TARGET"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15420 $as_echo "$NM_FOR_TARGET" >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15428 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15432 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15434 if test $build = $target ; then
15437 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15440 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15444 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15450 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15451 if test -n "$with_build_time_tools"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15453 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15454 if test -x $with_build_time_tools/objcopy; then
15455 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15456 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15458 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461 $as_echo "no" >&6; }
15463 elif test $build != $host && test $have_gcc_for_target = yes; then
15464 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15465 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15466 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15469 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15470 # Extract the first word of "objcopy", so it can be a program name with args.
15471 set dummy objcopy; ac_word=$2
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15473 $as_echo_n "checking for $ac_word... " >&6; }
15474 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15475 $as_echo_n "(cached) " >&6
15477 case $OBJCOPY_FOR_TARGET in
15479 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483 for as_dir in $gcc_cv_tool_dirs
15486 test -z "$as_dir" && as_dir=.
15487 for ac_exec_ext in '' $ac_executable_extensions; do
15488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15489 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15500 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15501 if test -n "$OBJCOPY_FOR_TARGET"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15503 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15506 $as_echo "no" >&6; }
15511 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15514 if test -n "$OBJCOPY_FOR_TARGET"; then
15515 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15516 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15517 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15520 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15521 for ncn_progname in objcopy; do
15522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15523 set dummy ${ncn_progname}; ac_word=$2
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15525 $as_echo_n "checking for $ac_word... " >&6; }
15526 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15527 $as_echo_n "(cached) " >&6
15529 if test -n "$OBJCOPY_FOR_TARGET"; then
15530 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15533 for as_dir in $PATH
15536 test -z "$as_dir" && as_dir=.
15537 for ac_exec_ext in '' $ac_executable_extensions; do
15538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15539 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15549 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15550 if test -n "$OBJCOPY_FOR_TARGET"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15552 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555 $as_echo "no" >&6; }
15562 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15563 for ncn_progname in objcopy; do
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15566 if test -x $with_build_time_tools/${ncn_progname}; then
15567 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15569 $as_echo "yes" >&6; }
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15578 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15579 for ncn_progname in objcopy; do
15580 if test -n "$ncn_target_tool_prefix"; then
15581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15584 $as_echo_n "checking for $ac_word... " >&6; }
15585 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached) " >&6
15588 if test -n "$OBJCOPY_FOR_TARGET"; then
15589 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15608 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15609 if test -n "$OBJCOPY_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15611 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15619 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached) " >&6
15627 if test -n "$OBJCOPY_FOR_TARGET"; then
15628 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15647 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15648 if test -n "$OBJCOPY_FOR_TARGET"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15650 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15658 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15662 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15664 if test $build = $target ; then
15665 OBJCOPY_FOR_TARGET="$2"
15667 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15670 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15674 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15680 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15681 if test -n "$with_build_time_tools"; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15683 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15684 if test -x $with_build_time_tools/objdump; then
15685 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15686 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15688 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15693 elif test $build != $host && test $have_gcc_for_target = yes; then
15694 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15695 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15696 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15699 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15700 # Extract the first word of "objdump", so it can be a program name with args.
15701 set dummy objdump; ac_word=$2
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15703 $as_echo_n "checking for $ac_word... " >&6; }
15704 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15705 $as_echo_n "(cached) " >&6
15707 case $OBJDUMP_FOR_TARGET in
15709 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15713 for as_dir in $gcc_cv_tool_dirs
15716 test -z "$as_dir" && as_dir=.
15717 for ac_exec_ext in '' $ac_executable_extensions; do
15718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15719 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15731 if test -n "$OBJDUMP_FOR_TARGET"; then
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15733 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15741 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15744 if test -n "$OBJDUMP_FOR_TARGET"; then
15745 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15746 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15747 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15750 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15751 for ncn_progname in objdump; do
15752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15753 set dummy ${ncn_progname}; ac_word=$2
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15755 $as_echo_n "checking for $ac_word... " >&6; }
15756 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15757 $as_echo_n "(cached) " >&6
15759 if test -n "$OBJDUMP_FOR_TARGET"; then
15760 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15763 for as_dir in $PATH
15766 test -z "$as_dir" && as_dir=.
15767 for ac_exec_ext in '' $ac_executable_extensions; do
15768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15769 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15779 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15780 if test -n "$OBJDUMP_FOR_TARGET"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15782 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 $as_echo "no" >&6; }
15792 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15793 for ncn_progname in objdump; do
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15796 if test -x $with_build_time_tools/${ncn_progname}; then
15797 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15799 $as_echo "yes" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15808 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15809 for ncn_progname in objdump; do
15810 if test -n "$ncn_target_tool_prefix"; then
15811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15814 $as_echo_n "checking for $ac_word... " >&6; }
15815 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached) " >&6
15818 if test -n "$OBJDUMP_FOR_TARGET"; then
15819 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15838 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15839 if test -n "$OBJDUMP_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15841 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15849 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached) " >&6
15857 if test -n "$OBJDUMP_FOR_TARGET"; then
15858 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15864 test -z "$as_dir" && as_dir=.
15865 for ac_exec_ext in '' $ac_executable_extensions; do
15866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15877 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15878 if test -n "$OBJDUMP_FOR_TARGET"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15880 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15888 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15892 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15894 if test $build = $target ; then
15895 OBJDUMP_FOR_TARGET="$2"
15897 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15900 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15904 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15910 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15911 if test -n "$with_build_time_tools"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15913 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15914 if test -x $with_build_time_tools/otool; then
15915 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15916 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15918 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921 $as_echo "no" >&6; }
15923 elif test $build != $host && test $have_gcc_for_target = yes; then
15924 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15925 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15926 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15929 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15930 # Extract the first word of "otool", so it can be a program name with args.
15931 set dummy otool; ac_word=$2
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15933 $as_echo_n "checking for $ac_word... " >&6; }
15934 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15935 $as_echo_n "(cached) " >&6
15937 case $OTOOL_FOR_TARGET in
15939 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943 for as_dir in $gcc_cv_tool_dirs
15946 test -z "$as_dir" && as_dir=.
15947 for ac_exec_ext in '' $ac_executable_extensions; do
15948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15949 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15960 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15961 if test -n "$OTOOL_FOR_TARGET"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15963 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15971 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15974 if test -n "$OTOOL_FOR_TARGET"; then
15975 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15976 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15977 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15980 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15981 for ncn_progname in otool; do
15982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15983 set dummy ${ncn_progname}; ac_word=$2
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15985 $as_echo_n "checking for $ac_word... " >&6; }
15986 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15987 $as_echo_n "(cached) " >&6
15989 if test -n "$OTOOL_FOR_TARGET"; then
15990 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15993 for as_dir in $PATH
15996 test -z "$as_dir" && as_dir=.
15997 for ac_exec_ext in '' $ac_executable_extensions; do
15998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15999 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16009 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16010 if test -n "$OTOOL_FOR_TARGET"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16012 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16022 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16023 for ncn_progname in otool; do
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16026 if test -x $with_build_time_tools/${ncn_progname}; then
16027 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16029 $as_echo "yes" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033 $as_echo "no" >&6; }
16038 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16039 for ncn_progname in otool; do
16040 if test -n "$ncn_target_tool_prefix"; then
16041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16044 $as_echo_n "checking for $ac_word... " >&6; }
16045 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached) " >&6
16048 if test -n "$OTOOL_FOR_TARGET"; then
16049 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16068 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16069 if test -n "$OTOOL_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16071 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16079 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083 $as_echo_n "checking for $ac_word... " >&6; }
16084 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 if test -n "$OTOOL_FOR_TARGET"; then
16088 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16094 test -z "$as_dir" && as_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16108 if test -n "$OTOOL_FOR_TARGET"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16110 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16118 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16122 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16124 if test $build = $target ; then
16125 OTOOL_FOR_TARGET="$2"
16127 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16130 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16134 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16140 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16141 if test -n "$with_build_time_tools"; then
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16143 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16144 if test -x $with_build_time_tools/ranlib; then
16145 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16146 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16148 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16153 elif test $build != $host && test $have_gcc_for_target = yes; then
16154 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16155 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16156 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16159 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16160 # Extract the first word of "ranlib", so it can be a program name with args.
16161 set dummy ranlib; ac_word=$2
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16163 $as_echo_n "checking for $ac_word... " >&6; }
16164 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16165 $as_echo_n "(cached) " >&6
16167 case $RANLIB_FOR_TARGET in
16169 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16173 for as_dir in $gcc_cv_tool_dirs
16176 test -z "$as_dir" && as_dir=.
16177 for ac_exec_ext in '' $ac_executable_extensions; do
16178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16179 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16190 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16191 if test -n "$RANLIB_FOR_TARGET"; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16193 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16201 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16204 if test -n "$RANLIB_FOR_TARGET"; then
16205 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16206 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16207 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16210 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16211 for ncn_progname in ranlib; do
16212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16213 set dummy ${ncn_progname}; ac_word=$2
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16215 $as_echo_n "checking for $ac_word... " >&6; }
16216 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16217 $as_echo_n "(cached) " >&6
16219 if test -n "$RANLIB_FOR_TARGET"; then
16220 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16223 for as_dir in $PATH
16226 test -z "$as_dir" && as_dir=.
16227 for ac_exec_ext in '' $ac_executable_extensions; do
16228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16229 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16239 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16240 if test -n "$RANLIB_FOR_TARGET"; then
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16242 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245 $as_echo "no" >&6; }
16252 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16253 for ncn_progname in ranlib; do
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16255 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16256 if test -x $with_build_time_tools/${ncn_progname}; then
16257 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259 $as_echo "yes" >&6; }
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16268 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16269 for ncn_progname in ranlib; do
16270 if test -n "$ncn_target_tool_prefix"; then
16271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274 $as_echo_n "checking for $ac_word... " >&6; }
16275 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached) " >&6
16278 if test -n "$RANLIB_FOR_TARGET"; then
16279 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16298 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16299 if test -n "$RANLIB_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16301 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16309 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached) " >&6
16317 if test -n "$RANLIB_FOR_TARGET"; then
16318 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16337 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16338 if test -n "$RANLIB_FOR_TARGET"; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16340 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16348 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16354 if test $build = $target ; then
16355 RANLIB_FOR_TARGET="$2"
16357 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16360 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16364 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16370 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16371 if test -n "$with_build_time_tools"; then
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16373 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16374 if test -x $with_build_time_tools/readelf; then
16375 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16376 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16378 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16381 $as_echo "no" >&6; }
16383 elif test $build != $host && test $have_gcc_for_target = yes; then
16384 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16385 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16386 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16389 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16390 # Extract the first word of "readelf", so it can be a program name with args.
16391 set dummy readelf; ac_word=$2
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16393 $as_echo_n "checking for $ac_word... " >&6; }
16394 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16395 $as_echo_n "(cached) " >&6
16397 case $READELF_FOR_TARGET in
16399 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16403 for as_dir in $gcc_cv_tool_dirs
16406 test -z "$as_dir" && as_dir=.
16407 for ac_exec_ext in '' $ac_executable_extensions; do
16408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16409 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16420 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16421 if test -n "$READELF_FOR_TARGET"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16423 $as_echo "$READELF_FOR_TARGET" >&6; }
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16431 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16434 if test -n "$READELF_FOR_TARGET"; then
16435 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16436 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16437 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16440 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16441 for ncn_progname in readelf; do
16442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16443 set dummy ${ncn_progname}; ac_word=$2
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445 $as_echo_n "checking for $ac_word... " >&6; }
16446 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16447 $as_echo_n "(cached) " >&6
16449 if test -n "$READELF_FOR_TARGET"; then
16450 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16453 for as_dir in $PATH
16456 test -z "$as_dir" && as_dir=.
16457 for ac_exec_ext in '' $ac_executable_extensions; do
16458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16459 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16469 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16470 if test -n "$READELF_FOR_TARGET"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16472 $as_echo "$READELF_FOR_TARGET" >&6; }
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 $as_echo "no" >&6; }
16482 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16483 for ncn_progname in readelf; do
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16485 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16486 if test -x $with_build_time_tools/${ncn_progname}; then
16487 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16489 $as_echo "yes" >&6; }
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16498 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16499 for ncn_progname in readelf; do
16500 if test -n "$ncn_target_tool_prefix"; then
16501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached) " >&6
16508 if test -n "$READELF_FOR_TARGET"; then
16509 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16528 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16529 if test -n "$READELF_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16531 $as_echo "$READELF_FOR_TARGET" >&6; }
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16539 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached) " >&6
16547 if test -n "$READELF_FOR_TARGET"; then
16548 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16567 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16568 if test -n "$READELF_FOR_TARGET"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16570 $as_echo "$READELF_FOR_TARGET" >&6; }
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16578 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16582 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16584 if test $build = $target ; then
16585 READELF_FOR_TARGET="$2"
16587 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16590 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16594 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16600 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16601 if test -n "$with_build_time_tools"; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16603 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16604 if test -x $with_build_time_tools/strip; then
16605 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16606 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16608 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16613 elif test $build != $host && test $have_gcc_for_target = yes; then
16614 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16615 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16616 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16619 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16620 # Extract the first word of "strip", so it can be a program name with args.
16621 set dummy strip; ac_word=$2
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16623 $as_echo_n "checking for $ac_word... " >&6; }
16624 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16625 $as_echo_n "(cached) " >&6
16627 case $STRIP_FOR_TARGET in
16629 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633 for as_dir in $gcc_cv_tool_dirs
16636 test -z "$as_dir" && as_dir=.
16637 for ac_exec_ext in '' $ac_executable_extensions; do
16638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16639 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16650 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16651 if test -n "$STRIP_FOR_TARGET"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16653 $as_echo "$STRIP_FOR_TARGET" >&6; }
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 $as_echo "no" >&6; }
16661 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16664 if test -n "$STRIP_FOR_TARGET"; then
16665 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16666 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16667 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16670 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16671 for ncn_progname in strip; do
16672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16673 set dummy ${ncn_progname}; ac_word=$2
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675 $as_echo_n "checking for $ac_word... " >&6; }
16676 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16677 $as_echo_n "(cached) " >&6
16679 if test -n "$STRIP_FOR_TARGET"; then
16680 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16683 for as_dir in $PATH
16686 test -z "$as_dir" && as_dir=.
16687 for ac_exec_ext in '' $ac_executable_extensions; do
16688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16689 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16699 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16700 if test -n "$STRIP_FOR_TARGET"; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16702 $as_echo "$STRIP_FOR_TARGET" >&6; }
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16712 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16713 for ncn_progname in strip; do
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16715 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16716 if test -x $with_build_time_tools/${ncn_progname}; then
16717 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16719 $as_echo "yes" >&6; }
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 $as_echo "no" >&6; }
16728 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16729 for ncn_progname in strip; do
16730 if test -n "$ncn_target_tool_prefix"; then
16731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached) " >&6
16738 if test -n "$STRIP_FOR_TARGET"; then
16739 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16758 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16759 if test -n "$STRIP_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16761 $as_echo "$STRIP_FOR_TARGET" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16769 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached) " >&6
16777 if test -n "$STRIP_FOR_TARGET"; then
16778 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16797 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16798 if test -n "$STRIP_FOR_TARGET"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16800 $as_echo "$STRIP_FOR_TARGET" >&6; }
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16803 $as_echo "no" >&6; }
16808 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16812 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16814 if test $build = $target ; then
16815 STRIP_FOR_TARGET="$2"
16817 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16820 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16824 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16830 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16831 if test -n "$with_build_time_tools"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16833 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16834 if test -x $with_build_time_tools/windres; then
16835 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16836 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16838 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16843 elif test $build != $host && test $have_gcc_for_target = yes; then
16844 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16845 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16846 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16849 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16850 # Extract the first word of "windres", so it can be a program name with args.
16851 set dummy windres; ac_word=$2
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16853 $as_echo_n "checking for $ac_word... " >&6; }
16854 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16855 $as_echo_n "(cached) " >&6
16857 case $WINDRES_FOR_TARGET in
16859 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16863 for as_dir in $gcc_cv_tool_dirs
16866 test -z "$as_dir" && as_dir=.
16867 for ac_exec_ext in '' $ac_executable_extensions; do
16868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16869 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16880 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16881 if test -n "$WINDRES_FOR_TARGET"; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16883 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16891 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16894 if test -n "$WINDRES_FOR_TARGET"; then
16895 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16896 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16897 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16900 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16901 for ncn_progname in windres; do
16902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16903 set dummy ${ncn_progname}; ac_word=$2
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16905 $as_echo_n "checking for $ac_word... " >&6; }
16906 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16907 $as_echo_n "(cached) " >&6
16909 if test -n "$WINDRES_FOR_TARGET"; then
16910 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16913 for as_dir in $PATH
16916 test -z "$as_dir" && as_dir=.
16917 for ac_exec_ext in '' $ac_executable_extensions; do
16918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16919 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16929 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16930 if test -n "$WINDRES_FOR_TARGET"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16932 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16935 $as_echo "no" >&6; }
16942 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16943 for ncn_progname in windres; do
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16946 if test -x $with_build_time_tools/${ncn_progname}; then
16947 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16949 $as_echo "yes" >&6; }
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16958 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16959 for ncn_progname in windres; do
16960 if test -n "$ncn_target_tool_prefix"; then
16961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16964 $as_echo_n "checking for $ac_word... " >&6; }
16965 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached) " >&6
16968 if test -n "$WINDRES_FOR_TARGET"; then
16969 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16988 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16989 if test -n "$WINDRES_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16991 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16999 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached) " >&6
17007 if test -n "$WINDRES_FOR_TARGET"; then
17008 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17027 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17028 if test -n "$WINDRES_FOR_TARGET"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17030 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17038 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17042 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17044 if test $build = $target ; then
17045 WINDRES_FOR_TARGET="$2"
17047 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17050 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17054 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17060 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17061 if test -n "$with_build_time_tools"; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17063 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17064 if test -x $with_build_time_tools/windmc; then
17065 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17066 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17068 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17073 elif test $build != $host && test $have_gcc_for_target = yes; then
17074 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17075 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17076 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17079 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17080 # Extract the first word of "windmc", so it can be a program name with args.
17081 set dummy windmc; ac_word=$2
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17083 $as_echo_n "checking for $ac_word... " >&6; }
17084 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17085 $as_echo_n "(cached) " >&6
17087 case $WINDMC_FOR_TARGET in
17089 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $gcc_cv_tool_dirs
17096 test -z "$as_dir" && as_dir=.
17097 for ac_exec_ext in '' $ac_executable_extensions; do
17098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17099 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17110 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17111 if test -n "$WINDMC_FOR_TARGET"; then
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17113 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 $as_echo "no" >&6; }
17121 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17124 if test -n "$WINDMC_FOR_TARGET"; then
17125 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17126 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17127 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17130 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17131 for ncn_progname in windmc; do
17132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17133 set dummy ${ncn_progname}; ac_word=$2
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17135 $as_echo_n "checking for $ac_word... " >&6; }
17136 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17137 $as_echo_n "(cached) " >&6
17139 if test -n "$WINDMC_FOR_TARGET"; then
17140 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143 for as_dir in $PATH
17146 test -z "$as_dir" && as_dir=.
17147 for ac_exec_ext in '' $ac_executable_extensions; do
17148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17149 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17159 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17160 if test -n "$WINDMC_FOR_TARGET"; then
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17162 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17172 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17173 for ncn_progname in windmc; do
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17175 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17176 if test -x $with_build_time_tools/${ncn_progname}; then
17177 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17179 $as_echo "yes" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17188 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17189 for ncn_progname in windmc; do
17190 if test -n "$ncn_target_tool_prefix"; then
17191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17194 $as_echo_n "checking for $ac_word... " >&6; }
17195 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 if test -n "$WINDMC_FOR_TARGET"; then
17199 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17218 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17219 if test -n "$WINDMC_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17221 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17229 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17233 $as_echo_n "checking for $ac_word... " >&6; }
17234 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached) " >&6
17237 if test -n "$WINDMC_FOR_TARGET"; then
17238 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17244 test -z "$as_dir" && as_dir=.
17245 for ac_exec_ext in '' $ac_executable_extensions; do
17246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17257 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17258 if test -n "$WINDMC_FOR_TARGET"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17260 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17268 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17274 if test $build = $target ; then
17275 WINDMC_FOR_TARGET="$2"
17277 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17280 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17284 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17288 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17291 $as_echo_n "checking where to find the target ar... " >&6; }
17292 if test "x${build}" != "x${host}" ; then
17293 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17294 # We already found the complete path
17295 ac_dir=`dirname $AR_FOR_TARGET`
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17297 $as_echo "pre-installed in $ac_dir" >&6; }
17299 # Canadian cross, just use what we found
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17301 $as_echo "pre-installed" >&6; }
17305 case " ${configdirs} " in
17310 if test $ok = yes; then
17311 # An in-tree tool is available and we can use it
17312 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17314 $as_echo "just compiled" >&6; }
17315 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17316 # We already found the complete path
17317 ac_dir=`dirname $AR_FOR_TARGET`
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17319 $as_echo "pre-installed in $ac_dir" >&6; }
17320 elif test "x$target" = "x$host"; then
17321 # We can use an host tool
17322 AR_FOR_TARGET='$(AR)'
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17324 $as_echo "host tool" >&6; }
17326 # We need a cross tool
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17328 $as_echo "pre-installed" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17333 $as_echo_n "checking where to find the target as... " >&6; }
17334 if test "x${build}" != "x${host}" ; then
17335 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17336 # We already found the complete path
17337 ac_dir=`dirname $AS_FOR_TARGET`
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17339 $as_echo "pre-installed in $ac_dir" >&6; }
17341 # Canadian cross, just use what we found
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17343 $as_echo "pre-installed" >&6; }
17347 case " ${configdirs} " in
17352 if test $ok = yes; then
17353 # An in-tree tool is available and we can use it
17354 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17356 $as_echo "just compiled" >&6; }
17357 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17358 # We already found the complete path
17359 ac_dir=`dirname $AS_FOR_TARGET`
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17361 $as_echo "pre-installed in $ac_dir" >&6; }
17362 elif test "x$target" = "x$host"; then
17363 # We can use an host tool
17364 AS_FOR_TARGET='$(AS)'
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17366 $as_echo "host tool" >&6; }
17368 # We need a cross tool
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17375 $as_echo_n "checking where to find the target cc... " >&6; }
17376 if test "x${build}" != "x${host}" ; then
17377 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17378 # We already found the complete path
17379 ac_dir=`dirname $CC_FOR_TARGET`
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17381 $as_echo "pre-installed in $ac_dir" >&6; }
17383 # Canadian cross, just use what we found
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17385 $as_echo "pre-installed" >&6; }
17389 case " ${configdirs} " in
17394 if test $ok = yes; then
17395 # An in-tree tool is available and we can use it
17396 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17398 $as_echo "just compiled" >&6; }
17399 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17400 # We already found the complete path
17401 ac_dir=`dirname $CC_FOR_TARGET`
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17403 $as_echo "pre-installed in $ac_dir" >&6; }
17404 elif test "x$target" = "x$host"; then
17405 # We can use an host tool
17406 CC_FOR_TARGET='$(CC)'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17408 $as_echo "host tool" >&6; }
17410 # We need a cross tool
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17412 $as_echo "pre-installed" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17417 $as_echo_n "checking where to find the target c++... " >&6; }
17418 if test "x${build}" != "x${host}" ; then
17419 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17420 # We already found the complete path
17421 ac_dir=`dirname $CXX_FOR_TARGET`
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17423 $as_echo "pre-installed in $ac_dir" >&6; }
17425 # Canadian cross, just use what we found
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17427 $as_echo "pre-installed" >&6; }
17431 case " ${configdirs} " in
17435 case ,${enable_languages}, in
17439 if test $ok = yes; then
17440 # An in-tree tool is available and we can use it
17441 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'
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17443 $as_echo "just compiled" >&6; }
17444 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17445 # We already found the complete path
17446 ac_dir=`dirname $CXX_FOR_TARGET`
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17448 $as_echo "pre-installed in $ac_dir" >&6; }
17449 elif test "x$target" = "x$host"; then
17450 # We can use an host tool
17451 CXX_FOR_TARGET='$(CXX)'
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17453 $as_echo "host tool" >&6; }
17455 # We need a cross tool
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17457 $as_echo "pre-installed" >&6; }
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17462 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17463 if test "x${build}" != "x${host}" ; then
17464 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17465 # We already found the complete path
17466 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17468 $as_echo "pre-installed in $ac_dir" >&6; }
17470 # Canadian cross, just use what we found
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17472 $as_echo "pre-installed" >&6; }
17476 case " ${configdirs} " in
17480 case ,${enable_languages}, in
17484 if test $ok = yes; then
17485 # An in-tree tool is available and we can use it
17486 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'
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17488 $as_echo "just compiled" >&6; }
17489 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17490 # We already found the complete path
17491 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17493 $as_echo "pre-installed in $ac_dir" >&6; }
17494 elif test "x$target" = "x$host"; then
17495 # We can use an host tool
17496 RAW_CXX_FOR_TARGET='$(CXX)'
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17498 $as_echo "host tool" >&6; }
17500 # We need a cross tool
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17502 $as_echo "pre-installed" >&6; }
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17507 $as_echo_n "checking where to find the target dlltool... " >&6; }
17508 if test "x${build}" != "x${host}" ; then
17509 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17510 # We already found the complete path
17511 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17513 $as_echo "pre-installed in $ac_dir" >&6; }
17515 # Canadian cross, just use what we found
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17517 $as_echo "pre-installed" >&6; }
17521 case " ${configdirs} " in
17526 if test $ok = yes; then
17527 # An in-tree tool is available and we can use it
17528 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17530 $as_echo "just compiled" >&6; }
17531 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17532 # We already found the complete path
17533 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17535 $as_echo "pre-installed in $ac_dir" >&6; }
17536 elif test "x$target" = "x$host"; then
17537 # We can use an host tool
17538 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17540 $as_echo "host tool" >&6; }
17542 # We need a cross tool
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17544 $as_echo "pre-installed" >&6; }
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17549 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17550 if test "x${build}" != "x${host}" ; then
17551 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17552 # We already found the complete path
17553 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17555 $as_echo "pre-installed in $ac_dir" >&6; }
17557 # Canadian cross, just use what we found
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17559 $as_echo "pre-installed" >&6; }
17562 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17563 # We already found the complete path
17564 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17566 $as_echo "pre-installed in $ac_dir" >&6; }
17567 elif test "x$target" = "x$host"; then
17568 # We can use an host tool
17569 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17571 $as_echo "host tool" >&6; }
17573 # We need a cross tool
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17575 $as_echo "pre-installed" >&6; }
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17580 $as_echo_n "checking where to find the target gcc... " >&6; }
17581 if test "x${build}" != "x${host}" ; then
17582 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17583 # We already found the complete path
17584 ac_dir=`dirname $GCC_FOR_TARGET`
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17586 $as_echo "pre-installed in $ac_dir" >&6; }
17588 # Canadian cross, just use what we found
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17590 $as_echo "pre-installed" >&6; }
17594 case " ${configdirs} " in
17599 if test $ok = yes; then
17600 # An in-tree tool is available and we can use it
17601 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17603 $as_echo "just compiled" >&6; }
17604 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $GCC_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17608 $as_echo "pre-installed in $ac_dir" >&6; }
17609 elif test "x$target" = "x$host"; then
17610 # We can use an host tool
17611 GCC_FOR_TARGET='$()'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17613 $as_echo "host tool" >&6; }
17615 # We need a cross tool
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17617 $as_echo "pre-installed" >&6; }
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17622 $as_echo_n "checking where to find the target gfortran... " >&6; }
17623 if test "x${build}" != "x${host}" ; then
17624 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17625 # We already found the complete path
17626 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17628 $as_echo "pre-installed in $ac_dir" >&6; }
17630 # Canadian cross, just use what we found
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17632 $as_echo "pre-installed" >&6; }
17636 case " ${configdirs} " in
17640 case ,${enable_languages}, in
17644 if test $ok = yes; then
17645 # An in-tree tool is available and we can use it
17646 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17648 $as_echo "just compiled" >&6; }
17649 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17650 # We already found the complete path
17651 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17653 $as_echo "pre-installed in $ac_dir" >&6; }
17654 elif test "x$target" = "x$host"; then
17655 # We can use an host tool
17656 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17658 $as_echo "host tool" >&6; }
17660 # We need a cross tool
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17662 $as_echo "pre-installed" >&6; }
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17667 $as_echo_n "checking where to find the target gccgo... " >&6; }
17668 if test "x${build}" != "x${host}" ; then
17669 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17670 # We already found the complete path
17671 ac_dir=`dirname $GOC_FOR_TARGET`
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17673 $as_echo "pre-installed in $ac_dir" >&6; }
17675 # Canadian cross, just use what we found
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17677 $as_echo "pre-installed" >&6; }
17681 case " ${configdirs} " in
17685 case ,${enable_languages}, in
17689 if test $ok = yes; then
17690 # An in-tree tool is available and we can use it
17691 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17693 $as_echo "just compiled" >&6; }
17694 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17695 # We already found the complete path
17696 ac_dir=`dirname $GOC_FOR_TARGET`
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17698 $as_echo "pre-installed in $ac_dir" >&6; }
17699 elif test "x$target" = "x$host"; then
17700 # We can use an host tool
17701 GOC_FOR_TARGET='$(GOC)'
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17703 $as_echo "host tool" >&6; }
17705 # We need a cross tool
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17707 $as_echo "pre-installed" >&6; }
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17712 $as_echo_n "checking where to find the target gdc... " >&6; }
17713 if test "x${build}" != "x${host}" ; then
17714 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17715 # We already found the complete path
17716 ac_dir=`dirname $GDC_FOR_TARGET`
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17718 $as_echo "pre-installed in $ac_dir" >&6; }
17720 # Canadian cross, just use what we found
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17722 $as_echo "pre-installed" >&6; }
17726 case " ${configdirs} " in
17730 case ,${enable_languages}, in
17734 if test $ok = yes; then
17735 # An in-tree tool is available and we can use it
17736 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17738 $as_echo "just compiled" >&6; }
17739 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17740 # We already found the complete path
17741 ac_dir=`dirname $GDC_FOR_TARGET`
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17743 $as_echo "pre-installed in $ac_dir" >&6; }
17744 elif test "x$target" = "x$host"; then
17745 # We can use an host tool
17746 GDC_FOR_TARGET='$(GDC)'
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17748 $as_echo "host tool" >&6; }
17750 # We need a cross tool
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17752 $as_echo "pre-installed" >&6; }
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17757 $as_echo_n "checking where to find the target ld... " >&6; }
17758 if test "x${build}" != "x${host}" ; then
17759 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17760 # We already found the complete path
17761 ac_dir=`dirname $LD_FOR_TARGET`
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17763 $as_echo "pre-installed in $ac_dir" >&6; }
17765 # Canadian cross, just use what we found
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17767 $as_echo "pre-installed" >&6; }
17771 case " ${configdirs} " in
17776 if test $ok = yes; then
17777 # An in-tree tool is available and we can use it
17778 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17780 $as_echo "just compiled" >&6; }
17781 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17782 # We already found the complete path
17783 ac_dir=`dirname $LD_FOR_TARGET`
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17785 $as_echo "pre-installed in $ac_dir" >&6; }
17786 elif test "x$target" = "x$host"; then
17787 # We can use an host tool
17788 LD_FOR_TARGET='$(LD)'
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17790 $as_echo "host tool" >&6; }
17792 # We need a cross tool
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17794 $as_echo "pre-installed" >&6; }
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17799 $as_echo_n "checking where to find the target lipo... " >&6; }
17800 if test "x${build}" != "x${host}" ; then
17801 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17802 # We already found the complete path
17803 ac_dir=`dirname $LIPO_FOR_TARGET`
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17805 $as_echo "pre-installed in $ac_dir" >&6; }
17807 # Canadian cross, just use what we found
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17809 $as_echo "pre-installed" >&6; }
17812 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17813 # We already found the complete path
17814 ac_dir=`dirname $LIPO_FOR_TARGET`
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17816 $as_echo "pre-installed in $ac_dir" >&6; }
17817 elif test "x$target" = "x$host"; then
17818 # We can use an host tool
17819 LIPO_FOR_TARGET='$(LIPO)'
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17821 $as_echo "host tool" >&6; }
17823 # We need a cross tool
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17830 $as_echo_n "checking where to find the target nm... " >&6; }
17831 if test "x${build}" != "x${host}" ; then
17832 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17833 # We already found the complete path
17834 ac_dir=`dirname $NM_FOR_TARGET`
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17836 $as_echo "pre-installed in $ac_dir" >&6; }
17838 # Canadian cross, just use what we found
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17840 $as_echo "pre-installed" >&6; }
17844 case " ${configdirs} " in
17849 if test $ok = yes; then
17850 # An in-tree tool is available and we can use it
17851 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17853 $as_echo "just compiled" >&6; }
17854 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17855 # We already found the complete path
17856 ac_dir=`dirname $NM_FOR_TARGET`
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17858 $as_echo "pre-installed in $ac_dir" >&6; }
17859 elif test "x$target" = "x$host"; then
17860 # We can use an host tool
17861 NM_FOR_TARGET='$(NM)'
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17863 $as_echo "host tool" >&6; }
17865 # We need a cross tool
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17872 $as_echo_n "checking where to find the target objcopy... " >&6; }
17873 if test "x${build}" != "x${host}" ; then
17874 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17875 # We already found the complete path
17876 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17878 $as_echo "pre-installed in $ac_dir" >&6; }
17880 # Canadian cross, just use what we found
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17882 $as_echo "pre-installed" >&6; }
17886 case " ${configdirs} " in
17891 if test $ok = yes; then
17892 # An in-tree tool is available and we can use it
17893 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17895 $as_echo "just compiled" >&6; }
17896 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17897 # We already found the complete path
17898 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17900 $as_echo "pre-installed in $ac_dir" >&6; }
17901 elif test "x$target" = "x$host"; then
17902 # We can use an host tool
17903 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17905 $as_echo "host tool" >&6; }
17907 # We need a cross tool
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17914 $as_echo_n "checking where to find the target objdump... " >&6; }
17915 if test "x${build}" != "x${host}" ; then
17916 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17917 # We already found the complete path
17918 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17920 $as_echo "pre-installed in $ac_dir" >&6; }
17922 # Canadian cross, just use what we found
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17924 $as_echo "pre-installed" >&6; }
17928 case " ${configdirs} " in
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937 $as_echo "just compiled" >&6; }
17938 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942 $as_echo "pre-installed in $ac_dir" >&6; }
17943 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947 $as_echo "host tool" >&6; }
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951 $as_echo "pre-installed" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17956 $as_echo_n "checking where to find the target otool... " >&6; }
17957 if test "x${build}" != "x${host}" ; then
17958 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $OTOOL_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962 $as_echo "pre-installed in $ac_dir" >&6; }
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17969 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17970 # We already found the complete path
17971 ac_dir=`dirname $OTOOL_FOR_TARGET`
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17973 $as_echo "pre-installed in $ac_dir" >&6; }
17974 elif test "x$target" = "x$host"; then
17975 # We can use an host tool
17976 OTOOL_FOR_TARGET='$(OTOOL)'
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17978 $as_echo "host tool" >&6; }
17980 # We need a cross tool
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982 $as_echo "pre-installed" >&6; }
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17987 $as_echo_n "checking where to find the target ranlib... " >&6; }
17988 if test "x${build}" != "x${host}" ; then
17989 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17990 # We already found the complete path
17991 ac_dir=`dirname $RANLIB_FOR_TARGET`
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17993 $as_echo "pre-installed in $ac_dir" >&6; }
17995 # Canadian cross, just use what we found
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17997 $as_echo "pre-installed" >&6; }
18001 case " ${configdirs} " in
18006 if test $ok = yes; then
18007 # An in-tree tool is available and we can use it
18008 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18010 $as_echo "just compiled" >&6; }
18011 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18012 # We already found the complete path
18013 ac_dir=`dirname $RANLIB_FOR_TARGET`
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18015 $as_echo "pre-installed in $ac_dir" >&6; }
18016 elif test "x$target" = "x$host"; then
18017 # We can use an host tool
18018 RANLIB_FOR_TARGET='$(RANLIB)'
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18020 $as_echo "host tool" >&6; }
18022 # We need a cross tool
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18024 $as_echo "pre-installed" >&6; }
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18029 $as_echo_n "checking where to find the target readelf... " >&6; }
18030 if test "x${build}" != "x${host}" ; then
18031 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18032 # We already found the complete path
18033 ac_dir=`dirname $READELF_FOR_TARGET`
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18035 $as_echo "pre-installed in $ac_dir" >&6; }
18037 # Canadian cross, just use what we found
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18039 $as_echo "pre-installed" >&6; }
18043 case " ${configdirs} " in
18048 if test $ok = yes; then
18049 # An in-tree tool is available and we can use it
18050 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18052 $as_echo "just compiled" >&6; }
18053 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18054 # We already found the complete path
18055 ac_dir=`dirname $READELF_FOR_TARGET`
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18057 $as_echo "pre-installed in $ac_dir" >&6; }
18058 elif test "x$target" = "x$host"; then
18059 # We can use an host tool
18060 READELF_FOR_TARGET='$(READELF)'
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18062 $as_echo "host tool" >&6; }
18064 # We need a cross tool
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18066 $as_echo "pre-installed" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18071 $as_echo_n "checking where to find the target strip... " >&6; }
18072 if test "x${build}" != "x${host}" ; then
18073 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18074 # We already found the complete path
18075 ac_dir=`dirname $STRIP_FOR_TARGET`
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18077 $as_echo "pre-installed in $ac_dir" >&6; }
18079 # Canadian cross, just use what we found
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18081 $as_echo "pre-installed" >&6; }
18085 case " ${configdirs} " in
18090 if test $ok = yes; then
18091 # An in-tree tool is available and we can use it
18092 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18094 $as_echo "just compiled" >&6; }
18095 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18096 # We already found the complete path
18097 ac_dir=`dirname $STRIP_FOR_TARGET`
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18099 $as_echo "pre-installed in $ac_dir" >&6; }
18100 elif test "x$target" = "x$host"; then
18101 # We can use an host tool
18102 STRIP_FOR_TARGET='$(STRIP)'
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18104 $as_echo "host tool" >&6; }
18106 # We need a cross tool
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18108 $as_echo "pre-installed" >&6; }
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18113 $as_echo_n "checking where to find the target windres... " >&6; }
18114 if test "x${build}" != "x${host}" ; then
18115 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18116 # We already found the complete path
18117 ac_dir=`dirname $WINDRES_FOR_TARGET`
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18119 $as_echo "pre-installed in $ac_dir" >&6; }
18121 # Canadian cross, just use what we found
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18123 $as_echo "pre-installed" >&6; }
18127 case " ${configdirs} " in
18132 if test $ok = yes; then
18133 # An in-tree tool is available and we can use it
18134 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18136 $as_echo "just compiled" >&6; }
18137 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18138 # We already found the complete path
18139 ac_dir=`dirname $WINDRES_FOR_TARGET`
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18141 $as_echo "pre-installed in $ac_dir" >&6; }
18142 elif test "x$target" = "x$host"; then
18143 # We can use an host tool
18144 WINDRES_FOR_TARGET='$(WINDRES)'
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18146 $as_echo "host tool" >&6; }
18148 # We need a cross tool
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18150 $as_echo "pre-installed" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18155 $as_echo_n "checking where to find the target windmc... " >&6; }
18156 if test "x${build}" != "x${host}" ; then
18157 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18158 # We already found the complete path
18159 ac_dir=`dirname $WINDMC_FOR_TARGET`
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18161 $as_echo "pre-installed in $ac_dir" >&6; }
18163 # Canadian cross, just use what we found
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18165 $as_echo "pre-installed" >&6; }
18169 case " ${configdirs} " in
18174 if test $ok = yes; then
18175 # An in-tree tool is available and we can use it
18176 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18178 $as_echo "just compiled" >&6; }
18179 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18180 # We already found the complete path
18181 ac_dir=`dirname $WINDMC_FOR_TARGET`
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18183 $as_echo "pre-installed in $ac_dir" >&6; }
18184 elif test "x$target" = "x$host"; then
18185 # We can use an host tool
18186 WINDMC_FOR_TARGET='$(WINDMC)'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18188 $as_echo "host tool" >&6; }
18190 # We need a cross tool
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18192 $as_echo "pre-installed" >&6; }
18200 # Certain tools may need extra flags.
18201 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18202 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18203 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18205 # When building target libraries, except in a Canadian cross, we use
18206 # the same toolchain as the compiler we just built.
18207 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18208 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18209 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18210 if test $host = $build; then
18211 case " $configdirs " in
18213 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18214 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18215 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18225 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18226 # Check whether --enable-maintainer-mode was given.
18227 if test "${enable_maintainer_mode+set}" = set; then :
18228 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18230 USE_MAINTAINER_MODE=no
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18234 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18237 if test "$USE_MAINTAINER_MODE" = yes; then
18238 MAINTAINER_MODE_TRUE=
18239 MAINTAINER_MODE_FALSE='#'
18241 MAINTAINER_MODE_TRUE='#'
18242 MAINTAINER_MODE_FALSE=
18244 MAINT=$MAINTAINER_MODE_TRUE
18246 # ---------------------
18247 # GCC bootstrap support
18248 # ---------------------
18250 # Stage specific cflags for build.
18255 yes) stage1_cflags="-g -Wa,-J" ;;
18256 *) stage1_cflags="-g -J" ;;
18262 # Enable --enable-checking in stage1 of the compiler.
18263 # Check whether --enable-stage1-checking was given.
18264 if test "${enable_stage1_checking+set}" = set; then :
18265 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18267 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18268 # For --disable-checking or implicit --enable-checking=release, avoid
18269 # setting --enable-checking=gc in the default stage1 checking for LTO
18270 # bootstraps. See PR62077.
18271 case $BUILD_CONFIG in
18273 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18275 stage1_checking=--enable-checking=yes,types;;
18277 if test "x$enable_checking" = x && \
18278 test -d ${srcdir}/gcc && \
18279 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18280 stage1_checking=--enable-checking=yes,types,extra
18283 stage1_checking=--enable-checking=$enable_checking,types
18289 # Enable -Werror in bootstrap stage2 and later.
18290 # Check whether --enable-werror was given.
18291 if test "${enable_werror+set}" = set; then :
18292 enableval=$enable_werror;
18293 case ${enable_werror} in
18294 yes) stage2_werror_flag="--enable-werror-always" ;;
18295 *) stage2_werror_flag="" ;;
18300 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18301 case $BUILD_CONFIG in
18303 stage2_werror_flag="--enable-werror-always" ;;
18305 stage2_werror_flag="--enable-werror-always" ;;
18314 # Specify what files to not compare during bootstrap.
18316 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18318 hppa*64*-*-hpux*) ;;
18319 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18320 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18324 ac_config_files="$ac_config_files Makefile"
18326 cat >confcache <<\_ACEOF
18327 # This file is a shell script that caches the results of configure
18328 # tests run on this system so they can be shared between configure
18329 # scripts and configure runs, see configure's option --config-cache.
18330 # It is not useful on other systems. If it contains results you don't
18331 # want to keep, you may remove or edit it.
18333 # config.status only pays attention to the cache file if you give it
18334 # the --recheck option to rerun configure.
18336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18338 # following values.
18342 # The following way of writing the cache mishandles newlines in values,
18343 # but we know of no workaround that is simple, portable, and efficient.
18344 # So, we kill variables containing newlines.
18345 # Ultrix sh set writes to stderr and can't be redirected directly,
18346 # and sets the high bit in the cache file unless we assign to the vars.
18348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18349 eval ac_val=\$$ac_var
18353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18354 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18357 _ | IFS | as_nl) ;; #(
18358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18359 *) { eval $ac_var=; unset $ac_var;} ;;
18365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18366 *${as_nl}ac_space=\ *)
18367 # `set' does not quote correctly, so add quotes: double-quote
18368 # substitution turns \\\\ into \\, and sed turns \\ into \.
18371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18374 # `set' quotes correctly as required by POSIX, so do not add quotes.
18375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18389 if test -w "$cache_file"; then
18390 if test "x$cache_file" != "x/dev/null"; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18392 $as_echo "$as_me: updating cache $cache_file" >&6;}
18393 if test ! -f "$cache_file" || test -h "$cache_file"; then
18394 cat confcache >"$cache_file"
18396 case $cache_file in #(
18398 mv -f confcache "$cache_file"$$ &&
18399 mv -f "$cache_file"$$ "$cache_file" ;; #(
18401 mv -f confcache "$cache_file" ;;
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18407 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18413 # Let make expand exec_prefix.
18414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18416 # Transform confdefs.h into DEFS.
18417 # Protect against shell expansion while executing Makefile rules.
18418 # Protect against Makefile macro expansion.
18420 # If the first sed substitution is executed (which looks for macros that
18421 # take arguments), then branch to the quote section. Otherwise,
18422 # look for a macro that doesn't take arguments.
18432 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18434 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18438 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18451 DEFS=`sed -n "$ac_script" confdefs.h`
18457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18458 # 1. Remove the extension, and $U if already installed.
18459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18462 # will be set to the directory where LIBOBJS objects are built.
18463 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18464 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18466 LIBOBJS=$ac_libobjs
18468 LTLIBOBJS=$ac_ltlibobjs
18472 : "${CONFIG_STATUS=./config.status}"
18474 ac_clean_files_save=$ac_clean_files
18475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18479 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18481 # Generated by $as_me.
18482 # Run this file to recreate the current configuration.
18483 # Compiler output produced by configure, useful for debugging
18484 # configure, is in config.log if it exists.
18487 ac_cs_recheck=false
18490 SHELL=\${CONFIG_SHELL-$SHELL}
18493 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18494 ## -------------------- ##
18495 ## M4sh Initialization. ##
18496 ## -------------------- ##
18498 # Be more Bourne compatible
18499 DUALCASE=1; export DUALCASE # for MKS sh
18500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18503 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18504 # is contrary to our usage. Disable this feature.
18505 alias -g '${1+"$@"}'='"$@"'
18506 setopt NO_GLOB_SUBST
18508 case `(set -o) 2>/dev/null` in #(
18520 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18521 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18524 # Prefer a ksh shell builtin over an external printf program on Solaris,
18525 # but without wasting forks for bash or zsh.
18526 if test -z "$BASH_VERSION$ZSH_VERSION" \
18527 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18528 as_echo='print -r --'
18529 as_echo_n='print -rn --'
18530 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18531 as_echo='printf %s\n'
18532 as_echo_n='printf %s'
18534 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18535 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18536 as_echo_n='/usr/ucb/echo -n'
18538 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18539 as_echo_n_body='eval
18543 expr "X$arg" : "X\\(.*\\)$as_nl";
18544 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18546 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18548 export as_echo_n_body
18549 as_echo_n='sh -c $as_echo_n_body as_echo'
18551 export as_echo_body
18552 as_echo='sh -c $as_echo_body as_echo'
18555 # The user is always right.
18556 if test "${PATH_SEPARATOR+set}" != set; then
18558 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18559 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18566 # We need space, tab and new line, in precisely that order. Quoting is
18567 # there to prevent editors from complaining about space-tab.
18568 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18569 # splitting by setting IFS to empty value.)
18572 # Find who we are. Look in the path if we contain no directory separator.
18575 *[\\/]* ) as_myself=$0 ;;
18576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18577 for as_dir in $PATH
18580 test -z "$as_dir" && as_dir=.
18581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18587 # We did not find ourselves, most probably we were run as `sh COMMAND'
18588 # in which case we are not to be found in the path.
18589 if test "x$as_myself" = x; then
18592 if test ! -f "$as_myself"; then
18593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18597 # Unset variables that we do not need and which cause bugs (e.g. in
18598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18599 # suppresses any "Segmentation fault" message there. '((' could
18600 # trigger a bug in pdksh 5.2.14.
18601 for as_var in BASH_ENV ENV MAIL MAILPATH
18602 do eval test x\${$as_var+set} = xset \
18603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18619 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18620 # ----------------------------------------
18621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18623 # script with STATUS, using 1 if that was 0.
18626 as_status=$1; test $as_status -eq 0 && as_status=1
18628 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18631 $as_echo "$as_me: error: $2" >&2
18632 as_fn_exit $as_status
18636 # as_fn_set_status STATUS
18637 # -----------------------
18638 # Set $? to STATUS, without forking.
18639 as_fn_set_status ()
18642 } # as_fn_set_status
18644 # as_fn_exit STATUS
18645 # -----------------
18646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18650 as_fn_set_status $1
18656 # Portably unset VAR.
18659 { eval $1=; unset $1;}
18661 as_unset=as_fn_unset
18662 # as_fn_append VAR VALUE
18663 # ----------------------
18664 # Append the text in VALUE to the end of the definition contained in VAR. Take
18665 # advantage of any shell optimizations that allow amortized linear growth over
18666 # repeated appends, instead of the typical quadratic growth present in naive
18668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18669 eval 'as_fn_append ()
18680 # as_fn_arith ARG...
18681 # ------------------
18682 # Perform arithmetic evaluation on the ARGs, and store the result in the
18683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18684 # must be portable across $(()) and expr.
18685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18686 eval 'as_fn_arith ()
18693 as_val=`expr "$@" || test $? -eq 1`
18698 if expr a : '\(a\)' >/dev/null 2>&1 &&
18699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18706 as_basename=basename
18711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18717 as_me=`$as_basename -- "$0" ||
18718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18719 X"$0" : 'X\(//\)$' \| \
18720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18722 sed '/^.*\/\([^/][^/]*\)\/*$/{
18736 # Avoid depending upon Character Ranges.
18737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18740 as_cr_digits='0123456789'
18741 as_cr_alnum=$as_cr_Letters$as_cr_digits
18743 ECHO_C= ECHO_N= ECHO_T=
18744 case `echo -n x` in #(((((
18746 case `echo 'xy\c'` in
18747 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18756 rm -f conf$$ conf$$.exe conf$$.file
18757 if test -d conf$$.dir; then
18758 rm -f conf$$.dir/conf$$.file
18761 mkdir conf$$.dir 2>/dev/null
18763 if (echo >conf$$.file) 2>/dev/null; then
18764 if ln -s conf$$.file conf$$ 2>/dev/null; then
18766 # ... but there are two gotchas:
18767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18769 # In both cases, we have to default to `cp -pR'.
18770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18772 elif ln conf$$.file conf$$ 2>/dev/null; then
18780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18781 rmdir conf$$.dir 2>/dev/null
18786 # Create "$as_dir" as a directory, including parents if necessary.
18791 -*) as_dir=./$as_dir;;
18793 test -d "$as_dir" || eval $as_mkdir_p || {
18797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18798 *) as_qdir=$as_dir;;
18800 as_dirs="'$as_qdir' $as_dirs"
18801 as_dir=`$as_dirname -- "$as_dir" ||
18802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18803 X"$as_dir" : 'X\(//\)[^/]' \| \
18804 X"$as_dir" : 'X\(//\)$' \| \
18805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18806 $as_echo X"$as_dir" |
18807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18811 /^X\(\/\/\)[^/].*/{
18824 test -d "$as_dir" && break
18826 test -z "$as_dirs" || eval "mkdir $as_dirs"
18827 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18831 if mkdir -p . 2>/dev/null; then
18832 as_mkdir_p='mkdir -p "$as_dir"'
18834 test -d ./-p && rmdir ./-p
18839 # as_fn_executable_p FILE
18840 # -----------------------
18841 # Test if FILE is an executable regular file.
18842 as_fn_executable_p ()
18844 test -f "$1" && test -x "$1"
18845 } # as_fn_executable_p
18846 as_test_x='test -x'
18847 as_executable_p=as_fn_executable_p
18849 # Sed expression to map a string onto a valid CPP name.
18850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18852 # Sed expression to map a string onto a valid variable name.
18853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18857 ## ----------------------------------- ##
18858 ## Main body of $CONFIG_STATUS script. ##
18859 ## ----------------------------------- ##
18861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18864 # Save the log message, to keep $0 and so on meaningful, and to
18865 # report actual input values of CONFIG_FILES etc. instead of their
18866 # values after options handling.
18868 This file was extended by $as_me, which was
18869 generated by GNU Autoconf 2.69. Invocation command line was
18871 CONFIG_FILES = $CONFIG_FILES
18872 CONFIG_HEADERS = $CONFIG_HEADERS
18873 CONFIG_LINKS = $CONFIG_LINKS
18874 CONFIG_COMMANDS = $CONFIG_COMMANDS
18877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18882 case $ac_config_files in *"
18883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18889 # Files that config.status was made for.
18890 config_files="$ac_config_files"
18894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18896 \`$as_me' instantiates files and other configuration actions
18897 from templates according to the current configuration. Unless the files
18898 and actions are specified as TAGs, all are instantiated by default.
18900 Usage: $0 [OPTION]... [TAG]...
18902 -h, --help print this help, then exit
18903 -V, --version print version number and configuration settings, then exit
18904 --config print configuration, then exit
18905 -q, --quiet, --silent
18906 do not print progress messages
18907 -d, --debug don't remove temporary files
18908 --recheck update $as_me by reconfiguring in the same conditions
18909 --file=FILE[:TEMPLATE]
18910 instantiate the configuration file FILE
18912 Configuration files:
18915 Report bugs to the package provider."
18918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18922 configured by $0, generated by GNU Autoconf 2.69,
18923 with options \\"\$ac_cs_config\\"
18925 Copyright (C) 2012 Free Software Foundation, Inc.
18926 This config.status script is free software; the Free Software Foundation
18927 gives unlimited permission to copy, distribute and modify it."
18933 test -n "\$AWK" || AWK=awk
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 # The default lists apply if the user does not specify any file.
18943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18960 # Handling of the options.
18961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18964 $as_echo "$ac_cs_version"; exit ;;
18965 --config | --confi | --conf | --con | --co | --c )
18966 $as_echo "$ac_cs_config"; exit ;;
18967 --debug | --debu | --deb | --de | --d | -d )
18969 --file | --fil | --fi | --f )
18972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18973 '') as_fn_error $? "missing file argument" ;;
18975 as_fn_append CONFIG_FILES " '$ac_optarg'"
18976 ac_need_defaults=false;;
18977 --he | --h | --help | --hel | -h )
18978 $as_echo "$ac_cs_usage"; exit ;;
18979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18983 # This is an error.
18984 -*) as_fn_error $? "unrecognized option: \`$1'
18985 Try \`$0 --help' for more information." ;;
18987 *) as_fn_append ac_config_targets " $1"
18988 ac_need_defaults=false ;;
18994 ac_configure_extra_args=
18996 if $ac_cs_silent; then
18998 ac_configure_extra_args="$ac_configure_extra_args --silent"
19002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19003 if \$ac_cs_recheck; then
19004 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19006 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19007 CONFIG_SHELL='$SHELL'
19008 export CONFIG_SHELL
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19018 ## Running $as_me. ##
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 extrasub_build="$extrasub_build"
19029 extrasub_host="$extrasub_host"
19030 extrasub_target="$extrasub_target"
19034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19036 # Handling of arguments.
19037 for ac_config_target in $ac_config_targets
19039 case $ac_config_target in
19040 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19047 # If the user did not use the arguments to specify the items to instantiate,
19048 # then the envvar interface is used. Set only those that are not.
19049 # We use the long form for the default assignment because of an extremely
19050 # bizarre bug on SunOS 4.1.3.
19051 if $ac_need_defaults; then
19052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19055 # Have a temporary directory for convenience. Make it in the build tree
19056 # simply because there is no reason against having it here, and in addition,
19057 # creating and moving files from /tmp can sometimes cause problems.
19058 # Hook for its removal unless debugging.
19059 # Note that there is a small window in which the directory will not be cleaned:
19060 # after its creation but before its name has been assigned to `$tmp'.
19064 trap 'exit_status=$?
19065 : "${ac_tmp:=$tmp}"
19066 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19068 trap 'as_fn_exit 1' 1 2 13 15
19070 # Create a (secure) tmp directory for tmp files.
19073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19077 tmp=./conf$$-$RANDOM
19078 (umask 077 && mkdir "$tmp")
19079 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19082 # Set up the scripts for CONFIG_FILES section.
19083 # No need to generate them if there are no CONFIG_FILES.
19084 # This happens for instance with `./config.status config.h'.
19085 if test -n "$CONFIG_FILES"; then
19087 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19088 ac_cs_awk_getline=:
19089 ac_cs_awk_pipe_init=
19090 ac_cs_awk_read_file='
19091 while ((getline aline < (F[key])) > 0)
19094 ac_cs_awk_pipe_fini=
19096 ac_cs_awk_getline=false
19097 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19098 ac_cs_awk_read_file='
19100 print "cat " F[key] " &&"
19101 '$ac_cs_awk_pipe_init
19102 # The final `:' finishes the AND list.
19103 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19105 ac_cr=`echo X | tr X '\015'`
19106 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19107 # But we know of no other shell where ac_cr would be empty at this
19108 # point, so we can use a bashism as a fallback.
19109 if test "x$ac_cr" = x; then
19110 eval ac_cr=\$\'\\r\'
19112 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19113 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19116 ac_cs_awk_cr=$ac_cr
19119 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19122 # Create commands to substitute file output variables.
19124 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19125 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19126 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19129 } >conf$$files.sh &&
19130 . ./conf$$files.sh ||
19131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19132 rm -f conf$$files.sh
19135 echo "cat >conf$$subs.awk <<_ACEOF" &&
19136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19138 } >conf$$subs.sh ||
19139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19142 for ac_last_try in false false false false false :; do
19143 . ./conf$$subs.sh ||
19144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19147 if test $ac_delim_n = $ac_delim_num; then
19149 elif $ac_last_try; then
19150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19155 rm -f conf$$subs.sh
19157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19162 s/^/S["/; s/!.*/"]=/
19172 s/\(.\{148\}\)..*/\1/
19174 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19186 s/\(.\{148\}\)..*/\1/
19188 s/["\\]/\\&/g; s/^/"/; s/$/"/
19192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19197 ' <conf$$subs.awk | sed '
19202 ' >>$CONFIG_STATUS || ac_write_fail=1
19203 rm -f conf$$subs.awk
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19206 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19207 for (key in S) S_is_set[key] = 1
19209 \$ac_cs_awk_pipe_init
19213 nfields = split(line, field, "@")
19215 len = length(field[1])
19216 for (i = 2; i < nfields; i++) {
19218 keylen = length(key)
19219 if (S_is_set[key]) {
19221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19222 len += length(value) + length(field[++i])
19227 if (nfields == 3 && !substed) {
19229 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19230 \$ac_cs_awk_read_file
19236 \$ac_cs_awk_pipe_fini
19239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19241 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19244 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19245 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19248 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19249 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19250 # trailing colons and then remove the whole line if VPATH becomes empty
19251 # (actually we leave an empty line to preserve line numbers).
19252 if test "x$srcdir" = x.; then
19253 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19272 fi # test -n "$CONFIG_FILES"
19275 eval set X " :F $CONFIG_FILES "
19280 :[FHLC]) ac_mode=$ac_tag; continue;;
19282 case $ac_mode$ac_tag in
19284 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19285 :[FH]-) ac_tag=-:-;;
19286 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19303 -) ac_f="$ac_tmp/stdin";;
19304 *) # Look for the file first in the build tree, then in the source tree
19305 # (if the path is not absolute). The absolute path cannot be DOS-style,
19306 # because $ac_f cannot contain `:'.
19310 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19312 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19314 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19315 as_fn_append ac_file_inputs " '$ac_f'"
19318 # Let's still pretend it is `configure' which instantiates (i.e., don't
19319 # use $as_me), people would be surprised to read:
19320 # /* config.h. Generated by config.status. */
19321 configure_input='Generated from '`
19322 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19324 if test x"$ac_file" != x-; then
19325 configure_input="$ac_file. $configure_input"
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19327 $as_echo "$as_me: creating $ac_file" >&6;}
19329 # Neutralize special characters interpreted by sed in replacement strings.
19330 case $configure_input in #(
19331 *\&* | *\|* | *\\* )
19332 ac_sed_conf_input=`$as_echo "$configure_input" |
19333 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19334 *) ac_sed_conf_input=$configure_input;;
19338 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19344 ac_dir=`$as_dirname -- "$ac_file" ||
19345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19346 X"$ac_file" : 'X\(//\)[^/]' \| \
19347 X"$ac_file" : 'X\(//\)$' \| \
19348 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19349 $as_echo X"$ac_file" |
19350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19354 /^X\(\/\/\)[^/].*/{
19367 as_dir="$ac_dir"; as_fn_mkdir_p
19371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19374 # A ".." for each directory in $ac_dir_suffix.
19375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19376 case $ac_top_builddir_sub in
19377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19381 ac_abs_top_builddir=$ac_pwd
19382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19383 # for backward compatibility:
19384 ac_top_builddir=$ac_top_build_prefix
19387 .) # We are building in place.
19389 ac_top_srcdir=$ac_top_builddir_sub
19390 ac_abs_top_srcdir=$ac_pwd ;;
19391 [\\/]* | ?:[\\/]* ) # Absolute name.
19392 ac_srcdir=$srcdir$ac_dir_suffix;
19393 ac_top_srcdir=$srcdir
19394 ac_abs_top_srcdir=$srcdir ;;
19395 *) # Relative name.
19396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19397 ac_top_srcdir=$ac_top_build_prefix$srcdir
19398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19416 # If the template does not know about datarootdir, expand it.
19417 # FIXME: This hack should be removed a few years after 2.60.
19418 ac_datarootdir_hack=; ac_datarootdir_seen=
19429 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19430 *datarootdir*) ac_datarootdir_seen=yes;;
19431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19433 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19436 ac_datarootdir_hack='
19437 s&@datadir@&$datadir&g
19438 s&@docdir@&$docdir&g
19439 s&@infodir@&$infodir&g
19440 s&@localedir@&$localedir&g
19441 s&@mandir@&$mandir&g
19442 s&\\\${datarootdir}&$datarootdir&g' ;;
19446 # Neutralize VPATH when `$srcdir' = `.'.
19447 # Shell code in configure.ac might set extrasub.
19448 # FIXME: do we really want to maintain this feature?
19449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19450 ac_sed_extra="$ac_vpsub
19453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19456 s|@configure_input@|$ac_sed_conf_input|;t t
19457 s&@top_builddir@&$ac_top_builddir_sub&;t t
19458 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19459 s&@srcdir@&$ac_srcdir&;t t
19460 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19461 s&@top_srcdir@&$ac_top_srcdir&;t t
19462 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19463 s&@builddir@&$ac_builddir&;t t
19464 s&@abs_builddir@&$ac_abs_builddir&;t t
19465 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19466 s&@INSTALL@&$ac_INSTALL&;t t
19467 $ac_datarootdir_hack
19469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19470 if $ac_cs_awk_getline; then
19471 $AWK -f "$ac_tmp/subs.awk"
19473 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19475 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19478 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19480 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19482 which seems to be undefined. Please make sure it is defined" >&5
19483 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19484 which seems to be undefined. Please make sure it is defined" >&2;}
19486 rm -f "$ac_tmp/stdin"
19488 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19489 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19499 case $ac_file$ac_mode in
19500 "Makefile":F) sed "$extrasub_build" Makefile |
19501 sed "$extrasub_host" |
19502 sed "$extrasub_target" > mf$$
19503 mv -f mf$$ Makefile ;;
19511 ac_clean_files=$ac_clean_files_save
19513 test $ac_write_fail = 0 ||
19514 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19517 # configure is writing to config.log, and then calls config.status.
19518 # config.status does its own redirection, appending to config.log.
19519 # Unfortunately, on DOS this fails, as config.log is still kept open
19520 # by configure, so config.status won't be able to write to it; its
19521 # output is simply discarded. So we exec the FD to /dev/null,
19522 # effectively closing config.log, so it can be properly (re)opened and
19523 # appended to by config.status. When coming back to configure, we
19524 # need to make the FD available again.
19525 if test "$no_create" != yes; then
19527 ac_config_status_args=
19528 test "$silent" = yes &&
19529 ac_config_status_args="$ac_config_status_args --quiet"
19531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19534 # would make configure fail if this is the last instruction.
19535 $ac_cs_success || as_fn_exit 1
19537 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19539 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}