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
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
708 extra_liboffloadmic_configure_flags
735 TOPLEVEL_CONFIGURE_ARGUMENTS
763 program_transform_name
774 ac_subst_files='serialization_dependencies
780 enable_option_checking
783 enable_as_accelerator_for
784 enable_offload_targets
787 enable_compressed_debug_sections
789 enable_libquadmath_support
813 enable_isl_version_check
815 enable_linker_plugin_configure_flags
816 enable_linker_plugin_flags
818 enable_stage1_languages
821 with_target_bdw_gc_include
822 with_target_bdw_gc_lib
823 with_gcc_major_version_only
825 with_debug_prefix_map
828 enable_serial_configure
829 with_build_time_tools
830 enable_maintainer_mode
831 enable_stage1_checking
834 ac_precious_vars='build_alias
882 # Initialize some variables set by options.
884 ac_init_version=false
885 ac_unrecognized_opts=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
896 program_transform_name=s,x,x,
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
971 cache_file=config.cache ;;
973 -datadir | --datadir | --datadi | --datad)
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1245 eval with_$ac_useropt=no ;;
1248 # Obsolete; use --with-x.
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1316 # Be sure to have absolute directory names.
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343 test "$silent" = yes && exec 6>/dev/null
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 as_fn_error $? "path to source, $srcdir, contains spaces"
1411 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1427 \`configure' configures this package to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1496 if test -n "$ac_init_help"; then
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET[=DIR]. Use optional path to find
1510 offload target compiler during the build
1511 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1512 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1513 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1514 Enable compressed debug sections for gas, gold or ld
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support for Fortran
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
1521 --disable-libstdcxx do not build libstdc++-v3 directory
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic [ARG={no,host,target}]
1524 --enable-bootstrap enable bootstrapping [yes if native build]
1525 --disable-isl-version-check
1526 disable check for isl version
1527 --enable-lto enable link time optimization support
1528 --enable-linker-plugin-configure-flags=FLAGS
1529 additional flags for configuring linker plugins
1531 --enable-linker-plugin-flags=FLAGS
1532 additional flags for configuring and building linker
1534 --enable-host-shared build host code as shared libraries
1535 --enable-stage1-languages[=all]
1536 choose additional languages to build during stage1.
1537 Mostly useful for compiler development
1538 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1540 --enable-vtable-verify Enable vtable verification feature
1541 --enable-serial-[{host,target,build}-]configure
1542 force sequential configuration of sub-packages for
1543 the host, target or build machine, or all
1545 --enable-maintainer-mode
1546 enable make rules and dependencies not useful (and
1547 sometimes confusing) to the casual installer
1548 --enable-stage1-checking[=all]
1549 choose additional checking for stage1 of the
1551 --enable-werror enable -Werror in bootstrap stage2 and later
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-build-libsubdir=DIR Directory where to find libraries for build system
1557 --with-system-zlib use installed libz
1558 --with-mpc=PATH specify prefix directory for installed MPC package.
1559 Equivalent to --with-mpc-include=PATH/include plus
1560 --with-mpc-lib=PATH/lib
1561 --with-mpc-include=PATH specify directory for installed MPC include files
1562 --with-mpc-lib=PATH specify directory for the installed MPC library
1563 --with-mpfr-dir=PATH this option has been REMOVED
1564 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1565 Equivalent to --with-mpfr-include=PATH/include plus
1566 --with-mpfr-lib=PATH/lib
1567 --with-mpfr-include=PATH
1568 specify directory for installed MPFR include files
1569 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1570 --with-gmp-dir=PATH this option has been REMOVED
1571 --with-gmp=PATH specify prefix directory for the installed GMP
1572 package. Equivalent to
1573 --with-gmp-include=PATH/include plus
1574 --with-gmp-lib=PATH/lib
1575 --with-gmp-include=PATH specify directory for installed GMP include files
1576 --with-gmp-lib=PATH specify directory for the installed GMP library
1577 --with-stage1-libs=LIBS libraries for stage1
1578 --with-stage1-ldflags=FLAGS
1579 linker flags for stage1
1580 --with-boot-libs=LIBS libraries for stage2 and later
1581 --with-boot-ldflags=FLAGS
1582 linker flags for stage2 and later
1583 --with-isl=PATH Specify prefix directory for the installed isl
1584 package. Equivalent to
1585 --with-isl-include=PATH/include plus
1586 --with-isl-lib=PATH/lib
1587 --with-isl-include=PATH Specify directory for installed isl include files
1588 --with-isl-lib=PATH Specify the directory for the installed isl library
1589 --with-target-bdw-gc=PATHLIST
1590 specify prefix directory for installed bdw-gc
1591 package. Equivalent to
1592 --with-target-bdw-gc-include=PATH/include plus
1593 --with-target-bdw-gc-lib=PATH/lib
1594 --with-target-bdw-gc-include=PATHLIST
1595 specify directories for installed bdw-gc include
1597 --with-target-bdw-gc-lib=PATHLIST
1598 specify directories for installed bdw-gc library
1599 --with-gcc-major-version-only
1600 use only GCC major number in filesystem paths
1601 --with-build-sysroot=SYSROOT
1602 use sysroot as the system root during the build
1603 --with-debug-prefix-map='A=B C=D ...'
1604 map A to B, C to D ... in debug information
1605 --with-build-config='NAME NAME2...'
1606 use config/NAME.mk build configuration
1607 --with-build-time-tools=PATH
1608 use given path to find target tools during the build
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CXX C++ compiler command
1619 CXXFLAGS C++ compiler flags
1621 additional configure arguments for build directories
1623 additional configure arguments for host directories
1625 additional configure arguments for target directories
1628 DLLTOOL DLLTOOL for the host
1630 LIPO LIPO for the host
1632 RANLIB RANLIB for the host
1633 STRIP STRIP for the host
1634 WINDRES WINDRES for the host
1635 WINDMC WINDMC for the host
1636 OBJCOPY OBJCOPY for the host
1637 OBJDUMP OBJDUMP for the host
1638 READELF READELF for the host
1646 GFORTRAN for the target
1656 DLLTOOL for the target
1664 OBJCOPY for the target
1666 OBJDUMP for the target
1668 RANLIB for the target
1670 READELF for the target
1672 STRIP for the target
1674 WINDRES for the target
1676 WINDMC for the target
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1711 .) # We are building in place.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1745 generated by GNU Autoconf 2.69
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_cxx_try_link LINENO
1835 # -------------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest$ac_exeext
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_cxx_try_link
1880 # ac_fn_c_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_c_try_link
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1929 It was created by $as_me, which was
1930 generated by GNU Autoconf 2.69. Invocation command line was
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 $as_echo "PATH: $as_dir"
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_must_keep_next=false
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 as_fn_append ac_configure_args1 " '$ac_arg'"
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 -* ) ac_must_keep_next=true ;;
2022 as_fn_append ac_configure_args " '$ac_arg'"
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log. We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2040 $as_echo "## ---------------- ##
2041 ## Cache variables. ##
2042 ## ---------------- ##"
2044 # The following way of writing the cache mishandles newlines in values,
2046 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2047 eval ac_val=\$$ac_var
2051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 _ | IFS | as_nl) ;; #(
2056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2057 *) { eval $ac_var=; unset $ac_var;} ;;
2062 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2063 *${as_nl}ac_space=\ *)
2065 "s/'\''/'\''\\\\'\'''\''/g;
2066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076 $as_echo "## ----------------- ##
2077 ## Output variables. ##
2078 ## ----------------- ##"
2080 for ac_var in $ac_subst_vars
2082 eval ac_val=\$$ac_var
2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086 $as_echo "$ac_var='\''$ac_val'\''"
2090 if test -n "$ac_subst_files"; then
2091 $as_echo "## ------------------- ##
2092 ## File substitutions. ##
2093 ## ------------------- ##"
2095 for ac_var in $ac_subst_files
2097 eval ac_val=\$$ac_var
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 $as_echo "$ac_var='\''$ac_val'\''"
2106 if test -s confdefs.h; then
2107 $as_echo "## ----------- ##
2114 test "$ac_signal" != 0 &&
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 for ac_signal in 1 2 13 15; do
2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2130 $as_echo "/* confdefs.h */" > confdefs.h
2132 # Predefined preprocessor variables.
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2163 if test -n "$CONFIG_SITE"; then
2164 # We do not want a PATH search for config.site.
2165 case $CONFIG_SITE in #((
2166 -*) ac_site_file1=./$CONFIG_SITE;;
2167 */*) ac_site_file1=$CONFIG_SITE;;
2168 *) ac_site_file1=./$CONFIG_SITE;;
2170 elif test "x$prefix" != xNONE; then
2171 ac_site_file1=$prefix/share/config.site
2172 ac_site_file2=$prefix/etc/config.site
2174 ac_site_file1=$ac_default_prefix/share/config.site
2175 ac_site_file2=$ac_default_prefix/etc/config.site
2177 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2179 test "x$ac_site_file" = xNONE && continue
2180 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2182 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2183 sed 's/^/| /' "$ac_site_file" >&5
2185 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 as_fn_error $? "failed to load site script $ac_site_file
2188 See \`config.log' for more details" "$LINENO" 5; }
2192 if test -r "$cache_file"; then
2193 # Some versions of bash will fail to source /dev/null (special files
2194 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2195 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2197 $as_echo "$as_me: loading cache $cache_file" >&6;}
2199 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2200 *) . "./$cache_file";;
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2205 $as_echo "$as_me: creating cache $cache_file" >&6;}
2209 # Check that the precious variables saved in the cache have kept the same
2211 ac_cache_corrupted=false
2212 for ac_var in $ac_precious_vars; do
2213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2214 eval ac_new_set=\$ac_env_${ac_var}_set
2215 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2216 eval ac_new_val=\$ac_env_${ac_var}_value
2217 case $ac_old_set,$ac_new_set in
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2220 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2221 ac_cache_corrupted=: ;;
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2224 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2225 ac_cache_corrupted=: ;;
2228 if test "x$ac_old_val" != "x$ac_new_val"; then
2229 # differences in whitespace do not lead to failure.
2230 ac_old_val_w=`echo x $ac_old_val`
2231 ac_new_val_w=`echo x $ac_new_val`
2232 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2234 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2235 ac_cache_corrupted=:
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2238 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2239 eval $ac_var=\$ac_old_val
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2242 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2244 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 # Pass precious variables to config.status.
2248 if test "$ac_new_set" = set; then
2250 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 *) ac_arg=$ac_var=$ac_new_val ;;
2253 case " $ac_configure_args " in
2254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2255 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2259 if $ac_cache_corrupted; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2263 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2264 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2266 ## -------------------- ##
2267 ## Main body of script. ##
2268 ## -------------------- ##
2271 ac_cpp='$CPP $CPPFLAGS'
2272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 # if PWD already has a value, it is probably wrong.
2285 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2287 # Export original configure arguments for use by sub-configures.
2288 # Quote arguments with shell meta charatcers.
2289 TOPLEVEL_CONFIGURE_ARGUMENTS=
2290 set -- "$progname" "$@"
2294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2296 # if the argument is of the form -foo=baz, quote the baz part only
2297 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2300 # Add the quoted argument to the list.
2301 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2303 if test "$silent" = yes; then
2304 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2306 # Remove the initial space we just introduced and, as these will be
2307 # expanded by make, quote '$'.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2311 # Find the build, host, and target systems.
2313 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2314 if test -f "$ac_dir/install-sh"; then
2316 ac_install_sh="$ac_aux_dir/install-sh -c"
2318 elif test -f "$ac_dir/install.sh"; then
2320 ac_install_sh="$ac_aux_dir/install.sh -c"
2322 elif test -f "$ac_dir/shtool"; then
2324 ac_install_sh="$ac_aux_dir/shtool install -c"
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if ${ac_cv_build+:} false; then :
2348 $as_echo_n "(cached) " >&6
2350 ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2363 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2366 ac_save_IFS=$IFS; IFS='-'
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379 case ${build_alias} in
2380 "") build_noncanonical=${build} ;;
2381 *) build_noncanonical=${build_alias} ;;
2386 case ${host_alias} in
2387 "") host_noncanonical=${build_noncanonical} ;;
2388 *) host_noncanonical=${host_alias} ;;
2393 case ${target_alias} in
2394 "") target_noncanonical=${host_noncanonical} ;;
2395 *) target_noncanonical=${target_alias} ;;
2401 test "$host_noncanonical" = "$target_noncanonical" &&
2402 test "$program_prefix$program_suffix$program_transform_name" = \
2404 program_transform_name=s,y,y,
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2407 $as_echo_n "checking host system type... " >&6; }
2408 if ${ac_cv_host+:} false; then :
2409 $as_echo_n "(cached) " >&6
2411 if test "x$host_alias" = x; then
2412 ac_cv_host=$ac_cv_build
2414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2420 $as_echo "$ac_cv_host" >&6; }
2423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2426 ac_save_IFS=$IFS; IFS='-'
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2440 $as_echo_n "checking target system type... " >&6; }
2441 if ${ac_cv_target+:} false; then :
2442 $as_echo_n "(cached) " >&6
2444 if test "x$target_alias" = x; then
2445 ac_cv_target=$ac_cv_host
2447 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2456 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2458 target=$ac_cv_target
2459 ac_save_IFS=$IFS; IFS='-'
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2469 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2472 # The aliases save the names the user supplied, while $host etc.
2473 # will get canonicalized.
2474 test -n "$target_alias" &&
2475 test "$program_prefix$program_suffix$program_transform_name" = \
2477 program_prefix=${target_alias}-
2479 test "$program_prefix" != NONE &&
2480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2481 # Use a double $ so make ignores it.
2482 test "$program_suffix" != NONE &&
2483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484 # Double any \ or $.
2485 # By default was `s,x,x', remove it if useless.
2486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491 # Get 'install' or 'install-sh' and its variants.
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 # Reject install programs that cannot install multiple files.
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2508 if test -z "$INSTALL"; then
2509 if ${ac_cv_path_install+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in #((
2519 ./ | .// | /[cC]/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530 if test $ac_prog = install &&
2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # AIX install. It has an incompatible calling convention.
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2539 rm -rf conftest.one conftest.two conftest.dir
2540 echo one > conftest.one
2541 echo two > conftest.two
2543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544 test -s conftest.one && test -s conftest.two &&
2545 test -s conftest.dir/conftest.one &&
2546 test -s conftest.dir/conftest.two
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 rm -rf conftest.one conftest.two conftest.dir
2564 if test "${ac_cv_path_install+set}" = set; then
2565 INSTALL=$ac_cv_path_install
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for INSTALL within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 INSTALL=$ac_install_sh
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575 $as_echo "$INSTALL" >&6; }
2577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578 # It thinks the first close brace ends the variable substitution.
2579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2586 $as_echo_n "checking whether ln works... " >&6; }
2587 if ${acx_cv_prog_LN+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 rm -f conftestdata_t
2591 echo >conftestdata_f
2592 if ln conftestdata_f conftestdata_t 2>/dev/null
2598 rm -f conftestdata_f conftestdata_t
2601 if test $acx_cv_prog_LN = no; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2604 $as_echo "no, using $LN" >&6; }
2606 LN="$acx_cv_prog_LN"
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2612 $as_echo_n "checking whether ln -s works... " >&6; }
2614 if test "$LN_S" = "ln -s"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2619 $as_echo "no, using $LN_S" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2623 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2624 if ${ac_cv_path_SED+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2628 for ac_i in 1 2 3 4 5 6 7; do
2629 ac_script="$ac_script$as_nl$ac_script"
2631 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2632 { ac_script=; unset ac_script;}
2633 if test -z "$SED"; then
2634 ac_path_SED_found=false
2635 # Loop through the user's path and test for each of PROGNAME-LIST
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_prog in sed gsed; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2644 as_fn_executable_p "$ac_path_SED" || continue
2645 # Check for GNU ac_path_SED and select it if it is found.
2646 # Check for GNU $ac_path_SED
2647 case `"$ac_path_SED" --version 2>&1` in
2649 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2652 $as_echo_n 0123456789 >"conftest.in"
2655 cat "conftest.in" "conftest.in" >"conftest.tmp"
2656 mv "conftest.tmp" "conftest.in"
2657 cp "conftest.in" "conftest.nl"
2658 $as_echo '' >> "conftest.nl"
2659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2661 as_fn_arith $ac_count + 1 && ac_count=$as_val
2662 if test $ac_count -gt ${ac_path_SED_max-0}; then
2663 # Best one so far, save it but keep looking for a better one
2664 ac_cv_path_SED="$ac_path_SED"
2665 ac_path_SED_max=$ac_count
2667 # 10*(2^10) chars as input seems more than enough
2668 test $ac_count -gt 10 && break
2670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2673 $ac_path_SED_found && break 3
2678 if test -z "$ac_cv_path_SED"; then
2679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2687 $as_echo "$ac_cv_path_SED" >&6; }
2688 SED="$ac_cv_path_SED"
2691 for ac_prog in gawk mawk nawk awk
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_AWK+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test -n "$AWK"; then
2701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_AWK="$ac_prog"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$AWK"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723 $as_echo "$AWK" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2730 test -n "$AWK" && break
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2736 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2738 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2739 INSTALL="${srcpwd}/install-sh -c"
2742 # Set srcdir to "." if that's what it is.
2743 # This is important for multilib support.
2745 if test "${pwd}" = "${srcpwd}" ; then
2753 ### To add a new directory to the tree, first choose whether it is a target
2754 ### or a host dependent tool. Then put it into the appropriate list
2755 ### (library or tools, host or target), doing a dependency sort.
2757 # Subdirs will be configured in the order listed in build_configdirs,
2758 # configdirs, or target_configdirs; see the serialization section below.
2760 # Dependency sorting is only needed when *configuration* must be done in
2761 # a particular order. In all cases a dependency should be specified in
2762 # the Makefile, whether or not it's implicitly specified here.
2764 # Double entries in build_configdirs, configdirs, or target_configdirs may
2765 # cause circular dependencies and break everything horribly.
2767 # these library is used by various programs built for the build
2770 build_libs="build-libiberty build-libcpp"
2772 # these tools are built for the build environment
2773 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2775 # these libraries are used by various programs built for the host environment
2777 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2779 # these tools are built for the host environment
2780 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2781 # know that we are building the simulator.
2782 # binutils, gas and ld appear in that order because it makes sense to run
2783 # "make check" in that particular order.
2784 # If --enable-gold is used, "gold" may replace "ld".
2785 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2787 # these libraries are built for the target environment, and are built after
2788 # the host libraries and the host tools (which may be a cross compiler)
2789 # Note that libiberty is not a target library.
2790 target_libraries="target-libgcc \
2791 target-libbacktrace \
2795 target-liboffloadmic \
2796 target-libhsail-rt \
2799 target-libstdc++-v3 \
2800 target-libsanitizer \
2803 target-libquadmath \
2804 target-libgfortran \
2811 # these tools are built using the target libraries, and are intended to
2812 # run only in the target environment
2814 # note: any program that *uses* libraries that are in the "target_libraries"
2815 # list belongs in this list.
2817 target_tools="target-rda"
2819 ################################################################################
2821 ## All tools belong in one of the four categories, and are assigned above
2822 ## We assign ${configdirs} this way to remove all embedded newlines. This
2823 ## is important because configure will choke if they ever get through.
2824 ## ${configdirs} is directories we build using the host tools.
2825 ## ${target_configdirs} is directories we build using the target tools.
2826 configdirs=`echo ${host_libs} ${host_tools}`
2827 target_configdirs=`echo ${target_libraries} ${target_tools}`
2828 build_configdirs=`echo ${build_libs} ${build_tools}`
2832 ################################################################################
2834 srcname="gnu development package"
2836 # This gets set non-empty for some net releases of packages.
2839 # Define is_cross_compiler to save on calls to 'test'.
2841 if test x"${host}" = x"${target}" ; then
2842 is_cross_compiler=no
2844 is_cross_compiler=yes
2847 # Find the build and target subdir names.
2849 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2850 # have matching libraries, they should use host libraries: Makefile.tpl
2851 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2852 # However, they still use the build modules, because the corresponding
2853 # host modules (e.g. bison) are only built for the host when bootstrap
2855 # - build_subdir is where we find build modules, and never changes.
2856 # - build_libsubdir is where we find build libraries, and can be overridden.
2858 # Prefix 'build-' so this never conflicts with target_subdir.
2859 build_subdir="build-${build_noncanonical}"
2861 # Check whether --with-build-libsubdir was given.
2862 if test "${with_build_libsubdir+set}" = set; then :
2863 withval=$with_build_libsubdir; build_libsubdir="$withval"
2865 build_libsubdir="$build_subdir"
2868 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2869 if ( test $srcdir = . && test -d gcc ) \
2870 || test -d $srcdir/../host-${host_noncanonical}; then
2871 host_subdir="host-${host_noncanonical}"
2876 target_subdir=${target_noncanonical}
2878 # Be sure to cover against remnants of an in-tree build.
2879 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2880 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2881 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2884 # Skipdirs are removed silently.
2886 # Noconfigdirs are removed loudly.
2890 # Make sure we don't let GNU ld be added if we didn't want it.
2891 if test x$with_gnu_ld = xno ; then
2893 noconfigdirs="$noconfigdirs ld gold"
2897 # Make sure we don't let GNU as be added if we didn't want it.
2898 if test x$with_gnu_as = xno ; then
2900 noconfigdirs="$noconfigdirs gas"
2905 # Check whether --with-system-zlib was given.
2906 if test "${with_system_zlib+set}" = set; then :
2907 withval=$with_system_zlib;
2910 # Make sure we don't let ZLIB be added if we didn't want it.
2911 if test x$with_system_zlib = xyes ; then
2912 use_included_zlib=no
2913 noconfigdirs="$noconfigdirs zlib"
2916 # some tools are so dependent upon X11 that if we're not building with X,
2917 # it's not even worth trying to configure, much less build, that tool.
2920 yes | "") ;; # the default value for this tree is that X11 is available
2922 skipdirs="${skipdirs} tk itcl libgui"
2923 # We won't be able to build gdbtk without X.
2926 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2929 # Some are only suitable for cross toolchains.
2930 # Remove these if host=target.
2931 cross_only="target-libgloss target-newlib target-opcodes"
2933 case $is_cross_compiler in
2934 no) skipdirs="${skipdirs} ${cross_only}" ;;
2937 # If both --with-headers and --with-libs are specified, default to
2939 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2940 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2941 if test x"${with_newlib}" = x ; then
2946 # Recognize --with-newlib/--without-newlib.
2947 case ${with_newlib} in
2948 no) skipdirs="${skipdirs} target-newlib" ;;
2949 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2952 # Check whether --enable-as-accelerator-for was given.
2953 if test "${enable_as_accelerator_for+set}" = set; then :
2954 enableval=$enable_as_accelerator_for;
2958 # Check whether --enable-offload-targets was given.
2959 if test "${enable_offload_targets+set}" = set; then :
2960 enableval=$enable_offload_targets;
2961 if test x"$enable_offload_targets" = x; then
2962 as_fn_error $? "no offload targets specified" "$LINENO" 5
2966 enable_offload_targets=
2970 # Handle --enable-gold, --enable-ld.
2971 # --disable-gold [--enable-ld]
2972 # Build only ld. Default option.
2973 # --enable-gold [--enable-ld]
2974 # Build both gold and ld. Install gold as "ld.gold", install ld
2975 # as "ld.bfd" and "ld".
2976 # --enable-gold=default [--enable-ld]
2977 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2978 # install ld as "ld.bfd".
2979 # --enable-gold[=default] --disable-ld
2980 # Build only gold, which is then installed as both "ld.gold" and "ld".
2981 # --enable-gold --enable-ld=default
2982 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2984 # In other words, ld is default
2985 # --enable-gold=default --enable-ld=default
2989 # Check whether --enable-gold was given.
2990 if test "${enable_gold+set}" = set; then :
2991 enableval=$enable_gold; ENABLE_GOLD=$enableval
2996 case "${ENABLE_GOLD}" in
2998 # Check for ELF target.
3001 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3002 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3003 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3004 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3006 *-*-linux*aout* | *-*-linux*oldld*)
3014 if test "$is_elf" = "yes"; then
3015 # Check for target supported by gold.
3017 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3018 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3019 configdirs="$configdirs gold"
3020 if test x${ENABLE_GOLD} = xdefault; then
3031 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3035 # Check whether --enable-ld was given.
3036 if test "${enable_ld+set}" = set; then :
3037 enableval=$enable_ld; ENABLE_LD=$enableval
3043 case "${ENABLE_LD}" in
3045 if test x${default_ld} != x; then
3046 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3052 if test x${ENABLE_GOLD} != xyes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3054 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3056 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3059 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3064 # Decide the default method for compressing debug sections.
3065 # Provide a configure time option to override our default.
3066 # Check whether --enable-compressed_debug_sections was given.
3067 if test "${enable_compressed_debug_sections+set}" = set; then :
3068 enableval=$enable_compressed_debug_sections;
3069 if test x"$enable_compressed_debug_sections" = xyes; then
3070 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3074 enable_compressed_debug_sections=
3078 # Configure extra directories which are host specific
3082 configdirs="$configdirs libtermcap" ;;
3085 # A target can indicate whether a language isn't supported for some reason.
3086 # Only spaces may be used in this macro; not newlines or tabs.
3087 unsupported_languages=
3089 # Remove more programs from consideration, based on the host or
3090 # target this usually means that a port of the program doesn't
3094 i[3456789]86-*-msdosdjgpp*)
3095 noconfigdirs="$noconfigdirs tcl tk itcl"
3100 # Check whether --enable-libquadmath was given.
3101 if test "${enable_libquadmath+set}" = set; then :
3102 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3104 ENABLE_LIBQUADMATH=yes
3107 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libquadmath"
3112 # Check whether --enable-libquadmath-support was given.
3113 if test "${enable_libquadmath_support+set}" = set; then :
3114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3116 ENABLE_LIBQUADMATH_SUPPORT=yes
3119 enable_libquadmath_support=
3120 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3121 enable_libquadmath_support=no
3125 # Check whether --enable-libada was given.
3126 if test "${enable_libada+set}" = set; then :
3127 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3132 if test "${ENABLE_LIBADA}" != "yes" ; then
3133 noconfigdirs="$noconfigdirs gnattools"
3136 # Check whether --enable-libssp was given.
3137 if test "${enable_libssp+set}" = set; then :
3138 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3144 # Check whether --enable-libstdcxx was given.
3145 if test "${enable_libstdcxx+set}" = set; then :
3146 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3148 ENABLE_LIBSTDCXX=default
3151 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3152 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3155 # If this is accelerator compiler and its target is intelmic we enable
3156 # target liboffloadmic by default. If this is compiler with offloading
3157 # for intelmic we enable host liboffloadmic by default. Otherwise
3158 # liboffloadmic is disabled by default.
3159 # Check whether --enable-liboffloadmic was given.
3160 if test "${enable_liboffloadmic+set}" = set; then :
3161 enableval=$enable_liboffloadmic; case "$enableval" in
3163 enable_liboffloadmic=$enableval ;;
3165 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3168 if test x"$enable_as_accelerator_for" != x; then
3170 *-intelmic-* | *-intelmicemul-*)
3171 enable_liboffloadmic=target
3172 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3175 enable_liboffloadmic=no
3179 case "${enable_offload_targets}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=host
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3185 enable_liboffloadmic=no
3193 # Enable libgomp by default on hosted POSIX systems, and a few others.
3194 if test x$enable_libgomp = x ; then
3196 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3198 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3200 *-*-solaris2* | *-*-hpux11*)
3202 *-*-darwin* | *-*-aix*)
3207 noconfigdirs="$noconfigdirs target-libgomp"
3212 # Disable libatomic on unsupported systems.
3213 if test -d ${srcdir}/libatomic; then
3214 if test x$enable_libatomic = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3216 $as_echo_n "checking for libatomic support... " >&6; }
3217 if (srcdir=${srcdir}/libatomic; \
3218 . ${srcdir}/configure.tgt; \
3219 test -n "$UNSUPPORTED")
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libatomic"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3231 # Disable liboffloadmic on unsupported systems.
3232 if test -d ${srcdir}/liboffloadmic; then
3233 if test x$enable_liboffloadmic != xno; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3235 $as_echo_n "checking for liboffloadmic support... " >&6; }
3236 if (srcdir=${srcdir}/liboffloadmic; \
3237 . ${srcdir}/configure.tgt; \
3238 test -n "$UNSUPPORTED")
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 noconfigdirs="$noconfigdirs target-liboffloadmic"
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3250 # Disable libitm on unsupported systems.
3251 if test -d ${srcdir}/libitm; then
3252 if test x$enable_libitm = x; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3254 $as_echo_n "checking for libitm support... " >&6; }
3255 if (srcdir=${srcdir}/libitm; \
3256 . ${srcdir}/configure.tgt; \
3257 test -n "$UNSUPPORTED")
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 noconfigdirs="$noconfigdirs target-libitm"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3269 # Disable libsanitizer on unsupported systems.
3270 if test -d ${srcdir}/libsanitizer; then
3271 if test x$enable_libsanitizer = x; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3273 $as_echo_n "checking for libsanitizer support... " >&6; }
3274 if (srcdir=${srcdir}/libsanitizer; \
3275 . ${srcdir}/configure.tgt; \
3276 test -n "$UNSUPPORTED")
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 noconfigdirs="$noconfigdirs target-libsanitizer"
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3288 # Disable libvtv on unsupported systems.
3289 if test -d ${srcdir}/libvtv; then
3290 if test x$enable_libvtv = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3292 $as_echo_n "checking for libvtv support... " >&6; }
3293 if (srcdir=${srcdir}/libvtv; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$VTV_SUPPORTED" != "yes")
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libvtv"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3308 # Disable libhsail-rt on unsupported systems.
3309 if test -d ${srcdir}/libhsail-rt; then
3310 if test x$enable_libhsail_rt = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3312 $as_echo_n "checking for libhsail-rt support... " >&6; }
3313 if (srcdir=${srcdir}/libhsail-rt; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 unsupported_languages="$unsupported_languages brig"
3320 # This implicitly disables also target-libhsail-rt as it won't
3321 # get added to the build without BRIG FE.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3330 # Disable libquadmath for some systems.
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3335 # libquadmath is unused on AIX and libquadmath build process use of
3336 # LD_LIBRARY_PATH can break AIX bootstrap.
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libquadmath"
3342 # Disable libssp for some systems.
3345 # No hosted I/O support.
3346 noconfigdirs="$noconfigdirs target-libssp"
3348 powerpc-*-aix* | rs6000-*-aix*)
3349 noconfigdirs="$noconfigdirs target-libssp"
3352 # libssp uses a misaligned load to trigger a fault, but the RL78
3353 # doesn't fault for those - instead, it gives a build-time error
3354 # for explicit misaligned loads.
3355 noconfigdirs="$noconfigdirs target-libssp"
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3363 # Disable libstdc++-v3 for some systems.
3364 # Allow user to override this if they pass --enable-libstdc++-v3
3365 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3368 # VxWorks uses the Dinkumware C++ library.
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 # the C++ libraries don't build on top of CE's C libraries
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 # Disable D on systems where it is known to not work.
3385 # For testing, you can override this with --enable-languages=d.
3386 case ,${enable_languages}, in
3391 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3392 unsupported_languages="$unsupported_languages d"
3398 # Disable libphobos on unsupported systems.
3399 # For testing, you can override this with --enable-libphobos.
3400 if test -d ${srcdir}/libphobos; then
3401 if test x$enable_libphobos = x; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3403 $as_echo_n "checking for libphobos support... " >&6; }
3404 if (srcdir=${srcdir}/libphobos; \
3405 . ${srcdir}/configure.tgt; \
3406 test -n "$UNSUPPORTED")
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 noconfigdirs="$noconfigdirs target-libphobos"
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3418 # Disable Fortran for some systems.
3421 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3422 unsupported_languages="$unsupported_languages fortran"
3426 # Disable libffi for some systems.
3430 i[3456789]86-*-darwin*)
3432 x86_64-*-darwin[912]*)
3435 noconfigdirs="$noconfigdirs target-libffi"
3438 noconfigdirs="$noconfigdirs target-libffi"
3441 noconfigdirs="$noconfigdirs target-libffi"
3444 noconfigdirs="$noconfigdirs target-libffi"
3447 noconfigdirs="$noconfigdirs target-libffi"
3450 noconfigdirs="$noconfigdirs target-libffi"
3453 noconfigdirs="$noconfigdirs target-libffi"
3455 aarch64*-*-freebsd*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3459 noconfigdirs="$noconfigdirs target-libffi"
3462 noconfigdirs="$noconfigdirs target-libffi"
3465 noconfigdirs="$noconfigdirs target-libffi"
3468 noconfigdirs="$noconfigdirs target-libffi"
3470 cris-*-* | crisv32-*-*)
3474 *) # See PR46792 regarding target-libffi.
3475 noconfigdirs="$noconfigdirs target-libffi";;
3479 noconfigdirs="$noconfigdirs target-libffi"
3484 noconfigdirs="$noconfigdirs target-libffi"
3487 noconfigdirs="$noconfigdirs target-libffi"
3489 i[3456789]86-w64-mingw*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3492 i[3456789]86-*-mingw*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3496 noconfigdirs="$noconfigdirs target-libffi"
3499 noconfigdirs="$noconfigdirs target-libffi"
3506 noconfigdirs="$noconfigdirs target-libffi"
3509 noconfigdirs="$noconfigdirs target-libffi"
3513 # Disable the go frontend on systems where it is known to not work. Please keep
3514 # this in sync with contrib/config-list.mk.
3516 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3517 unsupported_languages="$unsupported_languages go"
3521 # Disable libgo for some systems where it is known to not work.
3522 # For testing, you can easily override this with --enable-libgo.
3523 if test x$enable_libgo = x; then
3527 noconfigdirs="$noconfigdirs target-libgo"
3529 *-*-cygwin* | *-*-mingw*)
3530 noconfigdirs="$noconfigdirs target-libgo"
3535 # Default libgloss CPU subdirectory.
3536 libgloss_dir="$target_cpu"
3539 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3543 libgloss_dir=aarch64
3548 cris-*-* | crisv32-*-*)
3557 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3558 libgloss_dir=m68hc11
3560 m68*-*-* | fido-*-*)
3574 # Disable newlib and libgloss for various target OSes.
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 i[3456789]86-*-linux*)
3580 # This section makes it possible to build newlib natively on linux.
3581 # If we are using a cross compiler then don't configure newlib.
3582 if test x${is_cross_compiler} != xno ; then
3583 noconfigdirs="$noconfigdirs target-newlib"
3585 noconfigdirs="$noconfigdirs target-libgloss"
3586 # If we are not using a cross compiler, do configure newlib.
3587 # Note however, that newlib will only be configured in this situation
3588 # if the --with-newlib option has been given, because otherwise
3589 # 'target-newlib' will appear in skipdirs.
3591 i[3456789]86-*-rdos*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3646 noconfigdirs="$noconfigdirs sim target-rda"
3649 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3650 noconfigdirs="$noconfigdirs sim target-rda"
3653 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3654 noconfigdirs="$noconfigdirs sim target-rda"
3656 i[3456789]86-*-darwin*)
3657 noconfigdirs="$noconfigdirs ld gprof"
3658 noconfigdirs="$noconfigdirs sim target-rda"
3660 x86_64-*-darwin[912]*)
3661 noconfigdirs="$noconfigdirs ld gas gprof"
3662 noconfigdirs="$noconfigdirs sim target-rda"
3665 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs="$noconfigdirs sim target-rda"
3671 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3672 && test -f /usr/local/include/gmp.h; then
3677 # Remove unsupported stuff on all kaOS configurations.
3678 noconfigdirs="$noconfigdirs target-libgloss"
3685 noconfigdirs="$noconfigdirs target-libgloss"
3688 noconfigdirs="$noconfigdirs target-libgloss"
3690 # The tpf target doesn't support gdb yet.
3692 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3695 noconfigdirs="$noconfigdirs target-rda"
3700 # ld works, but does not support shared libraries.
3701 # gas doesn't generate exception information.
3702 noconfigdirs="$noconfigdirs gas ld"
3705 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3708 # newlib is not 64 bit ready
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3712 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3715 noconfigdirs="$noconfigdirs sim"
3718 noconfigdirs="$noconfigdirs target-libgloss"
3721 noconfigdirs="$noconfigdirs ld target-libgloss"
3724 if test x${with_avrlibc} != xno; then
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 c4x-*-* | tic4x-*-*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3732 noconfigdirs="$noconfigdirs target-libgloss gdb"
3735 noconfigdirs="$noconfigdirs target-libgloss"
3738 noconfigdirs="$noconfigdirs gdb"
3741 noconfigdirs="$noconfigdirs gdb"
3744 noconfigdirs="$noconfigdirs target-rda gprof"
3747 noconfigdirs="$noconfigdirs"
3750 noconfigdirs="$noconfigdirs target-libgloss"
3753 noconfigdirs="$noconfigdirs target-libgloss"
3755 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3758 noconfigdirs="$noconfigdirs gdb"
3761 noconfigdirs="$noconfigdirs gdb ld"
3769 hppa*-*-openbsd* | \
3775 noconfigdirs="$noconfigdirs ld"
3778 noconfigdirs="$noconfigdirs gdb"
3781 # No gdb support yet.
3782 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3785 # No ld support yet.
3786 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3789 # No ld support yet.
3790 noconfigdirs="$noconfigdirs libgui itcl ld"
3792 i[3456789]86-w64-mingw*)
3794 i[3456789]86-*-mingw*)
3795 target_configdirs="$target_configdirs target-winsup"
3798 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3799 noconfigdirs="$noconfigdirs target-libgloss"
3800 # always build newlib if winsup directory is present.
3801 if test -d "$srcdir/winsup/cygwin"; then
3802 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3803 elif test -d "$srcdir/newlib"; then
3804 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3808 noconfigdirs="$noconfigdirs target-libgloss"
3810 i[3456789]86-*-sco3.2v5*)
3811 # The linker does not yet know about weak symbols in COFF,
3812 # and is not configured to handle mixed ELF and COFF.
3813 noconfigdirs="$noconfigdirs ld target-libgloss"
3815 i[3456789]86-*-sco*)
3816 noconfigdirs="$noconfigdirs gprof target-libgloss"
3818 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3819 noconfigdirs="$noconfigdirs target-libgloss"
3821 i[3456789]86-*-sysv4*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3824 i[3456789]86-*-beos*)
3825 noconfigdirs="$noconfigdirs gdb"
3827 i[3456789]86-*-rdos*)
3828 noconfigdirs="$noconfigdirs gdb"
3831 noconfigdirs="$noconfigdirs gdb"
3834 noconfigdirs="$noconfigdirs sim"
3837 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3838 noconfigdirs="$noconfigdirs $target_libraries"
3841 # copied from rs6000-*-* entry
3842 noconfigdirs="$noconfigdirs gprof"
3844 powerpc*-*-winnt* | powerpc*-*-pe*)
3845 target_configdirs="$target_configdirs target-winsup"
3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3855 noconfigdirs="$noconfigdirs gdb"
3858 noconfigdirs="$noconfigdirs gprof"
3861 noconfigdirs="$noconfigdirs gprof"
3864 noconfigdirs="$noconfigdirs gprof"
3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3870 noconfigdirs="$noconfigdirs gprof"
3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3893 noconfigdirs="$noconfigdirs gprof"
3896 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3903 noconfigdirs="$noconfigdirs target-libgloss" ;;
3907 if test x${is_cross_compiler} = xno ; then
3912 noconfigdirs="$noconfigdirs sim"
3914 tilepro*-*-* | tilegx*-*-*)
3915 noconfigdirs="$noconfigdirs sim"
3918 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3921 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3924 noconfigdirs="$noconfigdirs ld"
3928 # If we aren't building newlib, then don't build libgloss, since libgloss
3929 # depends upon some newlib header files.
3930 case "${noconfigdirs}" in
3931 *target-libgloss*) ;;
3932 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3935 # Work in distributions that contain no compiler tools, like Autoconf.
3936 host_makefile_frag=/dev/null
3937 if test -d ${srcdir}/config ; then
3939 i[3456789]86-*-msdosdjgpp*)
3940 host_makefile_frag="config/mh-djgpp"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3945 $as_echo_n "checking to see if cat works as expected... " >&6; }
3946 echo a >cygwin-cat-check
3947 if test `cat cygwin-cat-check` = a ; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 as_fn_error $? "The cat command does not ignore carriage return characters.
3956 Please either mount the build directory in binary mode or run the following
3957 commands before running any configure script:
3963 host_makefile_frag="config/mh-cygwin"
3966 host_makefile_frag="config/mh-mingw"
3969 host_makefile_frag="config/mh-alpha-linux"
3972 host_makefile_frag="config/mh-pa-hpux10"
3975 host_makefile_frag="config/mh-pa"
3978 host_makefile_frag="config/mh-pa"
3981 host_makefile_frag="config/mh-darwin"
3984 host_makefile_frag="config/mh-ppc-aix"
3987 host_makefile_frag="config/mh-ppc-aix"
3992 if test "${build}" != "${host}" ; then
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3998 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3999 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4000 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4001 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4002 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4003 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4004 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4005 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4007 AR_FOR_BUILD="\$(AR)"
4008 AS_FOR_BUILD="\$(AS)"
4009 CC_FOR_BUILD="\$(CC)"
4010 CXX_FOR_BUILD="\$(CXX)"
4011 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4012 GOC_FOR_BUILD="\$(GOC)"
4013 GDC_FOR_BUILD="\$(GDC)"
4014 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4015 LD_FOR_BUILD="\$(LD)"
4016 NM_FOR_BUILD="\$(NM)"
4017 RANLIB_FOR_BUILD="\$(RANLIB)"
4018 WINDRES_FOR_BUILD="\$(WINDRES)"
4019 WINDMC_FOR_BUILD="\$(WINDMC)"
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_CC+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC="$CC" # Let the user override the test.
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 if test -n "$CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058 $as_echo "$CC" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4066 if test -z "$ac_cv_prog_CC"; then
4068 # Extract the first word of "gcc", so it can be a program name with args.
4069 set dummy gcc; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -n "$ac_ct_CC"; then
4076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_ac_ct_CC="gcc"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096 if test -n "$ac_ct_CC"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098 $as_echo "$ac_ct_CC" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4104 if test "x$ac_ct_CC" = x; then
4107 case $cross_compiling:$ac_tool_warned in
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111 ac_tool_warned=yes ;;
4119 if test -z "$CC"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}cc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_CC+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_CC="${ac_tool_prefix}cc"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 if test -n "$CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4151 $as_echo "$CC" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4160 if test -z "$CC"; then
4161 # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_CC+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$CC"; then
4169 ac_cv_prog_CC="$CC" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4180 ac_prog_rejected=yes
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 if test $ac_prog_rejected = yes; then
4192 # We found a bogon in the path, so make sure we never use it.
4193 set dummy $ac_cv_prog_CC
4195 if test $# != 0; then
4196 # We chose a different compiler from the bogus one.
4197 # However, it has the same basename, so the bogon will be chosen
4198 # first if we set CC to just the basename; use the full file name.
4200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4216 if test -z "$CC"; then
4217 if test -n "$ac_tool_prefix"; then
4218 for ac_prog in cl.exe
4220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4257 test -n "$CC" && break
4260 if test -z "$CC"; then
4262 for ac_prog in cl.exe
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_ac_ct_CC="$ac_prog"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294 $as_echo "$ac_ct_CC" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4301 test -n "$ac_ct_CC" && break
4304 if test "x$ac_ct_CC" = x; then
4307 case $cross_compiling:$ac_tool_warned in
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4320 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $? "no acceptable C compiler found in \$PATH
4323 See \`config.log' for more details" "$LINENO" 5; }
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4329 for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339 if test -s conftest.err; then
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4345 rm -f conftest.er1 conftest.err
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 ac_clean_files_save=$ac_clean_files
4362 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4363 # Try to create an executable without -o first, disregard a.out.
4364 # It will help us diagnose broken compilers, and finding out an intuition
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 $as_echo_n "checking whether the C compiler works... " >&6; }
4368 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4370 # The possible output files:
4371 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4374 for ac_file in $ac_files
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4383 if { { ac_try="$ac_link_default"
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_link_default") 2>&5
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }; then :
4394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4395 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4396 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4397 # so that the user can short-circuit this test for compilers unknown to
4399 for ac_file in $ac_files ''
4401 test -f "$ac_file" || continue
4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4406 # We found the default executable, but exeext='' is most
4410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4414 # We set ac_cv_exeext here because the later test for it is not
4415 # safe: cross compilers may not add the suffix if given an `-o'
4416 # argument, so we may need to know it at that point already.
4417 # Even if this section looks crufty: it has the advantage of
4424 test "$ac_cv_exeext" = no && ac_cv_exeext=
4429 if test -z "$ac_file"; then :
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 $as_echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error 77 "C compiler cannot create executables
4438 See \`config.log' for more details" "$LINENO" 5; }
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441 $as_echo "yes" >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4444 $as_echo_n "checking for C compiler default output file name... " >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446 $as_echo "$ac_file" >&6; }
4447 ac_exeext=$ac_cv_exeext
4449 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4450 ac_clean_files=$ac_clean_files_save
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4452 $as_echo_n "checking for suffix of executables... " >&6; }
4453 if { { ac_try="$ac_link"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_link") 2>&5
4462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }; then :
4464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4466 # work properly (i.e., refer to `conftest.exe'), while it won't with
4468 for ac_file in conftest.exe conftest conftest.*; do
4469 test -f "$ac_file" || continue
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4481 See \`config.log' for more details" "$LINENO" 5; }
4483 rm -f conftest conftest$ac_cv_exeext
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4485 $as_echo "$ac_cv_exeext" >&6; }
4487 rm -f conftest.$ac_ext
4488 EXEEXT=$ac_cv_exeext
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4496 FILE *f = fopen ("conftest.out", "w");
4497 return ferror (f) || fclose (f) != 0;
4503 ac_clean_files="$ac_clean_files conftest.out"
4504 # Check that the compiler produces executables we can run. If not, either
4505 # the compiler is broken, or we cross compile.
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4507 $as_echo_n "checking whether we are cross compiling... " >&6; }
4508 if test "$cross_compiling" != yes; then
4509 { { ac_try="$ac_link"
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 if { ac_try='./conftest$ac_cv_exeext'
4521 { { case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_try") 2>&5
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; }; then
4533 if test "$cross_compiling" = maybe; then
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $? "cannot run C compiled programs.
4539 If you meant to cross compile, use \`--host'.
4540 See \`config.log' for more details" "$LINENO" 5; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4545 $as_echo "$cross_compiling" >&6; }
4547 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4548 ac_clean_files=$ac_clean_files_save
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4550 $as_echo_n "checking for suffix of object files... " >&6; }
4551 if ${ac_cv_objext+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4565 rm -f conftest.o conftest.obj
4566 if { { ac_try="$ac_compile"
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_compile") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 for ac_file in conftest.o conftest.obj conftest.*; do
4578 test -f "$ac_file" || continue;
4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $? "cannot compute suffix of object files: cannot compile
4592 See \`config.log' for more details" "$LINENO" 5; }
4594 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4597 $as_echo "$ac_cv_objext" >&6; }
4598 OBJEXT=$ac_cv_objext
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602 if ${ac_cv_c_compiler_gnu+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4619 if ac_fn_c_try_compile "$LINENO"; then :
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630 if test $ac_compiler_gnu = yes; then
4635 ac_test_CFLAGS=${CFLAGS+set}
4636 ac_save_CFLAGS=$CFLAGS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4639 if ${ac_cv_prog_cc_g+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4657 if ac_fn_c_try_compile "$LINENO"; then :
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4672 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4688 if ac_fn_c_try_compile "$LINENO"; then :
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699 $as_echo "$ac_cv_prog_cc_g" >&6; }
4700 if test "$ac_test_CFLAGS" = set; then
4701 CFLAGS=$ac_save_CFLAGS
4702 elif test $ac_cv_prog_cc_g = yes; then
4703 if test "$GCC" = yes; then
4709 if test "$GCC" = yes; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717 if ${ac_cv_prog_cc_c89+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 ac_cv_prog_cc_c89=no
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4728 struct buf { int x; };
4729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4730 static char *e (p, i)
4736 static char *f (char * (*g) (char **, int), char **p, ...)
4741 s = g (p, va_arg (v,int));
4746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4747 function prototypes and stuff, but not '\xHH' hex character constants.
4748 These don't provoke an error unfortunately, instead are silently treated
4749 as 'x'. The following induces an error, until -std is added to get
4750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4751 array size at least. It's necessary to write '\x00'==0 to get something
4752 that's true only with -std. */
4753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4756 inside strings and character constants. */
4758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4760 int test (int i, double x);
4761 struct s1 {int (*f) (int a);};
4762 struct s2 {int (*f) (double a);};
4763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4777 CC="$ac_save_CC $ac_arg"
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_cv_prog_cc_c89=$ac_arg
4781 rm -f core conftest.err conftest.$ac_objext
4782 test "x$ac_cv_prog_cc_c89" != "xno" && break
4784 rm -f conftest.$ac_ext
4789 case "x$ac_cv_prog_cc_c89" in
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 $as_echo "none needed" >&6; } ;;
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 $as_echo "unsupported" >&6; } ;;
4797 CC="$CC $ac_cv_prog_cc_c89"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4799 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4801 if test "x$ac_cv_prog_cc_c89" != xno; then :
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 ac_cpp='$CXXCPP $CPPFLAGS'
4813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4816 if test -z "$CXX"; then
4817 if test -n "$CCC"; then
4820 if test -n "$ac_tool_prefix"; then
4821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_CXX+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$CXX"; then
4831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 if test -n "$CXX"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4853 $as_echo "$CXX" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 test -n "$CXX" && break
4863 if test -z "$CXX"; then
4865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$ac_ct_CXX"; then
4875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_ac_ct_CXX="$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4895 if test -n "$ac_ct_CXX"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4897 $as_echo "$ac_ct_CXX" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4904 test -n "$ac_ct_CXX" && break
4907 if test "x$ac_ct_CXX" = x; then
4910 case $cross_compiling:$ac_tool_warned in
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914 ac_tool_warned=yes ;;
4922 # Provide some information about the compiler.
4923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4926 for ac_option in --version -v -V -qversion; do
4927 { { ac_try="$ac_compiler $ac_option >&5"
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4936 if test -s conftest.err; then
4938 ... rest of stderr output deleted ...
4939 10q' conftest.err >conftest.er1
4940 cat conftest.er1 >&5
4942 rm -f conftest.er1 conftest.err
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4948 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4949 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4966 if ac_fn_cxx_try_compile "$LINENO"; then :
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4976 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4977 if test $ac_compiler_gnu = yes; then
4982 ac_test_CXXFLAGS=${CXXFLAGS+set}
4983 ac_save_CXXFLAGS=$CXXFLAGS
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4985 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4986 if ${ac_cv_prog_cxx_g+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4990 ac_cxx_werror_flag=yes
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5004 if ac_fn_cxx_try_compile "$LINENO"; then :
5005 ac_cv_prog_cxx_g=yes
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5035 if ac_fn_cxx_try_compile "$LINENO"; then :
5036 ac_cv_prog_cxx_g=yes
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5046 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5047 if test "$ac_test_CXXFLAGS" = set; then
5048 CXXFLAGS=$ac_save_CXXFLAGS
5049 elif test $ac_cv_prog_cxx_g = yes; then
5050 if test "$GXX" = yes; then
5056 if test "$GXX" = yes; then
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069 # We must set the default linker to the linker used by gcc for the correct
5070 # operation of libtool. If LD is not defined and we are using gcc, try to
5071 # set the LD default to the ld used by gcc.
5072 if test -z "$LD"; then
5073 if test "$GCC" = yes; then
5076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5078 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5080 case $gcc_prog_ld in
5081 # Accept absolute paths.
5082 [\\/]* | [A-Za-z]:[\\/]*)
5083 LD="$gcc_prog_ld" ;;
5088 # Check whether -static-libstdc++ -static-libgcc is supported.
5090 if test "$GCC" = yes; then
5091 saved_LDFLAGS="$LDFLAGS"
5093 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5095 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5097 ac_cpp='$CXXCPP $CPPFLAGS'
5098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5107 #error -static-libstdc++ not implemented
5111 if ac_fn_cxx_try_link "$LINENO"; then :
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }; have_static_libs=yes
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5118 rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 LDFLAGS="$saved_LDFLAGS"
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_GNATBIND+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 if test -n "$GNATBIND"; then
5142 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 GNATBIND=$ac_cv_prog_GNATBIND
5162 if test -n "$GNATBIND"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5164 $as_echo "$GNATBIND" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 if test -z "$ac_cv_prog_GNATBIND"; then
5173 ac_ct_GNATBIND=$GNATBIND
5174 # Extract the first word of "gnatbind", so it can be a program name with args.
5175 set dummy gnatbind; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 if test -n "$ac_ct_GNATBIND"; then
5182 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5202 if test -n "$ac_ct_GNATBIND"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5204 $as_echo "$ac_ct_GNATBIND" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5210 if test "x$ac_ct_GNATBIND" = x; then
5213 case $cross_compiling:$ac_tool_warned in
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5219 GNATBIND=$ac_ct_GNATBIND
5222 GNATBIND="$ac_cv_prog_GNATBIND"
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_GNATMAKE+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$GNATMAKE"; then
5234 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 GNATMAKE=$ac_cv_prog_GNATMAKE
5254 if test -n "$GNATMAKE"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5256 $as_echo "$GNATMAKE" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5264 if test -z "$ac_cv_prog_GNATMAKE"; then
5265 ac_ct_GNATMAKE=$GNATMAKE
5266 # Extract the first word of "gnatmake", so it can be a program name with args.
5267 set dummy gnatmake; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$ac_ct_GNATMAKE"; then
5274 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5294 if test -n "$ac_ct_GNATMAKE"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5296 $as_echo "$ac_ct_GNATMAKE" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5302 if test "x$ac_ct_GNATMAKE" = x; then
5305 case $cross_compiling:$ac_tool_warned in
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309 ac_tool_warned=yes ;;
5311 GNATMAKE=$ac_ct_GNATMAKE
5314 GNATMAKE="$ac_cv_prog_GNATMAKE"
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5318 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5319 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 cat >conftest.adb <<EOF
5323 procedure conftest is begin null; end conftest;
5325 acx_cv_cc_gcc_supports_ada=no
5326 # There is a bug in old released versions of GCC which causes the
5327 # driver to exit successfully when the appropriate language module
5328 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5329 # Therefore we must check for the error message as well as an
5330 # unsuccessful exit.
5331 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5332 # given a .adb file, but produce no object file. So we must check
5333 # if an object file was really produced to guard against this.
5334 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5335 if test x"$errors" = x && test -f conftest.$ac_objext; then
5336 acx_cv_cc_gcc_supports_ada=yes
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5341 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5343 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5350 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5351 if ${gcc_cv_prog_cmp_skip+:} false; then :
5352 $as_echo_n "(cached) " >&6
5356 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5357 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5358 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5361 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5364 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5365 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5368 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5375 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5376 do_compare="$gcc_cv_prog_cmp_skip"
5380 # Check whether --enable-bootstrap was given.
5381 if test "${enable_bootstrap+set}" = set; then :
5382 enableval=$enable_bootstrap;
5384 enable_bootstrap=default
5388 # Issue errors and warnings for invalid/strange bootstrap combinations.
5389 if test -r $srcdir/gcc/configure; then
5395 case "$have_compiler:$host:$target:$enable_bootstrap" in
5398 # Default behavior. Enable bootstrap if we have a compiler
5399 # and we are in a native configuration.
5400 yes:$build:$build:default)
5401 enable_bootstrap=yes ;;
5404 enable_bootstrap=no ;;
5406 # We have a compiler and we are in a native configuration, bootstrap is ok
5407 yes:$build:$build:yes)
5410 # Other configurations, but we have a compiler. Assume the user knows
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5414 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5417 # No compiler: if they passed --enable-bootstrap explicitly, fail
5419 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5421 # Fail if wrong command line
5423 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5427 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5428 # C++98 compiler can still start the bootstrap.
5429 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5430 CXX="$CXX -std=gnu++98"
5433 # Used for setting $lt_cv_objdir
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5435 $as_echo_n "checking for objdir... " >&6; }
5436 if ${lt_cv_objdir+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 rm -f .libs 2>/dev/null
5440 mkdir .libs 2>/dev/null
5441 if test -d .libs; then
5444 # MS-DOS does not allow filenames that begin with a dot.
5447 rmdir .libs 2>/dev/null
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5450 $as_echo "$lt_cv_objdir" >&6; }
5451 objdir=$lt_cv_objdir
5457 cat >>confdefs.h <<_ACEOF
5458 #define LT_OBJDIR "$lt_cv_objdir/"
5463 # Check for GMP, MPFR and MPC
5464 gmplibs="-lmpc -lmpfr -lgmp"
5468 # Specify a location for mpc
5469 # check for this first so it ends up on the link line before mpfr.
5471 # Check whether --with-mpc was given.
5472 if test "${with_mpc+set}" = set; then :
5477 # Check whether --with-mpc-include was given.
5478 if test "${with_mpc_include+set}" = set; then :
5479 withval=$with_mpc_include;
5483 # Check whether --with-mpc-lib was given.
5484 if test "${with_mpc_lib+set}" = set; then :
5485 withval=$with_mpc_lib;
5489 if test "x$with_mpc" != x; then
5490 gmplibs="-L$with_mpc/lib $gmplibs"
5491 gmpinc="-I$with_mpc/include $gmpinc"
5493 if test "x$with_mpc_include" != x; then
5494 gmpinc="-I$with_mpc_include $gmpinc"
5496 if test "x$with_mpc_lib" != x; then
5497 gmplibs="-L$with_mpc_lib $gmplibs"
5499 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5500 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5501 gmpinc='-I$$s/mpc/src '"$gmpinc"
5502 # Do not test the mpc version. Assume that it is sufficient, since
5503 # it is in the source tree, and the library has not been built yet
5504 # but it would be included on the link line in the version check below
5505 # hence making the test fail.
5509 # Specify a location for mpfr
5510 # check for this first so it ends up on the link line before gmp.
5512 # Check whether --with-mpfr-dir was given.
5513 if test "${with_mpfr_dir+set}" = set; then :
5514 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5515 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5520 # Check whether --with-mpfr was given.
5521 if test "${with_mpfr+set}" = set; then :
5526 # Check whether --with-mpfr-include was given.
5527 if test "${with_mpfr_include+set}" = set; then :
5528 withval=$with_mpfr_include;
5532 # Check whether --with-mpfr-lib was given.
5533 if test "${with_mpfr_lib+set}" = set; then :
5534 withval=$with_mpfr_lib;
5538 if test "x$with_mpfr" != x; then
5539 gmplibs="-L$with_mpfr/lib $gmplibs"
5540 gmpinc="-I$with_mpfr/include $gmpinc"
5542 if test "x$with_mpfr_include" != x; then
5543 gmpinc="-I$with_mpfr_include $gmpinc"
5545 if test "x$with_mpfr_lib" != x; then
5546 gmplibs="-L$with_mpfr_lib $gmplibs"
5548 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5549 # MPFR v3.1.0 moved the sources into a src sub-directory.
5550 if ! test -d ${srcdir}/mpfr/src; then
5551 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5553 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5554 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5555 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5556 # Do not test the mpfr version. Assume that it is sufficient, since
5557 # it is in the source tree, and the library has not been built yet
5558 # but it would be included on the link line in the version check below
5559 # hence making the test fail.
5563 # Specify a location for gmp
5565 # Check whether --with-gmp-dir was given.
5566 if test "${with_gmp_dir+set}" = set; then :
5567 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5568 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5573 # Check whether --with-gmp was given.
5574 if test "${with_gmp+set}" = set; then :
5579 # Check whether --with-gmp-include was given.
5580 if test "${with_gmp_include+set}" = set; then :
5581 withval=$with_gmp_include;
5585 # Check whether --with-gmp-lib was given.
5586 if test "${with_gmp_lib+set}" = set; then :
5587 withval=$with_gmp_lib;
5592 if test "x$with_gmp" != x; then
5593 gmplibs="-L$with_gmp/lib $gmplibs"
5594 gmpinc="-I$with_gmp/include $gmpinc"
5596 if test "x$with_gmp_include" != x; then
5597 gmpinc="-I$with_gmp_include $gmpinc"
5599 if test "x$with_gmp_lib" != x; then
5600 gmplibs="-L$with_gmp_lib $gmplibs"
5602 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5603 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5604 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5605 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5606 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5607 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5608 # Do not test the gmp version. Assume that it is sufficient, since
5609 # it is in the source tree, and the library has not been built yet
5610 # but it would be included on the link line in the version check below
5611 # hence making the test fail.
5615 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5617 saved_CFLAGS="$CFLAGS"
5618 CFLAGS="$CFLAGS $gmpinc"
5619 # Check for the recommended and required versions of GMP.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5621 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5630 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5631 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5632 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5648 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5649 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5650 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 $as_echo "yes" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5663 $as_echo "buggy but acceptable" >&6; }
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }; have_gmp=no
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 # If we have GMP, check the MPFR version.
5673 if test x"$have_gmp" = xyes; then
5674 # Check for the recommended and required versions of MPFR.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5676 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5685 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5702 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5715 $as_echo "buggy but acceptable" >&6; }
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }; have_gmp=no
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 # Check for the MPC header version.
5726 if test x"$have_gmp" = xyes ; then
5727 # Check for the recommended and required versions of MPC.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5729 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5737 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5753 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 $as_echo "yes" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5766 $as_echo "buggy but acceptable" >&6; }
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }; have_gmp=no
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 # Now check the MPFR library.
5777 if test x"$have_gmp" = xyes; then
5779 LIBS="$LIBS $gmplibs"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5781 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5795 mpfr_atan2 (n, n, x, GMP_RNDN);
5796 mpfr_erfc (n, x, GMP_RNDN);
5797 mpfr_subnormalize (x, t, GMP_RNDN);
5801 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5802 mpc_cosh (c, c, MPC_RNDNN);
5803 mpc_pow (c, c, c, MPC_RNDNN);
5804 mpc_acosh (c, c, MPC_RNDNN);
5811 if ac_fn_c_try_link "$LINENO"; then :
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813 $as_echo "yes" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }; have_gmp=no
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5823 CFLAGS="$saved_CFLAGS"
5825 # The library versions listed in the error message below should match
5826 # the HARD-minimums enforced above.
5827 if test x$have_gmp != xyes; then
5828 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5829 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5830 their locations. Source code for these libraries can be found at
5831 their respective hosting sites as well as at
5832 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5833 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5834 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5835 make sure that you have installed both the libraries and the header
5836 files. They may be located in separate packages." "$LINENO" 5
5840 # Flags needed for both GMP, MPFR and/or MPC.
5848 # Libraries to use for stage1 or when not bootstrapping.
5850 # Check whether --with-stage1-libs was given.
5851 if test "${with_stage1_libs+set}" = set; then :
5852 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5855 stage1_libs=$withval
5863 # Linker flags to use for stage1 or when not bootstrapping.
5865 # Check whether --with-stage1-ldflags was given.
5866 if test "${with_stage1_ldflags+set}" = set; then :
5867 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5870 stage1_ldflags=$withval
5874 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5875 # if supported. But if the user explicitly specified the libraries to use,
5876 # trust that they are doing what they want.
5877 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5878 stage1_ldflags="-static-libstdc++ -static-libgcc"
5884 # Libraries to use for stage2 and later builds.
5886 # Check whether --with-boot-libs was given.
5887 if test "${with_boot_libs+set}" = set; then :
5888 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5891 poststage1_libs=$withval
5899 # Linker flags to use for stage2 and later builds.
5901 # Check whether --with-boot-ldflags was given.
5902 if test "${with_boot_ldflags+set}" = set; then :
5903 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5906 poststage1_ldflags=$withval
5910 # In stages 2 and 3, default to linking libstdc++ and libgcc
5911 # statically. But if the user explicitly specified the libraries to
5912 # use, trust that they are doing what they want.
5913 if test "$poststage1_libs" = ""; then
5914 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5920 # GCC GRAPHITE dependency isl.
5921 # Basic setup is inlined here, actual checks are in config/isl.m4
5924 # Check whether --with-isl was given.
5925 if test "${with_isl+set}" = set; then :
5930 # Treat --without-isl as a request to disable
5931 # GRAPHITE support and skip all following checks.
5932 if test "x$with_isl" != "xno"; then
5936 # Check whether --with-isl-include was given.
5937 if test "${with_isl_include+set}" = set; then :
5938 withval=$with_isl_include;
5942 # Check whether --with-isl-lib was given.
5943 if test "${with_isl_lib+set}" = set; then :
5944 withval=$with_isl_lib;
5948 # Check whether --enable-isl-version-check was given.
5949 if test "${enable_isl_version_check+set}" = set; then :
5950 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5952 ENABLE_ISL_CHECK=yes
5956 # Initialize isllibs and islinc.
5965 isllibs="-L$with_isl/lib"
5966 islinc="-I$with_isl/include"
5969 if test "x${with_isl_include}" != x ; then
5970 islinc="-I$with_isl_include"
5972 if test "x${with_isl_lib}" != x; then
5973 isllibs="-L$with_isl_lib"
5975 if test "x${islinc}" = x && test "x${isllibs}" = x \
5976 && test -d ${srcdir}/isl; then
5977 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5978 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5981 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5984 isllibs="${isllibs} -lisl"
5988 if test "${ENABLE_ISL_CHECK}" = yes ; then
5989 _isl_saved_CFLAGS=$CFLAGS
5990 _isl_saved_LDFLAGS=$LDFLAGS
5991 _isl_saved_LIBS=$LIBS
5993 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5994 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5995 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5998 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <isl/schedule.h>
6005 isl_options_set_schedule_serialize_sccs (NULL, 0);
6010 if ac_fn_c_try_link "$LINENO"; then :
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6018 $as_echo "$gcc_cv_isl" >&6; }
6020 if test "${gcc_cv_isl}" = no ; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6022 $as_echo "required isl version is 0.15 or later" >&6; }
6025 CFLAGS=$_isl_saved_CFLAGS
6026 LDFLAGS=$_isl_saved_LDFLAGS
6027 LIBS=$_isl_saved_LIBS
6035 if test "x${with_isl}" = xno; then
6036 graphite_requested=no
6037 elif test "x${with_isl}" != x \
6038 || test "x${with_isl_include}" != x \
6039 || test "x${with_isl_lib}" != x ; then
6040 graphite_requested=yes
6042 graphite_requested=no
6047 if test "${gcc_cv_isl}" = no ; then
6052 if test "${graphite_requested}" = yes \
6053 && test "x${isllibs}" = x \
6054 && test "x${islinc}" = x ; then
6056 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6062 # If the isl check failed, disable builds of in-tree variant of isl
6063 if test "x$with_isl" = xno ||
6064 test "x$gcc_cv_isl" = xno; then
6065 noconfigdirs="$noconfigdirs isl"
6072 # Check for LTO support.
6073 # Check whether --enable-lto was given.
6074 if test "${enable_lto+set}" = set; then :
6075 enableval=$enable_lto; enable_lto=$enableval
6077 enable_lto=yes; default_enable_lto=yes
6086 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6087 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6088 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6097 if test $target_elf = yes; then :
6098 # ELF platforms build the lto-plugin always.
6099 build_lto_plugin=yes
6102 if test x"$default_enable_lto" = x"yes" ; then
6104 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6105 # On other non-ELF platforms, LTO has yet to be validated.
6109 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6110 # It would also be nice to check the binutils support, but we don't
6111 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6112 # warn during gcc/ subconfigure; unless you're bootstrapping with
6113 # -flto it won't be needed until after installation anyway.
6115 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6116 *) if test x"$enable_lto" = x"yes"; then
6117 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6122 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6123 # Build it unless LTO was explicitly disabled.
6125 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6132 # Check whether --enable-linker-plugin-configure-flags was given.
6133 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6134 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6136 extra_linker_plugin_configure_flags=
6140 # Check whether --enable-linker-plugin-flags was given.
6141 if test "${enable_linker_plugin_flags+set}" = set; then :
6142 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6144 extra_linker_plugin_flags=
6149 # Enable --enable-host-shared.
6150 # Checked early to determine whether jit is an 'all' language
6151 # Check whether --enable-host-shared was given.
6152 if test "${enable_host_shared+set}" = set; then :
6153 enableval=$enable_host_shared; host_shared=$enableval
6160 # By default, C and C++ are the only stage 1 languages.
6161 stage1_languages=,c,
6163 # Target libraries that we bootstrap.
6164 bootstrap_target_libs=,target-libgcc,
6166 # Figure out what language subdirectories are present.
6167 # Look if the user specified --enable-languages="..."; if not, use
6168 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6170 # NB: embedded tabs in this IF block -- do not untabify
6171 if test -d ${srcdir}/gcc; then
6172 if test x"${enable_languages+set}" != xset; then
6173 if test x"${LANGUAGES+set}" = xset; then
6174 enable_languages="${LANGUAGES}"
6175 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6177 enable_languages=default
6180 if test x"${enable_languages}" = x ||
6181 test x"${enable_languages}" = xyes;
6183 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6187 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6189 # 'f95' is the old name for the 'fortran' language. We issue a warning
6190 # and make the substitution.
6191 case ,${enable_languages}, in
6193 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6194 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6198 # If bootstrapping, C++ must be enabled.
6199 case ",$enable_languages,:$enable_bootstrap" in
6202 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6203 enable_languages="${enable_languages},c++"
6205 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6210 # First scan to see if an enabled language requires some other language.
6211 # We assume that a given config-lang.in will list all the language
6212 # front ends it requires, even if some are required indirectly.
6213 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6214 case ${lang_frag} in
6216 # The odd quoting in the next line works around
6217 # an apparent bug in bash 1.12 on linux.
6218 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 # From the config-lang.in, get $language, $lang_requires, and
6221 # $lang_requires_boot_languages.
6224 lang_requires_boot_languages=
6225 # set srcdir during sourcing lang_frag to the gcc dir.
6226 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6227 # polutes this shell
6228 saved_srcdir=${srcdir}
6229 srcdir=${srcdir}/gcc . ${lang_frag}
6230 srcdir=${saved_srcdir}
6231 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6232 case ,${enable_languages}, in
6237 echo " \`$other' language required by \`$language'; enabling" 1>&2
6238 enable_languages="${enable_languages},${other}"
6242 for other in ${lang_requires_boot_languages} ; do
6243 if test "$other" != "c"; then
6244 case ,${enable_stage1_languages}, in
6249 case ,${enable_languages}, in
6251 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6252 enable_stage1_languages="$enable_stage1_languages,${other}"
6263 new_enable_languages=,c,
6265 # If LTO is enabled, add the LTO front end.
6266 if test "$enable_lto" = "yes" ; then
6267 case ,${enable_languages}, in
6269 *) enable_languages="${enable_languages},lto" ;;
6271 if test "${build_lto_plugin}" = "yes" ; then
6272 configdirs="$configdirs lto-plugin"
6276 # If we're building an offloading compiler, add the LTO front end.
6277 if test x"$enable_as_accelerator_for" != x ; then
6278 case ,${enable_languages}, in
6280 *) enable_languages="${enable_languages},lto" ;;
6284 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6285 potential_languages=,c,
6287 enabled_target_libs=
6288 disabled_target_libs=
6290 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6291 case ${lang_frag} in
6293 # The odd quoting in the next line works around
6294 # an apparent bug in bash 1.12 on linux.
6295 ${srcdir}/gcc/[*]/config-lang.in) ;;
6297 # From the config-lang.in, get $language, $target_libs,
6298 # $lang_dirs, $boot_language, and $build_by_default
6304 build_by_default=yes
6305 # set srcdir during sourcing. See above about save & restore
6306 saved_srcdir=${srcdir}
6307 srcdir=${srcdir}/gcc . ${lang_frag}
6308 srcdir=${saved_srcdir}
6309 if test x${language} = x; then
6310 echo "${lang_frag} doesn't set \$language." 1>&2
6314 if test "$language" = "c++"; then
6319 # C is always enabled, so no need to add it again
6320 if test "$language" != "c"; then
6321 case ,${enable_languages}, in
6323 # Language was explicitly selected; include it
6327 # All languages are enabled
6331 # 'default' was selected, select it if it is a default language
6332 add_this_lang=${build_by_default}
6337 # Disable languages that need other directories if these aren't available.
6338 for i in $subdir_requires; do
6339 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6340 case ${add_this_lang} in
6342 # Specifically requested language; tell them.
6343 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6347 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6348 add_this_lang=unsupported
6352 add_this_lang=unsupported
6357 # Disable Ada if no preexisting GNAT is available.
6358 case ${add_this_lang}:${language}:${have_gnat} in
6360 # Specifically requested language; tell them.
6361 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6365 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6366 add_this_lang=unsupported
6370 add_this_lang=unsupported
6374 # Disable jit if -enable-host-shared not specified
6375 case ${add_this_lang}:${language}:${host_shared} in
6377 # PR jit/64780: explicitly specify --enable-host-shared
6379 Enabling language \"jit\" requires --enable-host-shared.
6381 --enable-host-shared typically slows the rest of the compiler down by
6382 a few %, so you must explicitly enable it.
6384 If you want to build both the jit and the regular compiler, it is often
6385 best to do this via two separate configure/builds, in separate
6386 directories, to avoid imposing the performance cost of
6387 --enable-host-shared on the regular compiler." "$LINENO" 5
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6391 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6392 add_this_lang=unsupported
6396 add_this_lang=unsupported
6400 # Disable a language that is unsupported by the target.
6401 case "${add_this_lang}: $unsupported_languages " in
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6406 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6407 add_this_lang=unsupported
6411 case $add_this_lang in
6413 # Remove language-dependent dirs.
6414 disabled_target_libs="$disabled_target_libs $target_libs"
6415 noconfigdirs="$noconfigdirs $lang_dirs"
6418 # Remove language-dependent dirs; still show language as supported.
6419 disabled_target_libs="$disabled_target_libs $target_libs"
6420 noconfigdirs="$noconfigdirs $lang_dirs"
6421 potential_languages="${potential_languages}${language},"
6424 new_enable_languages="${new_enable_languages}${language},"
6425 potential_languages="${potential_languages}${language},"
6426 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6427 enabled_target_libs="$enabled_target_libs $target_libs"
6428 case "${boot_language}:,$enable_stage1_languages," in
6429 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6430 # Add to (comma-separated) list of stage 1 languages.
6431 case ",$stage1_languages," in
6432 *,$language,* | ,yes, | ,all,) ;;
6433 *) stage1_languages="${stage1_languages}${language}," ;;
6435 # We need to bootstrap any supporting libraries.
6436 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6445 # Add target libraries which are only needed for disabled languages
6447 if test -n "$disabled_target_libs"; then
6448 for dir in $disabled_target_libs; do
6449 case " $enabled_target_libs " in
6451 *) noconfigdirs="$noconfigdirs $dir" ;;
6456 # Check whether --enable-stage1-languages was given.
6457 if test "${enable_stage1_languages+set}" = set; then :
6458 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6460 # Set it to something that will have no effect in the loop below
6461 enable_stage1_languages=c ;;
6463 enable_stage1_languages=`echo $new_enable_languages | \
6464 sed -e "s/^,//" -e "s/,$//" ` ;;
6466 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6467 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6470 # Add "good" languages from enable_stage1_languages to stage1_languages,
6471 # while "bad" languages go in missing_languages. Leave no duplicates.
6472 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6473 case $potential_languages in
6475 case $stage1_languages in
6477 *) stage1_languages="$stage1_languages$i," ;;
6480 case $missing_languages in
6482 *) missing_languages="$missing_languages$i," ;;
6489 # Remove leading/trailing commas that were added for simplicity
6490 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6491 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6492 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6493 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6495 if test "x$missing_languages" != x; then
6497 The following requested languages could not be built: ${missing_languages}
6498 Supported languages are: ${potential_languages}" "$LINENO" 5
6500 if test "x$new_enable_languages" != "x$enable_languages"; then
6501 echo The following languages will be built: ${new_enable_languages}
6502 enable_languages="$new_enable_languages"
6506 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6509 # Handle --disable-<component> generically.
6510 for dir in $configdirs $build_configdirs $target_configdirs ; do
6511 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6512 varname=`echo $dirname | sed -e s/+/_/g`
6513 if eval test x\${enable_${varname}} "=" xno ; then
6514 noconfigdirs="$noconfigdirs $dir"
6518 # Check for Boehm's garbage collector
6519 # Check whether --enable-objc-gc was given.
6520 if test "${enable_objc_gc+set}" = set; then :
6521 enableval=$enable_objc_gc;
6525 # Check whether --with-target-bdw-gc was given.
6526 if test "${with_target_bdw_gc+set}" = set; then :
6527 withval=$with_target_bdw_gc;
6531 # Check whether --with-target-bdw-gc-include was given.
6532 if test "${with_target_bdw_gc_include+set}" = set; then :
6533 withval=$with_target_bdw_gc_include;
6537 # Check whether --with-target-bdw-gc-lib was given.
6538 if test "${with_target_bdw_gc_lib+set}" = set; then :
6539 withval=$with_target_bdw_gc_lib;
6543 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6545 $as_echo_n "checking for bdw garbage collector... " >&6; }
6546 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6548 $as_echo "using bdw-gc in default locations" >&6; }
6550 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6551 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6552 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6553 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6556 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6561 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6562 case ,${enable_languages}, in
6564 # Disable libitm, libsanitizer if we're not building libstdc++
6565 case "${noconfigdirs}" in
6566 *target-libstdc++-v3*)
6567 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6573 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6577 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6578 # $build_configdirs and $target_configdirs.
6579 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6582 for dir in . $skipdirs $noconfigdirs ; do
6583 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6584 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6585 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6586 if test -r $srcdir/$dirname/configure ; then
6587 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6590 notsupp="$notsupp $dir"
6594 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6596 if test -r $srcdir/$dirname/configure ; then
6597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6600 notsupp="$notsupp $dir"
6604 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6606 if test -r $srcdir/$dirname/configure ; then
6607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6610 notsupp="$notsupp $dir"
6616 # Quietly strip out all directories which aren't configurable in this tree.
6617 # This relies on all configurable subdirectories being autoconfiscated, which
6619 build_configdirs_all="$build_configdirs"
6621 for i in ${build_configdirs_all} ; do
6622 j=`echo $i | sed -e s/build-//g`
6623 if test -f ${srcdir}/$j/configure ; then
6624 build_configdirs="${build_configdirs} $i"
6628 configdirs_all="$configdirs"
6630 for i in ${configdirs_all} ; do
6631 if test -f ${srcdir}/$i/configure ; then
6632 configdirs="${configdirs} $i"
6636 target_configdirs_all="$target_configdirs"
6638 for i in ${target_configdirs_all} ; do
6639 j=`echo $i | sed -e s/target-//g`
6640 if test -f ${srcdir}/$j/configure ; then
6641 target_configdirs="${target_configdirs} $i"
6645 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6646 # so we have to add it after the preceding checks.
6647 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6649 case " $configdirs " in
6651 # If we can build libiberty, we can also build libiberty-linker-plugin.
6652 configdirs="$configdirs libiberty-linker-plugin"
6653 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6654 --with-libiberty=../libiberty-linker-plugin";;
6656 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6660 # Sometimes we have special requirements for the host libiberty.
6661 extra_host_libiberty_configure_flags=
6662 extra_host_zlib_configure_flags=
6663 case " $configdirs " in
6664 *" lto-plugin "* | *" libcc1 "*)
6665 # When these are to be built as shared libraries, the same applies to
6667 extra_host_libiberty_configure_flags=--enable-shared
6670 # When bfd is to be built as a shared library, the same applies to
6672 if test "$enable_shared" = "yes"; then
6673 extra_host_zlib_configure_flags=--enable-host-shared
6680 # Produce a warning message for the subdirs we can't configure.
6681 # This isn't especially interesting in the Cygnus tree, but in the individual
6682 # FSF releases, it's important to let people know when their machine isn't
6683 # supported by the one or two programs in a package.
6685 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6686 # If $appdirs is non-empty, at least one of those directories must still
6687 # be configured, or we error out. (E.g., if the gas release supports a
6688 # specified target in some subdirs but not the gas subdir, we shouldn't
6689 # pretend that all is well.)
6690 if test -n "$appdirs" ; then
6691 for dir in $appdirs ; do
6692 if test -r $dir/Makefile.in ; then
6693 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6697 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6703 if test -n "$appdirs" ; then
6704 echo "*** This configuration is not supported by this package." 1>&2
6708 # Okay, some application will build, or we don't care to check. Still
6709 # notify of subdirs not getting built.
6710 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6711 echo " ${notsupp}" 1>&2
6712 echo " (Any other directories should still work fine.)" 1>&2
6720 # To find our prefix, in gcc_cv_tool_prefix.
6722 # The user is always right.
6723 if test "${PATH_SEPARATOR+set}" != set; then
6724 echo "#! /bin/sh" >conf$$.sh
6725 echo "exit 0" >>conf$$.sh
6727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6736 get_gcc_base_ver="cat"
6738 # Check whether --with-gcc-major-version-only was given.
6739 if test "${with_gcc_major_version_only+set}" = set; then :
6740 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6741 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6751 if test "x$exec_prefix" = xNONE; then
6752 if test "x$prefix" = xNONE; then
6753 gcc_cv_tool_prefix=$ac_default_prefix
6755 gcc_cv_tool_prefix=$prefix
6758 gcc_cv_tool_prefix=$exec_prefix
6761 # If there is no compiler in the tree, use the PATH only. In any
6762 # case, if there is no compiler in the tree nobody should use
6763 # AS_FOR_TARGET and LD_FOR_TARGET.
6764 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6765 if test x$with_gcc_major_version_only = xyes ; then
6766 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6768 gcc_version=`cat $srcdir/gcc/BASE-VER`
6770 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6771 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6772 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6773 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6774 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6775 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6780 if test x$build = x$target && test -n "$md_exec_prefix"; then
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6789 # Check whether --with-build-sysroot was given.
6790 if test "${with_build_sysroot+set}" = set; then :
6791 withval=$with_build_sysroot; if test x"$withval" != x ; then
6792 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6795 SYSROOT_CFLAGS_FOR_TARGET=
6801 # Check whether --with-debug-prefix-map was given.
6802 if test "${with_debug_prefix_map+set}" = set; then :
6803 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6804 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6805 for debug_map in $withval; do
6806 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6810 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6815 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6816 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6817 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6818 # We want to ensure that TARGET libraries (which we know are built with
6819 # gcc) are built with "-O2 -g", so include those options when setting
6820 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6821 if test "x$CFLAGS_FOR_TARGET" = x; then
6822 if test "x${is_cross_compiler}" = xyes; then
6823 CFLAGS_FOR_TARGET="-g -O2"
6825 CFLAGS_FOR_TARGET=$CFLAGS
6828 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6831 *" -g "* | *" -g3 "*) ;;
6832 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6838 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6839 if test "x${is_cross_compiler}" = xyes; then
6840 CXXFLAGS_FOR_TARGET="-g -O2"
6842 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6843 case " $CXXFLAGS " in
6845 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6847 case " $CXXFLAGS " in
6848 *" -g "* | *" -g3 "*) ;;
6849 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6857 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6858 # the named directory are copied to $(tooldir)/sys-include.
6859 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6860 if test x${is_cross_compiler} = xno ; then
6861 echo 1>&2 '***' --with-headers is only supported when cross compiling
6864 if test x"${with_headers}" != xyes ; then
6865 x=${gcc_cv_tool_prefix}
6866 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6870 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6871 # the name directories are copied to $(tooldir)/lib. Multiple directories
6873 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6874 if test x${is_cross_compiler} = xno ; then
6875 echo 1>&2 '***' --with-libs is only supported when cross compiling
6878 if test x"${with_libs}" != xyes ; then
6879 # Copy the libraries in reverse order, so that files in the first named
6880 # library override files in subsequent libraries.
6881 x=${gcc_cv_tool_prefix}
6882 for l in ${with_libs}; do
6883 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6888 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6890 # This is done by determining whether or not the appropriate directory
6891 # is available, and by checking whether or not specific configurations
6892 # have requested that this magic not happen.
6894 # The command line options always override the explicit settings in
6895 # configure.ac, and the settings in configure.ac override this magic.
6897 # If the default for a toolchain is to use GNU as and ld, and you don't
6898 # want to do that, then you should use the --without-gnu-as and
6899 # --without-gnu-ld options for the configure script. Similarly, if
6900 # the default is to use the included zlib and you don't want to do that,
6901 # you should use the --with-system-zlib option for the configure script.
6903 if test x${use_gnu_as} = x &&
6904 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6906 extra_host_args="$extra_host_args --with-gnu-as"
6909 if test x${use_gnu_ld} = x &&
6910 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6912 extra_host_args="$extra_host_args --with-gnu-ld"
6915 if test x${use_included_zlib} = x &&
6916 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6919 with_system_zlib=yes
6920 extra_host_args="$extra_host_args --with-system-zlib"
6923 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6924 # can detect this case.
6926 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6928 extra_host_args="$extra_host_args --with-newlib"
6931 # Handle ${copy_dirs}
6932 set fnord ${copy_dirs}
6934 while test $# != 0 ; do
6935 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6938 echo Copying $1 to $2
6940 # Use the install script to create the directory and all required
6941 # parent directories.
6942 if test -d $2 ; then
6946 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6949 # Copy the directory, assuming we have tar.
6950 # FIXME: Should we use B in the second tar? Not all systems support it.
6951 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6953 # It is the responsibility of the user to correctly adjust all
6954 # symlinks. If somebody can figure out how to handle them correctly
6955 # here, feel free to add the code.
6962 # Determine a target-dependent exec_prefix that the installed
6963 # gcc will search in. Keep this list sorted by triplet, with
6964 # the *-*-osname triplets last.
6967 i[34567]86-pc-msdosdjgpp*)
6968 md_exec_prefix=/dev/env/DJDIR/bin
6973 md_exec_prefix=/usr/ccs/bin
6977 extra_arflags_for_target=
6978 extra_nmflags_for_target=
6979 extra_ranlibflags_for_target=
6980 target_makefile_frag=/dev/null
6983 target_makefile_frag="config/mt-spu"
6985 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6986 target_makefile_frag="config/mt-sde"
6988 mipsisa*-*-elfoabi*)
6989 target_makefile_frag="config/mt-mips-elfoabi"
6991 mips*-*-*linux* | mips*-*-gnu*)
6992 target_makefile_frag="config/mt-mips-gnu"
6995 target_makefile_frag="config/mt-nios2-elf"
6998 target_makefile_frag="config/mt-android"
7000 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7001 target_makefile_frag="config/mt-gnu"
7003 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7004 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7005 # commands to handle both 32-bit and 64-bit objects. These flags are
7006 # harmless if we're using GNU nm or ar.
7007 extra_arflags_for_target=" -X32_64"
7008 extra_nmflags_for_target=" -B -X32_64"
7012 alphaieee_frag=/dev/null
7015 # This just makes sure to use the -mieee option to build target libs.
7016 # This should probably be set individually by each library.
7017 alphaieee_frag="config/mt-alphaieee"
7021 # If --enable-target-optspace always use -Os instead of -O2 to build
7022 # the target libraries, similarly if it is not specified, use -Os
7023 # on selected platforms.
7024 ospace_frag=/dev/null
7025 case "${enable_target_optspace}:${target}" in
7027 ospace_frag="config/mt-ospace"
7030 ospace_frag="config/mt-d30v"
7032 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7033 ospace_frag="config/mt-ospace"
7038 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7042 # Some systems (e.g., one of the i386-aix systems the gas testers are
7043 # using) don't handle "\$" correctly, so don't use it here.
7044 tooldir='${exec_prefix}'/${target_noncanonical}
7045 build_tooldir=${tooldir}
7047 # Create a .gdbinit file which runs the one in srcdir
7048 # and tells GDB to look there for source files.
7050 if test -r ${srcdir}/.gdbinit ; then
7053 *) cat > ./.gdbinit <<EOF
7057 source ${srcdir}/.gdbinit
7063 # Make sure that the compiler is able to generate an executable. If it
7064 # can't, we are probably in trouble. We don't care whether we can run the
7065 # executable--we might be using a cross compiler--we only care whether it
7066 # can be created. At this point the main configure script has set CC.
7068 echo "int main () { return 0; }" > conftest.c
7069 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7070 if test $? = 0 ; then
7071 if test -s conftest || test -s conftest.exe ; then
7077 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7078 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7085 # Decide which environment variable is used to find dynamic libraries.
7087 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7088 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7089 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7090 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7093 # On systems where the dynamic library environment variable is PATH,
7094 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7095 # built executables to PATH.
7096 if test "$RPATH_ENVVAR" = PATH; then
7097 GCC_SHLIB_SUBDIR=/shlib
7102 # Adjust the toplevel makefile according to whether bootstrap was selected.
7103 case $enable_bootstrap in
7105 bootstrap_suffix=bootstrap
7106 BUILD_CONFIG=bootstrap-debug
7109 bootstrap_suffix=no-bootstrap
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7115 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7118 # Check whether --with-build-config was given.
7119 if test "${with_build_config+set}" = set; then :
7120 withval=$with_build_config; case $with_build_config in
7121 yes) with_build_config= ;;
7122 no) with_build_config= BUILD_CONFIG= ;;
7127 if test "x${with_build_config}" != x; then
7128 BUILD_CONFIG=$with_build_config
7130 case $BUILD_CONFIG in
7132 if echo "int f (void) { return 0; }" > conftest.c &&
7133 ${CC} -c conftest.c &&
7134 mv conftest.o conftest.o.g0 &&
7135 ${CC} -c -g conftest.c &&
7136 mv conftest.o conftest.o.g &&
7137 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7142 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7147 $as_echo "$BUILD_CONFIG" >&6; }
7150 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7152 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7153 # Check whether --enable-vtable-verify was given.
7154 if test "${enable_vtable_verify+set}" = set; then :
7155 enableval=$enable_vtable_verify; case "$enableval" in
7156 yes) enable_vtable_verify=yes ;;
7157 no) enable_vtable_verify=no ;;
7158 *) enable_vtable_verify=no;;
7161 enable_vtable_verify=no
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7165 $as_echo "$enable_vtable_verify" >&6; }
7167 # Record target_configdirs and the configure arguments for target and
7168 # build configuration in Makefile.
7169 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7170 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7171 bootstrap_fixincludes=no
7173 # If we are building libgomp, bootstrap it.
7174 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7175 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7178 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7179 # or bootstrap-ubsan, bootstrap it.
7180 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7181 case "$BUILD_CONFIG" in
7182 *bootstrap-asan* | *bootstrap-ubsan* )
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7184 bootstrap_fixincludes=yes
7189 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7190 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7191 test "$enable_vtable_verify" != no; then
7192 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7195 # Determine whether gdb needs tk/tcl or not.
7196 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7197 # and in that case we want gdb to be built without tk. Ugh!
7198 # In fact I believe gdb is the *only* package directly dependent on tk,
7199 # so we should be able to put the 'maybe's in unconditionally and
7200 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7201 # 100% sure that that's safe though.
7203 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7204 case "$enable_gdbtk" in
7208 GDB_TK="${gdb_tk}" ;;
7210 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7211 # distro. Eventually someone will fix this and move Insight, nee
7212 # gdbtk to a separate directory.
7213 if test -d ${srcdir}/gdb/gdbtk ; then
7220 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7221 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7223 # Strip out unwanted targets.
7225 # While at that, we remove Makefiles if we were started for recursive
7226 # configuration, so that the top-level Makefile reconfigures them,
7227 # like we used to do when configure itself was recursive.
7229 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7230 # but now we're fixing up the Makefile ourselves with the additional
7231 # commands passed to AC_CONFIG_FILES. Use separate variables
7232 # extrasub-{build,host,target} not because there is any reason to split
7233 # the substitutions up that way, but only to remain below the limit of
7234 # 99 commands in a script, for HP-UX sed.
7236 # Do not nest @if/@endif or @unless/@endunless pairs, because
7237 # configure will not warn you at all.
7239 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7240 yes:yes:*\ gold\ *:*,c++,*) ;;
7241 yes:yes:*\ gold\ *:*)
7242 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7247 for module in ${build_configdirs} ; do
7248 if test -z "${no_recursion}" \
7249 && test -f ${build_subdir}/${module}/Makefile; then
7250 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7251 rm -f ${build_subdir}/${module}/Makefile
7253 extrasub_build="$extrasub_build
7254 /^@if build-$module\$/d
7255 /^@endif build-$module\$/d
7256 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7257 /^@if build-$module-$bootstrap_suffix\$/d
7258 /^@endif build-$module-$bootstrap_suffix\$/d
7259 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7262 for module in ${configdirs} ; do
7263 if test -z "${no_recursion}"; then
7264 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7265 if test -f ${file}; then
7266 echo 1>&2 "*** removing ${file} to force reconfigure"
7271 case ${module},${bootstrap_fixincludes} in
7272 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7273 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7275 extrasub_host="$extrasub_host
7277 /^@endif $module\$/d
7278 /^@unless $module\$/,/^@endunless $module\$/d
7279 /^@if $module-$host_bootstrap_suffix\$/d
7280 /^@endif $module-$host_bootstrap_suffix\$/d
7281 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7284 for module in ${target_configdirs} ; do
7285 if test -z "${no_recursion}" \
7286 && test -f ${target_subdir}/${module}/Makefile; then
7287 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7288 rm -f ${target_subdir}/${module}/Makefile
7291 # We only bootstrap target libraries listed in bootstrap_target_libs.
7292 case $bootstrap_target_libs in
7293 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7294 *) target_bootstrap_suffix=no-bootstrap ;;
7297 extrasub_target="$extrasub_target
7298 /^@if target-$module\$/d
7299 /^@endif target-$module\$/d
7300 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7301 /^@if target-$module-$target_bootstrap_suffix\$/d
7302 /^@endif target-$module-$target_bootstrap_suffix\$/d
7303 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7306 # Do the final fixup along with target modules.
7307 extrasub_target="$extrasub_target
7312 # Create the serialization dependencies. This uses a temporary file.
7314 # Check whether --enable-serial-configure was given.
7315 if test "${enable_serial_configure+set}" = set; then :
7316 enableval=$enable_serial_configure;
7320 case ${enable_serial_configure} in
7322 enable_serial_build_configure=yes
7323 enable_serial_host_configure=yes
7324 enable_serial_target_configure=yes
7328 # These force 'configure's to be done one at a time, to avoid problems
7329 # with contention over a shared config.cache.
7331 echo '# serdep.tmp' > serdep.tmp
7333 test "x${enable_serial_build_configure}" = xyes &&
7334 for item in ${build_configdirs} ; do
7337 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7342 test "x${enable_serial_host_configure}" = xyes &&
7343 for item in ${configdirs} ; do
7346 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7351 test "x${enable_serial_target_configure}" = xyes &&
7352 for item in ${target_configdirs} ; do
7355 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7359 serialization_dependencies=serdep.tmp
7362 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7363 # target, nonopt, and variable assignments. These are the ones we
7364 # might not want to pass down to subconfigures. The exception being
7365 # --cache-file=/dev/null, which is used to turn off the use of cache
7366 # files altogether, and which should be passed on to subconfigures.
7367 # Also strip program-prefix, program-suffix, and program-transform-name,
7368 # so that we can pass down a consistent program-transform-name.
7373 eval "set -- $ac_configure_args"
7376 if test X"$skip_next" = X"yes"; then
7380 if test X"$keep_next" = X"yes"; then
7383 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7385 baseargs="$baseargs '$ac_arg'"
7386 tbaseargs="$tbaseargs '$ac_arg'"
7391 # Handle separated arguments. Based on the logic generated by
7394 *=* | --config-cache | -C | -disable-* | --disable-* \
7395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7397 | -with-* | --with-* | -without-* | --without-* | --x)
7411 --with-* | --without-*)
7412 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7416 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7419 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7428 mpc | mpfr | gmp | isl)
7429 # If we're processing --with-$lib, --with-$lib-include or
7430 # --with-$lib-lib, for one of the libs above, and target is
7431 # different from host, don't pass the current argument to any
7432 # target library's configure.
7433 if test x$is_cross_compiler = xyes; then
7442 --cache-file=/dev/null | \
7443 -cache-file=/dev/null )
7444 # Handled here to avoid the test to skip args below.
7445 baseargs="$baseargs '$ac_arg'"
7446 tbaseargs="$tbaseargs '$ac_arg'"
7447 # Assert: $separate_arg should always be no.
7448 keep_next=$separate_arg
7464 -program-prefix* | \
7465 -program-suffix* | \
7466 -program-transform-name* )
7467 skip_next=$separate_arg
7471 # An option. Add it.
7474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7476 baseargs="$baseargs '$ac_arg'"
7477 if test X"$skip_targ" = Xno; then
7478 tbaseargs="$tbaseargs '$ac_arg'"
7480 keep_next=$separate_arg
7483 # Either a variable assignment, or a nonopt (triplet). Don't
7484 # pass it down; let the Makefile handle this.
7489 # Remove the initial space we just introduced and, as these will be
7490 # expanded by make, quote '$'.
7491 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7493 # Add in --program-transform-name, after --program-prefix and
7494 # --program-suffix have been applied to it. Autoconf has already
7495 # doubled dollar signs and backslashes in program_transform_name; we want
7496 # the backslashes un-doubled, and then the entire thing wrapped in single
7497 # quotes, because this will be expanded first by make and then by the shell.
7498 # Also, because we want to override the logic in subdir configure scripts to
7499 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7500 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7501 ${program_transform_name}
7503 gcc_transform_name=`cat conftestsed.out`
7504 rm -f conftestsed.out
7505 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7506 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7507 if test "$silent" = yes; then
7508 baseargs="$baseargs --silent"
7509 tbaseargs="$tbaseargs --silent"
7511 baseargs="$baseargs --disable-option-checking"
7512 tbaseargs="$tbaseargs --disable-option-checking"
7514 # Record and document user additions to sub configure arguments.
7519 # For the build-side libraries, we just need to pretend we're native,
7520 # and not use the same cache file. Multilibs are neither needed nor
7521 # desired. We can't even use the same cache file for all build-side
7522 # libraries, as they're compiled differently; some with C, some with
7523 # C++ or with different feature-enabling options.
7524 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7526 # For host modules, accept cache file option, or specification as blank.
7527 case "${cache_file}" in
7529 cache_file_option="" ;;
7530 /* | [A-Za-z]:[\\/]* ) # absolute path
7531 cache_file_option="--cache-file=${cache_file}" ;;
7533 cache_file_option="--cache-file=../${cache_file}" ;;
7536 # Host dirs don't like to share a cache file either, horribly enough.
7537 # This seems to be due to autoconf 2.5x stupidity.
7538 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7540 target_configargs="$target_configargs ${tbaseargs}"
7542 # Passing a --with-cross-host argument lets the target libraries know
7543 # whether they are being built with a cross-compiler or being built
7544 # native. However, it would be better to use other mechanisms to make the
7545 # sorts of decisions they want to make on this basis. Please consider
7546 # this option to be deprecated. FIXME.
7547 if test x${is_cross_compiler} = xyes ; then
7548 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7551 # Special user-friendly check for native x86_64-linux build, if
7552 # multilib is not explicitly enabled.
7553 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7554 x86_64-*linux*:yes:$build:$build:)
7555 # Make sure we have a development environment that handles 32-bit
7557 echo "int main () { return 0; }" > conftest.c
7558 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7559 if test $? = 0 ; then
7560 if test -s conftest || test -s conftest.exe ; then
7565 if test x${dev64} != xyes ; then
7566 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
7571 # Default to --enable-multilib.
7572 if test x${enable_multilib} = x ; then
7573 target_configargs="--enable-multilib ${target_configargs}"
7576 # Pass --with-newlib if appropriate. Note that target_configdirs has
7577 # changed from the earlier setting of with_newlib.
7578 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7579 target_configargs="--with-newlib ${target_configargs}"
7582 # Different target subdirs use different values of certain variables
7583 # (notably CXX). Worse, multilibs use *lots* of different values.
7584 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7585 # it doesn't automatically accept command-line overrides of them.
7586 # This means it's not safe for target subdirs to share a cache file,
7587 # which is disgusting, but there you have it. Hopefully this can be
7588 # fixed in future. It's still worthwhile to use a cache file for each
7589 # directory. I think.
7591 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7592 # We need to pass --target, as newer autoconf's requires consistency
7593 # for target_alias and gcc doesn't manage it consistently.
7594 target_configargs="--cache-file=./config.cache ${target_configargs}"
7597 case " $target_configdirs " in
7599 case " $target_configargs " in
7600 *" --with-newlib "*)
7603 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7607 # If we're not building GCC, don't discard standard headers.
7608 if test -d ${srcdir}/gcc; then
7609 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7611 if test "${build}" != "${host}"; then
7612 # On Canadian crosses, CC_FOR_TARGET will have already been set
7613 # by `configure', so we won't have an opportunity to add -Bgcc/
7614 # to it. This is right: we don't want to search that directory
7615 # for binaries, but we want the header files in there, so add
7617 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7619 # Someone might think of using the pre-installed headers on
7620 # Canadian crosses, in case the installed compiler is not fully
7621 # compatible with the compiler being built. In this case, it
7622 # would be better to flag an error than risking having
7623 # incompatible object files being constructed. We can't
7624 # guarantee that an error will be flagged, but let's hope the
7625 # compiler will do it, when presented with incompatible header
7630 case "${target}-${is_cross_compiler}" in
7631 i[3456789]86-*-linux*-no)
7632 # Here host == target, so we don't need to build gcc,
7633 # so we don't want to discard standard headers.
7634 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7637 # If we're building newlib, use its generic headers last, but search
7638 # for any libc-related directories first (so make it the last -B
7640 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7642 # If we're building libgloss, find the startup file, simulator library
7643 # and linker script.
7644 case " $target_configdirs " in
7646 # Look for startup file, simulator library and maybe linker script.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7648 # Look for libnosys.a in case the target needs it.
7649 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7650 # Most targets have the linker script in the source directory.
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7662 x86_64-*mingw* | *-w64-mingw*)
7663 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7664 # however, use a symlink named 'mingw' in ${prefix} .
7665 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7668 # MinGW can't be handled as Cygwin above since it does not use newlib.
7669 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'
7673 # Allow the user to override the flags for
7674 # our build compiler if desired.
7675 if test x"${build}" = x"${host}" ; then
7676 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7677 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7678 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7681 # On Canadian crosses, we'll be searching the right directories for
7682 # the previously-installed cross compiler, so don't bother to add
7683 # flags for directories within the install tree of the compiler
7684 # being built; programs in there won't even run.
7685 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7686 # Search for pre-installed headers if nothing else fits.
7687 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7690 if test "x${use_gnu_ld}" = x &&
7691 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7692 # Arrange for us to find uninstalled linker scripts.
7693 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7696 # Search for other target-specific linker scripts and such.
7699 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7703 # Makefile fragments.
7704 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7706 eval fragval=\$$frag
7707 if test $fragval != /dev/null; then
7708 eval $frag=${srcdir}/$fragval
7716 # Miscellanea: directories, flags, etc.
7725 # Build module lists & subconfigure args.
7729 # Host module lists & subconfigure args.
7734 # Target module lists & subconfigure args.
7756 # Generate default definitions for YACC, M4, LEX and other programs that run
7757 # on the build machine. These are used if the Makefile can't locate these
7758 # programs in objdir.
7759 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7761 for ac_prog in 'bison -y' byacc yacc
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_YACC+:} false; then :
7768 $as_echo_n "(cached) " >&6
7770 if test -n "$YACC"; then
7771 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_YACC="$ac_prog"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 YACC=$ac_cv_prog_YACC
7791 if test -n "$YACC"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7793 $as_echo "$YACC" >&6; }
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7800 test -n "$YACC" && break
7802 test -n "$YACC" || YACC="$MISSING bison -y"
7804 case " $build_configdirs " in
7805 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7808 for ac_prog in bison
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_BISON+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 if test -n "$BISON"; then
7818 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_BISON="$ac_prog"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 BISON=$ac_cv_prog_BISON
7838 if test -n "$BISON"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7840 $as_echo "$BISON" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7847 test -n "$BISON" && break
7849 test -n "$BISON" || BISON="$MISSING bison"
7851 case " $build_configdirs " in
7852 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7855 for ac_prog in gm4 gnum4 m4
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_M4+:} false; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$M4"; then
7865 ac_cv_prog_M4="$M4" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_M4="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 if test -n "$M4"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7887 $as_echo "$M4" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$M4" && break
7896 test -n "$M4" || M4="$MISSING m4"
7898 case " $build_configdirs " in
7899 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7902 for ac_prog in flex lex
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_prog_LEX+:} false; then :
7909 $as_echo_n "(cached) " >&6
7911 if test -n "$LEX"; then
7912 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_LEX="$ac_prog"
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 if test -n "$LEX"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7934 $as_echo "$LEX" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7941 test -n "$LEX" && break
7943 test -n "$LEX" || LEX="$MISSING flex"
7945 case " $build_configdirs " in
7946 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7947 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
7953 set dummy $ac_prog; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_FLEX+:} false; then :
7957 $as_echo_n "(cached) " >&6
7959 if test -n "$FLEX"; then
7960 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_FLEX="$ac_prog"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 FLEX=$ac_cv_prog_FLEX
7980 if test -n "$FLEX"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7982 $as_echo "$FLEX" >&6; }
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7989 test -n "$FLEX" && break
7991 test -n "$FLEX" || FLEX="$MISSING flex"
7993 case " $build_configdirs " in
7994 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7997 for ac_prog in makeinfo
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if ${ac_cv_prog_MAKEINFO+:} false; then :
8004 $as_echo_n "(cached) " >&6
8006 if test -n "$MAKEINFO"; then
8007 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_MAKEINFO="$ac_prog"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 MAKEINFO=$ac_cv_prog_MAKEINFO
8027 if test -n "$MAKEINFO"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8029 $as_echo "$MAKEINFO" >&6; }
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8036 test -n "$MAKEINFO" && break
8038 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8040 case " $build_configdirs " in
8041 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8044 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8045 # higher, else we use the "missing" dummy.
8046 if ${MAKEINFO} --version \
8047 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8050 MAKEINFO="$MISSING makeinfo"
8056 # FIXME: expect and dejagnu may become build tools?
8058 for ac_prog in expect
8060 # Extract the first word of "$ac_prog", so it can be a program name with args.
8061 set dummy $ac_prog; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_EXPECT+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 if test -n "$EXPECT"; then
8068 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_EXPECT="$ac_prog"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 EXPECT=$ac_cv_prog_EXPECT
8088 if test -n "$EXPECT"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8090 $as_echo "$EXPECT" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8097 test -n "$EXPECT" && break
8099 test -n "$EXPECT" || EXPECT="expect"
8101 case " $configdirs " in
8103 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8107 for ac_prog in runtest
8109 # Extract the first word of "$ac_prog", so it can be a program name with args.
8110 set dummy $ac_prog; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_RUNTEST+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 if test -n "$RUNTEST"; then
8117 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_RUNTEST="$ac_prog"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 RUNTEST=$ac_cv_prog_RUNTEST
8137 if test -n "$RUNTEST"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8139 $as_echo "$RUNTEST" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8146 test -n "$RUNTEST" && break
8148 test -n "$RUNTEST" || RUNTEST="runtest"
8150 case " $configdirs " in
8152 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8159 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8160 ncn_target_tool_prefix=
8161 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8165 if test -n "$AR"; then
8167 elif test -n "$ac_cv_prog_AR"; then
8171 if test -n "$ac_cv_prog_AR"; then
8172 for ncn_progname in ar; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174 set dummy ${ncn_progname}; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_AR+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$AR"; then
8181 ac_cv_prog_AR="$AR" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_AR="${ncn_progname}"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 if test -n "$AR"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8203 $as_echo "$AR" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8213 for ncn_progname in ar; do
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_AR+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$AR"; then
8223 ac_cv_prog_AR="$AR" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 if test -n "$AR"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8245 $as_echo "$AR" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255 set dummy ${ncn_progname}; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_AR+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -n "$AR"; then
8262 ac_cv_prog_AR="$AR" # Let the user override the test.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271 ac_cv_prog_AR="${ncn_progname}"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 if test -n "$AR"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8284 $as_echo "$AR" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8292 test -n "$ac_cv_prog_AR" && break
8295 if test -z "$ac_cv_prog_AR" ; then
8297 if test $build = $host ; then
8300 AR="${ncn_tool_prefix}$2"
8306 if test -n "$AS"; then
8308 elif test -n "$ac_cv_prog_AS"; then
8312 if test -n "$ac_cv_prog_AS"; then
8313 for ncn_progname in as; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315 set dummy ${ncn_progname}; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_AS+:} false; then :
8319 $as_echo_n "(cached) " >&6
8321 if test -n "$AS"; then
8322 ac_cv_prog_AS="$AS" # Let the user override the test.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_AS="${ncn_progname}"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 if test -n "$AS"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8344 $as_echo "$AS" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8354 for ncn_progname in as; do
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_AS+:} false; then :
8361 $as_echo_n "(cached) " >&6
8363 if test -n "$AS"; then
8364 ac_cv_prog_AS="$AS" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 if test -n "$AS"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8386 $as_echo "$AS" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8394 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396 set dummy ${ncn_progname}; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_AS+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 if test -n "$AS"; then
8403 ac_cv_prog_AS="$AS" # Let the user override the test.
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_AS="${ncn_progname}"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 if test -n "$AS"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8425 $as_echo "$AS" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8433 test -n "$ac_cv_prog_AS" && break
8436 if test -z "$ac_cv_prog_AS" ; then
8438 if test $build = $host ; then
8441 AS="${ncn_tool_prefix}$2"
8447 if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL=$DLLTOOL
8449 elif test -n "$ac_cv_prog_DLLTOOL"; then
8450 DLLTOOL=$ac_cv_prog_DLLTOOL
8453 if test -n "$ac_cv_prog_DLLTOOL"; then
8454 for ncn_progname in dlltool; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456 set dummy ${ncn_progname}; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_DLLTOOL+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 if test -n "$DLLTOOL"; then
8463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_DLLTOOL="${ncn_progname}"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482 DLLTOOL=$ac_cv_prog_DLLTOOL
8483 if test -n "$DLLTOOL"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8485 $as_echo "$DLLTOOL" >&6; }
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8495 for ncn_progname in dlltool; do
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_DLLTOOL+:} false; then :
8502 $as_echo_n "(cached) " >&6
8504 if test -n "$DLLTOOL"; then
8505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 DLLTOOL=$ac_cv_prog_DLLTOOL
8525 if test -n "$DLLTOOL"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8527 $as_echo "$DLLTOOL" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8535 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537 set dummy ${ncn_progname}; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_DLLTOOL+:} false; then :
8541 $as_echo_n "(cached) " >&6
8543 if test -n "$DLLTOOL"; then
8544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_DLLTOOL="${ncn_progname}"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 DLLTOOL=$ac_cv_prog_DLLTOOL
8564 if test -n "$DLLTOOL"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8566 $as_echo "$DLLTOOL" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8574 test -n "$ac_cv_prog_DLLTOOL" && break
8577 if test -z "$ac_cv_prog_DLLTOOL" ; then
8579 if test $build = $host ; then
8582 DLLTOOL="${ncn_tool_prefix}$2"
8588 if test -n "$LD"; then
8590 elif test -n "$ac_cv_prog_LD"; then
8594 if test -n "$ac_cv_prog_LD"; then
8595 for ncn_progname in ld; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597 set dummy ${ncn_progname}; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_LD+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 if test -n "$LD"; then
8604 ac_cv_prog_LD="$LD" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_LD="${ncn_progname}"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 if test -n "$LD"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8626 $as_echo "$LD" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8636 for ncn_progname in ld; do
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_LD+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$LD"; then
8646 ac_cv_prog_LD="$LD" # Let the user override the test.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 if test -n "$LD"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8668 $as_echo "$LD" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8676 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678 set dummy ${ncn_progname}; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_LD+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 if test -n "$LD"; then
8685 ac_cv_prog_LD="$LD" # Let the user override the test.
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_LD="${ncn_progname}"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 if test -n "$LD"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8707 $as_echo "$LD" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8715 test -n "$ac_cv_prog_LD" && break
8718 if test -z "$ac_cv_prog_LD" ; then
8720 if test $build = $host ; then
8723 LD="${ncn_tool_prefix}$2"
8729 if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO=$LIPO
8731 elif test -n "$ac_cv_prog_LIPO"; then
8732 LIPO=$ac_cv_prog_LIPO
8735 if test -n "$ac_cv_prog_LIPO"; then
8736 for ncn_progname in lipo; do
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738 set dummy ${ncn_progname}; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_LIPO+:} false; then :
8742 $as_echo_n "(cached) " >&6
8744 if test -n "$LIPO"; then
8745 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_LIPO="${ncn_progname}"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 LIPO=$ac_cv_prog_LIPO
8765 if test -n "$LIPO"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8767 $as_echo "$LIPO" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8777 for ncn_progname in lipo; do
8778 if test -n "$ncn_tool_prefix"; then
8779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_LIPO+:} false; then :
8784 $as_echo_n "(cached) " >&6
8786 if test -n "$LIPO"; then
8787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 LIPO=$ac_cv_prog_LIPO
8807 if test -n "$LIPO"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8809 $as_echo "$LIPO" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819 set dummy ${ncn_progname}; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_LIPO+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$LIPO"; then
8826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_LIPO="${ncn_progname}"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 LIPO=$ac_cv_prog_LIPO
8846 if test -n "$LIPO"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8848 $as_echo "$LIPO" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8856 test -n "$ac_cv_prog_LIPO" && break
8859 if test -z "$ac_cv_prog_LIPO" ; then
8861 if test $build = $host ; then
8864 LIPO="${ncn_tool_prefix}$2"
8870 if test -n "$NM"; then
8872 elif test -n "$ac_cv_prog_NM"; then
8876 if test -n "$ac_cv_prog_NM"; then
8877 for ncn_progname in nm; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879 set dummy ${ncn_progname}; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_NM+:} false; then :
8883 $as_echo_n "(cached) " >&6
8885 if test -n "$NM"; then
8886 ac_cv_prog_NM="$NM" # Let the user override the test.
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_NM="${ncn_progname}"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 if test -n "$NM"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8908 $as_echo "$NM" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8918 for ncn_progname in nm; do
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_prog_NM+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 if test -n "$NM"; then
8928 ac_cv_prog_NM="$NM" # Let the user override the test.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 if test -n "$NM"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8950 $as_echo "$NM" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8958 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960 set dummy ${ncn_progname}; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_prog_NM+:} false; then :
8964 $as_echo_n "(cached) " >&6
8966 if test -n "$NM"; then
8967 ac_cv_prog_NM="$NM" # Let the user override the test.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_NM="${ncn_progname}"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 if test -n "$NM"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8989 $as_echo "$NM" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8997 test -n "$ac_cv_prog_NM" && break
9000 if test -z "$ac_cv_prog_NM" ; then
9002 if test $build = $host ; then
9005 NM="${ncn_tool_prefix}$2"
9011 if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB=$RANLIB
9013 elif test -n "$ac_cv_prog_RANLIB"; then
9014 RANLIB=$ac_cv_prog_RANLIB
9017 if test -n "$ac_cv_prog_RANLIB"; then
9018 for ncn_progname in ranlib; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_prog_RANLIB+:} false; then :
9024 $as_echo_n "(cached) " >&6
9026 if test -n "$RANLIB"; then
9027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_RANLIB="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 RANLIB=$ac_cv_prog_RANLIB
9047 if test -n "$RANLIB"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9049 $as_echo "$RANLIB" >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9059 for ncn_progname in ranlib; do
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if ${ac_cv_prog_RANLIB+:} false; then :
9066 $as_echo_n "(cached) " >&6
9068 if test -n "$RANLIB"; then
9069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 RANLIB=$ac_cv_prog_RANLIB
9089 if test -n "$RANLIB"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9091 $as_echo "$RANLIB" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9099 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_prog_RANLIB+:} false; then :
9105 $as_echo_n "(cached) " >&6
9107 if test -n "$RANLIB"; then
9108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_RANLIB="${ncn_progname}"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 RANLIB=$ac_cv_prog_RANLIB
9128 if test -n "$RANLIB"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9130 $as_echo "$RANLIB" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9138 test -n "$ac_cv_prog_RANLIB" && break
9141 if test -z "$ac_cv_prog_RANLIB" ; then
9147 if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP=$STRIP
9149 elif test -n "$ac_cv_prog_STRIP"; then
9150 STRIP=$ac_cv_prog_STRIP
9153 if test -n "$ac_cv_prog_STRIP"; then
9154 for ncn_progname in strip; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156 set dummy ${ncn_progname}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_STRIP+:} false; then :
9160 $as_echo_n "(cached) " >&6
9162 if test -n "$STRIP"; then
9163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_STRIP="${ncn_progname}"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 STRIP=$ac_cv_prog_STRIP
9183 if test -n "$STRIP"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9185 $as_echo "$STRIP" >&6; }
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9195 for ncn_progname in strip; do
9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_prog_STRIP+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 if test -n "$STRIP"; then
9205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9214 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 STRIP=$ac_cv_prog_STRIP
9225 if test -n "$STRIP"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9227 $as_echo "$STRIP" >&6; }
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9235 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237 set dummy ${ncn_progname}; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_STRIP+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 if test -n "$STRIP"; then
9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_STRIP="${ncn_progname}"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 STRIP=$ac_cv_prog_STRIP
9264 if test -n "$STRIP"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9266 $as_echo "$STRIP" >&6; }
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9274 test -n "$ac_cv_prog_STRIP" && break
9277 if test -z "$ac_cv_prog_STRIP" ; then
9283 if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES=$WINDRES
9285 elif test -n "$ac_cv_prog_WINDRES"; then
9286 WINDRES=$ac_cv_prog_WINDRES
9289 if test -n "$ac_cv_prog_WINDRES"; then
9290 for ncn_progname in windres; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292 set dummy ${ncn_progname}; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_WINDRES+:} false; then :
9296 $as_echo_n "(cached) " >&6
9298 if test -n "$WINDRES"; then
9299 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_WINDRES="${ncn_progname}"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 WINDRES=$ac_cv_prog_WINDRES
9319 if test -n "$WINDRES"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9321 $as_echo "$WINDRES" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9331 for ncn_progname in windres; do
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_WINDRES+:} false; then :
9338 $as_echo_n "(cached) " >&6
9340 if test -n "$WINDRES"; then
9341 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 WINDRES=$ac_cv_prog_WINDRES
9361 if test -n "$WINDRES"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9363 $as_echo "$WINDRES" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373 set dummy ${ncn_progname}; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if ${ac_cv_prog_WINDRES+:} false; then :
9377 $as_echo_n "(cached) " >&6
9379 if test -n "$WINDRES"; then
9380 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389 ac_cv_prog_WINDRES="${ncn_progname}"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 WINDRES=$ac_cv_prog_WINDRES
9400 if test -n "$WINDRES"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9402 $as_echo "$WINDRES" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9410 test -n "$ac_cv_prog_WINDRES" && break
9413 if test -z "$ac_cv_prog_WINDRES" ; then
9415 if test $build = $host ; then
9418 WINDRES="${ncn_tool_prefix}$2"
9424 if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC=$WINDMC
9426 elif test -n "$ac_cv_prog_WINDMC"; then
9427 WINDMC=$ac_cv_prog_WINDMC
9430 if test -n "$ac_cv_prog_WINDMC"; then
9431 for ncn_progname in windmc; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433 set dummy ${ncn_progname}; ac_word=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if ${ac_cv_prog_WINDMC+:} false; then :
9437 $as_echo_n "(cached) " >&6
9439 if test -n "$WINDMC"; then
9440 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9449 ac_cv_prog_WINDMC="${ncn_progname}"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 WINDMC=$ac_cv_prog_WINDMC
9460 if test -n "$WINDMC"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9462 $as_echo "$WINDMC" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9472 for ncn_progname in windmc; do
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_WINDMC+:} false; then :
9479 $as_echo_n "(cached) " >&6
9481 if test -n "$WINDMC"; then
9482 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 WINDMC=$ac_cv_prog_WINDMC
9502 if test -n "$WINDMC"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9504 $as_echo "$WINDMC" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9512 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514 set dummy ${ncn_progname}; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if ${ac_cv_prog_WINDMC+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 if test -n "$WINDMC"; then
9521 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9530 ac_cv_prog_WINDMC="${ncn_progname}"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 WINDMC=$ac_cv_prog_WINDMC
9541 if test -n "$WINDMC"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9543 $as_echo "$WINDMC" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9551 test -n "$ac_cv_prog_WINDMC" && break
9554 if test -z "$ac_cv_prog_WINDMC" ; then
9556 if test $build = $host ; then
9559 WINDMC="${ncn_tool_prefix}$2"
9565 if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY=$OBJCOPY
9567 elif test -n "$ac_cv_prog_OBJCOPY"; then
9568 OBJCOPY=$ac_cv_prog_OBJCOPY
9571 if test -n "$ac_cv_prog_OBJCOPY"; then
9572 for ncn_progname in objcopy; do
9573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9574 set dummy ${ncn_progname}; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_prog_OBJCOPY+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 if test -n "$OBJCOPY"; then
9581 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_prog_OBJCOPY="${ncn_progname}"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 OBJCOPY=$ac_cv_prog_OBJCOPY
9601 if test -n "$OBJCOPY"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9603 $as_echo "$OBJCOPY" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9613 for ncn_progname in objcopy; do
9614 if test -n "$ncn_tool_prefix"; then
9615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_prog_OBJCOPY+:} false; then :
9620 $as_echo_n "(cached) " >&6
9622 if test -n "$OBJCOPY"; then
9623 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 OBJCOPY=$ac_cv_prog_OBJCOPY
9643 if test -n "$OBJCOPY"; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9645 $as_echo "$OBJCOPY" >&6; }
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9653 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655 set dummy ${ncn_progname}; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_prog_OBJCOPY+:} false; then :
9659 $as_echo_n "(cached) " >&6
9661 if test -n "$OBJCOPY"; then
9662 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671 ac_cv_prog_OBJCOPY="${ncn_progname}"
9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 OBJCOPY=$ac_cv_prog_OBJCOPY
9682 if test -n "$OBJCOPY"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9684 $as_echo "$OBJCOPY" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9692 test -n "$ac_cv_prog_OBJCOPY" && break
9695 if test -z "$ac_cv_prog_OBJCOPY" ; then
9697 if test $build = $host ; then
9700 OBJCOPY="${ncn_tool_prefix}$2"
9706 if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP=$OBJDUMP
9708 elif test -n "$ac_cv_prog_OBJDUMP"; then
9709 OBJDUMP=$ac_cv_prog_OBJDUMP
9712 if test -n "$ac_cv_prog_OBJDUMP"; then
9713 for ncn_progname in objdump; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_prog_OBJDUMP+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 if test -n "$OBJDUMP"; then
9722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731 ac_cv_prog_OBJDUMP="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 OBJDUMP=$ac_cv_prog_OBJDUMP
9742 if test -n "$OBJDUMP"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9744 $as_echo "$OBJDUMP" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9754 for ncn_progname in objdump; do
9755 if test -n "$ncn_tool_prefix"; then
9756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_prog_OBJDUMP+:} false; then :
9761 $as_echo_n "(cached) " >&6
9763 if test -n "$OBJDUMP"; then
9764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 OBJDUMP=$ac_cv_prog_OBJDUMP
9784 if test -n "$OBJDUMP"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9786 $as_echo "$OBJDUMP" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9794 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796 set dummy ${ncn_progname}; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if ${ac_cv_prog_OBJDUMP+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 if test -n "$OBJDUMP"; then
9803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_prog_OBJDUMP="${ncn_progname}"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 OBJDUMP=$ac_cv_prog_OBJDUMP
9823 if test -n "$OBJDUMP"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9825 $as_echo "$OBJDUMP" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 test -n "$ac_cv_prog_OBJDUMP" && break
9836 if test -z "$ac_cv_prog_OBJDUMP" ; then
9838 if test $build = $host ; then
9841 OBJDUMP="${ncn_tool_prefix}$2"
9847 if test -n "$READELF"; then
9848 ac_cv_prog_READELF=$READELF
9849 elif test -n "$ac_cv_prog_READELF"; then
9850 READELF=$ac_cv_prog_READELF
9853 if test -n "$ac_cv_prog_READELF"; then
9854 for ncn_progname in readelf; do
9855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9856 set dummy ${ncn_progname}; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_prog_READELF+:} false; then :
9860 $as_echo_n "(cached) " >&6
9862 if test -n "$READELF"; then
9863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872 ac_cv_prog_READELF="${ncn_progname}"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 READELF=$ac_cv_prog_READELF
9883 if test -n "$READELF"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9885 $as_echo "$READELF" >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9895 for ncn_progname in readelf; do
9896 if test -n "$ncn_tool_prefix"; then
9897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9898 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_prog_READELF+:} false; then :
9902 $as_echo_n "(cached) " >&6
9904 if test -n "$READELF"; then
9905 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 READELF=$ac_cv_prog_READELF
9925 if test -n "$READELF"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9927 $as_echo "$READELF" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9935 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9937 set dummy ${ncn_progname}; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_prog_READELF+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 if test -n "$READELF"; then
9944 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_prog_READELF="${ncn_progname}"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 READELF=$ac_cv_prog_READELF
9964 if test -n "$READELF"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9966 $as_echo "$READELF" >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 test -n "$ac_cv_prog_READELF" && break
9977 if test -z "$ac_cv_prog_READELF" ; then
9979 if test $build = $host ; then
9982 READELF="${ncn_tool_prefix}$2"
9993 # Check whether --with-build-time-tools was given.
9994 if test "${with_build_time_tools+set}" = set; then :
9995 withval=$with_build_time_tools; case x"$withval" in
9998 with_build_time_tools=
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10000 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10004 with_build_time_tools=
10010 if test -n "$CC_FOR_TARGET"; then
10011 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10012 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10016 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10017 for ncn_progname in cc gcc; do
10018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019 set dummy ${ncn_progname}; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 if test -n "$CC_FOR_TARGET"; then
10026 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10046 if test -n "$CC_FOR_TARGET"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10048 $as_echo "$CC_FOR_TARGET" >&6; }
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10058 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10059 for ncn_progname in cc gcc; do
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10061 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10062 if test -x $with_build_time_tools/${ncn_progname}; then
10063 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10065 $as_echo "yes" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10074 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10075 for ncn_progname in cc gcc; do
10076 if test -n "$ncn_target_tool_prefix"; then
10077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10078 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10082 $as_echo_n "(cached) " >&6
10084 if test -n "$CC_FOR_TARGET"; then
10085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10105 if test -n "$CC_FOR_TARGET"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10107 $as_echo "$CC_FOR_TARGET" >&6; }
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10115 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10121 $as_echo_n "(cached) " >&6
10123 if test -n "$CC_FOR_TARGET"; then
10124 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10144 if test -n "$CC_FOR_TARGET"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10146 $as_echo "$CC_FOR_TARGET" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10154 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10158 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10160 if test $build = $target ; then
10163 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10166 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10171 if test -n "$CXX_FOR_TARGET"; then
10172 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10173 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10177 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10178 for ncn_progname in c++ g++ cxx gxx; do
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180 set dummy ${ncn_progname}; ac_word=$2
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 if test -n "$CXX_FOR_TARGET"; then
10187 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10207 if test -n "$CXX_FOR_TARGET"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10209 $as_echo "$CXX_FOR_TARGET" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10220 for ncn_progname in c++ g++ cxx gxx; do
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10223 if test -x $with_build_time_tools/${ncn_progname}; then
10224 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 $as_echo "yes" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10235 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10236 for ncn_progname in c++ g++ cxx gxx; do
10237 if test -n "$ncn_target_tool_prefix"; then
10238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10243 $as_echo_n "(cached) " >&6
10245 if test -n "$CXX_FOR_TARGET"; then
10246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10266 if test -n "$CXX_FOR_TARGET"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10268 $as_echo "$CXX_FOR_TARGET" >&6; }
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10278 set dummy ${ncn_progname}; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 if test -n "$CXX_FOR_TARGET"; then
10285 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10305 if test -n "$CXX_FOR_TARGET"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10307 $as_echo "$CXX_FOR_TARGET" >&6; }
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10315 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10319 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10320 set dummy c++ g++ cxx gxx
10321 if test $build = $target ; then
10322 CXX_FOR_TARGET="$2"
10324 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10327 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10332 if test -n "$GCC_FOR_TARGET"; then
10333 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10334 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10338 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10339 for ncn_progname in gcc; do
10340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10341 set dummy ${ncn_progname}; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 if test -n "$GCC_FOR_TARGET"; then
10348 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10368 if test -n "$GCC_FOR_TARGET"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10370 $as_echo "$GCC_FOR_TARGET" >&6; }
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10381 for ncn_progname in gcc; do
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10384 if test -x $with_build_time_tools/${ncn_progname}; then
10385 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10396 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10397 for ncn_progname in gcc; do
10398 if test -n "$ncn_target_tool_prefix"; then
10399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10404 $as_echo_n "(cached) " >&6
10406 if test -n "$GCC_FOR_TARGET"; then
10407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10427 if test -n "$GCC_FOR_TARGET"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10429 $as_echo "$GCC_FOR_TARGET" >&6; }
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10437 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10439 set dummy ${ncn_progname}; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10443 $as_echo_n "(cached) " >&6
10445 if test -n "$GCC_FOR_TARGET"; then
10446 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10466 if test -n "$GCC_FOR_TARGET"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10468 $as_echo "$GCC_FOR_TARGET" >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10476 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10480 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10481 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10483 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10488 if test -n "$GFORTRAN_FOR_TARGET"; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10490 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10491 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10494 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495 for ncn_progname in gfortran; do
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10497 set dummy ${ncn_progname}; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10501 $as_echo_n "(cached) " >&6
10503 if test -n "$GFORTRAN_FOR_TARGET"; then
10504 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10524 if test -n "$GFORTRAN_FOR_TARGET"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10526 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10537 for ncn_progname in gfortran; do
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10540 if test -x $with_build_time_tools/${ncn_progname}; then
10541 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543 $as_echo "yes" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10552 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553 for ncn_progname in gfortran; do
10554 if test -n "$ncn_target_tool_prefix"; then
10555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10560 $as_echo_n "(cached) " >&6
10562 if test -n "$GFORTRAN_FOR_TARGET"; then
10563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10583 if test -n "$GFORTRAN_FOR_TARGET"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10593 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595 set dummy ${ncn_progname}; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10599 $as_echo_n "(cached) " >&6
10601 if test -n "$GFORTRAN_FOR_TARGET"; then
10602 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10622 if test -n "$GFORTRAN_FOR_TARGET"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10624 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10632 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10638 if test $build = $target ; then
10639 GFORTRAN_FOR_TARGET="$2"
10641 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10644 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10649 if test -n "$GOC_FOR_TARGET"; then
10650 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10651 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10652 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10655 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656 for ncn_progname in gccgo; do
10657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10658 set dummy ${ncn_progname}; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 if test -n "$GOC_FOR_TARGET"; then
10665 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10685 if test -n "$GOC_FOR_TARGET"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10687 $as_echo "$GOC_FOR_TARGET" >&6; }
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10698 for ncn_progname in gccgo; do
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10701 if test -x $with_build_time_tools/${ncn_progname}; then
10702 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10713 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10714 for ncn_progname in gccgo; do
10715 if test -n "$ncn_target_tool_prefix"; then
10716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10721 $as_echo_n "(cached) " >&6
10723 if test -n "$GOC_FOR_TARGET"; then
10724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
10732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10744 if test -n "$GOC_FOR_TARGET"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10746 $as_echo "$GOC_FOR_TARGET" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10754 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10760 $as_echo_n "(cached) " >&6
10762 if test -n "$GOC_FOR_TARGET"; then
10763 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10783 if test -n "$GOC_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10785 $as_echo "$GOC_FOR_TARGET" >&6; }
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10793 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10797 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10799 if test $build = $target ; then
10800 GOC_FOR_TARGET="$2"
10802 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10805 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10810 if test -n "$GDC_FOR_TARGET"; then
10811 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10812 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10813 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10816 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10817 for ncn_progname in gdc; do
10818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819 set dummy ${ncn_progname}; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10823 $as_echo_n "(cached) " >&6
10825 if test -n "$GDC_FOR_TARGET"; then
10826 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10846 if test -n "$GDC_FOR_TARGET"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10848 $as_echo "$GDC_FOR_TARGET" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10858 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10859 for ncn_progname in gdc; do
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10861 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10862 if test -x $with_build_time_tools/${ncn_progname}; then
10863 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865 $as_echo "yes" >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10874 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
10875 for ncn_progname in gdc; do
10876 if test -n "$ncn_target_tool_prefix"; then
10877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10882 $as_echo_n "(cached) " >&6
10884 if test -n "$GDC_FOR_TARGET"; then
10885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10905 if test -n "$GDC_FOR_TARGET"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10907 $as_echo "$GDC_FOR_TARGET" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10915 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
10916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10917 set dummy ${ncn_progname}; ac_word=$2
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10921 $as_echo_n "(cached) " >&6
10923 if test -n "$GDC_FOR_TARGET"; then
10924 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10944 if test -n "$GDC_FOR_TARGET"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10946 $as_echo "$GDC_FOR_TARGET" >&6; }
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10954 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
10958 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
10960 if test $build = $target ; then
10961 GDC_FOR_TARGET="$2"
10963 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10966 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
10971 cat > conftest.c << \EOF
10976 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10977 have_gcc_for_target=yes
10979 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10980 have_gcc_for_target=no
10987 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10988 if test -n "$with_build_time_tools"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10990 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10991 if test -x $with_build_time_tools/ar; then
10992 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10993 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10995 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11000 elif test $build != $host && test $have_gcc_for_target = yes; then
11001 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11002 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11003 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11006 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11007 # Extract the first word of "ar", so it can be a program name with args.
11008 set dummy ar; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11012 $as_echo_n "(cached) " >&6
11014 case $AR_FOR_TARGET in
11016 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $gcc_cv_tool_dirs
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11038 if test -n "$AR_FOR_TARGET"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11040 $as_echo "$AR_FOR_TARGET" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11048 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11051 if test -n "$AR_FOR_TARGET"; then
11052 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11053 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11057 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11058 for ncn_progname in ar; do
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060 set dummy ${ncn_progname}; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11064 $as_echo_n "(cached) " >&6
11066 if test -n "$AR_FOR_TARGET"; then
11067 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11086 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11087 if test -n "$AR_FOR_TARGET"; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11089 $as_echo "$AR_FOR_TARGET" >&6; }
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11099 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11100 for ncn_progname in ar; do
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11102 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11103 if test -x $with_build_time_tools/${ncn_progname}; then
11104 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; }
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11115 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11116 for ncn_progname in ar; do
11117 if test -n "$ncn_target_tool_prefix"; then
11118 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11119 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11123 $as_echo_n "(cached) " >&6
11125 if test -n "$AR_FOR_TARGET"; then
11126 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11146 if test -n "$AR_FOR_TARGET"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11148 $as_echo "$AR_FOR_TARGET" >&6; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11156 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11162 $as_echo_n "(cached) " >&6
11164 if test -n "$AR_FOR_TARGET"; then
11165 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11185 if test -n "$AR_FOR_TARGET"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11187 $as_echo "$AR_FOR_TARGET" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11195 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11199 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11201 if test $build = $target ; then
11204 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11207 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11211 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11217 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11218 if test -n "$with_build_time_tools"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11220 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11221 if test -x $with_build_time_tools/as; then
11222 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11223 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11225 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11230 elif test $build != $host && test $have_gcc_for_target = yes; then
11231 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11232 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11233 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11236 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11237 # Extract the first word of "as", so it can be a program name with args.
11238 set dummy as; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 case $AS_FOR_TARGET in
11246 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $gcc_cv_tool_dirs
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11268 if test -n "$AS_FOR_TARGET"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11270 $as_echo "$AS_FOR_TARGET" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11278 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11281 if test -n "$AS_FOR_TARGET"; then
11282 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11283 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11287 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11288 for ncn_progname in as; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290 set dummy ${ncn_progname}; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11294 $as_echo_n "(cached) " >&6
11296 if test -n "$AS_FOR_TARGET"; then
11297 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11317 if test -n "$AS_FOR_TARGET"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11319 $as_echo "$AS_FOR_TARGET" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11329 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11330 for ncn_progname in as; do
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11333 if test -x $with_build_time_tools/${ncn_progname}; then
11334 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336 $as_echo "yes" >&6; }
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11345 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11346 for ncn_progname in as; do
11347 if test -n "$ncn_target_tool_prefix"; then
11348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349 set dummy ${ncn_target_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_AS_FOR_TARGET+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 if test -n "$AS_FOR_TARGET"; then
11356 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # 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_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11376 if test -n "$AS_FOR_TARGET"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11378 $as_echo "$AS_FOR_TARGET" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; 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_AS_FOR_TARGET+:} false; then :
11392 $as_echo_n "(cached) " >&6
11394 if test -n "$AS_FOR_TARGET"; then
11395 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # 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_AS_FOR_TARGET="${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11415 if test -n "$AS_FOR_TARGET"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11417 $as_echo "$AS_FOR_TARGET" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11425 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11429 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11431 if test $build = $target ; then
11434 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11437 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11441 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11447 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11448 if test -n "$with_build_time_tools"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11450 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11451 if test -x $with_build_time_tools/dlltool; then
11452 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11453 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11455 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11460 elif test $build != $host && test $have_gcc_for_target = yes; then
11461 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11462 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11463 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11466 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11467 # Extract the first word of "dlltool", so it can be a program name with args.
11468 set dummy dlltool; ac_word=$2
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11472 $as_echo_n "(cached) " >&6
11474 case $DLLTOOL_FOR_TARGET in
11476 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $gcc_cv_tool_dirs
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11486 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11498 if test -n "$DLLTOOL_FOR_TARGET"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11508 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11511 if test -n "$DLLTOOL_FOR_TARGET"; then
11512 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11513 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11517 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11518 for ncn_progname in dlltool; do
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11520 set dummy ${ncn_progname}; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11524 $as_echo_n "(cached) " >&6
11526 if test -n "$DLLTOOL_FOR_TARGET"; then
11527 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11547 if test -n "$DLLTOOL_FOR_TARGET"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11549 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11559 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11560 for ncn_progname in dlltool; do
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11562 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11563 if test -x $with_build_time_tools/${ncn_progname}; then
11564 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11575 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11576 for ncn_progname in dlltool; do
11577 if test -n "$ncn_target_tool_prefix"; then
11578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11583 $as_echo_n "(cached) " >&6
11585 if test -n "$DLLTOOL_FOR_TARGET"; then
11586 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11606 if test -n "$DLLTOOL_FOR_TARGET"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11608 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11616 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618 set dummy ${ncn_progname}; ac_word=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11622 $as_echo_n "(cached) " >&6
11624 if test -n "$DLLTOOL_FOR_TARGET"; then
11625 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11645 if test -n "$DLLTOOL_FOR_TARGET"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11647 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11655 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11659 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11661 if test $build = $target ; then
11662 DLLTOOL_FOR_TARGET="$2"
11664 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11667 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11671 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11677 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11678 if test -n "$with_build_time_tools"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11680 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11681 if test -x $with_build_time_tools/ld; then
11682 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11683 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11685 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11690 elif test $build != $host && test $have_gcc_for_target = yes; then
11691 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11692 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11693 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11696 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11697 # Extract the first word of "ld", so it can be a program name with args.
11698 set dummy ld; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11702 $as_echo_n "(cached) " >&6
11704 case $LD_FOR_TARGET in
11706 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $gcc_cv_tool_dirs
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11728 if test -n "$LD_FOR_TARGET"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11730 $as_echo "$LD_FOR_TARGET" >&6; }
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11738 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11741 if test -n "$LD_FOR_TARGET"; then
11742 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11743 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11747 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11748 for ncn_progname in ld; do
11749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11750 set dummy ${ncn_progname}; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11754 $as_echo_n "(cached) " >&6
11756 if test -n "$LD_FOR_TARGET"; then
11757 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11777 if test -n "$LD_FOR_TARGET"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11779 $as_echo "$LD_FOR_TARGET" >&6; }
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11789 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11790 for ncn_progname in ld; do
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11792 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11793 if test -x $with_build_time_tools/${ncn_progname}; then
11794 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11805 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11806 for ncn_progname in ld; do
11807 if test -n "$ncn_target_tool_prefix"; then
11808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11809 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 if test -n "$LD_FOR_TARGET"; then
11816 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11836 if test -n "$LD_FOR_TARGET"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11838 $as_echo "$LD_FOR_TARGET" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11846 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11848 set dummy ${ncn_progname}; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11852 $as_echo_n "(cached) " >&6
11854 if test -n "$LD_FOR_TARGET"; then
11855 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11875 if test -n "$LD_FOR_TARGET"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11877 $as_echo "$LD_FOR_TARGET" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11885 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11889 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11891 if test $build = $target ; then
11894 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11897 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11901 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11907 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11908 if test -n "$with_build_time_tools"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11910 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11911 if test -x $with_build_time_tools/lipo; then
11912 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11913 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11915 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11920 elif test $build != $host && test $have_gcc_for_target = yes; then
11921 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11922 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11923 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11926 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11927 # Extract the first word of "lipo", so it can be a program name with args.
11928 set dummy lipo; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 case $LIPO_FOR_TARGET in
11936 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $gcc_cv_tool_dirs
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11958 if test -n "$LIPO_FOR_TARGET"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11960 $as_echo "$LIPO_FOR_TARGET" >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11968 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11971 if test -n "$LIPO_FOR_TARGET"; then
11972 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11973 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11977 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11978 for ncn_progname in lipo; do
11979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11980 set dummy ${ncn_progname}; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11984 $as_echo_n "(cached) " >&6
11986 if test -n "$LIPO_FOR_TARGET"; then
11987 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12007 if test -n "$LIPO_FOR_TARGET"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12009 $as_echo "$LIPO_FOR_TARGET" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12019 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12020 for ncn_progname in lipo; do
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12022 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12023 if test -x $with_build_time_tools/${ncn_progname}; then
12024 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 $as_echo "yes" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12035 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12036 for ncn_progname in lipo; do
12037 if test -n "$ncn_target_tool_prefix"; then
12038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12043 $as_echo_n "(cached) " >&6
12045 if test -n "$LIPO_FOR_TARGET"; then
12046 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12066 if test -n "$LIPO_FOR_TARGET"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12068 $as_echo "$LIPO_FOR_TARGET" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12076 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12078 set dummy ${ncn_progname}; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12082 $as_echo_n "(cached) " >&6
12084 if test -n "$LIPO_FOR_TARGET"; then
12085 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12105 if test -n "$LIPO_FOR_TARGET"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12107 $as_echo "$LIPO_FOR_TARGET" >&6; }
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12115 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12119 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12121 if test $build = $target ; then
12122 LIPO_FOR_TARGET="$2"
12124 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12127 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12131 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12137 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12138 if test -n "$with_build_time_tools"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12140 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12141 if test -x $with_build_time_tools/nm; then
12142 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12143 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12145 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12150 elif test $build != $host && test $have_gcc_for_target = yes; then
12151 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12152 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12153 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12156 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12157 # Extract the first word of "nm", so it can be a program name with args.
12158 set dummy nm; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12162 $as_echo_n "(cached) " >&6
12164 case $NM_FOR_TARGET in
12166 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $gcc_cv_tool_dirs
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12188 if test -n "$NM_FOR_TARGET"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12190 $as_echo "$NM_FOR_TARGET" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12198 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12201 if test -n "$NM_FOR_TARGET"; then
12202 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12203 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12207 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12208 for ncn_progname in nm; do
12209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12210 set dummy ${ncn_progname}; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12214 $as_echo_n "(cached) " >&6
12216 if test -n "$NM_FOR_TARGET"; then
12217 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12237 if test -n "$NM_FOR_TARGET"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12239 $as_echo "$NM_FOR_TARGET" >&6; }
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12249 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12250 for ncn_progname in nm; do
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12252 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12253 if test -x $with_build_time_tools/${ncn_progname}; then
12254 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 $as_echo "yes" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12265 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12266 for ncn_progname in nm; do
12267 if test -n "$ncn_target_tool_prefix"; then
12268 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12269 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12273 $as_echo_n "(cached) " >&6
12275 if test -n "$NM_FOR_TARGET"; then
12276 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12296 if test -n "$NM_FOR_TARGET"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12298 $as_echo "$NM_FOR_TARGET" >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12306 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12308 set dummy ${ncn_progname}; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12312 $as_echo_n "(cached) " >&6
12314 if test -n "$NM_FOR_TARGET"; then
12315 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12335 if test -n "$NM_FOR_TARGET"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12337 $as_echo "$NM_FOR_TARGET" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12345 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12349 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12351 if test $build = $target ; then
12354 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12357 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12361 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12367 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12368 if test -n "$with_build_time_tools"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12370 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12371 if test -x $with_build_time_tools/objcopy; then
12372 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12373 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12375 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12380 elif test $build != $host && test $have_gcc_for_target = yes; then
12381 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12382 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12383 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12386 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12387 # Extract the first word of "objcopy", so it can be a program name with args.
12388 set dummy objcopy; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12392 $as_echo_n "(cached) " >&6
12394 case $OBJCOPY_FOR_TARGET in
12396 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $gcc_cv_tool_dirs
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12418 if test -n "$OBJCOPY_FOR_TARGET"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12420 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12428 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12431 if test -n "$OBJCOPY_FOR_TARGET"; then
12432 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12433 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12434 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12437 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12438 for ncn_progname in objcopy; do
12439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12440 set dummy ${ncn_progname}; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 if test -n "$OBJCOPY_FOR_TARGET"; then
12447 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12467 if test -n "$OBJCOPY_FOR_TARGET"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12469 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12479 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12480 for ncn_progname in objcopy; do
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12482 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12483 if test -x $with_build_time_tools/${ncn_progname}; then
12484 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12495 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12496 for ncn_progname in objcopy; do
12497 if test -n "$ncn_target_tool_prefix"; then
12498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12503 $as_echo_n "(cached) " >&6
12505 if test -n "$OBJCOPY_FOR_TARGET"; then
12506 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12526 if test -n "$OBJCOPY_FOR_TARGET"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12528 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12536 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12538 set dummy ${ncn_progname}; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12542 $as_echo_n "(cached) " >&6
12544 if test -n "$OBJCOPY_FOR_TARGET"; then
12545 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12551 test -z "$as_dir" && as_dir=.
12552 for ac_exec_ext in '' $ac_executable_extensions; do
12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12554 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12565 if test -n "$OBJCOPY_FOR_TARGET"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12567 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12579 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12581 if test $build = $target ; then
12582 OBJCOPY_FOR_TARGET="$2"
12584 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12587 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12591 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12597 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12598 if test -n "$with_build_time_tools"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12600 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12601 if test -x $with_build_time_tools/objdump; then
12602 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12603 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12605 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12610 elif test $build != $host && test $have_gcc_for_target = yes; then
12611 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12612 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12613 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12616 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12617 # Extract the first word of "objdump", so it can be a program name with args.
12618 set dummy objdump; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12622 $as_echo_n "(cached) " >&6
12624 case $OBJDUMP_FOR_TARGET in
12626 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $gcc_cv_tool_dirs
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12648 if test -n "$OBJDUMP_FOR_TARGET"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12650 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12658 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12661 if test -n "$OBJDUMP_FOR_TARGET"; then
12662 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12663 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12664 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12667 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12668 for ncn_progname in objdump; do
12669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12670 set dummy ${ncn_progname}; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12674 $as_echo_n "(cached) " >&6
12676 if test -n "$OBJDUMP_FOR_TARGET"; then
12677 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12686 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12697 if test -n "$OBJDUMP_FOR_TARGET"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12699 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12709 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12710 for ncn_progname in objdump; do
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12712 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12713 if test -x $with_build_time_tools/${ncn_progname}; then
12714 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12716 $as_echo "yes" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12725 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12726 for ncn_progname in objdump; do
12727 if test -n "$ncn_target_tool_prefix"; then
12728 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12729 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 if test -n "$OBJDUMP_FOR_TARGET"; then
12736 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12756 if test -n "$OBJDUMP_FOR_TARGET"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12758 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12766 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12768 set dummy ${ncn_progname}; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12772 $as_echo_n "(cached) " >&6
12774 if test -n "$OBJDUMP_FOR_TARGET"; then
12775 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12795 if test -n "$OBJDUMP_FOR_TARGET"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12797 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12805 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12809 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12811 if test $build = $target ; then
12812 OBJDUMP_FOR_TARGET="$2"
12814 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12817 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12821 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12827 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12828 if test -n "$with_build_time_tools"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12830 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12831 if test -x $with_build_time_tools/ranlib; then
12832 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12833 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12835 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12840 elif test $build != $host && test $have_gcc_for_target = yes; then
12841 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12842 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12843 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12846 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12847 # Extract the first word of "ranlib", so it can be a program name with args.
12848 set dummy ranlib; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12852 $as_echo_n "(cached) " >&6
12854 case $RANLIB_FOR_TARGET in
12856 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $gcc_cv_tool_dirs
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12878 if test -n "$RANLIB_FOR_TARGET"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12880 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12888 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12891 if test -n "$RANLIB_FOR_TARGET"; then
12892 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12893 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12894 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12897 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12898 for ncn_progname in ranlib; do
12899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12900 set dummy ${ncn_progname}; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 if test -n "$RANLIB_FOR_TARGET"; then
12907 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12927 if test -n "$RANLIB_FOR_TARGET"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12929 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12940 for ncn_progname in ranlib; do
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12942 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12943 if test -x $with_build_time_tools/${ncn_progname}; then
12944 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 $as_echo "yes" >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12955 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12956 for ncn_progname in ranlib; do
12957 if test -n "$ncn_target_tool_prefix"; then
12958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12959 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12963 $as_echo_n "(cached) " >&6
12965 if test -n "$RANLIB_FOR_TARGET"; then
12966 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12975 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12986 if test -n "$RANLIB_FOR_TARGET"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12988 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12996 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13002 $as_echo_n "(cached) " >&6
13004 if test -n "$RANLIB_FOR_TARGET"; then
13005 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13025 if test -n "$RANLIB_FOR_TARGET"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13027 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13035 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13039 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13041 if test $build = $target ; then
13042 RANLIB_FOR_TARGET="$2"
13044 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13047 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13051 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13057 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13058 if test -n "$with_build_time_tools"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13060 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13061 if test -x $with_build_time_tools/readelf; then
13062 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13063 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13065 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13070 elif test $build != $host && test $have_gcc_for_target = yes; then
13071 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13072 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13073 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13076 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13077 # Extract the first word of "readelf", so it can be a program name with args.
13078 set dummy readelf; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13082 $as_echo_n "(cached) " >&6
13084 case $READELF_FOR_TARGET in
13086 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $gcc_cv_tool_dirs
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13108 if test -n "$READELF_FOR_TARGET"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13110 $as_echo "$READELF_FOR_TARGET" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13118 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13121 if test -n "$READELF_FOR_TARGET"; then
13122 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13123 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13124 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13127 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13128 for ncn_progname in readelf; do
13129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13130 set dummy ${ncn_progname}; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13134 $as_echo_n "(cached) " >&6
13136 if test -n "$READELF_FOR_TARGET"; then
13137 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13157 if test -n "$READELF_FOR_TARGET"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13159 $as_echo "$READELF_FOR_TARGET" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13169 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13170 for ncn_progname in readelf; do
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13172 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13173 if test -x $with_build_time_tools/${ncn_progname}; then
13174 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13185 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13186 for ncn_progname in readelf; do
13187 if test -n "$ncn_target_tool_prefix"; then
13188 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13189 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13193 $as_echo_n "(cached) " >&6
13195 if test -n "$READELF_FOR_TARGET"; then
13196 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13216 if test -n "$READELF_FOR_TARGET"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13218 $as_echo "$READELF_FOR_TARGET" >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13226 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13228 set dummy ${ncn_progname}; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13232 $as_echo_n "(cached) " >&6
13234 if test -n "$READELF_FOR_TARGET"; then
13235 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13255 if test -n "$READELF_FOR_TARGET"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13257 $as_echo "$READELF_FOR_TARGET" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13265 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13269 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13271 if test $build = $target ; then
13272 READELF_FOR_TARGET="$2"
13274 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13277 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13281 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13287 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13288 if test -n "$with_build_time_tools"; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13290 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13291 if test -x $with_build_time_tools/strip; then
13292 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13293 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13295 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13300 elif test $build != $host && test $have_gcc_for_target = yes; then
13301 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13302 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13303 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13306 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13307 # Extract the first word of "strip", so it can be a program name with args.
13308 set dummy strip; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13312 $as_echo_n "(cached) " >&6
13314 case $STRIP_FOR_TARGET in
13316 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $gcc_cv_tool_dirs
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13338 if test -n "$STRIP_FOR_TARGET"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13340 $as_echo "$STRIP_FOR_TARGET" >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13348 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13351 if test -n "$STRIP_FOR_TARGET"; then
13352 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13353 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13354 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13357 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13358 for ncn_progname in strip; do
13359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13360 set dummy ${ncn_progname}; ac_word=$2
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362 $as_echo_n "checking for $ac_word... " >&6; }
13363 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13364 $as_echo_n "(cached) " >&6
13366 if test -n "$STRIP_FOR_TARGET"; then
13367 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13387 if test -n "$STRIP_FOR_TARGET"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13389 $as_echo "$STRIP_FOR_TARGET" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13399 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13400 for ncn_progname in strip; do
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13402 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13403 if test -x $with_build_time_tools/${ncn_progname}; then
13404 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13406 $as_echo "yes" >&6; }
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13415 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13416 for ncn_progname in strip; do
13417 if test -n "$ncn_target_tool_prefix"; then
13418 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13419 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13423 $as_echo_n "(cached) " >&6
13425 if test -n "$STRIP_FOR_TARGET"; then
13426 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13446 if test -n "$STRIP_FOR_TARGET"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13448 $as_echo "$STRIP_FOR_TARGET" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13456 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458 set dummy ${ncn_progname}; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13462 $as_echo_n "(cached) " >&6
13464 if test -n "$STRIP_FOR_TARGET"; then
13465 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13485 if test -n "$STRIP_FOR_TARGET"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13487 $as_echo "$STRIP_FOR_TARGET" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13495 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13499 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13501 if test $build = $target ; then
13502 STRIP_FOR_TARGET="$2"
13504 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13507 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13511 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13517 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13518 if test -n "$with_build_time_tools"; then
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13520 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13521 if test -x $with_build_time_tools/windres; then
13522 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13523 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13525 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13530 elif test $build != $host && test $have_gcc_for_target = yes; then
13531 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13532 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13533 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13536 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13537 # Extract the first word of "windres", so it can be a program name with args.
13538 set dummy windres; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13542 $as_echo_n "(cached) " >&6
13544 case $WINDRES_FOR_TARGET in
13546 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $gcc_cv_tool_dirs
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13568 if test -n "$WINDRES_FOR_TARGET"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13570 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13578 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13581 if test -n "$WINDRES_FOR_TARGET"; then
13582 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13583 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13584 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13587 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13588 for ncn_progname in windres; do
13589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13590 set dummy ${ncn_progname}; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13594 $as_echo_n "(cached) " >&6
13596 if test -n "$WINDRES_FOR_TARGET"; then
13597 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13617 if test -n "$WINDRES_FOR_TARGET"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13619 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13629 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13630 for ncn_progname in windres; do
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13632 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13633 if test -x $with_build_time_tools/${ncn_progname}; then
13634 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13645 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13646 for ncn_progname in windres; do
13647 if test -n "$ncn_target_tool_prefix"; then
13648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13649 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13653 $as_echo_n "(cached) " >&6
13655 if test -n "$WINDRES_FOR_TARGET"; then
13656 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13676 if test -n "$WINDRES_FOR_TARGET"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13678 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13686 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13688 set dummy ${ncn_progname}; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13692 $as_echo_n "(cached) " >&6
13694 if test -n "$WINDRES_FOR_TARGET"; then
13695 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13701 test -z "$as_dir" && as_dir=.
13702 for ac_exec_ext in '' $ac_executable_extensions; do
13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13715 if test -n "$WINDRES_FOR_TARGET"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13717 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13725 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13729 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13731 if test $build = $target ; then
13732 WINDRES_FOR_TARGET="$2"
13734 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13737 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13741 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13747 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13748 if test -n "$with_build_time_tools"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13750 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13751 if test -x $with_build_time_tools/windmc; then
13752 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13753 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13755 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13760 elif test $build != $host && test $have_gcc_for_target = yes; then
13761 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13762 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13763 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13766 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13767 # Extract the first word of "windmc", so it can be a program name with args.
13768 set dummy windmc; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13772 $as_echo_n "(cached) " >&6
13774 case $WINDMC_FOR_TARGET in
13776 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $gcc_cv_tool_dirs
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_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13798 if test -n "$WINDMC_FOR_TARGET"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13800 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13808 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13811 if test -n "$WINDMC_FOR_TARGET"; then
13812 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13813 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13814 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13817 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13818 for ncn_progname in windmc; do
13819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13820 set dummy ${ncn_progname}; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13824 $as_echo_n "(cached) " >&6
13826 if test -n "$WINDMC_FOR_TARGET"; then
13827 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13836 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13847 if test -n "$WINDMC_FOR_TARGET"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13849 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13859 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13860 for ncn_progname in windmc; do
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13862 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13863 if test -x $with_build_time_tools/${ncn_progname}; then
13864 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13866 $as_echo "yes" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13875 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13876 for ncn_progname in windmc; do
13877 if test -n "$ncn_target_tool_prefix"; then
13878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13879 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881 $as_echo_n "checking for $ac_word... " >&6; }
13882 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13883 $as_echo_n "(cached) " >&6
13885 if test -n "$WINDMC_FOR_TARGET"; then
13886 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13906 if test -n "$WINDMC_FOR_TARGET"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13908 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13916 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13918 set dummy ${ncn_progname}; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13922 $as_echo_n "(cached) " >&6
13924 if test -n "$WINDMC_FOR_TARGET"; then
13925 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13945 if test -n "$WINDMC_FOR_TARGET"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13947 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13955 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13959 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13961 if test $build = $target ; then
13962 WINDMC_FOR_TARGET="$2"
13964 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13967 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13971 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13975 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13978 $as_echo_n "checking where to find the target ar... " >&6; }
13979 if test "x${build}" != "x${host}" ; then
13980 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $AR_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13986 # Canadian cross, just use what we found
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13988 $as_echo "pre-installed" >&6; }
13992 case " ${configdirs} " in
13997 if test $ok = yes; then
13998 # An in-tree tool is available and we can use it
13999 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14001 $as_echo "just compiled" >&6; }
14002 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
14004 ac_dir=`dirname $AR_FOR_TARGET`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007 elif test "x$target" = "x$host"; then
14008 # We can use an host tool
14009 AR_FOR_TARGET='$(AR)'
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14011 $as_echo "host tool" >&6; }
14013 # We need a cross tool
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14020 $as_echo_n "checking where to find the target as... " >&6; }
14021 if test "x${build}" != "x${host}" ; then
14022 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14023 # We already found the complete path
14024 ac_dir=`dirname $AS_FOR_TARGET`
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026 $as_echo "pre-installed in $ac_dir" >&6; }
14028 # Canadian cross, just use what we found
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14030 $as_echo "pre-installed" >&6; }
14034 case " ${configdirs} " in
14039 if test $ok = yes; then
14040 # An in-tree tool is available and we can use it
14041 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043 $as_echo "just compiled" >&6; }
14044 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
14046 ac_dir=`dirname $AS_FOR_TARGET`
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049 elif test "x$target" = "x$host"; then
14050 # We can use an host tool
14051 AS_FOR_TARGET='$(AS)'
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053 $as_echo "host tool" >&6; }
14055 # We need a cross tool
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14062 $as_echo_n "checking where to find the target cc... " >&6; }
14063 if test "x${build}" != "x${host}" ; then
14064 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
14066 ac_dir=`dirname $CC_FOR_TARGET`
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068 $as_echo "pre-installed in $ac_dir" >&6; }
14070 # Canadian cross, just use what we found
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14076 case " ${configdirs} " in
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085 $as_echo "just compiled" >&6; }
14086 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $CC_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 elif test "x$target" = "x$host"; then
14092 # We can use an host tool
14093 CC_FOR_TARGET='$(CC)'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095 $as_echo "host tool" >&6; }
14097 # We need a cross tool
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099 $as_echo "pre-installed" >&6; }
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14104 $as_echo_n "checking where to find the target c++... " >&6; }
14105 if test "x${build}" != "x${host}" ; then
14106 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
14108 ac_dir=`dirname $CXX_FOR_TARGET`
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110 $as_echo "pre-installed in $ac_dir" >&6; }
14112 # Canadian cross, just use what we found
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114 $as_echo "pre-installed" >&6; }
14118 case " ${configdirs} " in
14122 case ,${enable_languages}, in
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
14128 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'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130 $as_echo "just compiled" >&6; }
14131 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
14133 ac_dir=`dirname $CXX_FOR_TARGET`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 CXX_FOR_TARGET='$(CXX)'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140 $as_echo "host tool" >&6; }
14142 # We need a cross tool
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14149 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14150 if test "x${build}" != "x${host}" ; then
14151 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
14153 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155 $as_echo "pre-installed in $ac_dir" >&6; }
14157 # Canadian cross, just use what we found
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14163 case " ${configdirs} " in
14167 case ,${enable_languages}, in
14171 if test $ok = yes; then
14172 # An in-tree tool is available and we can use it
14173 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'
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14175 $as_echo "just compiled" >&6; }
14176 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14177 # We already found the complete path
14178 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14180 $as_echo "pre-installed in $ac_dir" >&6; }
14181 elif test "x$target" = "x$host"; then
14182 # We can use an host tool
14183 RAW_CXX_FOR_TARGET='$(CXX)'
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14185 $as_echo "host tool" >&6; }
14187 # We need a cross tool
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14194 $as_echo_n "checking where to find the target dlltool... " >&6; }
14195 if test "x${build}" != "x${host}" ; then
14196 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14197 # We already found the complete path
14198 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14200 $as_echo "pre-installed in $ac_dir" >&6; }
14202 # Canadian cross, just use what we found
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204 $as_echo "pre-installed" >&6; }
14208 case " ${configdirs} " in
14213 if test $ok = yes; then
14214 # An in-tree tool is available and we can use it
14215 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14217 $as_echo "just compiled" >&6; }
14218 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14219 # We already found the complete path
14220 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14222 $as_echo "pre-installed in $ac_dir" >&6; }
14223 elif test "x$target" = "x$host"; then
14224 # We can use an host tool
14225 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14227 $as_echo "host tool" >&6; }
14229 # We need a cross tool
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14236 $as_echo_n "checking where to find the target gcc... " >&6; }
14237 if test "x${build}" != "x${host}" ; then
14238 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14239 # We already found the complete path
14240 ac_dir=`dirname $GCC_FOR_TARGET`
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14242 $as_echo "pre-installed in $ac_dir" >&6; }
14244 # Canadian cross, just use what we found
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246 $as_echo "pre-installed" >&6; }
14250 case " ${configdirs} " in
14255 if test $ok = yes; then
14256 # An in-tree tool is available and we can use it
14257 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14259 $as_echo "just compiled" >&6; }
14260 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14261 # We already found the complete path
14262 ac_dir=`dirname $GCC_FOR_TARGET`
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264 $as_echo "pre-installed in $ac_dir" >&6; }
14265 elif test "x$target" = "x$host"; then
14266 # We can use an host tool
14267 GCC_FOR_TARGET='$()'
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14269 $as_echo "host tool" >&6; }
14271 # We need a cross tool
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14278 $as_echo_n "checking where to find the target gfortran... " >&6; }
14279 if test "x${build}" != "x${host}" ; then
14280 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14281 # We already found the complete path
14282 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14284 $as_echo "pre-installed in $ac_dir" >&6; }
14286 # Canadian cross, just use what we found
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288 $as_echo "pre-installed" >&6; }
14292 case " ${configdirs} " in
14296 case ,${enable_languages}, in
14300 if test $ok = yes; then
14301 # An in-tree tool is available and we can use it
14302 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304 $as_echo "just compiled" >&6; }
14305 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
14307 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309 $as_echo "pre-installed in $ac_dir" >&6; }
14310 elif test "x$target" = "x$host"; then
14311 # We can use an host tool
14312 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314 $as_echo "host tool" >&6; }
14316 # We need a cross tool
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318 $as_echo "pre-installed" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14323 $as_echo_n "checking where to find the target gccgo... " >&6; }
14324 if test "x${build}" != "x${host}" ; then
14325 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $GOC_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14331 # Canadian cross, just use what we found
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333 $as_echo "pre-installed" >&6; }
14337 case " ${configdirs} " in
14341 case ,${enable_languages}, in
14345 if test $ok = yes; then
14346 # An in-tree tool is available and we can use it
14347 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14349 $as_echo "just compiled" >&6; }
14350 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14351 # We already found the complete path
14352 ac_dir=`dirname $GOC_FOR_TARGET`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354 $as_echo "pre-installed in $ac_dir" >&6; }
14355 elif test "x$target" = "x$host"; then
14356 # We can use an host tool
14357 GOC_FOR_TARGET='$(GOC)'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14359 $as_echo "host tool" >&6; }
14361 # We need a cross tool
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363 $as_echo "pre-installed" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14368 $as_echo_n "checking where to find the target gdc... " >&6; }
14369 if test "x${build}" != "x${host}" ; then
14370 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14371 # We already found the complete path
14372 ac_dir=`dirname $GDC_FOR_TARGET`
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374 $as_echo "pre-installed in $ac_dir" >&6; }
14376 # Canadian cross, just use what we found
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378 $as_echo "pre-installed" >&6; }
14382 case " ${configdirs} " in
14386 case ,${enable_languages}, in
14390 if test $ok = yes; then
14391 # An in-tree tool is available and we can use it
14392 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14394 $as_echo "just compiled" >&6; }
14395 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14396 # We already found the complete path
14397 ac_dir=`dirname $GDC_FOR_TARGET`
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399 $as_echo "pre-installed in $ac_dir" >&6; }
14400 elif test "x$target" = "x$host"; then
14401 # We can use an host tool
14402 GDC_FOR_TARGET='$(GDC)'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14404 $as_echo "host tool" >&6; }
14406 # We need a cross tool
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408 $as_echo "pre-installed" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14413 $as_echo_n "checking where to find the target ld... " >&6; }
14414 if test "x${build}" != "x${host}" ; then
14415 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14416 # We already found the complete path
14417 ac_dir=`dirname $LD_FOR_TARGET`
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419 $as_echo "pre-installed in $ac_dir" >&6; }
14421 # Canadian cross, just use what we found
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14423 $as_echo "pre-installed" >&6; }
14427 case " ${configdirs} " in
14432 if test $ok = yes; then
14433 # An in-tree tool is available and we can use it
14434 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14436 $as_echo "just compiled" >&6; }
14437 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14438 # We already found the complete path
14439 ac_dir=`dirname $LD_FOR_TARGET`
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14441 $as_echo "pre-installed in $ac_dir" >&6; }
14442 elif test "x$target" = "x$host"; then
14443 # We can use an host tool
14444 LD_FOR_TARGET='$(LD)'
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14446 $as_echo "host tool" >&6; }
14448 # We need a cross tool
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450 $as_echo "pre-installed" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14455 $as_echo_n "checking where to find the target lipo... " >&6; }
14456 if test "x${build}" != "x${host}" ; then
14457 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14458 # We already found the complete path
14459 ac_dir=`dirname $LIPO_FOR_TARGET`
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461 $as_echo "pre-installed in $ac_dir" >&6; }
14463 # Canadian cross, just use what we found
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14465 $as_echo "pre-installed" >&6; }
14468 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14469 # We already found the complete path
14470 ac_dir=`dirname $LIPO_FOR_TARGET`
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14472 $as_echo "pre-installed in $ac_dir" >&6; }
14473 elif test "x$target" = "x$host"; then
14474 # We can use an host tool
14475 LIPO_FOR_TARGET='$(LIPO)'
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14477 $as_echo "host tool" >&6; }
14479 # We need a cross tool
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14486 $as_echo_n "checking where to find the target nm... " >&6; }
14487 if test "x${build}" != "x${host}" ; then
14488 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14489 # We already found the complete path
14490 ac_dir=`dirname $NM_FOR_TARGET`
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14492 $as_echo "pre-installed in $ac_dir" >&6; }
14494 # Canadian cross, just use what we found
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14496 $as_echo "pre-installed" >&6; }
14500 case " ${configdirs} " in
14505 if test $ok = yes; then
14506 # An in-tree tool is available and we can use it
14507 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14509 $as_echo "just compiled" >&6; }
14510 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14511 # We already found the complete path
14512 ac_dir=`dirname $NM_FOR_TARGET`
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14514 $as_echo "pre-installed in $ac_dir" >&6; }
14515 elif test "x$target" = "x$host"; then
14516 # We can use an host tool
14517 NM_FOR_TARGET='$(NM)'
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14519 $as_echo "host tool" >&6; }
14521 # We need a cross tool
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14528 $as_echo_n "checking where to find the target objcopy... " >&6; }
14529 if test "x${build}" != "x${host}" ; then
14530 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14531 # We already found the complete path
14532 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14534 $as_echo "pre-installed in $ac_dir" >&6; }
14536 # Canadian cross, just use what we found
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14538 $as_echo "pre-installed" >&6; }
14542 case " ${configdirs} " in
14547 if test $ok = yes; then
14548 # An in-tree tool is available and we can use it
14549 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14551 $as_echo "just compiled" >&6; }
14552 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14553 # We already found the complete path
14554 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14556 $as_echo "pre-installed in $ac_dir" >&6; }
14557 elif test "x$target" = "x$host"; then
14558 # We can use an host tool
14559 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14561 $as_echo "host tool" >&6; }
14563 # We need a cross tool
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565 $as_echo "pre-installed" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14570 $as_echo_n "checking where to find the target objdump... " >&6; }
14571 if test "x${build}" != "x${host}" ; then
14572 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14573 # We already found the complete path
14574 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14576 $as_echo "pre-installed in $ac_dir" >&6; }
14578 # Canadian cross, just use what we found
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14580 $as_echo "pre-installed" >&6; }
14584 case " ${configdirs} " in
14589 if test $ok = yes; then
14590 # An in-tree tool is available and we can use it
14591 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14593 $as_echo "just compiled" >&6; }
14594 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14595 # We already found the complete path
14596 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14598 $as_echo "pre-installed in $ac_dir" >&6; }
14599 elif test "x$target" = "x$host"; then
14600 # We can use an host tool
14601 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14603 $as_echo "host tool" >&6; }
14605 # We need a cross tool
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14612 $as_echo_n "checking where to find the target ranlib... " >&6; }
14613 if test "x${build}" != "x${host}" ; then
14614 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14615 # We already found the complete path
14616 ac_dir=`dirname $RANLIB_FOR_TARGET`
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14618 $as_echo "pre-installed in $ac_dir" >&6; }
14620 # Canadian cross, just use what we found
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14622 $as_echo "pre-installed" >&6; }
14626 case " ${configdirs} " in
14631 if test $ok = yes; then
14632 # An in-tree tool is available and we can use it
14633 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14635 $as_echo "just compiled" >&6; }
14636 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14637 # We already found the complete path
14638 ac_dir=`dirname $RANLIB_FOR_TARGET`
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14640 $as_echo "pre-installed in $ac_dir" >&6; }
14641 elif test "x$target" = "x$host"; then
14642 # We can use an host tool
14643 RANLIB_FOR_TARGET='$(RANLIB)'
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14645 $as_echo "host tool" >&6; }
14647 # We need a cross tool
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649 $as_echo "pre-installed" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14654 $as_echo_n "checking where to find the target readelf... " >&6; }
14655 if test "x${build}" != "x${host}" ; then
14656 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14657 # We already found the complete path
14658 ac_dir=`dirname $READELF_FOR_TARGET`
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14660 $as_echo "pre-installed in $ac_dir" >&6; }
14662 # Canadian cross, just use what we found
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664 $as_echo "pre-installed" >&6; }
14668 case " ${configdirs} " in
14673 if test $ok = yes; then
14674 # An in-tree tool is available and we can use it
14675 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14677 $as_echo "just compiled" >&6; }
14678 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14679 # We already found the complete path
14680 ac_dir=`dirname $READELF_FOR_TARGET`
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14682 $as_echo "pre-installed in $ac_dir" >&6; }
14683 elif test "x$target" = "x$host"; then
14684 # We can use an host tool
14685 READELF_FOR_TARGET='$(READELF)'
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14687 $as_echo "host tool" >&6; }
14689 # We need a cross tool
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691 $as_echo "pre-installed" >&6; }
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14696 $as_echo_n "checking where to find the target strip... " >&6; }
14697 if test "x${build}" != "x${host}" ; then
14698 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14699 # We already found the complete path
14700 ac_dir=`dirname $STRIP_FOR_TARGET`
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14702 $as_echo "pre-installed in $ac_dir" >&6; }
14704 # Canadian cross, just use what we found
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14706 $as_echo "pre-installed" >&6; }
14710 case " ${configdirs} " in
14715 if test $ok = yes; then
14716 # An in-tree tool is available and we can use it
14717 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14719 $as_echo "just compiled" >&6; }
14720 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14721 # We already found the complete path
14722 ac_dir=`dirname $STRIP_FOR_TARGET`
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14724 $as_echo "pre-installed in $ac_dir" >&6; }
14725 elif test "x$target" = "x$host"; then
14726 # We can use an host tool
14727 STRIP_FOR_TARGET='$(STRIP)'
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14729 $as_echo "host tool" >&6; }
14731 # We need a cross tool
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14733 $as_echo "pre-installed" >&6; }
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14738 $as_echo_n "checking where to find the target windres... " >&6; }
14739 if test "x${build}" != "x${host}" ; then
14740 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14741 # We already found the complete path
14742 ac_dir=`dirname $WINDRES_FOR_TARGET`
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14744 $as_echo "pre-installed in $ac_dir" >&6; }
14746 # Canadian cross, just use what we found
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14748 $as_echo "pre-installed" >&6; }
14752 case " ${configdirs} " in
14757 if test $ok = yes; then
14758 # An in-tree tool is available and we can use it
14759 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14761 $as_echo "just compiled" >&6; }
14762 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14763 # We already found the complete path
14764 ac_dir=`dirname $WINDRES_FOR_TARGET`
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14766 $as_echo "pre-installed in $ac_dir" >&6; }
14767 elif test "x$target" = "x$host"; then
14768 # We can use an host tool
14769 WINDRES_FOR_TARGET='$(WINDRES)'
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14771 $as_echo "host tool" >&6; }
14773 # We need a cross tool
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14775 $as_echo "pre-installed" >&6; }
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14780 $as_echo_n "checking where to find the target windmc... " >&6; }
14781 if test "x${build}" != "x${host}" ; then
14782 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14783 # We already found the complete path
14784 ac_dir=`dirname $WINDMC_FOR_TARGET`
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14786 $as_echo "pre-installed in $ac_dir" >&6; }
14788 # Canadian cross, just use what we found
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14790 $as_echo "pre-installed" >&6; }
14794 case " ${configdirs} " in
14799 if test $ok = yes; then
14800 # An in-tree tool is available and we can use it
14801 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14803 $as_echo "just compiled" >&6; }
14804 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14805 # We already found the complete path
14806 ac_dir=`dirname $WINDMC_FOR_TARGET`
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14808 $as_echo "pre-installed in $ac_dir" >&6; }
14809 elif test "x$target" = "x$host"; then
14810 # We can use an host tool
14811 WINDMC_FOR_TARGET='$(WINDMC)'
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14813 $as_echo "host tool" >&6; }
14815 # We need a cross tool
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14817 $as_echo "pre-installed" >&6; }
14825 # Certain tools may need extra flags.
14826 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14827 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14828 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14830 # When building target libraries, except in a Canadian cross, we use
14831 # the same toolchain as the compiler we just built.
14832 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14833 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14834 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14835 if test $host = $build; then
14836 case " $configdirs " in
14838 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14839 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14840 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14851 # Check whether --enable-maintainer-mode was given.
14852 if test "${enable_maintainer_mode+set}" = set; then :
14853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14855 USE_MAINTAINER_MODE=no
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14862 if test "$USE_MAINTAINER_MODE" = yes; then
14863 MAINTAINER_MODE_TRUE=
14864 MAINTAINER_MODE_FALSE='#'
14866 MAINTAINER_MODE_TRUE='#'
14867 MAINTAINER_MODE_FALSE=
14869 MAINT=$MAINTAINER_MODE_TRUE
14871 # ---------------------
14872 # GCC bootstrap support
14873 # ---------------------
14875 # Stage specific cflags for build.
14880 yes) stage1_cflags="-g -Wa,-J" ;;
14881 *) stage1_cflags="-g -J" ;;
14887 # Enable --enable-checking in stage1 of the compiler.
14888 # Check whether --enable-stage1-checking was given.
14889 if test "${enable_stage1_checking+set}" = set; then :
14890 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14892 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14893 # For --disable-checking or implicit --enable-checking=release, avoid
14894 # setting --enable-checking=gc in the default stage1 checking for LTO
14895 # bootstraps. See PR62077.
14896 case $BUILD_CONFIG in
14898 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14900 stage1_checking=--enable-checking=yes,types;;
14902 if test "x$enable_checking" = x && \
14903 test -d ${srcdir}/gcc && \
14904 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14905 stage1_checking=--enable-checking=yes,types,extra
14908 stage1_checking=--enable-checking=$enable_checking,types
14914 # Enable -Werror in bootstrap stage2 and later.
14915 # Check whether --enable-werror was given.
14916 if test "${enable_werror+set}" = set; then :
14917 enableval=$enable_werror;
14918 case ${enable_werror} in
14919 yes) stage2_werror_flag="--enable-werror-always" ;;
14920 *) stage2_werror_flag="" ;;
14925 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14926 case $BUILD_CONFIG in
14928 stage2_werror_flag="--enable-werror-always" ;;
14930 stage2_werror_flag="--enable-werror-always" ;;
14939 # Specify what files to not compare during bootstrap.
14941 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14943 hppa*64*-*-hpux*) ;;
14944 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14945 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14949 ac_config_files="$ac_config_files Makefile"
14951 cat >confcache <<\_ACEOF
14952 # This file is a shell script that caches the results of configure
14953 # tests run on this system so they can be shared between configure
14954 # scripts and configure runs, see configure's option --config-cache.
14955 # It is not useful on other systems. If it contains results you don't
14956 # want to keep, you may remove or edit it.
14958 # config.status only pays attention to the cache file if you give it
14959 # the --recheck option to rerun configure.
14961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14963 # following values.
14967 # The following way of writing the cache mishandles newlines in values,
14968 # but we know of no workaround that is simple, portable, and efficient.
14969 # So, we kill variables containing newlines.
14970 # Ultrix sh set writes to stderr and can't be redirected directly,
14971 # and sets the high bit in the cache file unless we assign to the vars.
14973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974 eval ac_val=\$$ac_var
14978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14982 _ | IFS | as_nl) ;; #(
14983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984 *) { eval $ac_var=; unset $ac_var;} ;;
14990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991 *${as_nl}ac_space=\ *)
14992 # `set' does not quote correctly, so add quotes: double-quote
14993 # substitution turns \\\\ into \\, and sed turns \\ into \.
14996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14999 # `set' quotes correctly as required by POSIX, so do not add quotes.
15000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014 if test -w "$cache_file"; then
15015 if test "x$cache_file" != "x/dev/null"; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017 $as_echo "$as_me: updating cache $cache_file" >&6;}
15018 if test ! -f "$cache_file" || test -h "$cache_file"; then
15019 cat confcache >"$cache_file"
15021 case $cache_file in #(
15023 mv -f confcache "$cache_file"$$ &&
15024 mv -f "$cache_file"$$ "$cache_file" ;; #(
15026 mv -f confcache "$cache_file" ;;
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15038 # Let make expand exec_prefix.
15039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15041 # Transform confdefs.h into DEFS.
15042 # Protect against shell expansion while executing Makefile rules.
15043 # Protect against Makefile macro expansion.
15045 # If the first sed substitution is executed (which looks for macros that
15046 # take arguments), then branch to the quote section. Otherwise,
15047 # look for a macro that doesn't take arguments.
15057 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15059 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15063 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15076 DEFS=`sed -n "$ac_script" confdefs.h`
15082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083 # 1. Remove the extension, and $U if already installed.
15084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15087 # will be set to the directory where LIBOBJS objects are built.
15088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15091 LIBOBJS=$ac_libobjs
15093 LTLIBOBJS=$ac_ltlibobjs
15097 : "${CONFIG_STATUS=./config.status}"
15099 ac_clean_files_save=$ac_clean_files
15100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15102 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15104 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15106 # Generated by $as_me.
15107 # Run this file to recreate the current configuration.
15108 # Compiler output produced by configure, useful for debugging
15109 # configure, is in config.log if it exists.
15112 ac_cs_recheck=false
15115 SHELL=\${CONFIG_SHELL-$SHELL}
15118 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15119 ## -------------------- ##
15120 ## M4sh Initialization. ##
15121 ## -------------------- ##
15123 # Be more Bourne compatible
15124 DUALCASE=1; export DUALCASE # for MKS sh
15125 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15128 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15129 # is contrary to our usage. Disable this feature.
15130 alias -g '${1+"$@"}'='"$@"'
15131 setopt NO_GLOB_SUBST
15133 case `(set -o) 2>/dev/null` in #(
15145 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15146 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15147 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15149 # Prefer a ksh shell builtin over an external printf program on Solaris,
15150 # but without wasting forks for bash or zsh.
15151 if test -z "$BASH_VERSION$ZSH_VERSION" \
15152 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15153 as_echo='print -r --'
15154 as_echo_n='print -rn --'
15155 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15156 as_echo='printf %s\n'
15157 as_echo_n='printf %s'
15159 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15160 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15161 as_echo_n='/usr/ucb/echo -n'
15163 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15164 as_echo_n_body='eval
15168 expr "X$arg" : "X\\(.*\\)$as_nl";
15169 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15171 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15173 export as_echo_n_body
15174 as_echo_n='sh -c $as_echo_n_body as_echo'
15176 export as_echo_body
15177 as_echo='sh -c $as_echo_body as_echo'
15180 # The user is always right.
15181 if test "${PATH_SEPARATOR+set}" != set; then
15183 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15184 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15191 # We need space, tab and new line, in precisely that order. Quoting is
15192 # there to prevent editors from complaining about space-tab.
15193 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15194 # splitting by setting IFS to empty value.)
15197 # Find who we are. Look in the path if we contain no directory separator.
15200 *[\\/]* ) as_myself=$0 ;;
15201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15205 test -z "$as_dir" && as_dir=.
15206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15212 # We did not find ourselves, most probably we were run as `sh COMMAND'
15213 # in which case we are not to be found in the path.
15214 if test "x$as_myself" = x; then
15217 if test ! -f "$as_myself"; then
15218 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15222 # Unset variables that we do not need and which cause bugs (e.g. in
15223 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15224 # suppresses any "Segmentation fault" message there. '((' could
15225 # trigger a bug in pdksh 5.2.14.
15226 for as_var in BASH_ENV ENV MAIL MAILPATH
15227 do eval test x\${$as_var+set} = xset \
15228 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15244 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15245 # ----------------------------------------
15246 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15247 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15248 # script with STATUS, using 1 if that was 0.
15251 as_status=$1; test $as_status -eq 0 && as_status=1
15253 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15254 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15256 $as_echo "$as_me: error: $2" >&2
15257 as_fn_exit $as_status
15261 # as_fn_set_status STATUS
15262 # -----------------------
15263 # Set $? to STATUS, without forking.
15264 as_fn_set_status ()
15267 } # as_fn_set_status
15269 # as_fn_exit STATUS
15270 # -----------------
15271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15275 as_fn_set_status $1
15281 # Portably unset VAR.
15284 { eval $1=; unset $1;}
15286 as_unset=as_fn_unset
15287 # as_fn_append VAR VALUE
15288 # ----------------------
15289 # Append the text in VALUE to the end of the definition contained in VAR. Take
15290 # advantage of any shell optimizations that allow amortized linear growth over
15291 # repeated appends, instead of the typical quadratic growth present in naive
15293 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15294 eval 'as_fn_append ()
15305 # as_fn_arith ARG...
15306 # ------------------
15307 # Perform arithmetic evaluation on the ARGs, and store the result in the
15308 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15309 # must be portable across $(()) and expr.
15310 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15311 eval 'as_fn_arith ()
15318 as_val=`expr "$@" || test $? -eq 1`
15323 if expr a : '\(a\)' >/dev/null 2>&1 &&
15324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15331 as_basename=basename
15336 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15342 as_me=`$as_basename -- "$0" ||
15343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15344 X"$0" : 'X\(//\)$' \| \
15345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15347 sed '/^.*\/\([^/][^/]*\)\/*$/{
15361 # Avoid depending upon Character Ranges.
15362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15365 as_cr_digits='0123456789'
15366 as_cr_alnum=$as_cr_Letters$as_cr_digits
15368 ECHO_C= ECHO_N= ECHO_T=
15369 case `echo -n x` in #(((((
15371 case `echo 'xy\c'` in
15372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15374 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15381 rm -f conf$$ conf$$.exe conf$$.file
15382 if test -d conf$$.dir; then
15383 rm -f conf$$.dir/conf$$.file
15386 mkdir conf$$.dir 2>/dev/null
15388 if (echo >conf$$.file) 2>/dev/null; then
15389 if ln -s conf$$.file conf$$ 2>/dev/null; then
15391 # ... but there are two gotchas:
15392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15394 # In both cases, we have to default to `cp -pR'.
15395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15397 elif ln conf$$.file conf$$ 2>/dev/null; then
15405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15406 rmdir conf$$.dir 2>/dev/null
15411 # Create "$as_dir" as a directory, including parents if necessary.
15416 -*) as_dir=./$as_dir;;
15418 test -d "$as_dir" || eval $as_mkdir_p || {
15422 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15423 *) as_qdir=$as_dir;;
15425 as_dirs="'$as_qdir' $as_dirs"
15426 as_dir=`$as_dirname -- "$as_dir" ||
15427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15428 X"$as_dir" : 'X\(//\)[^/]' \| \
15429 X"$as_dir" : 'X\(//\)$' \| \
15430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15431 $as_echo X"$as_dir" |
15432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15436 /^X\(\/\/\)[^/].*/{
15449 test -d "$as_dir" && break
15451 test -z "$as_dirs" || eval "mkdir $as_dirs"
15452 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15456 if mkdir -p . 2>/dev/null; then
15457 as_mkdir_p='mkdir -p "$as_dir"'
15459 test -d ./-p && rmdir ./-p
15464 # as_fn_executable_p FILE
15465 # -----------------------
15466 # Test if FILE is an executable regular file.
15467 as_fn_executable_p ()
15469 test -f "$1" && test -x "$1"
15470 } # as_fn_executable_p
15471 as_test_x='test -x'
15472 as_executable_p=as_fn_executable_p
15474 # Sed expression to map a string onto a valid CPP name.
15475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15477 # Sed expression to map a string onto a valid variable name.
15478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15482 ## ----------------------------------- ##
15483 ## Main body of $CONFIG_STATUS script. ##
15484 ## ----------------------------------- ##
15486 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489 # Save the log message, to keep $0 and so on meaningful, and to
15490 # report actual input values of CONFIG_FILES etc. instead of their
15491 # values after options handling.
15493 This file was extended by $as_me, which was
15494 generated by GNU Autoconf 2.69. Invocation command line was
15496 CONFIG_FILES = $CONFIG_FILES
15497 CONFIG_HEADERS = $CONFIG_HEADERS
15498 CONFIG_LINKS = $CONFIG_LINKS
15499 CONFIG_COMMANDS = $CONFIG_COMMANDS
15502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15507 case $ac_config_files in *"
15508 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 # Files that config.status was made for.
15515 config_files="$ac_config_files"
15519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15521 \`$as_me' instantiates files and other configuration actions
15522 from templates according to the current configuration. Unless the files
15523 and actions are specified as TAGs, all are instantiated by default.
15525 Usage: $0 [OPTION]... [TAG]...
15527 -h, --help print this help, then exit
15528 -V, --version print version number and configuration settings, then exit
15529 --config print configuration, then exit
15530 -q, --quiet, --silent
15531 do not print progress messages
15532 -d, --debug don't remove temporary files
15533 --recheck update $as_me by reconfiguring in the same conditions
15534 --file=FILE[:TEMPLATE]
15535 instantiate the configuration file FILE
15537 Configuration files:
15540 Report bugs to the package provider."
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15547 configured by $0, generated by GNU Autoconf 2.69,
15548 with options \\"\$ac_cs_config\\"
15550 Copyright (C) 2012 Free Software Foundation, Inc.
15551 This config.status script is free software; the Free Software Foundation
15552 gives unlimited permission to copy, distribute and modify it."
15558 test -n "\$AWK" || AWK=awk
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 # The default lists apply if the user does not specify any file.
15568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15585 # Handling of the options.
15586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15589 $as_echo "$ac_cs_version"; exit ;;
15590 --config | --confi | --conf | --con | --co | --c )
15591 $as_echo "$ac_cs_config"; exit ;;
15592 --debug | --debu | --deb | --de | --d | -d )
15594 --file | --fil | --fi | --f )
15597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15598 '') as_fn_error $? "missing file argument" ;;
15600 as_fn_append CONFIG_FILES " '$ac_optarg'"
15601 ac_need_defaults=false;;
15602 --he | --h | --help | --hel | -h )
15603 $as_echo "$ac_cs_usage"; exit ;;
15604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15608 # This is an error.
15609 -*) as_fn_error $? "unrecognized option: \`$1'
15610 Try \`$0 --help' for more information." ;;
15612 *) as_fn_append ac_config_targets " $1"
15613 ac_need_defaults=false ;;
15619 ac_configure_extra_args=
15621 if $ac_cs_silent; then
15623 ac_configure_extra_args="$ac_configure_extra_args --silent"
15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15628 if \$ac_cs_recheck; then
15629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632 CONFIG_SHELL='$SHELL'
15633 export CONFIG_SHELL
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643 ## Running $as_me. ##
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15653 extrasub_build="$extrasub_build"
15654 extrasub_host="$extrasub_host"
15655 extrasub_target="$extrasub_target"
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661 # Handling of arguments.
15662 for ac_config_target in $ac_config_targets
15664 case $ac_config_target in
15665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15672 # If the user did not use the arguments to specify the items to instantiate,
15673 # then the envvar interface is used. Set only those that are not.
15674 # We use the long form for the default assignment because of an extremely
15675 # bizarre bug on SunOS 4.1.3.
15676 if $ac_need_defaults; then
15677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15680 # Have a temporary directory for convenience. Make it in the build tree
15681 # simply because there is no reason against having it here, and in addition,
15682 # creating and moving files from /tmp can sometimes cause problems.
15683 # Hook for its removal unless debugging.
15684 # Note that there is a small window in which the directory will not be cleaned:
15685 # after its creation but before its name has been assigned to `$tmp'.
15689 trap 'exit_status=$?
15690 : "${ac_tmp:=$tmp}"
15691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15693 trap 'as_fn_exit 1' 1 2 13 15
15695 # Create a (secure) tmp directory for tmp files.
15698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15702 tmp=./conf$$-$RANDOM
15703 (umask 077 && mkdir "$tmp")
15704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15707 # Set up the scripts for CONFIG_FILES section.
15708 # No need to generate them if there are no CONFIG_FILES.
15709 # This happens for instance with `./config.status config.h'.
15710 if test -n "$CONFIG_FILES"; then
15712 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15713 ac_cs_awk_getline=:
15714 ac_cs_awk_pipe_init=
15715 ac_cs_awk_read_file='
15716 while ((getline aline < (F[key])) > 0)
15719 ac_cs_awk_pipe_fini=
15721 ac_cs_awk_getline=false
15722 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15723 ac_cs_awk_read_file='
15725 print "cat " F[key] " &&"
15726 '$ac_cs_awk_pipe_init
15727 # The final `:' finishes the AND list.
15728 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15730 ac_cr=`echo X | tr X '\015'`
15731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15732 # But we know of no other shell where ac_cr would be empty at this
15733 # point, so we can use a bashism as a fallback.
15734 if test "x$ac_cr" = x; then
15735 eval ac_cr=\$\'\\r\'
15737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15741 ac_cs_awk_cr=$ac_cr
15744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15747 # Create commands to substitute file output variables.
15749 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15750 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15751 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15754 } >conf$$files.sh &&
15755 . ./conf$$files.sh ||
15756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15757 rm -f conf$$files.sh
15760 echo "cat >conf$$subs.awk <<_ACEOF" &&
15761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15763 } >conf$$subs.sh ||
15764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15767 for ac_last_try in false false false false false :; do
15768 . ./conf$$subs.sh ||
15769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15772 if test $ac_delim_n = $ac_delim_num; then
15774 elif $ac_last_try; then
15775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15780 rm -f conf$$subs.sh
15782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15787 s/^/S["/; s/!.*/"]=/
15797 s/\(.\{148\}\)..*/\1/
15799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15811 s/\(.\{148\}\)..*/\1/
15813 s/["\\]/\\&/g; s/^/"/; s/$/"/
15817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15822 ' <conf$$subs.awk | sed '
15827 ' >>$CONFIG_STATUS || ac_write_fail=1
15828 rm -f conf$$subs.awk
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15831 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15832 for (key in S) S_is_set[key] = 1
15834 \$ac_cs_awk_pipe_init
15838 nfields = split(line, field, "@")
15840 len = length(field[1])
15841 for (i = 2; i < nfields; i++) {
15843 keylen = length(key)
15844 if (S_is_set[key]) {
15846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15847 len += length(value) + length(field[++i])
15852 if (nfields == 3 && !substed) {
15854 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15855 \$ac_cs_awk_read_file
15861 \$ac_cs_awk_pipe_fini
15864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15869 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15870 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15873 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15874 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15875 # trailing colons and then remove the whole line if VPATH becomes empty
15876 # (actually we leave an empty line to preserve line numbers).
15877 if test "x$srcdir" = x.; then
15878 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 fi # test -n "$CONFIG_FILES"
15900 eval set X " :F $CONFIG_FILES "
15905 :[FHLC]) ac_mode=$ac_tag; continue;;
15907 case $ac_mode$ac_tag in
15909 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15910 :[FH]-) ac_tag=-:-;;
15911 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15928 -) ac_f="$ac_tmp/stdin";;
15929 *) # Look for the file first in the build tree, then in the source tree
15930 # (if the path is not absolute). The absolute path cannot be DOS-style,
15931 # because $ac_f cannot contain `:'.
15935 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15937 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15939 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15940 as_fn_append ac_file_inputs " '$ac_f'"
15943 # Let's still pretend it is `configure' which instantiates (i.e., don't
15944 # use $as_me), people would be surprised to read:
15945 # /* config.h. Generated by config.status. */
15946 configure_input='Generated from '`
15947 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15949 if test x"$ac_file" != x-; then
15950 configure_input="$ac_file. $configure_input"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15952 $as_echo "$as_me: creating $ac_file" >&6;}
15954 # Neutralize special characters interpreted by sed in replacement strings.
15955 case $configure_input in #(
15956 *\&* | *\|* | *\\* )
15957 ac_sed_conf_input=`$as_echo "$configure_input" |
15958 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15959 *) ac_sed_conf_input=$configure_input;;
15963 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15969 ac_dir=`$as_dirname -- "$ac_file" ||
15970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15971 X"$ac_file" : 'X\(//\)[^/]' \| \
15972 X"$ac_file" : 'X\(//\)$' \| \
15973 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15974 $as_echo X"$ac_file" |
15975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15979 /^X\(\/\/\)[^/].*/{
15992 as_dir="$ac_dir"; as_fn_mkdir_p
15996 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15999 # A ".." for each directory in $ac_dir_suffix.
16000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16001 case $ac_top_builddir_sub in
16002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16006 ac_abs_top_builddir=$ac_pwd
16007 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16008 # for backward compatibility:
16009 ac_top_builddir=$ac_top_build_prefix
16012 .) # We are building in place.
16014 ac_top_srcdir=$ac_top_builddir_sub
16015 ac_abs_top_srcdir=$ac_pwd ;;
16016 [\\/]* | ?:[\\/]* ) # Absolute name.
16017 ac_srcdir=$srcdir$ac_dir_suffix;
16018 ac_top_srcdir=$srcdir
16019 ac_abs_top_srcdir=$srcdir ;;
16020 *) # Relative name.
16021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16022 ac_top_srcdir=$ac_top_build_prefix$srcdir
16023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16025 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16036 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 # If the template does not know about datarootdir, expand it.
16042 # FIXME: This hack should be removed a few years after 2.60.
16043 ac_datarootdir_hack=; ac_datarootdir_seen=
16054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16055 *datarootdir*) ac_datarootdir_seen=yes;;
16056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16061 ac_datarootdir_hack='
16062 s&@datadir@&$datadir&g
16063 s&@docdir@&$docdir&g
16064 s&@infodir@&$infodir&g
16065 s&@localedir@&$localedir&g
16066 s&@mandir@&$mandir&g
16067 s&\\\${datarootdir}&$datarootdir&g' ;;
16071 # Neutralize VPATH when `$srcdir' = `.'.
16072 # Shell code in configure.ac might set extrasub.
16073 # FIXME: do we really want to maintain this feature?
16074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075 ac_sed_extra="$ac_vpsub
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16081 s|@configure_input@|$ac_sed_conf_input|;t t
16082 s&@top_builddir@&$ac_top_builddir_sub&;t t
16083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16084 s&@srcdir@&$ac_srcdir&;t t
16085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16086 s&@top_srcdir@&$ac_top_srcdir&;t t
16087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16088 s&@builddir@&$ac_builddir&;t t
16089 s&@abs_builddir@&$ac_abs_builddir&;t t
16090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16091 s&@INSTALL@&$ac_INSTALL&;t t
16092 $ac_datarootdir_hack
16094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16095 if $ac_cs_awk_getline; then
16096 $AWK -f "$ac_tmp/subs.awk"
16098 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16105 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16107 which seems to be undefined. Please make sure it is defined" >&5
16108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16109 which seems to be undefined. Please make sure it is defined" >&2;}
16111 rm -f "$ac_tmp/stdin"
16113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16124 case $ac_file$ac_mode in
16125 "Makefile":F) sed "$extrasub_build" Makefile |
16126 sed "$extrasub_host" |
16127 sed "$extrasub_target" > mf$$
16128 mv -f mf$$ Makefile ;;
16136 ac_clean_files=$ac_clean_files_save
16138 test $ac_write_fail = 0 ||
16139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16142 # configure is writing to config.log, and then calls config.status.
16143 # config.status does its own redirection, appending to config.log.
16144 # Unfortunately, on DOS this fails, as config.log is still kept open
16145 # by configure, so config.status won't be able to write to it; its
16146 # output is simply discarded. So we exec the FD to /dev/null,
16147 # effectively closing config.log, so it can be properly (re)opened and
16148 # appended to by config.status. When coming back to configure, we
16149 # need to make the FD available again.
16150 if test "$no_create" != yes; then
16152 ac_config_status_args=
16153 test "$silent" = yes &&
16154 ac_config_status_args="$ac_config_status_args --quiet"
16156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16159 # would make configure fail if this is the last instruction.
16160 $ac_cs_success || as_fn_exit 1
16162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}