2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
564 MAINTAINER_MODE_FALSE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
705 TOPLEVEL_CONFIGURE_ARGUMENTS
733 program_transform_name
744 ac_subst_files='serialization_dependencies
750 enable_option_checking
753 enable_as_accelerator_for
754 enable_offload_targets
757 enable_compressed_debug_sections
759 enable_libquadmath_support
764 enable_static_libjava
784 enable_isl_version_check
786 enable_linker_plugin_configure_flags
787 enable_linker_plugin_flags
788 enable_stage1_languages
791 with_debug_prefix_map
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
801 ac_precious_vars='build_alias
849 # Initialize some variables set by options.
851 ac_init_version=false
852 ac_unrecognized_opts=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
863 program_transform_name=s,x,x,
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1155 -site=* | --site=* | --sit=*)
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval with_$ac_useropt=no ;;
1214 # Obsolete; use --with-x.
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1282 # Be sure to have absolute directory names.
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 as_fn_error "path to source, $srcdir, contains spaces"
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1464 if test -n "$ac_init_help"; then
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
1495 --disable-isl-version-check
1496 disable check for isl version
1497 --enable-lto enable link time optimization support
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1509 --enable-vtable-verify Enable vtable verification feature
1510 --enable-serial-[{host,target,build}-]configure
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1520 --enable-werror enable -Werror in bootstrap stage2 and later
1521 --enable-host-shared build host code as shared libraries
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
1527 --with-system-zlib use installed libz
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
1537 --with-mpfr-include=PATH
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
1547 --with-stage1-libs=LIBS libraries for stage1
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
1553 --with-isl=PATH Specify prefix directory for the installed isl
1554 package. Equivalent to
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
1559 --with-build-sysroot=SYSROOT
1560 use sysroot as the system root during the build
1561 --with-debug-prefix-map='A=B C=D ...'
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
1565 --with-build-time-tools=PATH
1566 use given path to find target tools during the build
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1579 additional configure arguments for build directories
1581 additional configure arguments for host directories
1583 additional configure arguments for target directories
1586 DLLTOOL DLLTOOL for the host
1588 LIPO LIPO for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
1593 WINDMC WINDMC for the host
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
1596 READELF READELF for the host
1606 GFORTRAN for the target
1614 DLLTOOL for the target
1622 OBJCOPY for the target
1624 OBJDUMP for the target
1626 RANLIB for the target
1628 READELF for the target
1630 STRIP for the target
1632 WINDRES for the target
1634 WINDMC for the target
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1703 generated by GNU Autoconf 2.64
1705 Copyright (C) 2009 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 } # ac_fn_c_try_compile
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 } # ac_fn_cxx_try_compile
1792 # ac_fn_cxx_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_link ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_cxx_try_link
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 } # ac_fn_c_try_link
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1887 It was created by $as_me, which was
1888 generated by GNU Autoconf 2.64. Invocation command line was
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_must_keep_next=false
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1977 -* ) ac_must_keep_next=true ;;
1980 as_fn_append ac_configure_args " '$ac_arg'"
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1999 ## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##
2004 # The following way of writing the cache mishandles newlines in values,
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##
2042 for ac_var in $ac_subst_vars
2044 eval ac_val=\$$ac_var
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 $as_echo "$ac_var='\''$ac_val'\''"
2052 if test -n "$ac_subst_files"; then
2054 ## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##
2059 for ac_var in $ac_subst_files
2061 eval ac_val=\$$ac_var
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 $as_echo "$ac_var='\''$ac_val'\''"
2070 if test -s confdefs.h; then
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2096 $as_echo "/* confdefs.h */" > confdefs.h
2098 # Predefined preprocessor variables.
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2140 test "x$ac_site_file" = xNONE && continue
2141 if test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2166 # Check that the precious variables saved in the cache have kept the same
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 # if PWD already has a value, it is probably wrong.
2243 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2245 # Export original configure arguments for use by sub-configures.
2246 # Quote arguments with shell meta charatcers.
2247 TOPLEVEL_CONFIGURE_ARGUMENTS=
2248 set -- "$progname" "$@"
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2261 if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2264 # Remove the initial space we just introduced and, as these will be
2265 # expanded by make, quote '$'.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2269 # Find the build, host, and target systems.
2271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2318 ac_save_IFS=$IFS; IFS='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
2353 test "$host_noncanonical" = "$target_noncanonical" &&
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2356 program_transform_name=s,y,y,
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359 $as_echo_n "checking host system type... " >&6; }
2360 if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372 $as_echo "$ac_cv_host" >&6; }
2375 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2378 ac_save_IFS=$IFS; IFS='-'
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392 $as_echo_n "checking target system type... " >&6; }
2393 if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405 $as_echo "$ac_cv_target" >&6; }
2406 case $ac_cv_target in
2408 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2410 target=$ac_cv_target
2411 ac_save_IFS=$IFS; IFS='-'
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2421 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2424 # The aliases save the names the user supplied, while $host etc.
2425 # will get canonicalized.
2426 test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2429 program_prefix=${target_alias}-
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2443 # Get 'install' or 'install-sh' and its variants.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513 rm -rf conftest.one conftest.two conftest.dir
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538 $as_echo_n "checking whether ln works... " >&6; }
2539 if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2542 rm -f conftestdata_t
2543 echo >conftestdata_f
2544 if ln conftestdata_f conftestdata_t 2>/dev/null
2550 rm -f conftestdata_f conftestdata_t
2553 if test $acx_cv_prog_LN = no; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556 $as_echo "no, using $LN" >&6; }
2558 LN="$acx_cv_prog_LN"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564 $as_echo_n "checking whether ln -s works... " >&6; }
2566 if test "$LN_S" = "ln -s"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571 $as_echo "no, using $LN_S" >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576 if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597 # Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599 case `"$ac_path_SED" --version 2>&1` in
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2604 $as_echo_n 0123456789 >"conftest.in"
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2625 $ac_path_SED_found && break 3
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639 $as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2643 for ac_prog in gawk mawk nawk awk
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2682 test -n "$AWK" && break
2686 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2688 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2690 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2694 # Set srcdir to "." if that's what it is.
2695 # This is important for multilib support.
2697 if test "${pwd}" = "${srcpwd}" ; then
2705 ### To add a new directory to the tree, first choose whether it is a target
2706 ### or a host dependent tool. Then put it into the appropriate list
2707 ### (library or tools, host or target), doing a dependency sort.
2709 # Subdirs will be configured in the order listed in build_configdirs,
2710 # configdirs, or target_configdirs; see the serialization section below.
2712 # Dependency sorting is only needed when *configuration* must be done in
2713 # a particular order. In all cases a dependency should be specified in
2714 # the Makefile, whether or not it's implicitly specified here.
2716 # Double entries in build_configdirs, configdirs, or target_configdirs may
2717 # cause circular dependencies and break everything horribly.
2719 # these library is used by various programs built for the build
2722 build_libs="build-libiberty build-libcpp"
2724 # these tools are built for the build environment
2725 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2727 # these libraries are used by various programs built for the host environment
2729 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2731 # these tools are built for the host environment
2732 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733 # know that we are building the simulator.
2734 # binutils, gas and ld appear in that order because it makes sense to run
2735 # "make check" in that particular order.
2736 # If --enable-gold is used, "gold" may replace "ld".
2737 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"
2739 # libgcj represents the runtime libraries only used by gcj.
2740 libgcj="target-libffi \
2744 # these libraries are built for the target environment, and are built after
2745 # the host libraries and the host tools (which may be a cross compiler)
2746 # Note that libiberty is not a target library.
2747 target_libraries="target-libgcc \
2748 target-libbacktrace \
2753 target-liboffloadmic \
2756 target-libstdc++-v3 \
2757 target-libsanitizer \
2761 target-libquadmath \
2762 target-libgfortran \
2769 # these tools are built using the target libraries, and are intended to
2770 # run only in the target environment
2772 # note: any program that *uses* libraries that are in the "target_libraries"
2773 # list belongs in this list.
2775 target_tools="target-rda"
2777 ################################################################################
2779 ## All tools belong in one of the four categories, and are assigned above
2780 ## We assign ${configdirs} this way to remove all embedded newlines. This
2781 ## is important because configure will choke if they ever get through.
2782 ## ${configdirs} is directories we build using the host tools.
2783 ## ${target_configdirs} is directories we build using the target tools.
2784 configdirs=`echo ${host_libs} ${host_tools}`
2785 target_configdirs=`echo ${target_libraries} ${target_tools}`
2786 build_configdirs=`echo ${build_libs} ${build_tools}`
2790 ################################################################################
2792 srcname="gnu development package"
2794 # This gets set non-empty for some net releases of packages.
2797 # Define is_cross_compiler to save on calls to 'test'.
2799 if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
2802 is_cross_compiler=yes
2805 # Find the build and target subdir names.
2807 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808 # have matching libraries, they should use host libraries: Makefile.tpl
2809 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810 # However, they still use the build modules, because the corresponding
2811 # host modules (e.g. bison) are only built for the host when bootstrap
2813 # - build_subdir is where we find build modules, and never changes.
2814 # - build_libsubdir is where we find build libraries, and can be overridden.
2816 # Prefix 'build-' so this never conflicts with target_subdir.
2817 build_subdir="build-${build_noncanonical}"
2819 # Check whether --with-build-libsubdir was given.
2820 if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
2823 build_libsubdir="$build_subdir"
2826 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827 if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2834 target_subdir=${target_noncanonical}
2836 # Be sure to cover against remnants of an in-tree build.
2837 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2842 # Skipdirs are removed silently.
2844 # Noconfigdirs are removed loudly.
2848 # Make sure we don't let GNU ld be added if we didn't want it.
2849 if test x$with_gnu_ld = xno ; then
2851 noconfigdirs="$noconfigdirs ld gold"
2855 # Make sure we don't let GNU as be added if we didn't want it.
2856 if test x$with_gnu_as = xno ; then
2858 noconfigdirs="$noconfigdirs gas"
2863 # Check whether --with-system-zlib was given.
2864 if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2868 # Make sure we don't let ZLIB be added if we didn't want it.
2869 if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2874 # some tools are so dependent upon X11 that if we're not building with X,
2875 # it's not even worth trying to configure, much less build, that tool.
2878 yes | "") ;; # the default value for this tree is that X11 is available
2880 skipdirs="${skipdirs} tk itcl libgui"
2881 # We won't be able to build gdbtk without X.
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2887 # Some are only suitable for cross toolchains.
2888 # Remove these if host=target.
2889 cross_only="target-libgloss target-newlib target-opcodes"
2891 case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
2895 # If both --with-headers and --with-libs are specified, default to
2897 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2899 if test x"${with_newlib}" = x ; then
2904 # Recognize --with-newlib/--without-newlib.
2905 case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2910 # Check whether --enable-as-accelerator-for was given.
2911 if test "${enable_as_accelerator_for+set}" = set; then :
2912 enableval=$enable_as_accelerator_for;
2916 # Check whether --enable-offload-targets was given.
2917 if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2924 enable_offload_targets=
2928 # Handle --enable-gold, --enable-ld.
2929 # --disable-gold [--enable-ld]
2930 # Build only ld. Default option.
2931 # --enable-gold [--enable-ld]
2932 # Build both gold and ld. Install gold as "ld.gold", install ld
2933 # as "ld.bfd" and "ld".
2934 # --enable-gold=default [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2936 # install ld as "ld.bfd".
2937 # --enable-gold[=default] --disable-ld
2938 # Build only gold, which is then installed as both "ld.gold" and "ld".
2939 # --enable-gold --enable-ld=default
2940 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2942 # In other words, ld is default
2943 # --enable-gold=default --enable-ld=default
2947 # Check whether --enable-gold was given.
2948 if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
2954 case "${ENABLE_GOLD}" in
2956 # Check for ELF target.
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2964 *-*-linux*aout* | *-*-linux*oldld*)
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976 | aarch64*-*-* | tilegx*-*-*)
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993 # Check whether --enable-ld was given.
2994 if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
3001 case "${ENABLE_LD}" in
3003 if test x${default_ld} != x; then
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3022 # Decide the default method for compressing debug sections.
3023 # Provide a configure time option to override our default.
3024 # Check whether --enable-compressed_debug_sections was given.
3025 if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3032 enable_compressed_debug_sections=
3036 # Configure extra directories which are host specific
3040 configdirs="$configdirs libtermcap" ;;
3043 # A target can indicate whether a language isn't supported for some reason.
3044 # Only spaces may be used in this macro; not newlines or tabs.
3045 unsupported_languages=
3047 # Remove more programs from consideration, based on the host or
3048 # target this usually means that a port of the program doesn't
3052 i[3456789]86-*-msdosdjgpp*)
3053 noconfigdirs="$noconfigdirs tcl tk itcl"
3058 # Check whether --enable-libquadmath was given.
3059 if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3062 ENABLE_LIBQUADMATH=yes
3065 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3070 # Check whether --enable-libquadmath-support was given.
3071 if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3077 enable_libquadmath_support=
3078 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3083 # Check whether --enable-libada was given.
3084 if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3090 if test "${ENABLE_LIBADA}" != "yes" ; then
3091 noconfigdirs="$noconfigdirs gnattools"
3094 # Check whether --enable-libssp was given.
3095 if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3102 # Check whether --enable-libstdcxx was given.
3103 if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3106 ENABLE_LIBSTDCXX=default
3109 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3113 # If this is accelerator compiler and its target is intelmic we enable
3114 # target liboffloadmic by default. If this is compiler with offloading
3115 # for intelmic we enable host liboffloadmic by default. Otherwise
3116 # liboffloadmic is disabled by default.
3117 # Check whether --enable-liboffloadmic was given.
3118 if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3121 enable_liboffloadmic=$enableval ;;
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3126 if test x"$enable_as_accelerator_for" != x; then
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3133 enable_liboffloadmic=no
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3143 enable_liboffloadmic=no
3151 # Save it here so that, even in case of --enable-libgcj, if the Java
3152 # front-end isn't enabled, we still get libgcj disabled.
3153 libgcj_saved=$libgcj
3154 case $enable_libgcj in
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3162 # Make sure we get it printed in the list of not supported target libs.
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3171 # Check whether --enable-static-libjava was given.
3172 if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3175 ENABLE_STATIC_LIBJAVA=no
3178 enable_static_libjava=
3179 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3183 if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3195 *-*-solaris2* | *-*-hpux11*)
3197 *-*-darwin* | *-*-aix*)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3226 # Disable libcilkrts on unsupported systems.
3227 if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230 $as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3322 # Enable libmpx on supported systems by request.
3323 if test -d ${srcdir}/libmpx; then
3324 if test x$enable_libmpx = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326 $as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3343 # Disable libquadmath for some systems.
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3355 # Disable libssp for some systems.
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
3368 noconfigdirs="$noconfigdirs target-libssp"
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 # Disable Fortran for some systems.
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3405 # Disable Java if libffi is not supported.
3437 powerpc-*-aix* | rs6000-*-aix*)
3441 powerpc64-*-freebsd*)
3445 s390-*-* | s390x-*-*)
3447 sh-*-* | sh[34]*-*-*)
3449 sh64-*-* | sh5*-*-*)
3456 unsupported_languages="$unsupported_languages java"
3460 # Disable Java, libgcj or related libraries for some systems.
3464 i[3456789]86-*-darwin*)
3466 x86_64-*-darwin[912]*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3499 noconfigdirs="$noconfigdirs target-boehm-gc"
3501 cris-*-* | crisv32-*-*)
3502 unsupported_languages="$unsupported_languages java"
3506 *) # See PR46792 regarding target-libffi.
3507 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3511 # In this case, it's because the hppa64-linux target is for
3512 # the kernel only at this point and has no libc, and thus no
3513 # headers, crt*.o, etc., all of which are needed by these.
3514 unsupported_languages="$unsupported_languages java"
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3522 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3523 # build on HP-UX 10.20.
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3529 i[3456789]86-w64-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3532 i[3456789]86-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3539 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3542 # copied from rs6000-*-* entry
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3552 noconfigdirs="$noconfigdirs ${libgcj}"
3556 # Disable the go frontend on systems where it is known to not work. Please keep
3557 # this in sync with contrib/config-list.mk.
3559 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3560 unsupported_languages="$unsupported_languages go"
3564 # Disable libgo for some systems where it is known to not work.
3565 # For testing, you can easily override this with --enable-libgo.
3566 if test x$enable_libgo = x; then
3570 noconfigdirs="$noconfigdirs target-libgo"
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3576 noconfigdirs="$noconfigdirs target-libgo"
3581 # Default libgloss CPU subdirectory.
3582 libgloss_dir="$target_cpu"
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3589 libgloss_dir=aarch64
3594 cris-*-* | crisv32-*-*)
3603 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3604 libgloss_dir=m68hc11
3606 m68*-*-* | fido-*-*)
3620 # Disable newlib and libgloss for various target OSes.
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 i[3456789]86-*-linux*)
3626 # This section makes it possible to build newlib natively on linux.
3627 # If we are using a cross compiler then don't configure newlib.
3628 if test x${is_cross_compiler} != xno ; then
3629 noconfigdirs="$noconfigdirs target-newlib"
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 # If we are not using a cross compiler, do configure newlib.
3633 # Note however, that newlib will only be configured in this situation
3634 # if the --with-newlib option has been given, because otherwise
3635 # 'target-newlib' will appear in skipdirs.
3637 i[3456789]86-*-rdos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs="$noconfigdirs sim target-rda"
3699 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3700 noconfigdirs="$noconfigdirs sim target-rda"
3702 i[3456789]86-*-darwin*)
3703 noconfigdirs="$noconfigdirs ld gprof"
3704 noconfigdirs="$noconfigdirs sim target-rda"
3706 x86_64-*-darwin[912]*)
3707 noconfigdirs="$noconfigdirs ld gas gprof"
3708 noconfigdirs="$noconfigdirs sim target-rda"
3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs="$noconfigdirs sim target-rda"
3717 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3718 && test -f /usr/local/include/gmp.h; then
3723 # Remove unsupported stuff on all kaOS configurations.
3724 noconfigdirs="$noconfigdirs target-libgloss"
3731 noconfigdirs="$noconfigdirs target-libgloss"
3732 # this is not caught below because this stanza matches earlier
3734 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3737 # The tpf target doesn't support gdb yet.
3739 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3742 noconfigdirs="$noconfigdirs target-rda"
3747 # ld works, but does not support shared libraries.
3748 # gas doesn't generate exception information.
3749 noconfigdirs="$noconfigdirs gas ld"
3752 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3755 # newlib is not 64 bit ready
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3759 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3762 noconfigdirs="$noconfigdirs target-libgloss"
3765 noconfigdirs="$noconfigdirs target-libgloss"
3768 noconfigdirs="$noconfigdirs ld target-libgloss"
3773 if test x${with_avrlibc} != xno; then
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3777 c4x-*-* | tic4x-*-*)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3781 noconfigdirs="$noconfigdirs target-libgloss gdb"
3784 noconfigdirs="$noconfigdirs target-libgloss"
3787 noconfigdirs="$noconfigdirs gdb"
3790 noconfigdirs="$noconfigdirs gdb"
3793 noconfigdirs="$noconfigdirs target-rda gprof"
3796 noconfigdirs="$noconfigdirs"
3799 noconfigdirs="$noconfigdirs target-libgloss"
3802 noconfigdirs="$noconfigdirs target-libgloss"
3804 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3807 noconfigdirs="$noconfigdirs gdb"
3810 noconfigdirs="$noconfigdirs gdb ld"
3818 hppa*-*-openbsd* | \
3824 noconfigdirs="$noconfigdirs ld"
3827 noconfigdirs="$noconfigdirs gdb"
3830 # No gdb support yet.
3831 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3834 # No ld support yet.
3835 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3838 # No ld support yet.
3839 noconfigdirs="$noconfigdirs libgui itcl ld"
3841 i[3456789]86-w64-mingw*)
3843 i[3456789]86-*-mingw*)
3844 target_configdirs="$target_configdirs target-winsup"
3847 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 # always build newlib if winsup directory is present.
3850 if test -d "$srcdir/winsup/cygwin"; then
3851 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3852 elif test -d "$srcdir/newlib"; then
3853 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3857 noconfigdirs="$noconfigdirs target-libgloss"
3859 i[3456789]86-*-sco3.2v5*)
3860 # The linker does not yet know about weak symbols in COFF,
3861 # and is not configured to handle mixed ELF and COFF.
3862 noconfigdirs="$noconfigdirs ld target-libgloss"
3864 i[3456789]86-*-sco*)
3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
3867 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3868 noconfigdirs="$noconfigdirs target-libgloss"
3870 i[3456789]86-*-sysv4*)
3871 noconfigdirs="$noconfigdirs target-libgloss"
3873 i[3456789]86-*-beos*)
3874 noconfigdirs="$noconfigdirs gdb"
3876 i[3456789]86-*-rdos*)
3877 noconfigdirs="$noconfigdirs gdb"
3880 noconfigdirs="$noconfigdirs gdb"
3883 noconfigdirs="$noconfigdirs sim"
3886 # copied from rs6000-*-* entry
3887 noconfigdirs="$noconfigdirs gprof"
3889 powerpc*-*-winnt* | powerpc*-*-pe*)
3890 target_configdirs="$target_configdirs target-winsup"
3891 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3892 # always build newlib.
3893 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3895 # This is temporary until we can link against shared libraries
3896 powerpcle-*-solaris*)
3897 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3900 noconfigdirs="$noconfigdirs gdb"
3903 noconfigdirs="$noconfigdirs gprof"
3906 noconfigdirs="$noconfigdirs gprof"
3909 noconfigdirs="$noconfigdirs gprof"
3912 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3915 noconfigdirs="$noconfigdirs gprof"
3917 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3918 if test x$with_newlib = xyes; then
3919 noconfigdirs="$noconfigdirs gprof"
3923 noconfigdirs="$noconfigdirs gprof target-libgloss"
3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
3929 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3933 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3934 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3935 noconfigdirs="$noconfigdirs ld gas gprof"
3938 noconfigdirs="$noconfigdirs gprof"
3941 noconfigdirs="$noconfigdirs gdb"
3944 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3947 noconfigdirs="$noconfigdirs gdb"
3954 noconfigdirs="$noconfigdirs target-libgloss" ;;
3958 if test x${is_cross_compiler} = xno ; then
3963 noconfigdirs="$noconfigdirs sim"
3965 tilepro*-*-* | tilegx*-*-*)
3966 noconfigdirs="$noconfigdirs sim"
3969 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3972 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3976 # If we aren't building newlib, then don't build libgloss, since libgloss
3977 # depends upon some newlib header files.
3978 case "${noconfigdirs}" in
3979 *target-libgloss*) ;;
3980 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3983 # Work in distributions that contain no compiler tools, like Autoconf.
3984 host_makefile_frag=/dev/null
3985 if test -d ${srcdir}/config ; then
3987 i[3456789]86-*-msdosdjgpp*)
3988 host_makefile_frag="config/mh-djgpp"
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3993 $as_echo_n "checking to see if cat works as expected... " >&6; }
3994 echo a >cygwin-cat-check
3995 if test `cat cygwin-cat-check` = a ; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998 $as_echo "yes" >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4003 as_fn_error "The cat command does not ignore carriage return characters.
4004 Please either mount the build directory in binary mode or run the following
4005 commands before running any configure script:
4011 host_makefile_frag="config/mh-cygwin"
4014 host_makefile_frag="config/mh-mingw"
4017 host_makefile_frag="config/mh-alpha-linux"
4020 host_makefile_frag="config/mh-pa-hpux10"
4023 host_makefile_frag="config/mh-pa"
4026 host_makefile_frag="config/mh-pa"
4029 host_makefile_frag="config/mh-darwin"
4032 host_makefile_frag="config/mh-ppc-aix"
4035 host_makefile_frag="config/mh-ppc-aix"
4040 if test "${build}" != "${host}" ; then
4041 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4042 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4043 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4044 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4045 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4046 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4047 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4048 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4049 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4050 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4051 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4052 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4053 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4055 AR_FOR_BUILD="\$(AR)"
4056 AS_FOR_BUILD="\$(AS)"
4057 CC_FOR_BUILD="\$(CC)"
4058 CXX_FOR_BUILD="\$(CXX)"
4059 GCJ_FOR_BUILD="\$(GCJ)"
4060 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4061 GOC_FOR_BUILD="\$(GOC)"
4062 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4063 LD_FOR_BUILD="\$(LD)"
4064 NM_FOR_BUILD="\$(NM)"
4065 RANLIB_FOR_BUILD="\$(RANLIB)"
4066 WINDRES_FOR_BUILD="\$(WINDRES)"
4067 WINDMC_FOR_BUILD="\$(WINDMC)"
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4114 if test -z "$ac_cv_prog_CC"; then
4116 # Extract the first word of "gcc", so it can be a program name with args.
4117 set dummy gcc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_ac_ct_CC="gcc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144 if test -n "$ac_ct_CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146 $as_echo "$ac_ct_CC" >&6; }
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4152 if test "x$ac_ct_CC" = x; then
4155 case $cross_compiling:$ac_tool_warned in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159 ac_tool_warned=yes ;;
4167 if test -z "$CC"; then
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}cc; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_CC="${ac_tool_prefix}cc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 if test -n "$CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199 $as_echo "$CC" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4208 if test -z "$CC"; then
4209 # Extract the first word of "cc", so it can be a program name with args.
4210 set dummy cc; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_CC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4228 ac_prog_rejected=yes
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 if test $ac_prog_rejected = yes; then
4240 # We found a bogon in the path, so make sure we never use it.
4241 set dummy $ac_cv_prog_CC
4243 if test $# != 0; then
4244 # We chose a different compiler from the bogus one.
4245 # However, it has the same basename, so the bogon will be chosen
4246 # first if we set CC to just the basename; use the full file name.
4248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4254 if test -n "$CC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256 $as_echo "$CC" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4264 if test -z "$CC"; then
4265 if test -n "$ac_tool_prefix"; then
4266 for ac_prog in cl.exe
4268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if test "${ac_cv_prog_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 if test -n "$CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298 $as_echo "$CC" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4305 test -n "$CC" && break
4308 if test -z "$CC"; then
4310 for ac_prog in cl.exe
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4319 if test -n "$ac_ct_CC"; then
4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_ac_ct_CC="$ac_prog"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340 if test -n "$ac_ct_CC"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4342 $as_echo "$ac_ct_CC" >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4349 test -n "$ac_ct_CC" && break
4352 if test "x$ac_ct_CC" = x; then
4355 case $cross_compiling:$ac_tool_warned in
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359 ac_tool_warned=yes ;;
4368 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error "no acceptable C compiler found in \$PATH
4371 See \`config.log' for more details." "$LINENO" 5; }
4373 # Provide some information about the compiler.
4374 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4377 for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4387 if test -s conftest.err; then
4389 ... rest of stderr output deleted ...
4390 10q' conftest.err >conftest.er1
4391 cat conftest.er1 >&5
4392 rm -f conftest.er1 conftest.err
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4409 ac_clean_files_save=$ac_clean_files
4410 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4411 # Try to create an executable without -o first, disregard a.out.
4412 # It will help us diagnose broken compilers, and finding out an intuition
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4415 $as_echo_n "checking for C compiler default output file name... " >&6; }
4416 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4418 # The possible output files:
4419 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4422 for ac_file in $ac_files
4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4431 if { { ac_try="$ac_link_default"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link_default") 2>&5
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4443 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4444 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4445 # so that the user can short-circuit this test for compilers unknown to
4447 for ac_file in $ac_files ''
4449 test -f "$ac_file" || continue
4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4454 # We found the default executable, but exeext='' is most
4458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462 # We set ac_cv_exeext here because the later test for it is not
4463 # safe: cross compilers may not add the suffix if given an `-o'
4464 # argument, so we may need to know it at that point already.
4465 # Even if this section looks crufty: it has the advantage of
4472 test "$ac_cv_exeext" = no && ac_cv_exeext=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4478 $as_echo "$ac_file" >&6; }
4479 if test -z "$ac_file"; then :
4480 $as_echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485 { as_fn_set_status 77
4486 as_fn_error "C compiler cannot create executables
4487 See \`config.log' for more details." "$LINENO" 5; }; }
4489 ac_exeext=$ac_cv_exeext
4491 # Check that the compiler produces executables we can run. If not, either
4492 # the compiler is broken, or we cross compile.
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4494 $as_echo_n "checking whether the C compiler works... " >&6; }
4495 # If not cross compiling, check that we can run a simple program.
4496 if test "$cross_compiling" != yes; then
4497 if { ac_try='./$ac_file'
4498 { { case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_try") 2>&5
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; }; then
4510 if test "$cross_compiling" = maybe; then
4513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4515 as_fn_error "cannot run C compiled programs.
4516 If you meant to cross compile, use \`--host'.
4517 See \`config.log' for more details." "$LINENO" 5; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4524 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4525 ac_clean_files=$ac_clean_files_save
4526 # Check that the compiler produces executables we can run. If not, either
4527 # the compiler is broken, or we cross compile.
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4529 $as_echo_n "checking whether we are cross compiling... " >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531 $as_echo "$cross_compiling" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534 $as_echo_n "checking for suffix of executables... " >&6; }
4535 if { { ac_try="$ac_link"
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link") 2>&5
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
4546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4547 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4548 # work properly (i.e., refer to `conftest.exe'), while it won't with
4550 for ac_file in conftest.exe conftest conftest.*; do
4551 test -f "$ac_file" || continue
4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562 as_fn_error "cannot compute suffix of executables: cannot compile and link
4563 See \`config.log' for more details." "$LINENO" 5; }
4565 rm -f conftest$ac_cv_exeext
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4567 $as_echo "$ac_cv_exeext" >&6; }
4569 rm -f conftest.$ac_ext
4570 EXEEXT=$ac_cv_exeext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4573 $as_echo_n "checking for suffix of object files... " >&6; }
4574 if test "${ac_cv_objext+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4588 rm -f conftest.o conftest.obj
4589 if { { ac_try="$ac_compile"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compile") 2>&5
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; then :
4600 for ac_file in conftest.o conftest.obj conftest.*; do
4601 test -f "$ac_file" || continue;
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4609 $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614 as_fn_error "cannot compute suffix of object files: cannot compile
4615 See \`config.log' for more details." "$LINENO" 5; }
4617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4620 $as_echo "$ac_cv_objext" >&6; }
4621 OBJEXT=$ac_cv_objext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4625 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4642 if ac_fn_c_try_compile "$LINENO"; then :
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4653 if test $ac_compiler_gnu = yes; then
4658 ac_test_CFLAGS=${CFLAGS+set}
4659 ac_save_CFLAGS=$CFLAGS
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4662 if test "${ac_cv_prog_cc_g+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 ac_save_c_werror_flag=$ac_c_werror_flag
4666 ac_c_werror_flag=yes
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4680 if ac_fn_c_try_compile "$LINENO"; then :
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4698 ac_c_werror_flag=$ac_save_c_werror_flag
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_c_werror_flag=$ac_save_c_werror_flag
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4722 $as_echo "$ac_cv_prog_cc_g" >&6; }
4723 if test "$ac_test_CFLAGS" = set; then
4724 CFLAGS=$ac_save_CFLAGS
4725 elif test $ac_cv_prog_cc_g = yes; then
4726 if test "$GCC" = yes; then
4732 if test "$GCC" = yes; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4740 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 ac_cv_prog_cc_c89=no
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 #include <sys/types.h>
4750 #include <sys/stat.h>
4751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4752 struct buf { int x; };
4753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4754 static char *e (p, i)
4760 static char *f (char * (*g) (char **, int), char **p, ...)
4765 s = g (p, va_arg (v,int));
4770 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4771 function prototypes and stuff, but not '\xHH' hex character constants.
4772 These don't provoke an error unfortunately, instead are silently treated
4773 as 'x'. The following induces an error, until -std is added to get
4774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4775 array size at least. It's necessary to write '\x00'==0 to get something
4776 that's true only with -std. */
4777 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4779 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4780 inside strings and character constants. */
4782 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4784 int test (int i, double x);
4785 struct s1 {int (*f) (int a);};
4786 struct s2 {int (*f) (double a);};
4787 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4793 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4798 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4801 CC="$ac_save_CC $ac_arg"
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_prog_cc_c89=$ac_arg
4805 rm -f core conftest.err conftest.$ac_objext
4806 test "x$ac_cv_prog_cc_c89" != "xno" && break
4808 rm -f conftest.$ac_ext
4813 case "x$ac_cv_prog_cc_c89" in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4816 $as_echo "none needed" >&6; } ;;
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4819 $as_echo "unsupported" >&6; } ;;
4821 CC="$CC $ac_cv_prog_cc_c89"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4823 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4825 if test "x$ac_cv_prog_cc_c89" != xno; then :
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 ac_cpp='$CXXCPP $CPPFLAGS'
4837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4840 if test -z "$CXX"; then
4841 if test -n "$CCC"; then
4844 if test -n "$ac_tool_prefix"; then
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -n "$CXX"; then
4855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 if test -n "$CXX"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4877 $as_echo "$CXX" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4884 test -n "$CXX" && break
4887 if test -z "$CXX"; then
4889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$ac_ct_CXX"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_CXX="$ac_prog"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4919 if test -n "$ac_ct_CXX"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4921 $as_echo "$ac_ct_CXX" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 test -n "$ac_ct_CXX" && break
4931 if test "x$ac_ct_CXX" = x; then
4934 case $cross_compiling:$ac_tool_warned in
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4946 # Provide some information about the compiler.
4947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4950 for ac_option in --version -v -V -qversion; do
4951 { { ac_try="$ac_compiler $ac_option >&5"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957 $as_echo "$ac_try_echo"; } >&5
4958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4960 if test -s conftest.err; then
4962 ... rest of stderr output deleted ...
4963 10q' conftest.err >conftest.er1
4964 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4972 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4973 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4990 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5000 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5001 if test $ac_compiler_gnu = yes; then
5006 ac_test_CXXFLAGS=${CXXFLAGS+set}
5007 ac_save_CXXFLAGS=$CXXFLAGS
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5009 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5010 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5014 ac_cxx_werror_flag=yes
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5028 if ac_fn_cxx_try_compile "$LINENO"; then :
5029 ac_cv_prog_cxx_g=yes
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5043 if ac_fn_cxx_try_compile "$LINENO"; then :
5046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5059 if ac_fn_cxx_try_compile "$LINENO"; then :
5060 ac_cv_prog_cxx_g=yes
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5070 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5071 if test "$ac_test_CXXFLAGS" = set; then
5072 CXXFLAGS=$ac_save_CXXFLAGS
5073 elif test $ac_cv_prog_cxx_g = yes; then
5074 if test "$GXX" = yes; then
5080 if test "$GXX" = yes; then
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 # We must set the default linker to the linker used by gcc for the correct
5094 # operation of libtool. If LD is not defined and we are using gcc, try to
5095 # set the LD default to the ld used by gcc.
5096 if test -z "$LD"; then
5097 if test "$GCC" = yes; then
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5104 case $gcc_prog_ld in
5105 # Accept absolute paths.
5106 [\\/]* | [A-Za-z]:[\\/]*)
5107 LD="$gcc_prog_ld" ;;
5112 # Check whether -static-libstdc++ -static-libgcc is supported.
5114 if test "$GCC" = yes; then
5115 saved_LDFLAGS="$LDFLAGS"
5117 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5119 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5121 ac_cpp='$CXXCPP $CPPFLAGS'
5122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5131 #error -static-libstdc++ not implemented
5135 if ac_fn_cxx_try_link "$LINENO"; then :
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }; have_static_libs=yes
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5142 rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151 LDFLAGS="$saved_LDFLAGS"
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$GNATBIND"; then
5166 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 GNATBIND=$ac_cv_prog_GNATBIND
5186 if test -n "$GNATBIND"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5188 $as_echo "$GNATBIND" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_GNATBIND"; then
5197 ac_ct_GNATBIND=$GNATBIND
5198 # Extract the first word of "gnatbind", so it can be a program name with args.
5199 set dummy gnatbind; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$ac_ct_GNATBIND"; then
5206 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5226 if test -n "$ac_ct_GNATBIND"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5228 $as_echo "$ac_ct_GNATBIND" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_GNATBIND" = x; then
5237 case $cross_compiling:$ac_tool_warned in
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5243 GNATBIND=$ac_ct_GNATBIND
5246 GNATBIND="$ac_cv_prog_GNATBIND"
5249 if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$GNATMAKE"; then
5258 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 GNATMAKE=$ac_cv_prog_GNATMAKE
5278 if test -n "$GNATMAKE"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5280 $as_echo "$GNATMAKE" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5288 if test -z "$ac_cv_prog_GNATMAKE"; then
5289 ac_ct_GNATMAKE=$GNATMAKE
5290 # Extract the first word of "gnatmake", so it can be a program name with args.
5291 set dummy gnatmake; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$ac_ct_GNATMAKE"; then
5298 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5318 if test -n "$ac_ct_GNATMAKE"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5320 $as_echo "$ac_ct_GNATMAKE" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5326 if test "x$ac_ct_GNATMAKE" = x; then
5329 case $cross_compiling:$ac_tool_warned in
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5335 GNATMAKE=$ac_ct_GNATMAKE
5338 GNATMAKE="$ac_cv_prog_GNATMAKE"
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5342 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5343 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 cat >conftest.adb <<EOF
5347 procedure conftest is begin null; end conftest;
5349 acx_cv_cc_gcc_supports_ada=no
5350 # There is a bug in old released versions of GCC which causes the
5351 # driver to exit successfully when the appropriate language module
5352 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5353 # Therefore we must check for the error message as well as an
5354 # unsuccessful exit.
5355 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5356 # given a .adb file, but produce no object file. So we must check
5357 # if an object file was really produced to guard against this.
5358 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5359 if test x"$errors" = x && test -f conftest.$ac_objext; then
5360 acx_cv_cc_gcc_supports_ada=yes
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5365 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5367 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5374 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5375 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5380 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5381 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5382 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5385 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5388 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5389 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5392 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5399 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5400 do_compare="$gcc_cv_prog_cmp_skip"
5404 # Check whether --enable-bootstrap was given.
5405 if test "${enable_bootstrap+set}" = set; then :
5406 enableval=$enable_bootstrap;
5408 enable_bootstrap=default
5412 # Issue errors and warnings for invalid/strange bootstrap combinations.
5413 if test -r $srcdir/gcc/configure; then
5419 case "$have_compiler:$host:$target:$enable_bootstrap" in
5422 # Default behavior. Enable bootstrap if we have a compiler
5423 # and we are in a native configuration.
5424 yes:$build:$build:default)
5425 enable_bootstrap=yes ;;
5428 enable_bootstrap=no ;;
5430 # We have a compiler and we are in a native configuration, bootstrap is ok
5431 yes:$build:$build:yes)
5434 # Other configurations, but we have a compiler. Assume the user knows
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5438 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5441 # No compiler: if they passed --enable-bootstrap explicitly, fail
5443 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5445 # Fail if wrong command line
5447 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5451 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5452 # C++98 compiler can still start the bootstrap.
5453 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5454 CXX="$CXX -std=gnu++98"
5457 # Used for setting $lt_cv_objdir
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5459 $as_echo_n "checking for objdir... " >&6; }
5460 if test "${lt_cv_objdir+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5463 rm -f .libs 2>/dev/null
5464 mkdir .libs 2>/dev/null
5465 if test -d .libs; then
5468 # MS-DOS does not allow filenames that begin with a dot.
5471 rmdir .libs 2>/dev/null
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5474 $as_echo "$lt_cv_objdir" >&6; }
5475 objdir=$lt_cv_objdir
5481 cat >>confdefs.h <<_ACEOF
5482 #define LT_OBJDIR "$lt_cv_objdir/"
5487 # Check for GMP, MPFR and MPC
5488 gmplibs="-lmpc -lmpfr -lgmp"
5492 # Specify a location for mpc
5493 # check for this first so it ends up on the link line before mpfr.
5495 # Check whether --with-mpc was given.
5496 if test "${with_mpc+set}" = set; then :
5501 # Check whether --with-mpc-include was given.
5502 if test "${with_mpc_include+set}" = set; then :
5503 withval=$with_mpc_include;
5507 # Check whether --with-mpc-lib was given.
5508 if test "${with_mpc_lib+set}" = set; then :
5509 withval=$with_mpc_lib;
5513 if test "x$with_mpc" != x; then
5514 gmplibs="-L$with_mpc/lib $gmplibs"
5515 gmpinc="-I$with_mpc/include $gmpinc"
5517 if test "x$with_mpc_include" != x; then
5518 gmpinc="-I$with_mpc_include $gmpinc"
5520 if test "x$with_mpc_lib" != x; then
5521 gmplibs="-L$with_mpc_lib $gmplibs"
5523 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5524 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5525 gmpinc='-I$$s/mpc/src '"$gmpinc"
5526 # Do not test the mpc version. Assume that it is sufficient, since
5527 # it is in the source tree, and the library has not been built yet
5528 # but it would be included on the link line in the version check below
5529 # hence making the test fail.
5533 # Specify a location for mpfr
5534 # check for this first so it ends up on the link line before gmp.
5536 # Check whether --with-mpfr-dir was given.
5537 if test "${with_mpfr_dir+set}" = set; then :
5538 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5539 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5544 # Check whether --with-mpfr was given.
5545 if test "${with_mpfr+set}" = set; then :
5550 # Check whether --with-mpfr-include was given.
5551 if test "${with_mpfr_include+set}" = set; then :
5552 withval=$with_mpfr_include;
5556 # Check whether --with-mpfr-lib was given.
5557 if test "${with_mpfr_lib+set}" = set; then :
5558 withval=$with_mpfr_lib;
5562 if test "x$with_mpfr" != x; then
5563 gmplibs="-L$with_mpfr/lib $gmplibs"
5564 gmpinc="-I$with_mpfr/include $gmpinc"
5566 if test "x$with_mpfr_include" != x; then
5567 gmpinc="-I$with_mpfr_include $gmpinc"
5569 if test "x$with_mpfr_lib" != x; then
5570 gmplibs="-L$with_mpfr_lib $gmplibs"
5572 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5573 # MPFR v3.1.0 moved the sources into a src sub-directory.
5574 if test -d ${srcdir}/mpfr/src; then
5575 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5576 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5577 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5579 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5580 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5581 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5583 # Do not test the mpfr version. Assume that it is sufficient, since
5584 # it is in the source tree, and the library has not been built yet
5585 # but it would be included on the link line in the version check below
5586 # hence making the test fail.
5590 # Specify a location for gmp
5592 # Check whether --with-gmp-dir was given.
5593 if test "${with_gmp_dir+set}" = set; then :
5594 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5595 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5600 # Check whether --with-gmp was given.
5601 if test "${with_gmp+set}" = set; then :
5606 # Check whether --with-gmp-include was given.
5607 if test "${with_gmp_include+set}" = set; then :
5608 withval=$with_gmp_include;
5612 # Check whether --with-gmp-lib was given.
5613 if test "${with_gmp_lib+set}" = set; then :
5614 withval=$with_gmp_lib;
5619 if test "x$with_gmp" != x; then
5620 gmplibs="-L$with_gmp/lib $gmplibs"
5621 gmpinc="-I$with_gmp/include $gmpinc"
5623 if test "x$with_gmp_include" != x; then
5624 gmpinc="-I$with_gmp_include $gmpinc"
5626 if test "x$with_gmp_lib" != x; then
5627 gmplibs="-L$with_gmp_lib $gmplibs"
5629 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5630 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5631 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5632 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5633 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5634 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5635 # Do not test the gmp version. Assume that it is sufficient, since
5636 # it is in the source tree, and the library has not been built yet
5637 # but it would be included on the link line in the version check below
5638 # hence making the test fail.
5642 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $gmpinc"
5646 # Check for the recommended and required versions of GMP.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5648 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5657 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5658 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5659 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5675 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5676 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5677 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690 $as_echo "buggy but acceptable" >&6; }
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }; have_gmp=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 # If we have GMP, check the MPFR version.
5700 if test x"$have_gmp" = xyes; then
5701 # Check for the recommended and required versions of MPFR.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5703 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5729 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739 $as_echo "yes" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742 $as_echo "buggy but acceptable" >&6; }
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }; have_gmp=no
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 # Check for the MPC header version.
5753 if test x"$have_gmp" = xyes ; then
5754 # Check for the recommended and required versions of MPC.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5756 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5764 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5780 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5793 $as_echo "buggy but acceptable" >&6; }
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }; have_gmp=no
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 # Now check the MPFR library.
5804 if test x"$have_gmp" = xyes; then
5806 LIBS="$LIBS $gmplibs"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5808 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5822 mpfr_atan2 (n, n, x, GMP_RNDN);
5823 mpfr_erfc (n, x, GMP_RNDN);
5824 mpfr_subnormalize (x, t, GMP_RNDN);
5828 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5829 mpc_cosh (c, c, MPC_RNDNN);
5830 mpc_pow (c, c, c, MPC_RNDNN);
5831 mpc_acosh (c, c, MPC_RNDNN);
5838 if ac_fn_c_try_link "$LINENO"; then :
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }; have_gmp=no
5845 rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
5850 CFLAGS="$saved_CFLAGS"
5852 # The library versions listed in the error message below should match
5853 # the HARD-minimums enforced above.
5854 if test x$have_gmp != xyes; then
5855 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5856 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5857 their locations. Source code for these libraries can be found at
5858 their respective hosting sites as well as at
5859 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5860 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5861 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5862 make sure that you have installed both the libraries and the header
5863 files. They may be located in separate packages." "$LINENO" 5
5867 # Flags needed for both GMP, MPFR and/or MPC.
5875 # Libraries to use for stage1 or when not bootstrapping.
5877 # Check whether --with-stage1-libs was given.
5878 if test "${with_stage1_libs+set}" = set; then :
5879 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5882 stage1_libs=$withval
5890 # Linker flags to use for stage1 or when not bootstrapping.
5892 # Check whether --with-stage1-ldflags was given.
5893 if test "${with_stage1_ldflags+set}" = set; then :
5894 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5897 stage1_ldflags=$withval
5901 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5902 # if supported. But if the user explicitly specified the libraries to use,
5903 # trust that they are doing what they want.
5904 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5905 stage1_ldflags="-static-libstdc++ -static-libgcc"
5911 # Libraries to use for stage2 and later builds.
5913 # Check whether --with-boot-libs was given.
5914 if test "${with_boot_libs+set}" = set; then :
5915 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5918 poststage1_libs=$withval
5926 # Linker flags to use for stage2 and later builds.
5928 # Check whether --with-boot-ldflags was given.
5929 if test "${with_boot_ldflags+set}" = set; then :
5930 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5933 poststage1_ldflags=$withval
5937 # In stages 2 and 3, default to linking libstdc++ and libgcc
5938 # statically. But if the user explicitly specified the libraries to
5939 # use, trust that they are doing what they want.
5940 if test "$poststage1_libs" = ""; then
5941 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5947 # GCC GRAPHITE dependency isl.
5948 # Basic setup is inlined here, actual checks are in config/isl.m4
5951 # Check whether --with-isl was given.
5952 if test "${with_isl+set}" = set; then :
5957 # Treat --without-isl as a request to disable
5958 # GRAPHITE support and skip all following checks.
5959 if test "x$with_isl" != "xno"; then
5963 # Check whether --with-isl-include was given.
5964 if test "${with_isl_include+set}" = set; then :
5965 withval=$with_isl_include;
5969 # Check whether --with-isl-lib was given.
5970 if test "${with_isl_lib+set}" = set; then :
5971 withval=$with_isl_lib;
5975 # Check whether --enable-isl-version-check was given.
5976 if test "${enable_isl_version_check+set}" = set; then :
5977 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5979 ENABLE_ISL_CHECK=yes
5983 # Initialize isllibs and islinc.
5992 isllibs="-L$with_isl/lib"
5993 islinc="-I$with_isl/include"
5996 if test "x${with_isl_include}" != x ; then
5997 islinc="-I$with_isl_include"
5999 if test "x${with_isl_lib}" != x; then
6000 isllibs="-L$with_isl_lib"
6002 if test "x${islinc}" = x && test "x${isllibs}" = x \
6003 && test -d ${srcdir}/isl; then
6004 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6005 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6008 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6011 isllibs="${isllibs} -lisl"
6015 if test "${ENABLE_ISL_CHECK}" = yes ; then
6016 _isl_saved_CFLAGS=$CFLAGS
6017 _isl_saved_LDFLAGS=$LDFLAGS
6018 _isl_saved_LIBS=$LIBS
6020 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6022 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6025 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 #include <isl/ctx.h>
6032 isl_ctx_get_max_operations (isl_ctx_alloc ());
6037 if ac_fn_c_try_link "$LINENO"; then :
6042 rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6045 $as_echo "$gcc_cv_isl" >&6; }
6047 if test "${gcc_cv_isl}" = no ; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6049 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6053 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <isl/schedule.h>
6060 isl_options_set_schedule_serialize_sccs (NULL, 0);
6065 if ac_fn_c_try_link "$LINENO"; then :
6066 ac_has_isl_options_set_schedule_serialize_sccs=yes
6068 ac_has_isl_options_set_schedule_serialize_sccs=no
6070 rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6073 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6075 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6080 CFLAGS=$_isl_saved_CFLAGS
6081 LDFLAGS=$_isl_saved_LDFLAGS
6082 LIBS=$_isl_saved_LIBS
6090 if test "x${with_isl}" = xno; then
6091 graphite_requested=no
6092 elif test "x${with_isl}" != x \
6093 || test "x${with_isl_include}" != x \
6094 || test "x${with_isl_lib}" != x ; then
6095 graphite_requested=yes
6097 graphite_requested=no
6102 if test "${gcc_cv_isl}" = no ; then
6107 if test "${graphite_requested}" = yes \
6108 && test "x${isllibs}" = x \
6109 && test "x${islinc}" = x ; then
6111 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6117 # If the isl check failed, disable builds of in-tree variant of isl
6118 if test "x$with_isl" = xno ||
6119 test "x$gcc_cv_isl" = xno; then
6120 noconfigdirs="$noconfigdirs isl"
6127 # Check for LTO support.
6128 # Check whether --enable-lto was given.
6129 if test "${enable_lto+set}" = set; then :
6130 enableval=$enable_lto; enable_lto=$enableval
6132 enable_lto=yes; default_enable_lto=yes
6141 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6142 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6143 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6152 if test $target_elf = yes; then :
6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
6157 if test x"$default_enable_lto" = x"yes" ; then
6159 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6160 # On other non-ELF platforms, LTO has yet to be validated.
6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6170 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6178 # Build it unless LTO was explicitly disabled.
6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6187 # Check whether --enable-linker-plugin-configure-flags was given.
6188 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6191 extra_linker_plugin_configure_flags=
6195 # Check whether --enable-linker-plugin-flags was given.
6196 if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6199 extra_linker_plugin_flags=
6205 # By default, C and C++ are the only stage 1 languages.
6206 stage1_languages=,c,
6208 # Target libraries that we bootstrap.
6209 bootstrap_target_libs=,target-libgcc,
6211 # Figure out what language subdirectories are present.
6212 # Look if the user specified --enable-languages="..."; if not, use
6213 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6215 # NB: embedded tabs in this IF block -- do not untabify
6216 if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
6220 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6222 enable_languages=all
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6228 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6238 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
6269 lang_requires_boot_languages=
6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6272 case ,${enable_languages}, in
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6287 case ,${enable_languages}, in
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6301 new_enable_languages=,c,
6303 # If LTO is enabled, add the LTO front end.
6304 if test "$enable_lto" = "yes" ; then
6305 case ,${enable_languages}, in
6307 *) enable_languages="${enable_languages},lto" ;;
6309 if test "${build_lto_plugin}" = "yes" ; then
6310 configdirs="$configdirs lto-plugin"
6314 # If we're building an offloading compiler, add the LTO front end.
6315 if test x"$enable_as_accelerator_for" != x ; then
6316 case ,${enable_languages}, in
6318 *) enable_languages="${enable_languages},lto" ;;
6322 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6323 potential_languages=,c,
6325 enabled_target_libs=
6326 disabled_target_libs=
6328 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6329 case ${lang_frag} in
6331 # The odd quoting in the next line works around
6332 # an apparent bug in bash 1.12 on linux.
6333 ${srcdir}/gcc/[*]/config-lang.in) ;;
6335 # From the config-lang.in, get $language, $target_libs,
6336 # $lang_dirs, $boot_language, and $build_by_default
6342 build_by_default=yes
6344 if test x${language} = x; then
6345 echo "${lang_frag} doesn't set \$language." 1>&2
6349 if test "$language" = "c++"; then
6354 case ,${enable_languages}, in
6356 # Language was explicitly selected; include it
6357 # unless it is C, which is enabled by default.
6358 if test "$language" != "c"; then
6363 # 'all' was selected, select it if it is a default language
6364 if test "$language" != "c"; then
6365 add_this_lang=${build_by_default}
6370 # Disable languages that need other directories if these aren't available.
6371 for i in $subdir_requires; do
6372 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6373 case ,${enable_languages}, in
6375 # Specifically requested language; tell them.
6376 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6380 add_this_lang=unsupported
6385 # Disable Ada if no preexisting GNAT is available.
6386 case ,${enable_languages},:${language}:${have_gnat} in
6387 *,${language},*:ada:no)
6388 # Specifically requested language; tell them.
6389 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6393 add_this_lang=unsupported
6397 # Disable a language that is unsupported by the target.
6398 case " $unsupported_languages " in
6400 add_this_lang=unsupported
6404 case $add_this_lang in
6406 # Remove language-dependent dirs.
6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
6411 # Remove language-dependent dirs; still show language as supported.
6412 disabled_target_libs="$disabled_target_libs $target_libs"
6413 noconfigdirs="$noconfigdirs $lang_dirs"
6414 potential_languages="${potential_languages}${language},"
6417 new_enable_languages="${new_enable_languages}${language},"
6418 potential_languages="${potential_languages}${language},"
6419 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6420 enabled_target_libs="$enabled_target_libs $target_libs"
6421 case "${boot_language}:,$enable_stage1_languages," in
6422 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6423 # Add to (comma-separated) list of stage 1 languages.
6424 case ",$stage1_languages," in
6425 *,$language,* | ,yes, | ,all,) ;;
6426 *) stage1_languages="${stage1_languages}${language}," ;;
6428 # We need to bootstrap any supporting libraries.
6429 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6438 # Add target libraries which are only needed for disabled languages
6440 if test -n "$disabled_target_libs"; then
6441 for dir in $disabled_target_libs; do
6442 case " $enabled_target_libs " in
6444 *) noconfigdirs="$noconfigdirs $dir" ;;
6449 # Check whether --enable-stage1-languages was given.
6450 if test "${enable_stage1_languages+set}" = set; then :
6451 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6453 # Set it to something that will have no effect in the loop below
6454 enable_stage1_languages=c ;;
6456 enable_stage1_languages=`echo $new_enable_languages | \
6457 sed -e "s/^,//" -e "s/,$//" ` ;;
6459 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6460 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6463 # Add "good" languages from enable_stage1_languages to stage1_languages,
6464 # while "bad" languages go in missing_languages. Leave no duplicates.
6465 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6466 case $potential_languages in
6468 case $stage1_languages in
6470 *) stage1_languages="$stage1_languages$i," ;;
6473 case $missing_languages in
6475 *) missing_languages="$missing_languages$i," ;;
6482 # Remove leading/trailing commas that were added for simplicity
6483 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6484 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6485 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6486 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6488 if test "x$missing_languages" != x; then
6490 The following requested languages could not be built: ${missing_languages}
6491 Supported languages are: ${potential_languages}" "$LINENO" 5
6493 if test "x$new_enable_languages" != "x$enable_languages"; then
6494 echo The following languages will be built: ${new_enable_languages}
6495 enable_languages="$new_enable_languages"
6499 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6502 # Handle --disable-<component> generically.
6503 for dir in $configdirs $build_configdirs $target_configdirs ; do
6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6505 varname=`echo $dirname | sed -e s/+/_/g`
6506 if eval test x\${enable_${varname}} "=" xno ; then
6507 noconfigdirs="$noconfigdirs $dir"
6511 # Check for Boehm's garbage collector
6512 # Check whether --enable-objc-gc was given.
6513 if test "${enable_objc_gc+set}" = set; then :
6514 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6515 *,objc,*:*:yes:*target-boehm-gc*)
6516 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6522 # Make sure we only build Boehm's garbage collector if required.
6523 case ,${enable_languages},:${enable_objc_gc} in
6525 # Keep target-boehm-gc if requested for Objective-C.
6528 # Otherwise remove target-boehm-gc depending on target-libjava.
6529 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6530 noconfigdirs="$noconfigdirs target-boehm-gc"
6535 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6536 case ,${enable_languages}, in
6538 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6539 case "${noconfigdirs}" in
6540 *target-libstdc++-v3*)
6541 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6547 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6551 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6552 # $build_configdirs and $target_configdirs.
6553 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6556 for dir in . $skipdirs $noconfigdirs ; do
6557 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6558 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6559 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6560 if test -r $srcdir/$dirname/configure ; then
6561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 notsupp="$notsupp $dir"
6568 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6569 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6570 if test -r $srcdir/$dirname/configure ; then
6571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 notsupp="$notsupp $dir"
6578 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6580 if test -r $srcdir/$dirname/configure ; then
6581 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 notsupp="$notsupp $dir"
6590 # Quietly strip out all directories which aren't configurable in this tree.
6591 # This relies on all configurable subdirectories being autoconfiscated, which
6593 build_configdirs_all="$build_configdirs"
6595 for i in ${build_configdirs_all} ; do
6596 j=`echo $i | sed -e s/build-//g`
6597 if test -f ${srcdir}/$j/configure ; then
6598 build_configdirs="${build_configdirs} $i"
6602 configdirs_all="$configdirs"
6604 for i in ${configdirs_all} ; do
6605 if test -f ${srcdir}/$i/configure ; then
6606 configdirs="${configdirs} $i"
6610 target_configdirs_all="$target_configdirs"
6612 for i in ${target_configdirs_all} ; do
6613 j=`echo $i | sed -e s/target-//g`
6614 if test -f ${srcdir}/$j/configure ; then
6615 target_configdirs="${target_configdirs} $i"
6619 # Exclude target-zlib if target-libjava isn't built.
6620 case ${target_configdirs} in
6624 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6628 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6629 # so we have to add it after the preceding checks.
6630 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6632 case " $configdirs " in
6634 # If we can build libiberty, we can also build libiberty-linker-plugin.
6635 configdirs="$configdirs libiberty-linker-plugin"
6636 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6637 --with-libiberty=../libiberty-linker-plugin";;
6639 as_fn_error "libiberty missing" "$LINENO" 5;;
6643 # Sometimes we have special requirements for the host libiberty.
6644 extra_host_libiberty_configure_flags=
6645 extra_host_zlib_configure_flags=
6646 case " $configdirs " in
6647 *" lto-plugin "* | *" libcc1 "*)
6648 # When these are to be built as shared libraries, the same applies to
6650 extra_host_libiberty_configure_flags=--enable-shared
6653 # When bfd is to be built as a shared library, the same applies to
6655 if test "$enable_shared" = "yes"; then
6656 extra_host_zlib_configure_flags=--enable-host-shared
6663 # Produce a warning message for the subdirs we can't configure.
6664 # This isn't especially interesting in the Cygnus tree, but in the individual
6665 # FSF releases, it's important to let people know when their machine isn't
6666 # supported by the one or two programs in a package.
6668 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6669 # If $appdirs is non-empty, at least one of those directories must still
6670 # be configured, or we error out. (E.g., if the gas release supports a
6671 # specified target in some subdirs but not the gas subdir, we shouldn't
6672 # pretend that all is well.)
6673 if test -n "$appdirs" ; then
6674 for dir in $appdirs ; do
6675 if test -r $dir/Makefile.in ; then
6676 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6680 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6686 if test -n "$appdirs" ; then
6687 echo "*** This configuration is not supported by this package." 1>&2
6691 # Okay, some application will build, or we don't care to check. Still
6692 # notify of subdirs not getting built.
6693 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6694 echo " ${notsupp}" 1>&2
6695 echo " (Any other directories should still work fine.)" 1>&2
6703 # To find our prefix, in gcc_cv_tool_prefix.
6705 # The user is always right.
6706 if test "${PATH_SEPARATOR+set}" != set; then
6707 echo "#! /bin/sh" >conf$$.sh
6708 echo "exit 0" >>conf$$.sh
6710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6720 if test "x$exec_prefix" = xNONE; then
6721 if test "x$prefix" = xNONE; then
6722 gcc_cv_tool_prefix=$ac_default_prefix
6724 gcc_cv_tool_prefix=$prefix
6727 gcc_cv_tool_prefix=$exec_prefix
6730 # If there is no compiler in the tree, use the PATH only. In any
6731 # case, if there is no compiler in the tree nobody should use
6732 # AS_FOR_TARGET and LD_FOR_TARGET.
6733 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6734 gcc_version=`cat $srcdir/gcc/BASE-VER`
6735 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6745 if test x$build = x$target && test -n "$md_exec_prefix"; then
6746 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6754 # Check whether --with-build-sysroot was given.
6755 if test "${with_build_sysroot+set}" = set; then :
6756 withval=$with_build_sysroot; if test x"$withval" != x ; then
6757 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6760 SYSROOT_CFLAGS_FOR_TARGET=
6766 # Check whether --with-debug-prefix-map was given.
6767 if test "${with_debug_prefix_map+set}" = set; then :
6768 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6770 for debug_map in $withval; do
6771 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6775 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6780 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6781 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6782 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6783 # We want to ensure that TARGET libraries (which we know are built with
6784 # gcc) are built with "-O2 -g", so include those options when setting
6785 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6786 if test "x$CFLAGS_FOR_TARGET" = x; then
6787 if test "x${is_cross_compiler}" = xyes; then
6788 CFLAGS_FOR_TARGET="-g -O2"
6790 CFLAGS_FOR_TARGET=$CFLAGS
6793 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6796 *" -g "* | *" -g3 "*) ;;
6797 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6803 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6804 if test "x${is_cross_compiler}" = xyes; then
6805 CXXFLAGS_FOR_TARGET="-g -O2"
6807 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6808 case " $CXXFLAGS " in
6810 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6812 case " $CXXFLAGS " in
6813 *" -g "* | *" -g3 "*) ;;
6814 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6822 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6823 # the named directory are copied to $(tooldir)/sys-include.
6824 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6825 if test x${is_cross_compiler} = xno ; then
6826 echo 1>&2 '***' --with-headers is only supported when cross compiling
6829 if test x"${with_headers}" != xyes ; then
6830 x=${gcc_cv_tool_prefix}
6831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6835 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6836 # the name directories are copied to $(tooldir)/lib. Multiple directories
6838 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-libs is only supported when cross compiling
6843 if test x"${with_libs}" != xyes ; then
6844 # Copy the libraries in reverse order, so that files in the first named
6845 # library override files in subsequent libraries.
6846 x=${gcc_cv_tool_prefix}
6847 for l in ${with_libs}; do
6848 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6853 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6855 # This is done by determining whether or not the appropriate directory
6856 # is available, and by checking whether or not specific configurations
6857 # have requested that this magic not happen.
6859 # The command line options always override the explicit settings in
6860 # configure.ac, and the settings in configure.ac override this magic.
6862 # If the default for a toolchain is to use GNU as and ld, and you don't
6863 # want to do that, then you should use the --without-gnu-as and
6864 # --without-gnu-ld options for the configure script. Similarly, if
6865 # the default is to use the included zlib and you don't want to do that,
6866 # you should use the --with-system-zlib option for the configure script.
6868 if test x${use_gnu_as} = x &&
6869 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6871 extra_host_args="$extra_host_args --with-gnu-as"
6874 if test x${use_gnu_ld} = x &&
6875 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6877 extra_host_args="$extra_host_args --with-gnu-ld"
6880 if test x${use_included_zlib} = x &&
6881 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6884 with_system_zlib=yes
6885 extra_host_args="$extra_host_args --with-system-zlib"
6888 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6889 # can detect this case.
6891 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6893 extra_host_args="$extra_host_args --with-newlib"
6896 # Handle ${copy_dirs}
6897 set fnord ${copy_dirs}
6899 while test $# != 0 ; do
6900 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6903 echo Copying $1 to $2
6905 # Use the install script to create the directory and all required
6906 # parent directories.
6907 if test -d $2 ; then
6911 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6914 # Copy the directory, assuming we have tar.
6915 # FIXME: Should we use B in the second tar? Not all systems support it.
6916 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6918 # It is the responsibility of the user to correctly adjust all
6919 # symlinks. If somebody can figure out how to handle them correctly
6920 # here, feel free to add the code.
6927 # Determine a target-dependent exec_prefix that the installed
6928 # gcc will search in. Keep this list sorted by triplet, with
6929 # the *-*-osname triplets last.
6932 i[34567]86-pc-msdosdjgpp*)
6933 md_exec_prefix=/dev/env/DJDIR/bin
6938 md_exec_prefix=/usr/ccs/bin
6942 extra_arflags_for_target=
6943 extra_nmflags_for_target=
6944 extra_ranlibflags_for_target=
6945 target_makefile_frag=/dev/null
6948 target_makefile_frag="config/mt-spu"
6950 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6951 target_makefile_frag="config/mt-sde"
6953 mipsisa*-*-elfoabi*)
6954 target_makefile_frag="config/mt-mips-elfoabi"
6956 mips*-*-*linux* | mips*-*-gnu*)
6957 target_makefile_frag="config/mt-mips-gnu"
6960 target_makefile_frag="config/mt-nios2-elf"
6962 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6963 target_makefile_frag="config/mt-gnu"
6965 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6966 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6967 # commands to handle both 32-bit and 64-bit objects. These flags are
6968 # harmless if we're using GNU nm or ar.
6969 extra_arflags_for_target=" -X32_64"
6970 extra_nmflags_for_target=" -B -X32_64"
6974 alphaieee_frag=/dev/null
6977 # This just makes sure to use the -mieee option to build target libs.
6978 # This should probably be set individually by each library.
6979 alphaieee_frag="config/mt-alphaieee"
6983 # If --enable-target-optspace always use -Os instead of -O2 to build
6984 # the target libraries, similarly if it is not specified, use -Os
6985 # on selected platforms.
6986 ospace_frag=/dev/null
6987 case "${enable_target_optspace}:${target}" in
6989 ospace_frag="config/mt-ospace"
6992 ospace_frag="config/mt-d30v"
6994 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6995 ospace_frag="config/mt-ospace"
7000 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7004 # Some systems (e.g., one of the i386-aix systems the gas testers are
7005 # using) don't handle "\$" correctly, so don't use it here.
7006 tooldir='${exec_prefix}'/${target_noncanonical}
7007 build_tooldir=${tooldir}
7009 # Create a .gdbinit file which runs the one in srcdir
7010 # and tells GDB to look there for source files.
7012 if test -r ${srcdir}/.gdbinit ; then
7015 *) cat > ./.gdbinit <<EOF
7019 source ${srcdir}/.gdbinit
7025 # Make sure that the compiler is able to generate an executable. If it
7026 # can't, we are probably in trouble. We don't care whether we can run the
7027 # executable--we might be using a cross compiler--we only care whether it
7028 # can be created. At this point the main configure script has set CC.
7030 echo "int main () { return 0; }" > conftest.c
7031 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7032 if test $? = 0 ; then
7033 if test -s conftest || test -s conftest.exe ; then
7039 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7040 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7047 # Decide which environment variable is used to find dynamic libraries.
7049 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7050 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7051 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7052 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7055 # On systems where the dynamic library environment variable is PATH,
7056 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7057 # built executables to PATH.
7058 if test "$RPATH_ENVVAR" = PATH; then
7059 GCC_SHLIB_SUBDIR=/shlib
7064 # Adjust the toplevel makefile according to whether bootstrap was selected.
7065 case $enable_bootstrap in
7067 bootstrap_suffix=bootstrap
7068 BUILD_CONFIG=bootstrap-debug
7071 bootstrap_suffix=no-bootstrap
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7077 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7080 # Check whether --with-build-config was given.
7081 if test "${with_build_config+set}" = set; then :
7082 withval=$with_build_config; case $with_build_config in
7083 yes) with_build_config= ;;
7084 no) with_build_config= BUILD_CONFIG= ;;
7089 if test "x${with_build_config}" != x; then
7090 BUILD_CONFIG=$with_build_config
7092 case $BUILD_CONFIG in
7094 if echo "int f (void) { return 0; }" > conftest.c &&
7095 ${CC} -c conftest.c &&
7096 mv conftest.o conftest.o.g0 &&
7097 ${CC} -c -g conftest.c &&
7098 mv conftest.o conftest.o.g &&
7099 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7104 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7109 $as_echo "$BUILD_CONFIG" >&6; }
7112 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7114 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7115 # Check whether --enable-vtable-verify was given.
7116 if test "${enable_vtable_verify+set}" = set; then :
7117 enableval=$enable_vtable_verify; case "$enableval" in
7118 yes) enable_vtable_verify=yes ;;
7119 no) enable_vtable_verify=no ;;
7120 *) enable_vtable_verify=no;;
7123 enable_vtable_verify=no
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7127 $as_echo "$enable_vtable_verify" >&6; }
7129 # Record target_configdirs and the configure arguments for target and
7130 # build configuration in Makefile.
7131 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7132 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7133 bootstrap_fixincludes=no
7135 # If we are building libgomp, bootstrap it.
7136 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7137 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7140 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7141 # or bootstrap-ubsan, bootstrap it.
7142 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7143 case "$BUILD_CONFIG" in
7144 *bootstrap-asan* | *bootstrap-ubsan* )
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7146 bootstrap_fixincludes=yes
7151 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7152 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7153 test "$enable_vtable_verify" != no; then
7154 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7157 # If we are building libmpx, bootstrap it.
7158 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7159 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7162 # Determine whether gdb needs tk/tcl or not.
7163 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7164 # and in that case we want gdb to be built without tk. Ugh!
7165 # In fact I believe gdb is the *only* package directly dependent on tk,
7166 # so we should be able to put the 'maybe's in unconditionally and
7167 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7168 # 100% sure that that's safe though.
7170 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7171 case "$enable_gdbtk" in
7175 GDB_TK="${gdb_tk}" ;;
7177 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7178 # distro. Eventually someone will fix this and move Insight, nee
7179 # gdbtk to a separate directory.
7180 if test -d ${srcdir}/gdb/gdbtk ; then
7187 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7188 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7190 # Strip out unwanted targets.
7192 # While at that, we remove Makefiles if we were started for recursive
7193 # configuration, so that the top-level Makefile reconfigures them,
7194 # like we used to do when configure itself was recursive.
7196 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7197 # but now we're fixing up the Makefile ourselves with the additional
7198 # commands passed to AC_CONFIG_FILES. Use separate variables
7199 # extrasub-{build,host,target} not because there is any reason to split
7200 # the substitutions up that way, but only to remain below the limit of
7201 # 99 commands in a script, for HP-UX sed.
7202 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7204 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7205 yes:yes:*\ gold\ *:*,c++,*) ;;
7206 yes:yes:*\ gold\ *:*)
7207 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7212 for module in ${build_configdirs} ; do
7213 if test -z "${no_recursion}" \
7214 && test -f ${build_subdir}/${module}/Makefile; then
7215 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7216 rm -f ${build_subdir}/${module}/Makefile
7218 extrasub_build="$extrasub_build
7219 /^@if build-$module\$/d
7220 /^@endif build-$module\$/d
7221 /^@if build-$module-$bootstrap_suffix\$/d
7222 /^@endif build-$module-$bootstrap_suffix\$/d"
7225 for module in ${configdirs} ; do
7226 if test -z "${no_recursion}"; then
7227 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7228 if test -f ${file}; then
7229 echo 1>&2 "*** removing ${file} to force reconfigure"
7234 case ${module},${bootstrap_fixincludes} in
7235 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7236 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7238 extrasub_host="$extrasub_host
7240 /^@endif $module\$/d
7241 /^@if $module-$host_bootstrap_suffix\$/d
7242 /^@endif $module-$host_bootstrap_suffix\$/d"
7245 for module in ${target_configdirs} ; do
7246 if test -z "${no_recursion}" \
7247 && test -f ${target_subdir}/${module}/Makefile; then
7248 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7249 rm -f ${target_subdir}/${module}/Makefile
7252 # We only bootstrap target libraries listed in bootstrap_target_libs.
7253 case $bootstrap_target_libs in
7254 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7255 *) target_bootstrap_suffix=no-bootstrap ;;
7258 extrasub_target="$extrasub_target
7259 /^@if target-$module\$/d
7260 /^@endif target-$module\$/d
7261 /^@if target-$module-$target_bootstrap_suffix\$/d
7262 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7265 # Do the final fixup along with target modules.
7266 extrasub_target="$extrasub_target
7267 /^@if /,/^@endif /d"
7269 # Create the serialization dependencies. This uses a temporary file.
7271 # Check whether --enable-serial-configure was given.
7272 if test "${enable_serial_configure+set}" = set; then :
7273 enableval=$enable_serial_configure;
7277 case ${enable_serial_configure} in
7279 enable_serial_build_configure=yes
7280 enable_serial_host_configure=yes
7281 enable_serial_target_configure=yes
7285 # These force 'configure's to be done one at a time, to avoid problems
7286 # with contention over a shared config.cache.
7288 echo '# serdep.tmp' > serdep.tmp
7290 test "x${enable_serial_build_configure}" = xyes &&
7291 for item in ${build_configdirs} ; do
7294 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7299 test "x${enable_serial_host_configure}" = xyes &&
7300 for item in ${configdirs} ; do
7303 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7308 test "x${enable_serial_target_configure}" = xyes &&
7309 for item in ${target_configdirs} ; do
7312 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7316 serialization_dependencies=serdep.tmp
7319 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7320 # target, nonopt, and variable assignments. These are the ones we
7321 # might not want to pass down to subconfigures. The exception being
7322 # --cache-file=/dev/null, which is used to turn off the use of cache
7323 # files altogether, and which should be passed on to subconfigures.
7324 # Also strip program-prefix, program-suffix, and program-transform-name,
7325 # so that we can pass down a consistent program-transform-name.
7330 eval "set -- $ac_configure_args"
7333 if test X"$skip_next" = X"yes"; then
7337 if test X"$keep_next" = X"yes"; then
7340 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7342 baseargs="$baseargs '$ac_arg'"
7343 tbaseargs="$tbaseargs '$ac_arg'"
7348 # Handle separated arguments. Based on the logic generated by
7351 *=* | --config-cache | -C | -disable-* | --disable-* \
7352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7354 | -with-* | --with-* | -without-* | --without-* | --x)
7368 --with-* | --without-*)
7369 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7373 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7376 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7385 mpc | mpfr | gmp | isl)
7386 # If we're processing --with-$lib, --with-$lib-include or
7387 # --with-$lib-lib, for one of the libs above, and target is
7388 # different from host, don't pass the current argument to any
7389 # target library's configure.
7390 if test x$is_cross_compiler = xyes; then
7399 --cache-file=/dev/null | \
7400 -cache-file=/dev/null )
7401 # Handled here to avoid the test to skip args below.
7402 baseargs="$baseargs '$ac_arg'"
7403 tbaseargs="$tbaseargs '$ac_arg'"
7404 # Assert: $separate_arg should always be no.
7405 keep_next=$separate_arg
7421 -program-prefix* | \
7422 -program-suffix* | \
7423 -program-transform-name* )
7424 skip_next=$separate_arg
7428 # An option. Add it.
7431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7433 baseargs="$baseargs '$ac_arg'"
7434 if test X"$skip_targ" = Xno; then
7435 tbaseargs="$tbaseargs '$ac_arg'"
7437 keep_next=$separate_arg
7440 # Either a variable assignment, or a nonopt (triplet). Don't
7441 # pass it down; let the Makefile handle this.
7446 # Remove the initial space we just introduced and, as these will be
7447 # expanded by make, quote '$'.
7448 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7450 # Add in --program-transform-name, after --program-prefix and
7451 # --program-suffix have been applied to it. Autoconf has already
7452 # doubled dollar signs and backslashes in program_transform_name; we want
7453 # the backslashes un-doubled, and then the entire thing wrapped in single
7454 # quotes, because this will be expanded first by make and then by the shell.
7455 # Also, because we want to override the logic in subdir configure scripts to
7456 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7457 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7458 ${program_transform_name}
7460 gcc_transform_name=`cat conftestsed.out`
7461 rm -f conftestsed.out
7462 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7463 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7464 if test "$silent" = yes; then
7465 baseargs="$baseargs --silent"
7466 tbaseargs="$tbaseargs --silent"
7468 baseargs="$baseargs --disable-option-checking"
7469 tbaseargs="$tbaseargs --disable-option-checking"
7471 # Record and document user additions to sub configure arguments.
7476 # For the build-side libraries, we just need to pretend we're native,
7477 # and not use the same cache file. Multilibs are neither needed nor
7478 # desired. We can't even use the same cache file for all build-side
7479 # libraries, as they're compiled differently; some with C, some with
7480 # C++ or with different feature-enabling options.
7481 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7483 # For host modules, accept cache file option, or specification as blank.
7484 case "${cache_file}" in
7486 cache_file_option="" ;;
7487 /* | [A-Za-z]:[\\/]* ) # absolute path
7488 cache_file_option="--cache-file=${cache_file}" ;;
7490 cache_file_option="--cache-file=../${cache_file}" ;;
7493 # Host dirs don't like to share a cache file either, horribly enough.
7494 # This seems to be due to autoconf 2.5x stupidity.
7495 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7497 target_configargs="$target_configargs ${tbaseargs}"
7499 # Passing a --with-cross-host argument lets the target libraries know
7500 # whether they are being built with a cross-compiler or being built
7501 # native. However, it would be better to use other mechanisms to make the
7502 # sorts of decisions they want to make on this basis. Please consider
7503 # this option to be deprecated. FIXME.
7504 if test x${is_cross_compiler} = xyes ; then
7505 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7508 # Special user-friendly check for native x86_64-linux build, if
7509 # multilib is not explicitly enabled.
7510 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7511 x86_64-*linux*:yes:$build:$build:)
7512 # Make sure we have a development environment that handles 32-bit
7514 echo "int main () { return 0; }" > conftest.c
7515 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7516 if test $? = 0 ; then
7517 if test -s conftest || test -s conftest.exe ; then
7522 if test x${dev64} != xyes ; then
7523 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
7528 # Default to --enable-multilib.
7529 if test x${enable_multilib} = x ; then
7530 target_configargs="--enable-multilib ${target_configargs}"
7533 # Pass --with-newlib if appropriate. Note that target_configdirs has
7534 # changed from the earlier setting of with_newlib.
7535 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7536 target_configargs="--with-newlib ${target_configargs}"
7539 # Different target subdirs use different values of certain variables
7540 # (notably CXX). Worse, multilibs use *lots* of different values.
7541 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7542 # it doesn't automatically accept command-line overrides of them.
7543 # This means it's not safe for target subdirs to share a cache file,
7544 # which is disgusting, but there you have it. Hopefully this can be
7545 # fixed in future. It's still worthwhile to use a cache file for each
7546 # directory. I think.
7548 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7549 # We need to pass --target, as newer autoconf's requires consistency
7550 # for target_alias and gcc doesn't manage it consistently.
7551 target_configargs="--cache-file=./config.cache ${target_configargs}"
7554 case " $target_configdirs " in
7556 case " $target_configargs " in
7557 *" --with-newlib "*)
7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7564 # If we're not building GCC, don't discard standard headers.
7565 if test -d ${srcdir}/gcc; then
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7568 if test "${build}" != "${host}"; then
7569 # On Canadian crosses, CC_FOR_TARGET will have already been set
7570 # by `configure', so we won't have an opportunity to add -Bgcc/
7571 # to it. This is right: we don't want to search that directory
7572 # for binaries, but we want the header files in there, so add
7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7576 # Someone might think of using the pre-installed headers on
7577 # Canadian crosses, in case the installed compiler is not fully
7578 # compatible with the compiler being built. In this case, it
7579 # would be better to flag an error than risking having
7580 # incompatible object files being constructed. We can't
7581 # guarantee that an error will be flagged, but let's hope the
7582 # compiler will do it, when presented with incompatible header
7587 case "${target}-${is_cross_compiler}" in
7588 i[3456789]86-*-linux*-no)
7589 # Here host == target, so we don't need to build gcc,
7590 # so we don't want to discard standard headers.
7591 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7594 # If we're building newlib, use its generic headers last, but search
7595 # for any libc-related directories first (so make it the last -B
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7599 # If we're building libgloss, find the startup file, simulator library
7600 # and linker script.
7601 case " $target_configdirs " in
7603 # Look for startup file, simulator library and maybe linker script.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7605 # Look for libnosys.a in case the target needs it.
7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7607 # Most targets have the linker script in the source directory.
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7619 x86_64-*mingw* | *-w64-mingw*)
7620 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7621 # however, use a symlink named 'mingw' in ${prefix} .
7622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7625 # MinGW can't be handled as Cygwin above since it does not use newlib.
7626 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'
7630 # Allow the user to override the flags for
7631 # our build compiler if desired.
7632 if test x"${build}" = x"${host}" ; then
7633 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7634 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7635 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7638 # On Canadian crosses, we'll be searching the right directories for
7639 # the previously-installed cross compiler, so don't bother to add
7640 # flags for directories within the install tree of the compiler
7641 # being built; programs in there won't even run.
7642 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7643 # Search for pre-installed headers if nothing else fits.
7644 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7647 if test "x${use_gnu_ld}" = x &&
7648 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7649 # Arrange for us to find uninstalled linker scripts.
7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7653 # Search for other target-specific linker scripts and such.
7656 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7660 # Makefile fragments.
7661 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7663 eval fragval=\$$frag
7664 if test $fragval != /dev/null; then
7665 eval $frag=${srcdir}/$fragval
7673 # Miscellanea: directories, flags, etc.
7682 # Build module lists & subconfigure args.
7686 # Host module lists & subconfigure args.
7691 # Target module lists & subconfigure args.
7713 # Generate default definitions for YACC, M4, LEX and other programs that run
7714 # on the build machine. These are used if the Makefile can't locate these
7715 # programs in objdir.
7716 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7718 for ac_prog in 'bison -y' byacc yacc
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_YACC+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7727 if test -n "$YACC"; then
7728 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_prog_YACC="$ac_prog"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 YACC=$ac_cv_prog_YACC
7748 if test -n "$YACC"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7750 $as_echo "$YACC" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7757 test -n "$YACC" && break
7759 test -n "$YACC" || YACC="$MISSING bison -y"
7761 case " $build_configdirs " in
7762 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7765 for ac_prog in bison
7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_BISON+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$BISON"; then
7775 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_BISON="$ac_prog"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 BISON=$ac_cv_prog_BISON
7795 if test -n "$BISON"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7797 $as_echo "$BISON" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7804 test -n "$BISON" && break
7806 test -n "$BISON" || BISON="$MISSING bison"
7808 case " $build_configdirs " in
7809 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7812 for ac_prog in gm4 gnum4 m4
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_M4+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$M4"; then
7822 ac_cv_prog_M4="$M4" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_M4="$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 if test -n "$M4"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7844 $as_echo "$M4" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$M4" && break
7853 test -n "$M4" || M4="$MISSING m4"
7855 case " $build_configdirs " in
7856 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7859 for ac_prog in flex lex
7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy $ac_prog; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_LEX+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 if test -n "$LEX"; then
7869 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_LEX="$ac_prog"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 if test -n "$LEX"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7891 $as_echo "$LEX" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7898 test -n "$LEX" && break
7900 test -n "$LEX" || LEX="$MISSING flex"
7902 case " $build_configdirs " in
7903 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7904 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy $ac_prog; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_FLEX="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 FLEX=$ac_cv_prog_FLEX
7937 if test -n "$FLEX"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939 $as_echo "$FLEX" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$FLEX" && break
7948 test -n "$FLEX" || FLEX="$MISSING flex"
7950 case " $build_configdirs " in
7951 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7954 for ac_prog in makeinfo
7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
7957 set dummy $ac_prog; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7963 if test -n "$MAKEINFO"; then
7964 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_MAKEINFO="$ac_prog"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 MAKEINFO=$ac_cv_prog_MAKEINFO
7984 if test -n "$MAKEINFO"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7986 $as_echo "$MAKEINFO" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7993 test -n "$MAKEINFO" && break
7995 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7997 case " $build_configdirs " in
7998 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8001 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8002 # higher, else we use the "missing" dummy.
8003 if ${MAKEINFO} --version \
8004 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8007 MAKEINFO="$MISSING makeinfo"
8013 # FIXME: expect and dejagnu may become build tools?
8015 for ac_prog in expect
8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
8018 set dummy $ac_prog; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8024 if test -n "$EXPECT"; then
8025 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_prog_EXPECT="$ac_prog"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 EXPECT=$ac_cv_prog_EXPECT
8045 if test -n "$EXPECT"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8047 $as_echo "$EXPECT" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8054 test -n "$EXPECT" && break
8056 test -n "$EXPECT" || EXPECT="expect"
8058 case " $configdirs " in
8060 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8064 for ac_prog in runtest
8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
8067 set dummy $ac_prog; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8073 if test -n "$RUNTEST"; then
8074 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_prog_RUNTEST="$ac_prog"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 RUNTEST=$ac_cv_prog_RUNTEST
8094 if test -n "$RUNTEST"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8096 $as_echo "$RUNTEST" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8103 test -n "$RUNTEST" && break
8105 test -n "$RUNTEST" || RUNTEST="runtest"
8107 case " $configdirs " in
8109 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8116 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8117 ncn_target_tool_prefix=
8118 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8122 if test -n "$AR"; then
8124 elif test -n "$ac_cv_prog_AR"; then
8128 if test -n "$ac_cv_prog_AR"; then
8129 for ncn_progname in ar; do
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_progname}; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_AR="${ncn_progname}"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 if test -n "$AR"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160 $as_echo "$AR" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8170 for ncn_progname in ar; do
8171 if test -n "$ncn_tool_prefix"; then
8172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_AR+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 if test -n "$AR"; then
8180 ac_cv_prog_AR="$AR" # Let the user override the test.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 if test -n "$AR"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202 $as_echo "$AR" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_progname}; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$AR"; then
8219 ac_cv_prog_AR="$AR" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_AR="${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 if test -n "$AR"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241 $as_echo "$AR" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 test -n "$ac_cv_prog_AR" && break
8252 if test -z "$ac_cv_prog_AR" ; then
8254 if test $build = $host ; then
8257 AR="${ncn_tool_prefix}$2"
8263 if test -n "$AS"; then
8265 elif test -n "$ac_cv_prog_AS"; then
8269 if test -n "$ac_cv_prog_AS"; then
8270 for ncn_progname in as; do
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272 set dummy ${ncn_progname}; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_AS="${ncn_progname}"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 if test -n "$AS"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301 $as_echo "$AS" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8311 for ncn_progname in as; do
8312 if test -n "$ncn_tool_prefix"; then
8313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8314 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_AS+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 if test -n "$AS"; then
8321 ac_cv_prog_AS="$AS" # Let the user override the test.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 if test -n "$AS"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8343 $as_echo "$AS" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8351 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353 set dummy ${ncn_progname}; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_AS="${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 if test -n "$AS"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382 $as_echo "$AS" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 test -n "$ac_cv_prog_AS" && break
8393 if test -z "$ac_cv_prog_AS" ; then
8395 if test $build = $host ; then
8398 AS="${ncn_tool_prefix}$2"
8404 if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL=$DLLTOOL
8406 elif test -n "$ac_cv_prog_DLLTOOL"; then
8407 DLLTOOL=$ac_cv_prog_DLLTOOL
8410 if test -n "$ac_cv_prog_DLLTOOL"; then
8411 for ncn_progname in dlltool; do
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413 set dummy ${ncn_progname}; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_DLLTOOL="${ncn_progname}"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 DLLTOOL=$ac_cv_prog_DLLTOOL
8440 if test -n "$DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442 $as_echo "$DLLTOOL" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8452 for ncn_progname in dlltool; do
8453 if test -n "$ncn_tool_prefix"; then
8454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 DLLTOOL=$ac_cv_prog_DLLTOOL
8482 if test -n "$DLLTOOL"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484 $as_echo "$DLLTOOL" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8492 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494 set dummy ${ncn_progname}; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_DLLTOOL="${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 DLLTOOL=$ac_cv_prog_DLLTOOL
8521 if test -n "$DLLTOOL"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523 $as_echo "$DLLTOOL" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 test -n "$ac_cv_prog_DLLTOOL" && break
8534 if test -z "$ac_cv_prog_DLLTOOL" ; then
8536 if test $build = $host ; then
8539 DLLTOOL="${ncn_tool_prefix}$2"
8545 if test -n "$LD"; then
8547 elif test -n "$ac_cv_prog_LD"; then
8551 if test -n "$ac_cv_prog_LD"; then
8552 for ncn_progname in ld; do
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554 set dummy ${ncn_progname}; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_LD="${ncn_progname}"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 if test -n "$LD"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583 $as_echo "$LD" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8593 for ncn_progname in ld; do
8594 if test -n "$ncn_tool_prefix"; then
8595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8596 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LD+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8602 if test -n "$LD"; then
8603 ac_cv_prog_LD="$LD" # Let the user override the test.
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 if test -n "$LD"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8625 $as_echo "$LD" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8633 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635 set dummy ${ncn_progname}; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_LD="${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 if test -n "$LD"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664 $as_echo "$LD" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 test -n "$ac_cv_prog_LD" && break
8675 if test -z "$ac_cv_prog_LD" ; then
8677 if test $build = $host ; then
8680 LD="${ncn_tool_prefix}$2"
8686 if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO=$LIPO
8688 elif test -n "$ac_cv_prog_LIPO"; then
8689 LIPO=$ac_cv_prog_LIPO
8692 if test -n "$ac_cv_prog_LIPO"; then
8693 for ncn_progname in lipo; do
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695 set dummy ${ncn_progname}; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_LIPO="${ncn_progname}"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 LIPO=$ac_cv_prog_LIPO
8722 if test -n "$LIPO"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724 $as_echo "$LIPO" >&6; }
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8734 for ncn_progname in lipo; do
8735 if test -n "$ncn_tool_prefix"; then
8736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8737 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_prog_LIPO+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 LIPO=$ac_cv_prog_LIPO
8764 if test -n "$LIPO"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766 $as_echo "$LIPO" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8774 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776 set dummy ${ncn_progname}; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_LIPO="${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 LIPO=$ac_cv_prog_LIPO
8803 if test -n "$LIPO"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805 $as_echo "$LIPO" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 test -n "$ac_cv_prog_LIPO" && break
8816 if test -z "$ac_cv_prog_LIPO" ; then
8818 if test $build = $host ; then
8821 LIPO="${ncn_tool_prefix}$2"
8827 if test -n "$NM"; then
8829 elif test -n "$ac_cv_prog_NM"; then
8833 if test -n "$ac_cv_prog_NM"; then
8834 for ncn_progname in nm; do
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836 set dummy ${ncn_progname}; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_prog_NM="${ncn_progname}"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 if test -n "$NM"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865 $as_echo "$NM" >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8875 for ncn_progname in nm; do
8876 if test -n "$ncn_tool_prefix"; then
8877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_NM+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 if test -n "$NM"; then
8885 ac_cv_prog_NM="$NM" # Let the user override the test.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 if test -n "$NM"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8907 $as_echo "$NM" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_progname}; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_NM="${ncn_progname}"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 if test -n "$NM"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946 $as_echo "$NM" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8954 test -n "$ac_cv_prog_NM" && break
8957 if test -z "$ac_cv_prog_NM" ; then
8959 if test $build = $host ; then
8962 NM="${ncn_tool_prefix}$2"
8968 if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB=$RANLIB
8970 elif test -n "$ac_cv_prog_RANLIB"; then
8971 RANLIB=$ac_cv_prog_RANLIB
8974 if test -n "$ac_cv_prog_RANLIB"; then
8975 for ncn_progname in ranlib; do
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977 set dummy ${ncn_progname}; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_RANLIB="${ncn_progname}"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 RANLIB=$ac_cv_prog_RANLIB
9004 if test -n "$RANLIB"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006 $as_echo "$RANLIB" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9016 for ncn_progname in ranlib; do
9017 if test -n "$ncn_tool_prefix"; then
9018 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9019 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9025 if test -n "$RANLIB"; then
9026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 RANLIB=$ac_cv_prog_RANLIB
9046 if test -n "$RANLIB"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9048 $as_echo "$RANLIB" >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9056 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9058 set dummy ${ncn_progname}; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_prog_RANLIB="${ncn_progname}"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 RANLIB=$ac_cv_prog_RANLIB
9085 if test -n "$RANLIB"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087 $as_echo "$RANLIB" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9095 test -n "$ac_cv_prog_RANLIB" && break
9098 if test -z "$ac_cv_prog_RANLIB" ; then
9104 if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP=$STRIP
9106 elif test -n "$ac_cv_prog_STRIP"; then
9107 STRIP=$ac_cv_prog_STRIP
9110 if test -n "$ac_cv_prog_STRIP"; then
9111 for ncn_progname in strip; do
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113 set dummy ${ncn_progname}; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_prog_STRIP="${ncn_progname}"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 STRIP=$ac_cv_prog_STRIP
9140 if test -n "$STRIP"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142 $as_echo "$STRIP" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9152 for ncn_progname in strip; do
9153 if test -n "$ncn_tool_prefix"; then
9154 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9155 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if test "${ac_cv_prog_STRIP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9161 if test -n "$STRIP"; then
9162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 STRIP=$ac_cv_prog_STRIP
9182 if test -n "$STRIP"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9184 $as_echo "$STRIP" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9192 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9194 set dummy ${ncn_progname}; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_STRIP="${ncn_progname}"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 STRIP=$ac_cv_prog_STRIP
9221 if test -n "$STRIP"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223 $as_echo "$STRIP" >&6; }
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9231 test -n "$ac_cv_prog_STRIP" && break
9234 if test -z "$ac_cv_prog_STRIP" ; then
9240 if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES=$WINDRES
9242 elif test -n "$ac_cv_prog_WINDRES"; then
9243 WINDRES=$ac_cv_prog_WINDRES
9246 if test -n "$ac_cv_prog_WINDRES"; then
9247 for ncn_progname in windres; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249 set dummy ${ncn_progname}; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_prog_WINDRES="${ncn_progname}"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 WINDRES=$ac_cv_prog_WINDRES
9276 if test -n "$WINDRES"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278 $as_echo "$WINDRES" >&6; }
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9288 for ncn_progname in windres; do
9289 if test -n "$ncn_tool_prefix"; then
9290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9297 if test -n "$WINDRES"; then
9298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9317 WINDRES=$ac_cv_prog_WINDRES
9318 if test -n "$WINDRES"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9320 $as_echo "$WINDRES" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9328 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330 set dummy ${ncn_progname}; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_WINDRES="${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 WINDRES=$ac_cv_prog_WINDRES
9357 if test -n "$WINDRES"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359 $as_echo "$WINDRES" >&6; }
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 test -n "$ac_cv_prog_WINDRES" && break
9370 if test -z "$ac_cv_prog_WINDRES" ; then
9372 if test $build = $host ; then
9375 WINDRES="${ncn_tool_prefix}$2"
9381 if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC=$WINDMC
9383 elif test -n "$ac_cv_prog_WINDMC"; then
9384 WINDMC=$ac_cv_prog_WINDMC
9387 if test -n "$ac_cv_prog_WINDMC"; then
9388 for ncn_progname in windmc; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_WINDMC="${ncn_progname}"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 WINDMC=$ac_cv_prog_WINDMC
9417 if test -n "$WINDMC"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419 $as_echo "$WINDMC" >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9429 for ncn_progname in windmc; do
9430 if test -n "$ncn_tool_prefix"; then
9431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9438 if test -n "$WINDMC"; then
9439 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9448 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 WINDMC=$ac_cv_prog_WINDMC
9459 if test -n "$WINDMC"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9461 $as_echo "$WINDMC" >&6; }
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9469 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471 set dummy ${ncn_progname}; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_WINDMC="${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 WINDMC=$ac_cv_prog_WINDMC
9498 if test -n "$WINDMC"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500 $as_echo "$WINDMC" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 test -n "$ac_cv_prog_WINDMC" && break
9511 if test -z "$ac_cv_prog_WINDMC" ; then
9513 if test $build = $host ; then
9516 WINDMC="${ncn_tool_prefix}$2"
9522 if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY=$OBJCOPY
9524 elif test -n "$ac_cv_prog_OBJCOPY"; then
9525 OBJCOPY=$ac_cv_prog_OBJCOPY
9528 if test -n "$ac_cv_prog_OBJCOPY"; then
9529 for ncn_progname in objcopy; do
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531 set dummy ${ncn_progname}; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_OBJCOPY="${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 OBJCOPY=$ac_cv_prog_OBJCOPY
9558 if test -n "$OBJCOPY"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560 $as_echo "$OBJCOPY" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9570 for ncn_progname in objcopy; do
9571 if test -n "$ncn_tool_prefix"; then
9572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9579 if test -n "$OBJCOPY"; then
9580 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 OBJCOPY=$ac_cv_prog_OBJCOPY
9600 if test -n "$OBJCOPY"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9602 $as_echo "$OBJCOPY" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9610 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612 set dummy ${ncn_progname}; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_OBJCOPY="${ncn_progname}"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 OBJCOPY=$ac_cv_prog_OBJCOPY
9639 if test -n "$OBJCOPY"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641 $as_echo "$OBJCOPY" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9649 test -n "$ac_cv_prog_OBJCOPY" && break
9652 if test -z "$ac_cv_prog_OBJCOPY" ; then
9654 if test $build = $host ; then
9657 OBJCOPY="${ncn_tool_prefix}$2"
9663 if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP=$OBJDUMP
9665 elif test -n "$ac_cv_prog_OBJDUMP"; then
9666 OBJDUMP=$ac_cv_prog_OBJDUMP
9669 if test -n "$ac_cv_prog_OBJDUMP"; then
9670 for ncn_progname in objdump; do
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672 set dummy ${ncn_progname}; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_OBJDUMP="${ncn_progname}"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 OBJDUMP=$ac_cv_prog_OBJDUMP
9699 if test -n "$OBJDUMP"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701 $as_echo "$OBJDUMP" >&6; }
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9711 for ncn_progname in objdump; do
9712 if test -n "$ncn_tool_prefix"; then
9713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 if test -n "$OBJDUMP"; then
9721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 OBJDUMP=$ac_cv_prog_OBJDUMP
9741 if test -n "$OBJDUMP"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9743 $as_echo "$OBJDUMP" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9751 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753 set dummy ${ncn_progname}; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_OBJDUMP="${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 OBJDUMP=$ac_cv_prog_OBJDUMP
9780 if test -n "$OBJDUMP"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782 $as_echo "$OBJDUMP" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9790 test -n "$ac_cv_prog_OBJDUMP" && break
9793 if test -z "$ac_cv_prog_OBJDUMP" ; then
9795 if test $build = $host ; then
9798 OBJDUMP="${ncn_tool_prefix}$2"
9804 if test -n "$READELF"; then
9805 ac_cv_prog_READELF=$READELF
9806 elif test -n "$ac_cv_prog_READELF"; then
9807 READELF=$ac_cv_prog_READELF
9810 if test -n "$ac_cv_prog_READELF"; then
9811 for ncn_progname in readelf; do
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813 set dummy ${ncn_progname}; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 READELF=$ac_cv_prog_READELF
9840 if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842 $as_echo "$READELF" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9852 for ncn_progname in readelf; do
9853 if test -n "$ncn_tool_prefix"; then
9854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9855 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if test "${ac_cv_prog_READELF+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9861 if test -n "$READELF"; then
9862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 READELF=$ac_cv_prog_READELF
9882 if test -n "$READELF"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9884 $as_echo "$READELF" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9892 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_progname}; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 READELF=$ac_cv_prog_READELF
9921 if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923 $as_echo "$READELF" >&6; }
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9931 test -n "$ac_cv_prog_READELF" && break
9934 if test -z "$ac_cv_prog_READELF" ; then
9936 if test $build = $host ; then
9939 READELF="${ncn_tool_prefix}$2"
9950 # Check whether --with-build-time-tools was given.
9951 if test "${with_build_time_tools+set}" = set; then :
9952 withval=$with_build_time_tools; case x"$withval" in
9955 with_build_time_tools=
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9957 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9961 with_build_time_tools=
9967 if test -n "$CC_FOR_TARGET"; then
9968 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9969 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9970 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9973 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9974 for ncn_progname in cc gcc; do
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976 set dummy ${ncn_progname}; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10003 if test -n "$CC_FOR_TARGET"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10005 $as_echo "$CC_FOR_TARGET" >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10015 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10016 for ncn_progname in cc gcc; do
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10018 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10019 if test -x $with_build_time_tools/${ncn_progname}; then
10020 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10022 $as_echo "yes" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10031 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10032 for ncn_progname in cc gcc; do
10033 if test -n "$ncn_target_tool_prefix"; then
10034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 if test -n "$CC_FOR_TARGET"; then
10042 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10062 if test -n "$CC_FOR_TARGET"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10064 $as_echo "$CC_FOR_TARGET" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10072 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074 set dummy ${ncn_progname}; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10101 if test -n "$CC_FOR_TARGET"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103 $as_echo "$CC_FOR_TARGET" >&6; }
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10111 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10115 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10117 if test $build = $target ; then
10120 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10123 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10128 if test -n "$CXX_FOR_TARGET"; then
10129 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10130 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10131 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10134 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10135 for ncn_progname in c++ g++ cxx gxx; do
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137 set dummy ${ncn_progname}; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10153 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10164 if test -n "$CXX_FOR_TARGET"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10166 $as_echo "$CXX_FOR_TARGET" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10176 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10177 for ncn_progname in c++ g++ cxx gxx; do
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10179 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10180 if test -x $with_build_time_tools/${ncn_progname}; then
10181 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183 $as_echo "yes" >&6; }
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10192 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10193 for ncn_progname in c++ g++ cxx gxx; do
10194 if test -n "$ncn_target_tool_prefix"; then
10195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10202 if test -n "$CXX_FOR_TARGET"; then
10203 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10212 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10223 if test -n "$CXX_FOR_TARGET"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10225 $as_echo "$CXX_FOR_TARGET" >&6; }
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10233 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10235 set dummy ${ncn_progname}; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10262 if test -n "$CXX_FOR_TARGET"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264 $as_echo "$CXX_FOR_TARGET" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10272 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10277 set dummy c++ g++ cxx gxx
10278 if test $build = $target ; then
10279 CXX_FOR_TARGET="$2"
10281 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10284 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10289 if test -n "$GCC_FOR_TARGET"; then
10290 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10291 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10292 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10295 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10296 for ncn_progname in gcc; do
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298 set dummy ${ncn_progname}; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10314 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10325 if test -n "$GCC_FOR_TARGET"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10327 $as_echo "$GCC_FOR_TARGET" >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10337 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10338 for ncn_progname in gcc; do
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344 $as_echo "yes" >&6; }
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10353 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10354 for ncn_progname in gcc; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10357 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
10363 if test -n "$GCC_FOR_TARGET"; then
10364 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10373 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10384 if test -n "$GCC_FOR_TARGET"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10386 $as_echo "$GCC_FOR_TARGET" >&6; }
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10394 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10396 set dummy ${ncn_progname}; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10423 if test -n "$GCC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425 $as_echo "$GCC_FOR_TARGET" >&6; }
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10433 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10437 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10438 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10440 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10445 if test -n "$GCJ_FOR_TARGET"; then
10446 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10447 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10448 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10451 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10452 for ncn_progname in gcj; do
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454 set dummy ${ncn_progname}; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10460 if test -n "$GCJ_FOR_TARGET"; then
10461 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10481 if test -n "$GCJ_FOR_TARGET"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10483 $as_echo "$GCJ_FOR_TARGET" >&6; }
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10493 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10494 for ncn_progname in gcj; do
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10496 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10497 if test -x $with_build_time_tools/${ncn_progname}; then
10498 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500 $as_echo "yes" >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10509 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10510 for ncn_progname in gcj; do
10511 if test -n "$ncn_target_tool_prefix"; then
10512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10513 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10519 if test -n "$GCJ_FOR_TARGET"; then
10520 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10540 if test -n "$GCJ_FOR_TARGET"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10542 $as_echo "$GCJ_FOR_TARGET" >&6; }
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10552 set dummy ${ncn_progname}; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579 if test -n "$GCJ_FOR_TARGET"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581 $as_echo "$GCJ_FOR_TARGET" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10589 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10593 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10595 if test $build = $target ; then
10596 GCJ_FOR_TARGET="$2"
10598 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10601 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10606 if test -n "$GFORTRAN_FOR_TARGET"; then
10607 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10608 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10612 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10613 for ncn_progname in gfortran; do
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615 set dummy ${ncn_progname}; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10642 if test -n "$GFORTRAN_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10644 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10654 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10655 for ncn_progname in gfortran; do
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661 $as_echo "yes" >&6; }
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10670 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10671 for ncn_progname in gfortran; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
10681 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10690 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10701 if test -n "$GFORTRAN_FOR_TARGET"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10703 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10711 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10740 if test -n "$GFORTRAN_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10750 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10754 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10756 if test $build = $target ; then
10757 GFORTRAN_FOR_TARGET="$2"
10759 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10767 if test -n "$GOC_FOR_TARGET"; then
10768 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10769 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10773 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10774 for ncn_progname in gccgo; do
10775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10776 set dummy ${ncn_progname}; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10782 if test -n "$GOC_FOR_TARGET"; then
10783 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10803 if test -n "$GOC_FOR_TARGET"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10805 $as_echo "$GOC_FOR_TARGET" >&6; }
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10815 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10816 for ncn_progname in gccgo; do
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/${ncn_progname}; then
10820 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822 $as_echo "yes" >&6; }
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10831 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10832 for ncn_progname in gccgo; do
10833 if test -n "$ncn_target_tool_prefix"; then
10834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10841 if test -n "$GOC_FOR_TARGET"; then
10842 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10862 if test -n "$GOC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10864 $as_echo "$GOC_FOR_TARGET" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10872 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10874 set dummy ${ncn_progname}; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901 if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903 $as_echo "$GOC_FOR_TARGET" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10915 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10917 if test $build = $target ; then
10918 GOC_FOR_TARGET="$2"
10920 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10923 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10928 cat > conftest.c << \EOF
10933 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10934 have_gcc_for_target=yes
10936 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10937 have_gcc_for_target=no
10944 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10945 if test -n "$with_build_time_tools"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10947 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10948 if test -x $with_build_time_tools/ar; then
10949 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10950 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10952 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10957 elif test $build != $host && test $have_gcc_for_target = yes; then
10958 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10959 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10960 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10963 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10964 # Extract the first word of "ar", so it can be a program name with args.
10965 set dummy ar; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10971 case $AR_FOR_TARGET in
10973 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $gcc_cv_tool_dirs
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10995 if test -n "$AR_FOR_TARGET"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997 $as_echo "$AR_FOR_TARGET" >&6; }
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11005 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11008 if test -n "$AR_FOR_TARGET"; then
11009 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11010 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11011 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11014 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11015 for ncn_progname in ar; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017 set dummy ${ncn_progname}; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11033 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11044 if test -n "$AR_FOR_TARGET"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11046 $as_echo "$AR_FOR_TARGET" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11056 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11057 for ncn_progname in ar; do
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11059 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11060 if test -x $with_build_time_tools/${ncn_progname}; then
11061 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063 $as_echo "yes" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11072 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11073 for ncn_progname in ar; do
11074 if test -n "$ncn_target_tool_prefix"; then
11075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11076 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11082 if test -n "$AR_FOR_TARGET"; then
11083 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11092 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11103 if test -n "$AR_FOR_TARGET"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11105 $as_echo "$AR_FOR_TARGET" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11113 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11115 set dummy ${ncn_progname}; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11142 if test -n "$AR_FOR_TARGET"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144 $as_echo "$AR_FOR_TARGET" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11152 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11156 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11158 if test $build = $target ; then
11161 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11164 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11168 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11174 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11175 if test -n "$with_build_time_tools"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11177 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11178 if test -x $with_build_time_tools/as; then
11179 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11180 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11182 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11187 elif test $build != $host && test $have_gcc_for_target = yes; then
11188 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11189 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11190 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11193 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11194 # Extract the first word of "as", so it can be a program name with args.
11195 set dummy as; ac_word=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 case $AS_FOR_TARGET in
11203 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $gcc_cv_tool_dirs
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11213 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11225 if test -n "$AS_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227 $as_echo "$AS_FOR_TARGET" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11235 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11238 if test -n "$AS_FOR_TARGET"; then
11239 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11240 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11241 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11244 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11245 for ncn_progname in as; do
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249 $as_echo_n "checking for $ac_word... " >&6; }
11250 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11274 if test -n "$AS_FOR_TARGET"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11276 $as_echo "$AS_FOR_TARGET" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11286 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11287 for ncn_progname in as; do
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11290 if test -x $with_build_time_tools/${ncn_progname}; then
11291 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293 $as_echo "yes" >&6; }
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11302 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11303 for ncn_progname in as; do
11304 if test -n "$ncn_target_tool_prefix"; then
11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11312 if test -n "$AS_FOR_TARGET"; then
11313 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11322 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11333 if test -n "$AS_FOR_TARGET"; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11335 $as_echo "$AS_FOR_TARGET" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11343 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11345 set dummy ${ncn_progname}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11372 if test -n "$AS_FOR_TARGET"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374 $as_echo "$AS_FOR_TARGET" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11386 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11388 if test $build = $target ; then
11391 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11394 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11398 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11404 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11405 if test -n "$with_build_time_tools"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11407 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11408 if test -x $with_build_time_tools/dlltool; then
11409 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11410 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11412 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11417 elif test $build != $host && test $have_gcc_for_target = yes; then
11418 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11419 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11420 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11423 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11424 # Extract the first word of "dlltool", so it can be a program name with args.
11425 set dummy dlltool; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 case $DLLTOOL_FOR_TARGET in
11433 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $gcc_cv_tool_dirs
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11455 if test -n "$DLLTOOL_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11465 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11468 if test -n "$DLLTOOL_FOR_TARGET"; then
11469 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11470 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11471 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11474 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11475 for ncn_progname in dlltool; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477 set dummy ${ncn_progname}; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11504 if test -n "$DLLTOOL_FOR_TARGET"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11506 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11516 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11517 for ncn_progname in dlltool; do
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11519 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11520 if test -x $with_build_time_tools/${ncn_progname}; then
11521 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523 $as_echo "yes" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11532 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11533 for ncn_progname in dlltool; do
11534 if test -n "$ncn_target_tool_prefix"; then
11535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11536 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11542 if test -n "$DLLTOOL_FOR_TARGET"; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11563 if test -n "$DLLTOOL_FOR_TARGET"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11565 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11573 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11575 set dummy ${ncn_progname}; ac_word=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11602 if test -n "$DLLTOOL_FOR_TARGET"; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11612 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11616 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11618 if test $build = $target ; then
11619 DLLTOOL_FOR_TARGET="$2"
11621 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11624 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11628 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11634 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11635 if test -n "$with_build_time_tools"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11637 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11638 if test -x $with_build_time_tools/ld; then
11639 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11640 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11642 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11647 elif test $build != $host && test $have_gcc_for_target = yes; then
11648 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11649 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11650 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11653 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11654 # Extract the first word of "ld", so it can be a program name with args.
11655 set dummy ld; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11661 case $LD_FOR_TARGET in
11663 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $gcc_cv_tool_dirs
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11685 if test -n "$LD_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687 $as_echo "$LD_FOR_TARGET" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11695 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11698 if test -n "$LD_FOR_TARGET"; then
11699 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11700 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11701 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11704 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11705 for ncn_progname in ld; do
11706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11707 set dummy ${ncn_progname}; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11734 if test -n "$LD_FOR_TARGET"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11736 $as_echo "$LD_FOR_TARGET" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11746 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11747 for ncn_progname in ld; do
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11749 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11750 if test -x $with_build_time_tools/${ncn_progname}; then
11751 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11762 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11763 for ncn_progname in ld; do
11764 if test -n "$ncn_target_tool_prefix"; then
11765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11766 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11772 if test -n "$LD_FOR_TARGET"; then
11773 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11793 if test -n "$LD_FOR_TARGET"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11795 $as_echo "$LD_FOR_TARGET" >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11803 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11805 set dummy ${ncn_progname}; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11832 if test -n "$LD_FOR_TARGET"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834 $as_echo "$LD_FOR_TARGET" >&6; }
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11842 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11846 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11848 if test $build = $target ; then
11851 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11854 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11858 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11864 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11865 if test -n "$with_build_time_tools"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11867 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11868 if test -x $with_build_time_tools/lipo; then
11869 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11870 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11872 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11877 elif test $build != $host && test $have_gcc_for_target = yes; then
11878 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11879 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11880 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11883 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11884 # Extract the first word of "lipo", so it can be a program name with args.
11885 set dummy lipo; ac_word=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11891 case $LIPO_FOR_TARGET in
11893 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $gcc_cv_tool_dirs
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11915 if test -n "$LIPO_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917 $as_echo "$LIPO_FOR_TARGET" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11925 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11928 if test -n "$LIPO_FOR_TARGET"; then
11929 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11930 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11931 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11934 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11935 for ncn_progname in lipo; do
11936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11937 set dummy ${ncn_progname}; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11953 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11964 if test -n "$LIPO_FOR_TARGET"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11966 $as_echo "$LIPO_FOR_TARGET" >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11976 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11977 for ncn_progname in lipo; do
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11979 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11980 if test -x $with_build_time_tools/${ncn_progname}; then
11981 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11992 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11993 for ncn_progname in lipo; do
11994 if test -n "$ncn_target_tool_prefix"; then
11995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12002 if test -n "$LIPO_FOR_TARGET"; then
12003 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12023 if test -n "$LIPO_FOR_TARGET"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12025 $as_echo "$LIPO_FOR_TARGET" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12033 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12035 set dummy ${ncn_progname}; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 if test -n "$LIPO_FOR_TARGET"; then
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12062 if test -n "$LIPO_FOR_TARGET"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064 $as_echo "$LIPO_FOR_TARGET" >&6; }
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12072 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12076 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12078 if test $build = $target ; then
12079 LIPO_FOR_TARGET="$2"
12081 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12084 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12088 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12094 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12095 if test -n "$with_build_time_tools"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12097 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12098 if test -x $with_build_time_tools/nm; then
12099 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12100 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12102 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12107 elif test $build != $host && test $have_gcc_for_target = yes; then
12108 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12109 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12110 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12113 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12114 # Extract the first word of "nm", so it can be a program name with args.
12115 set dummy nm; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 case $NM_FOR_TARGET in
12123 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $gcc_cv_tool_dirs
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12145 if test -n "$NM_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147 $as_echo "$NM_FOR_TARGET" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12155 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12158 if test -n "$NM_FOR_TARGET"; then
12159 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12160 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12161 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12164 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12165 for ncn_progname in nm; do
12166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12167 set dummy ${ncn_progname}; ac_word=$2
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169 $as_echo_n "checking for $ac_word... " >&6; }
12170 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12194 if test -n "$NM_FOR_TARGET"; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12196 $as_echo "$NM_FOR_TARGET" >&6; }
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12206 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12207 for ncn_progname in nm; do
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12209 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12210 if test -x $with_build_time_tools/${ncn_progname}; then
12211 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213 $as_echo "yes" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12222 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12223 for ncn_progname in nm; do
12224 if test -n "$ncn_target_tool_prefix"; then
12225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12226 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12232 if test -n "$NM_FOR_TARGET"; then
12233 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12253 if test -n "$NM_FOR_TARGET"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12255 $as_echo "$NM_FOR_TARGET" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12263 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12265 set dummy ${ncn_progname}; ac_word=$2
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12292 if test -n "$NM_FOR_TARGET"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294 $as_echo "$NM_FOR_TARGET" >&6; }
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12302 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12306 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12308 if test $build = $target ; then
12311 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12314 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12318 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12324 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12325 if test -n "$with_build_time_tools"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12327 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12328 if test -x $with_build_time_tools/objcopy; then
12329 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12330 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12332 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12337 elif test $build != $host && test $have_gcc_for_target = yes; then
12338 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12339 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12340 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12343 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12344 # Extract the first word of "objcopy", so it can be a program name with args.
12345 set dummy objcopy; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12351 case $OBJCOPY_FOR_TARGET in
12353 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $gcc_cv_tool_dirs
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12375 if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12385 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12388 if test -n "$OBJCOPY_FOR_TARGET"; then
12389 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12390 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12391 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12394 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12395 for ncn_progname in objcopy; do
12396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12397 set dummy ${ncn_progname}; ac_word=$2
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in $PATH
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12424 if test -n "$OBJCOPY_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12426 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12436 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12437 for ncn_progname in objcopy; do
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12439 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12440 if test -x $with_build_time_tools/${ncn_progname}; then
12441 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443 $as_echo "yes" >&6; }
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12452 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12453 for ncn_progname in objcopy; do
12454 if test -n "$ncn_target_tool_prefix"; then
12455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12456 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12462 if test -n "$OBJCOPY_FOR_TARGET"; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12483 if test -n "$OBJCOPY_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12485 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12495 set dummy ${ncn_progname}; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12501 if test -n "$OBJCOPY_FOR_TARGET"; then
12502 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12522 if test -n "$OBJCOPY_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12524 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12532 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12536 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12538 if test $build = $target ; then
12539 OBJCOPY_FOR_TARGET="$2"
12541 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12544 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12548 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12554 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12555 if test -n "$with_build_time_tools"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12557 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12558 if test -x $with_build_time_tools/objdump; then
12559 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12560 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12562 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12567 elif test $build != $host && test $have_gcc_for_target = yes; then
12568 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12569 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12570 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12573 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12574 # Extract the first word of "objdump", so it can be a program name with args.
12575 set dummy objdump; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 case $OBJDUMP_FOR_TARGET in
12583 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $gcc_cv_tool_dirs
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12605 if test -n "$OBJDUMP_FOR_TARGET"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12615 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12618 if test -n "$OBJDUMP_FOR_TARGET"; then
12619 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12620 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12621 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12624 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12625 for ncn_progname in objdump; do
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627 set dummy ${ncn_progname}; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12643 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12654 if test -n "$OBJDUMP_FOR_TARGET"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12656 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12666 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12667 for ncn_progname in objdump; do
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12669 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12670 if test -x $with_build_time_tools/${ncn_progname}; then
12671 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673 $as_echo "yes" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12682 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12683 for ncn_progname in objdump; do
12684 if test -n "$ncn_target_tool_prefix"; then
12685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12692 if test -n "$OBJDUMP_FOR_TARGET"; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12713 if test -n "$OBJDUMP_FOR_TARGET"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12715 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12723 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12725 set dummy ${ncn_progname}; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12731 if test -n "$OBJDUMP_FOR_TARGET"; then
12732 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12752 if test -n "$OBJDUMP_FOR_TARGET"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12754 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12762 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12766 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12768 if test $build = $target ; then
12769 OBJDUMP_FOR_TARGET="$2"
12771 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12774 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12778 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12784 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12785 if test -n "$with_build_time_tools"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12787 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12788 if test -x $with_build_time_tools/ranlib; then
12789 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12790 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12792 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12797 elif test $build != $host && test $have_gcc_for_target = yes; then
12798 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12799 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12800 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12803 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12804 # Extract the first word of "ranlib", so it can be a program name with args.
12805 set dummy ranlib; ac_word=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12811 case $RANLIB_FOR_TARGET in
12813 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $gcc_cv_tool_dirs
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12823 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12835 if test -n "$RANLIB_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12845 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12848 if test -n "$RANLIB_FOR_TARGET"; then
12849 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12850 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12851 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12854 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12855 for ncn_progname in ranlib; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857 set dummy ${ncn_progname}; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12873 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12884 if test -n "$RANLIB_FOR_TARGET"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12886 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12896 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12897 for ncn_progname in ranlib; do
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12899 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12900 if test -x $with_build_time_tools/${ncn_progname}; then
12901 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; }
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12912 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12913 for ncn_progname in ranlib; do
12914 if test -n "$ncn_target_tool_prefix"; then
12915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12922 if test -n "$RANLIB_FOR_TARGET"; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12943 if test -n "$RANLIB_FOR_TARGET"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12945 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12953 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12955 set dummy ${ncn_progname}; ac_word=$2
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957 $as_echo_n "checking for $ac_word... " >&6; }
12958 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12961 if test -n "$RANLIB_FOR_TARGET"; then
12962 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12982 if test -n "$RANLIB_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12984 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12992 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12996 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12998 if test $build = $target ; then
12999 RANLIB_FOR_TARGET="$2"
13001 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13004 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13008 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13014 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13015 if test -n "$with_build_time_tools"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13017 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13018 if test -x $with_build_time_tools/readelf; then
13019 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13020 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13022 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13027 elif test $build != $host && test $have_gcc_for_target = yes; then
13028 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13029 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13030 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13033 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13034 # Extract the first word of "readelf", so it can be a program name with args.
13035 set dummy readelf; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13041 case $READELF_FOR_TARGET in
13043 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $gcc_cv_tool_dirs
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13065 if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067 $as_echo "$READELF_FOR_TARGET" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13075 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13078 if test -n "$READELF_FOR_TARGET"; then
13079 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13080 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13081 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13084 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13085 for ncn_progname in readelf; do
13086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13087 set dummy ${ncn_progname}; ac_word=$2
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 $as_echo_n "checking for $ac_word... " >&6; }
13090 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13093 if test -n "$READELF_FOR_TARGET"; then
13094 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13114 if test -n "$READELF_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13116 $as_echo "$READELF_FOR_TARGET" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13126 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13127 for ncn_progname in readelf; do
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13130 if test -x $with_build_time_tools/${ncn_progname}; then
13131 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133 $as_echo "yes" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13143 for ncn_progname in readelf; do
13144 if test -n "$ncn_target_tool_prefix"; then
13145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13152 if test -n "$READELF_FOR_TARGET"; then
13153 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156 for as_dir in $PATH
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13173 if test -n "$READELF_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13175 $as_echo "$READELF_FOR_TARGET" >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178 $as_echo "no" >&6; }
13183 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13185 set dummy ${ncn_progname}; ac_word=$2
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13191 if test -n "$READELF_FOR_TARGET"; then
13192 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13212 if test -n "$READELF_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13214 $as_echo "$READELF_FOR_TARGET" >&6; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13222 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13226 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13228 if test $build = $target ; then
13229 READELF_FOR_TARGET="$2"
13231 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13234 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13238 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13244 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13245 if test -n "$with_build_time_tools"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13247 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13248 if test -x $with_build_time_tools/strip; then
13249 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13250 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13252 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13257 elif test $build != $host && test $have_gcc_for_target = yes; then
13258 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13259 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13260 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13263 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13264 # Extract the first word of "strip", so it can be a program name with args.
13265 set dummy strip; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13271 case $STRIP_FOR_TARGET in
13273 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $gcc_cv_tool_dirs
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13295 if test -n "$STRIP_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297 $as_echo "$STRIP_FOR_TARGET" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13305 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13308 if test -n "$STRIP_FOR_TARGET"; then
13309 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13310 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13311 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13314 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13315 for ncn_progname in strip; do
13316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13317 set dummy ${ncn_progname}; ac_word=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13344 if test -n "$STRIP_FOR_TARGET"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13346 $as_echo "$STRIP_FOR_TARGET" >&6; }
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13356 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13357 for ncn_progname in strip; do
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13359 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13360 if test -x $with_build_time_tools/${ncn_progname}; then
13361 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13363 $as_echo "yes" >&6; }
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13372 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13373 for ncn_progname in strip; do
13374 if test -n "$ncn_target_tool_prefix"; then
13375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13376 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13382 if test -n "$STRIP_FOR_TARGET"; then
13383 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13392 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13403 if test -n "$STRIP_FOR_TARGET"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13405 $as_echo "$STRIP_FOR_TARGET" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13413 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13415 set dummy ${ncn_progname}; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13421 if test -n "$STRIP_FOR_TARGET"; then
13422 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13442 if test -n "$STRIP_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13444 $as_echo "$STRIP_FOR_TARGET" >&6; }
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13452 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13456 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13458 if test $build = $target ; then
13459 STRIP_FOR_TARGET="$2"
13461 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13464 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13468 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13474 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13475 if test -n "$with_build_time_tools"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13477 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13478 if test -x $with_build_time_tools/windres; then
13479 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13480 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13482 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13487 elif test $build != $host && test $have_gcc_for_target = yes; then
13488 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13489 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13490 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13493 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13494 # Extract the first word of "windres", so it can be a program name with args.
13495 set dummy windres; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13501 case $WINDRES_FOR_TARGET in
13503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $gcc_cv_tool_dirs
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13513 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13525 if test -n "$WINDRES_FOR_TARGET"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13535 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13538 if test -n "$WINDRES_FOR_TARGET"; then
13539 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13540 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13541 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13544 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13545 for ncn_progname in windres; do
13546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13547 set dummy ${ncn_progname}; ac_word=$2
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549 $as_echo_n "checking for $ac_word... " >&6; }
13550 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13563 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13574 if test -n "$WINDRES_FOR_TARGET"; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13576 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13586 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13587 for ncn_progname in windres; do
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13589 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13590 if test -x $with_build_time_tools/${ncn_progname}; then
13591 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593 $as_echo "yes" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13602 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13603 for ncn_progname in windres; do
13604 if test -n "$ncn_target_tool_prefix"; then
13605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13606 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13612 if test -n "$WINDRES_FOR_TARGET"; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13622 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13633 if test -n "$WINDRES_FOR_TARGET"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13635 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13645 set dummy ${ncn_progname}; ac_word=$2
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647 $as_echo_n "checking for $ac_word... " >&6; }
13648 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13651 if test -n "$WINDRES_FOR_TARGET"; then
13652 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13672 if test -n "$WINDRES_FOR_TARGET"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13674 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13682 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13686 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13688 if test $build = $target ; then
13689 WINDRES_FOR_TARGET="$2"
13691 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13694 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13698 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13704 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13705 if test -n "$with_build_time_tools"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13707 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13708 if test -x $with_build_time_tools/windmc; then
13709 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13710 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13712 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13717 elif test $build != $host && test $have_gcc_for_target = yes; then
13718 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13719 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13720 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13723 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13724 # Extract the first word of "windmc", so it can be a program name with args.
13725 set dummy windmc; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13731 case $WINDMC_FOR_TARGET in
13733 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $gcc_cv_tool_dirs
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13755 if test -n "$WINDMC_FOR_TARGET"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13765 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13768 if test -n "$WINDMC_FOR_TARGET"; then
13769 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13770 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13771 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13774 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13775 for ncn_progname in windmc; do
13776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13777 set dummy ${ncn_progname}; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13803 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13804 if test -n "$WINDMC_FOR_TARGET"; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13806 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13816 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13817 for ncn_progname in windmc; do
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13819 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13820 if test -x $with_build_time_tools/${ncn_progname}; then
13821 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823 $as_echo "yes" >&6; }
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 $as_echo "no" >&6; }
13832 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13833 for ncn_progname in windmc; do
13834 if test -n "$ncn_target_tool_prefix"; then
13835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13836 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 $as_echo_n "checking for $ac_word... " >&6; }
13839 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13842 if test -n "$WINDMC_FOR_TARGET"; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13863 if test -n "$WINDMC_FOR_TARGET"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13865 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13873 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13875 set dummy ${ncn_progname}; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877 $as_echo_n "checking for $ac_word... " >&6; }
13878 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13881 if test -n "$WINDMC_FOR_TARGET"; then
13882 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13901 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13902 if test -n "$WINDMC_FOR_TARGET"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13904 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907 $as_echo "no" >&6; }
13912 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13916 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13918 if test $build = $target ; then
13919 WINDMC_FOR_TARGET="$2"
13921 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13924 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13928 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13932 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13935 $as_echo_n "checking where to find the target ar... " >&6; }
13936 if test "x${build}" != "x${host}" ; then
13937 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
13939 ac_dir=`dirname $AR_FOR_TARGET`
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941 $as_echo "pre-installed in $ac_dir" >&6; }
13943 # Canadian cross, just use what we found
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945 $as_echo "pre-installed" >&6; }
13949 case " ${configdirs} " in
13954 if test $ok = yes; then
13955 # An in-tree tool is available and we can use it
13956 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13958 $as_echo "just compiled" >&6; }
13959 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
13961 ac_dir=`dirname $AR_FOR_TARGET`
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963 $as_echo "pre-installed in $ac_dir" >&6; }
13964 elif test "x$target" = "x$host"; then
13965 # We can use an host tool
13966 AR_FOR_TARGET='$(AR)'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13968 $as_echo "host tool" >&6; }
13970 # We need a cross tool
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972 $as_echo "pre-installed" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13977 $as_echo_n "checking where to find the target as... " >&6; }
13978 if test "x${build}" != "x${host}" ; then
13979 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13980 # We already found the complete path
13981 ac_dir=`dirname $AS_FOR_TARGET`
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13983 $as_echo "pre-installed in $ac_dir" >&6; }
13985 # Canadian cross, just use what we found
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987 $as_echo "pre-installed" >&6; }
13991 case " ${configdirs} " in
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000 $as_echo "just compiled" >&6; }
14001 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $AS_FOR_TARGET`
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005 $as_echo "pre-installed in $ac_dir" >&6; }
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 AS_FOR_TARGET='$(AS)'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010 $as_echo "host tool" >&6; }
14012 # We need a cross tool
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014 $as_echo "pre-installed" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14019 $as_echo_n "checking where to find the target cc... " >&6; }
14020 if test "x${build}" != "x${host}" ; then
14021 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $CC_FOR_TARGET`
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025 $as_echo "pre-installed in $ac_dir" >&6; }
14027 # Canadian cross, just use what we found
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029 $as_echo "pre-installed" >&6; }
14033 case " ${configdirs} " in
14038 if test $ok = yes; then
14039 # An in-tree tool is available and we can use it
14040 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14042 $as_echo "just compiled" >&6; }
14043 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
14045 ac_dir=`dirname $CC_FOR_TARGET`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047 $as_echo "pre-installed in $ac_dir" >&6; }
14048 elif test "x$target" = "x$host"; then
14049 # We can use an host tool
14050 CC_FOR_TARGET='$(CC)'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14052 $as_echo "host tool" >&6; }
14054 # We need a cross tool
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056 $as_echo "pre-installed" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14061 $as_echo_n "checking where to find the target c++... " >&6; }
14062 if test "x${build}" != "x${host}" ; then
14063 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14064 # We already found the complete path
14065 ac_dir=`dirname $CXX_FOR_TARGET`
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14067 $as_echo "pre-installed in $ac_dir" >&6; }
14069 # Canadian cross, just use what we found
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071 $as_echo "pre-installed" >&6; }
14075 case " ${configdirs} " in
14079 case ,${enable_languages}, in
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 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'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087 $as_echo "just compiled" >&6; }
14088 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
14090 ac_dir=`dirname $CXX_FOR_TARGET`
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092 $as_echo "pre-installed in $ac_dir" >&6; }
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 CXX_FOR_TARGET='$(CXX)'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097 $as_echo "host tool" >&6; }
14099 # We need a cross tool
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101 $as_echo "pre-installed" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14106 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14107 if test "x${build}" != "x${host}" ; then
14108 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14114 # Canadian cross, just use what we found
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116 $as_echo "pre-installed" >&6; }
14120 case " ${configdirs} " in
14124 case ,${enable_languages}, in
14128 if test $ok = yes; then
14129 # An in-tree tool is available and we can use it
14130 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'
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14132 $as_echo "just compiled" >&6; }
14133 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14134 # We already found the complete path
14135 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14137 $as_echo "pre-installed in $ac_dir" >&6; }
14138 elif test "x$target" = "x$host"; then
14139 # We can use an host tool
14140 RAW_CXX_FOR_TARGET='$(CXX)'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14142 $as_echo "host tool" >&6; }
14144 # We need a cross tool
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146 $as_echo "pre-installed" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14151 $as_echo_n "checking where to find the target dlltool... " >&6; }
14152 if test "x${build}" != "x${host}" ; then
14153 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
14155 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157 $as_echo "pre-installed in $ac_dir" >&6; }
14159 # Canadian cross, just use what we found
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161 $as_echo "pre-installed" >&6; }
14165 case " ${configdirs} " in
14170 if test $ok = yes; then
14171 # An in-tree tool is available and we can use it
14172 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14174 $as_echo "just compiled" >&6; }
14175 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
14177 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179 $as_echo "pre-installed in $ac_dir" >&6; }
14180 elif test "x$target" = "x$host"; then
14181 # We can use an host tool
14182 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14184 $as_echo "host tool" >&6; }
14186 # We need a cross tool
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188 $as_echo "pre-installed" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14193 $as_echo_n "checking where to find the target gcc... " >&6; }
14194 if test "x${build}" != "x${host}" ; then
14195 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
14197 ac_dir=`dirname $GCC_FOR_TARGET`
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199 $as_echo "pre-installed in $ac_dir" >&6; }
14201 # Canadian cross, just use what we found
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203 $as_echo "pre-installed" >&6; }
14207 case " ${configdirs} " in
14212 if test $ok = yes; then
14213 # An in-tree tool is available and we can use it
14214 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14216 $as_echo "just compiled" >&6; }
14217 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14218 # We already found the complete path
14219 ac_dir=`dirname $GCC_FOR_TARGET`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14221 $as_echo "pre-installed in $ac_dir" >&6; }
14222 elif test "x$target" = "x$host"; then
14223 # We can use an host tool
14224 GCC_FOR_TARGET='$()'
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14226 $as_echo "host tool" >&6; }
14228 # We need a cross tool
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230 $as_echo "pre-installed" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14235 $as_echo_n "checking where to find the target gcj... " >&6; }
14236 if test "x${build}" != "x${host}" ; then
14237 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14238 # We already found the complete path
14239 ac_dir=`dirname $GCJ_FOR_TARGET`
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14241 $as_echo "pre-installed in $ac_dir" >&6; }
14243 # Canadian cross, just use what we found
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245 $as_echo "pre-installed" >&6; }
14249 case " ${configdirs} " in
14253 case ,${enable_languages}, in
14257 if test $ok = yes; then
14258 # An in-tree tool is available and we can use it
14259 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14261 $as_echo "just compiled" >&6; }
14262 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14263 # We already found the complete path
14264 ac_dir=`dirname $GCJ_FOR_TARGET`
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14266 $as_echo "pre-installed in $ac_dir" >&6; }
14267 elif test "x$target" = "x$host"; then
14268 # We can use an host tool
14269 GCJ_FOR_TARGET='$(GCJ)'
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14271 $as_echo "host tool" >&6; }
14273 # We need a cross tool
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275 $as_echo "pre-installed" >&6; }
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14280 $as_echo_n "checking where to find the target gfortran... " >&6; }
14281 if test "x${build}" != "x${host}" ; then
14282 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
14284 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286 $as_echo "pre-installed in $ac_dir" >&6; }
14288 # Canadian cross, just use what we found
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290 $as_echo "pre-installed" >&6; }
14294 case " ${configdirs} " in
14298 case ,${enable_languages}, in
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14306 $as_echo "just compiled" >&6; }
14307 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311 $as_echo "pre-installed in $ac_dir" >&6; }
14312 elif test "x$target" = "x$host"; then
14313 # We can use an host tool
14314 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14316 $as_echo "host tool" >&6; }
14318 # We need a cross tool
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320 $as_echo "pre-installed" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14325 $as_echo_n "checking where to find the target gccgo... " >&6; }
14326 if test "x${build}" != "x${host}" ; then
14327 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $GOC_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331 $as_echo "pre-installed in $ac_dir" >&6; }
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335 $as_echo "pre-installed" >&6; }
14339 case " ${configdirs} " in
14343 case ,${enable_languages}, in
14347 if test $ok = yes; then
14348 # An in-tree tool is available and we can use it
14349 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14351 $as_echo "just compiled" >&6; }
14352 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14353 # We already found the complete path
14354 ac_dir=`dirname $GOC_FOR_TARGET`
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14356 $as_echo "pre-installed in $ac_dir" >&6; }
14357 elif test "x$target" = "x$host"; then
14358 # We can use an host tool
14359 GOC_FOR_TARGET='$(GOC)'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14361 $as_echo "host tool" >&6; }
14363 # We need a cross tool
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365 $as_echo "pre-installed" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14370 $as_echo_n "checking where to find the target ld... " >&6; }
14371 if test "x${build}" != "x${host}" ; then
14372 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
14374 ac_dir=`dirname $LD_FOR_TARGET`
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376 $as_echo "pre-installed in $ac_dir" >&6; }
14378 # Canadian cross, just use what we found
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14384 case " ${configdirs} " in
14389 if test $ok = yes; then
14390 # An in-tree tool is available and we can use it
14391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14393 $as_echo "just compiled" >&6; }
14394 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14395 # We already found the complete path
14396 ac_dir=`dirname $LD_FOR_TARGET`
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14398 $as_echo "pre-installed in $ac_dir" >&6; }
14399 elif test "x$target" = "x$host"; then
14400 # We can use an host tool
14401 LD_FOR_TARGET='$(LD)'
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14403 $as_echo "host tool" >&6; }
14405 # We need a cross tool
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407 $as_echo "pre-installed" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14412 $as_echo_n "checking where to find the target lipo... " >&6; }
14413 if test "x${build}" != "x${host}" ; then
14414 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
14416 ac_dir=`dirname $LIPO_FOR_TARGET`
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418 $as_echo "pre-installed in $ac_dir" >&6; }
14420 # Canadian cross, just use what we found
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
14427 ac_dir=`dirname $LIPO_FOR_TARGET`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429 $as_echo "pre-installed in $ac_dir" >&6; }
14430 elif test "x$target" = "x$host"; then
14431 # We can use an host tool
14432 LIPO_FOR_TARGET='$(LIPO)'
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434 $as_echo "host tool" >&6; }
14436 # We need a cross tool
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438 $as_echo "pre-installed" >&6; }
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14443 $as_echo_n "checking where to find the target nm... " >&6; }
14444 if test "x${build}" != "x${host}" ; then
14445 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
14447 ac_dir=`dirname $NM_FOR_TARGET`
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449 $as_echo "pre-installed in $ac_dir" >&6; }
14451 # Canadian cross, just use what we found
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14457 case " ${configdirs} " in
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466 $as_echo "just compiled" >&6; }
14467 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
14469 ac_dir=`dirname $NM_FOR_TARGET`
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471 $as_echo "pre-installed in $ac_dir" >&6; }
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 NM_FOR_TARGET='$(NM)'
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476 $as_echo "host tool" >&6; }
14478 # We need a cross tool
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480 $as_echo "pre-installed" >&6; }
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14485 $as_echo_n "checking where to find the target objcopy... " >&6; }
14486 if test "x${build}" != "x${host}" ; then
14487 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491 $as_echo "pre-installed in $ac_dir" >&6; }
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14499 case " ${configdirs} " in
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508 $as_echo "just compiled" >&6; }
14509 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513 $as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
14516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518 $as_echo "host tool" >&6; }
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522 $as_echo "pre-installed" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14527 $as_echo_n "checking where to find the target objdump... " >&6; }
14528 if test "x${build}" != "x${host}" ; then
14529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
14531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533 $as_echo "pre-installed in $ac_dir" >&6; }
14535 # Canadian cross, just use what we found
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14541 case " ${configdirs} " in
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550 $as_echo "just compiled" >&6; }
14551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
14553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555 $as_echo "pre-installed in $ac_dir" >&6; }
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560 $as_echo "host tool" >&6; }
14562 # We need a cross tool
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564 $as_echo "pre-installed" >&6; }
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14569 $as_echo_n "checking where to find the target ranlib... " >&6; }
14570 if test "x${build}" != "x${host}" ; then
14571 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
14573 ac_dir=`dirname $RANLIB_FOR_TARGET`
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575 $as_echo "pre-installed in $ac_dir" >&6; }
14577 # Canadian cross, just use what we found
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14583 case " ${configdirs} " in
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592 $as_echo "just compiled" >&6; }
14593 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
14595 ac_dir=`dirname $RANLIB_FOR_TARGET`
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597 $as_echo "pre-installed in $ac_dir" >&6; }
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 RANLIB_FOR_TARGET='$(RANLIB)'
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602 $as_echo "host tool" >&6; }
14604 # We need a cross tool
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606 $as_echo "pre-installed" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14611 $as_echo_n "checking where to find the target readelf... " >&6; }
14612 if test "x${build}" != "x${host}" ; then
14613 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $READELF_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617 $as_echo "pre-installed in $ac_dir" >&6; }
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14625 case " ${configdirs} " in
14630 if test $ok = yes; then
14631 # An in-tree tool is available and we can use it
14632 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14634 $as_echo "just compiled" >&6; }
14635 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14636 # We already found the complete path
14637 ac_dir=`dirname $READELF_FOR_TARGET`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14639 $as_echo "pre-installed in $ac_dir" >&6; }
14640 elif test "x$target" = "x$host"; then
14641 # We can use an host tool
14642 READELF_FOR_TARGET='$(READELF)'
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14644 $as_echo "host tool" >&6; }
14646 # We need a cross tool
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14648 $as_echo "pre-installed" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14653 $as_echo_n "checking where to find the target strip... " >&6; }
14654 if test "x${build}" != "x${host}" ; then
14655 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
14657 ac_dir=`dirname $STRIP_FOR_TARGET`
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659 $as_echo "pre-installed in $ac_dir" >&6; }
14661 # Canadian cross, just use what we found
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663 $as_echo "pre-installed" >&6; }
14667 case " ${configdirs} " in
14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
14674 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676 $as_echo "just compiled" >&6; }
14677 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
14679 ac_dir=`dirname $STRIP_FOR_TARGET`
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681 $as_echo "pre-installed in $ac_dir" >&6; }
14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 STRIP_FOR_TARGET='$(STRIP)'
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686 $as_echo "host tool" >&6; }
14688 # We need a cross tool
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690 $as_echo "pre-installed" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14695 $as_echo_n "checking where to find the target windres... " >&6; }
14696 if test "x${build}" != "x${host}" ; then
14697 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
14699 ac_dir=`dirname $WINDRES_FOR_TARGET`
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701 $as_echo "pre-installed in $ac_dir" >&6; }
14703 # Canadian cross, just use what we found
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705 $as_echo "pre-installed" >&6; }
14709 case " ${configdirs} " in
14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718 $as_echo "just compiled" >&6; }
14719 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
14721 ac_dir=`dirname $WINDRES_FOR_TARGET`
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723 $as_echo "pre-installed in $ac_dir" >&6; }
14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 WINDRES_FOR_TARGET='$(WINDRES)'
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728 $as_echo "host tool" >&6; }
14730 # We need a cross tool
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732 $as_echo "pre-installed" >&6; }
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14737 $as_echo_n "checking where to find the target windmc... " >&6; }
14738 if test "x${build}" != "x${host}" ; then
14739 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
14741 ac_dir=`dirname $WINDMC_FOR_TARGET`
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743 $as_echo "pre-installed in $ac_dir" >&6; }
14745 # Canadian cross, just use what we found
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747 $as_echo "pre-installed" >&6; }
14751 case " ${configdirs} " in
14756 if test $ok = yes; then
14757 # An in-tree tool is available and we can use it
14758 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14760 $as_echo "just compiled" >&6; }
14761 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
14763 ac_dir=`dirname $WINDMC_FOR_TARGET`
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765 $as_echo "pre-installed in $ac_dir" >&6; }
14766 elif test "x$target" = "x$host"; then
14767 # We can use an host tool
14768 WINDMC_FOR_TARGET='$(WINDMC)'
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14770 $as_echo "host tool" >&6; }
14772 # We need a cross tool
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14774 $as_echo "pre-installed" >&6; }
14782 # Certain tools may need extra flags.
14783 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14784 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14785 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14787 # When building target libraries, except in a Canadian cross, we use
14788 # the same toolchain as the compiler we just built.
14789 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14790 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14791 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14792 if test $host = $build; then
14793 case " $configdirs " in
14795 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14796 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14797 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14807 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14808 # Check whether --enable-maintainer-mode was given.
14809 if test "${enable_maintainer_mode+set}" = set; then :
14810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14812 USE_MAINTAINER_MODE=no
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14816 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14819 if test "$USE_MAINTAINER_MODE" = yes; then
14820 MAINTAINER_MODE_TRUE=
14821 MAINTAINER_MODE_FALSE='#'
14823 MAINTAINER_MODE_TRUE='#'
14824 MAINTAINER_MODE_FALSE=
14826 MAINT=$MAINTAINER_MODE_TRUE
14828 # ---------------------
14829 # GCC bootstrap support
14830 # ---------------------
14832 # Stage specific cflags for build.
14837 yes) stage1_cflags="-g -Wa,-J" ;;
14838 *) stage1_cflags="-g -J" ;;
14844 # Enable --enable-checking in stage1 of the compiler.
14845 # Check whether --enable-stage1-checking was given.
14846 if test "${enable_stage1_checking+set}" = set; then :
14847 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14849 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14850 # For --disable-checking or implicit --enable-checking=release, avoid
14851 # setting --enable-checking=gc in the default stage1 checking for LTO
14852 # bootstraps. See PR62077.
14853 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14854 case $BUILD_CONFIG in
14856 if test "x$enable_checking" = x && \
14857 test -d ${srcdir}/gcc && \
14858 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14859 stage1_checking=--enable-checking=yes,types
14861 *) stage1_checking=--enable-checking=yes,types;;
14864 stage1_checking=--enable-checking=$enable_checking,types
14870 # Enable -Werror in bootstrap stage2 and later.
14871 # Check whether --enable-werror was given.
14872 if test "${enable_werror+set}" = set; then :
14873 enableval=$enable_werror;
14875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14882 case ${enable_werror} in
14883 yes) stage2_werror_flag="--enable-werror-always" ;;
14884 *) stage2_werror_flag="" ;;
14888 # Enable --enable-host-shared.
14889 # Check whether --enable-host-shared was given.
14890 if test "${enable_host_shared+set}" = set; then :
14891 enableval=$enable_host_shared; host_shared=$enableval
14898 # PR jit/64780: Require the user to explicitly specify
14899 # --enable-host-shared if the jit is enabled, hinting
14900 # that they might want to do a separate configure/build of
14901 # the jit, to avoid users from slowing down the rest of the
14902 # compiler by enabling the jit.
14903 if test ${host_shared} = "no" ; then
14904 case "${enable_languages}" in
14907 Enabling language \"jit\" requires --enable-host-shared.
14909 --enable-host-shared typically slows the rest of the compiler down by
14910 a few %, so you must explicitly enable it.
14912 If you want to build both the jit and the regular compiler, it is often
14913 best to do this via two separate configure/builds, in separate
14914 directories, to avoid imposing the performance cost of
14915 --enable-host-shared on the regular compiler." "$LINENO" 5
14922 # Specify what files to not compare during bootstrap.
14924 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14926 hppa*64*-*-hpux*) ;;
14927 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14928 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14932 ac_config_files="$ac_config_files Makefile"
14934 cat >confcache <<\_ACEOF
14935 # This file is a shell script that caches the results of configure
14936 # tests run on this system so they can be shared between configure
14937 # scripts and configure runs, see configure's option --config-cache.
14938 # It is not useful on other systems. If it contains results you don't
14939 # want to keep, you may remove or edit it.
14941 # config.status only pays attention to the cache file if you give it
14942 # the --recheck option to rerun configure.
14944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14946 # following values.
14950 # The following way of writing the cache mishandles newlines in values,
14951 # but we know of no workaround that is simple, portable, and efficient.
14952 # So, we kill variables containing newlines.
14953 # Ultrix sh set writes to stderr and can't be redirected directly,
14954 # and sets the high bit in the cache file unless we assign to the vars.
14956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14957 eval ac_val=\$$ac_var
14961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14965 _ | IFS | as_nl) ;; #(
14966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14967 *) { eval $ac_var=; unset $ac_var;} ;;
14973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14974 *${as_nl}ac_space=\ *)
14975 # `set' does not quote correctly, so add quotes: double-quote
14976 # substitution turns \\\\ into \\, and sed turns \\ into \.
14979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14982 # `set' quotes correctly as required by POSIX, so do not add quotes.
14983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14997 if test -w "$cache_file"; then
14998 test "x$cache_file" != "x/dev/null" &&
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15000 $as_echo "$as_me: updating cache $cache_file" >&6;}
15001 cat confcache >$cache_file
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15010 # Let make expand exec_prefix.
15011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15013 # Transform confdefs.h into DEFS.
15014 # Protect against shell expansion while executing Makefile rules.
15015 # Protect against Makefile macro expansion.
15017 # If the first sed substitution is executed (which looks for macros that
15018 # take arguments), then branch to the quote section. Otherwise,
15019 # look for a macro that doesn't take arguments.
15029 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15031 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15035 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15048 DEFS=`sed -n "$ac_script" confdefs.h`
15053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054 # 1. Remove the extension, and $U if already installed.
15055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15058 # will be set to the directory where LIBOBJS objects are built.
15059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15062 LIBOBJS=$ac_libobjs
15064 LTLIBOBJS=$ac_ltlibobjs
15068 : ${CONFIG_STATUS=./config.status}
15070 ac_clean_files_save=$ac_clean_files
15071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15073 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15077 # Generated by $as_me.
15078 # Run this file to recreate the current configuration.
15079 # Compiler output produced by configure, useful for debugging
15080 # configure, is in config.log if it exists.
15083 ac_cs_recheck=false
15086 SHELL=\${CONFIG_SHELL-$SHELL}
15089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15090 ## -------------------- ##
15091 ## M4sh Initialization. ##
15092 ## -------------------- ##
15094 # Be more Bourne compatible
15095 DUALCASE=1; export DUALCASE # for MKS sh
15096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15099 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15100 # is contrary to our usage. Disable this feature.
15101 alias -g '${1+"$@"}'='"$@"'
15102 setopt NO_GLOB_SUBST
15104 case `(set -o) 2>/dev/null` in #(
15116 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15117 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15120 # Prefer a ksh shell builtin over an external printf program on Solaris,
15121 # but without wasting forks for bash or zsh.
15122 if test -z "$BASH_VERSION$ZSH_VERSION" \
15123 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='print -r --'
15125 as_echo_n='print -rn --'
15126 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='printf %s\n'
15128 as_echo_n='printf %s'
15130 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15131 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15132 as_echo_n='/usr/ucb/echo -n'
15134 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15135 as_echo_n_body='eval
15139 expr "X$arg" : "X\\(.*\\)$as_nl";
15140 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15142 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15144 export as_echo_n_body
15145 as_echo_n='sh -c $as_echo_n_body as_echo'
15147 export as_echo_body
15148 as_echo='sh -c $as_echo_body as_echo'
15151 # The user is always right.
15152 if test "${PATH_SEPARATOR+set}" != set; then
15154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15162 # We need space, tab and new line, in precisely that order. Quoting is
15163 # there to prevent editors from complaining about space-tab.
15164 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15165 # splitting by setting IFS to empty value.)
15168 # Find who we are. Look in the path if we contain no directory separator.
15170 *[\\/]* ) as_myself=$0 ;;
15171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15175 test -z "$as_dir" && as_dir=.
15176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15182 # We did not find ourselves, most probably we were run as `sh COMMAND'
15183 # in which case we are not to be found in the path.
15184 if test "x$as_myself" = x; then
15187 if test ! -f "$as_myself"; then
15188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15192 # Unset variables that we do not need and which cause bugs (e.g. in
15193 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15194 # suppresses any "Segmentation fault" message there. '((' could
15195 # trigger a bug in pdksh 5.2.14.
15196 for as_var in BASH_ENV ENV MAIL MAILPATH
15197 do eval test x\${$as_var+set} = xset \
15198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15214 # as_fn_error ERROR [LINENO LOG_FD]
15215 # ---------------------------------
15216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15218 # script with status $?, using 1 if that was 0.
15221 as_status=$?; test $as_status -eq 0 && as_status=1
15223 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15226 $as_echo "$as_me: error: $1" >&2
15227 as_fn_exit $as_status
15231 # as_fn_set_status STATUS
15232 # -----------------------
15233 # Set $? to STATUS, without forking.
15234 as_fn_set_status ()
15237 } # as_fn_set_status
15239 # as_fn_exit STATUS
15240 # -----------------
15241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15245 as_fn_set_status $1
15251 # Portably unset VAR.
15254 { eval $1=; unset $1;}
15256 as_unset=as_fn_unset
15257 # as_fn_append VAR VALUE
15258 # ----------------------
15259 # Append the text in VALUE to the end of the definition contained in VAR. Take
15260 # advantage of any shell optimizations that allow amortized linear growth over
15261 # repeated appends, instead of the typical quadratic growth present in naive
15263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15264 eval 'as_fn_append ()
15275 # as_fn_arith ARG...
15276 # ------------------
15277 # Perform arithmetic evaluation on the ARGs, and store the result in the
15278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15279 # must be portable across $(()) and expr.
15280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15281 eval 'as_fn_arith ()
15288 as_val=`expr "$@" || test $? -eq 1`
15293 if expr a : '\(a\)' >/dev/null 2>&1 &&
15294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15301 as_basename=basename
15306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15312 as_me=`$as_basename -- "$0" ||
15313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314 X"$0" : 'X\(//\)$' \| \
15315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15317 sed '/^.*\/\([^/][^/]*\)\/*$/{
15331 # Avoid depending upon Character Ranges.
15332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15335 as_cr_digits='0123456789'
15336 as_cr_alnum=$as_cr_Letters$as_cr_digits
15338 ECHO_C= ECHO_N= ECHO_T=
15339 case `echo -n x` in #(((((
15341 case `echo 'xy\c'` in
15342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15351 rm -f conf$$ conf$$.exe conf$$.file
15352 if test -d conf$$.dir; then
15353 rm -f conf$$.dir/conf$$.file
15356 mkdir conf$$.dir 2>/dev/null
15358 if (echo >conf$$.file) 2>/dev/null; then
15359 if ln -s conf$$.file conf$$ 2>/dev/null; then
15361 # ... but there are two gotchas:
15362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15364 # In both cases, we have to default to `cp -p'.
15365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15367 elif ln conf$$.file conf$$ 2>/dev/null; then
15375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15376 rmdir conf$$.dir 2>/dev/null
15381 # Create "$as_dir" as a directory, including parents if necessary.
15386 -*) as_dir=./$as_dir;;
15388 test -d "$as_dir" || eval $as_mkdir_p || {
15392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15393 *) as_qdir=$as_dir;;
15395 as_dirs="'$as_qdir' $as_dirs"
15396 as_dir=`$as_dirname -- "$as_dir" ||
15397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15401 $as_echo X"$as_dir" |
15402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15406 /^X\(\/\/\)[^/].*/{
15419 test -d "$as_dir" && break
15421 test -z "$as_dirs" || eval "mkdir $as_dirs"
15422 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15426 if mkdir -p . 2>/dev/null; then
15427 as_mkdir_p='mkdir -p "$as_dir"'
15429 test -d ./-p && rmdir ./-p
15433 if test -x / >/dev/null 2>&1; then
15434 as_test_x='test -x'
15436 if ls -dL / >/dev/null 2>&1; then
15443 if test -d "$1"; then
15449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15450 ???[sx]*):;;*)false;;esac;fi
15454 as_executable_p=$as_test_x
15456 # Sed expression to map a string onto a valid CPP name.
15457 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15459 # Sed expression to map a string onto a valid variable name.
15460 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15464 ## ----------------------------------- ##
15465 ## Main body of $CONFIG_STATUS script. ##
15466 ## ----------------------------------- ##
15468 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15471 # Save the log message, to keep $0 and so on meaningful, and to
15472 # report actual input values of CONFIG_FILES etc. instead of their
15473 # values after options handling.
15475 This file was extended by $as_me, which was
15476 generated by GNU Autoconf 2.64. Invocation command line was
15478 CONFIG_FILES = $CONFIG_FILES
15479 CONFIG_HEADERS = $CONFIG_HEADERS
15480 CONFIG_LINKS = $CONFIG_LINKS
15481 CONFIG_COMMANDS = $CONFIG_COMMANDS
15484 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15489 case $ac_config_files in *"
15490 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 # Files that config.status was made for.
15497 config_files="$ac_config_files"
15501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15503 \`$as_me' instantiates files and other configuration actions
15504 from templates according to the current configuration. Unless the files
15505 and actions are specified as TAGs, all are instantiated by default.
15507 Usage: $0 [OPTION]... [TAG]...
15509 -h, --help print this help, then exit
15510 -V, --version print version number and configuration settings, then exit
15511 -q, --quiet, --silent
15512 do not print progress messages
15513 -d, --debug don't remove temporary files
15514 --recheck update $as_me by reconfiguring in the same conditions
15515 --file=FILE[:TEMPLATE]
15516 instantiate the configuration file FILE
15518 Configuration files:
15521 Report bugs to the package provider."
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 configured by $0, generated by GNU Autoconf 2.64,
15528 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15530 Copyright (C) 2009 Free Software Foundation, Inc.
15531 This config.status script is free software; the Free Software Foundation
15532 gives unlimited permission to copy, distribute and modify it."
15538 test -n "\$AWK" || AWK=awk
15541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542 # The default lists apply if the user does not specify any file.
15548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15560 # Handling of the options.
15561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15564 $as_echo "$ac_cs_version"; exit ;;
15565 --debug | --debu | --deb | --de | --d | -d )
15567 --file | --fil | --fi | --f )
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15572 as_fn_append CONFIG_FILES " '$ac_optarg'"
15573 ac_need_defaults=false;;
15574 --he | --h | --help | --hel | -h )
15575 $as_echo "$ac_cs_usage"; exit ;;
15576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15580 # This is an error.
15581 -*) as_fn_error "unrecognized option: \`$1'
15582 Try \`$0 --help' for more information." ;;
15584 *) as_fn_append ac_config_targets " $1"
15585 ac_need_defaults=false ;;
15591 ac_configure_extra_args=
15593 if $ac_cs_silent; then
15595 ac_configure_extra_args="$ac_configure_extra_args --silent"
15599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15600 if \$ac_cs_recheck; then
15601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15604 CONFIG_SHELL='$SHELL'
15605 export CONFIG_SHELL
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15615 ## Running $as_me. ##
15621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625 extrasub_build="$extrasub_build"
15626 extrasub_host="$extrasub_host"
15627 extrasub_target="$extrasub_target"
15631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15633 # Handling of arguments.
15634 for ac_config_target in $ac_config_targets
15636 case $ac_config_target in
15637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15644 # If the user did not use the arguments to specify the items to instantiate,
15645 # then the envvar interface is used. Set only those that are not.
15646 # We use the long form for the default assignment because of an extremely
15647 # bizarre bug on SunOS 4.1.3.
15648 if $ac_need_defaults; then
15649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15652 # Have a temporary directory for convenience. Make it in the build tree
15653 # simply because there is no reason against having it here, and in addition,
15654 # creating and moving files from /tmp can sometimes cause problems.
15655 # Hook for its removal unless debugging.
15656 # Note that there is a small window in which the directory will not be cleaned:
15657 # after its creation but before its name has been assigned to `$tmp'.
15661 trap 'exit_status=$?
15662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15664 trap 'as_fn_exit 1' 1 2 13 15
15666 # Create a (secure) tmp directory for tmp files.
15669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15670 test -n "$tmp" && test -d "$tmp"
15673 tmp=./conf$$-$RANDOM
15674 (umask 077 && mkdir "$tmp")
15675 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15677 # Set up the scripts for CONFIG_FILES section.
15678 # No need to generate them if there are no CONFIG_FILES.
15679 # This happens for instance with `./config.status config.h'.
15680 if test -n "$CONFIG_FILES"; then
15682 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15683 ac_cs_awk_getline=:
15684 ac_cs_awk_pipe_init=
15685 ac_cs_awk_read_file='
15686 while ((getline aline < (F[key])) > 0)
15689 ac_cs_awk_pipe_fini=
15691 ac_cs_awk_getline=false
15692 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15693 ac_cs_awk_read_file='
15695 print "cat " F[key] " &&"
15696 '$ac_cs_awk_pipe_init
15697 # The final `:' finishes the AND list.
15698 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15700 ac_cr=`echo X | tr X '\015'`
15701 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15702 # But we know of no other shell where ac_cr would be empty at this
15703 # point, so we can use a bashism as a fallback.
15704 if test "x$ac_cr" = x; then
15705 eval ac_cr=\$\'\\r\'
15707 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15708 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15711 ac_cs_awk_cr=$ac_cr
15714 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15717 # Create commands to substitute file output variables.
15719 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15720 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15721 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15724 } >conf$$files.sh &&
15725 . ./conf$$files.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727 rm -f conf$$files.sh
15730 echo "cat >conf$$subs.awk <<_ACEOF" &&
15731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15733 } >conf$$subs.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15737 for ac_last_try in false false false false false :; do
15738 . ./conf$$subs.sh ||
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15742 if test $ac_delim_n = $ac_delim_num; then
15744 elif $ac_last_try; then
15745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15750 rm -f conf$$subs.sh
15752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15757 s/^/S["/; s/!.*/"]=/
15767 s/\(.\{148\}\).*/\1/
15769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15781 s/\(.\{148\}\).*/\1/
15783 s/["\\]/\\&/g; s/^/"/; s/$/"/
15787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15792 ' <conf$$subs.awk | sed '
15797 ' >>$CONFIG_STATUS || ac_write_fail=1
15798 rm -f conf$$subs.awk
15799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15801 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15802 for (key in S) S_is_set[key] = 1
15804 \$ac_cs_awk_pipe_init
15808 nfields = split(line, field, "@")
15810 len = length(field[1])
15811 for (i = 2; i < nfields; i++) {
15813 keylen = length(key)
15814 if (S_is_set[key]) {
15816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15817 len += length(value) + length(field[++i])
15822 if (nfields == 3 && !substed) {
15824 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15825 \$ac_cs_awk_read_file
15831 \$ac_cs_awk_pipe_fini
15834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15839 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15845 # trailing colons and then remove the whole line if VPATH becomes empty
15846 # (actually we leave an empty line to preserve line numbers).
15847 if test "x$srcdir" = x.; then
15848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15849 s/:*\$(srcdir):*/:/
15850 s/:*\${srcdir}:*/:/
15852 s/^\([^=]*=[ ]*\):*/\1/
15858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859 fi # test -n "$CONFIG_FILES"
15862 eval set X " :F $CONFIG_FILES "
15867 :[FHLC]) ac_mode=$ac_tag; continue;;
15869 case $ac_mode$ac_tag in
15871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15872 :[FH]-) ac_tag=-:-;;
15873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15890 -) ac_f="$tmp/stdin";;
15891 *) # Look for the file first in the build tree, then in the source tree
15892 # (if the path is not absolute). The absolute path cannot be DOS-style,
15893 # because $ac_f cannot contain `:'.
15897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15902 as_fn_append ac_file_inputs " '$ac_f'"
15905 # Let's still pretend it is `configure' which instantiates (i.e., don't
15906 # use $as_me), people would be surprised to read:
15907 # /* config.h. Generated by config.status. */
15908 configure_input='Generated from '`
15909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15911 if test x"$ac_file" != x-; then
15912 configure_input="$ac_file. $configure_input"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15914 $as_echo "$as_me: creating $ac_file" >&6;}
15916 # Neutralize special characters interpreted by sed in replacement strings.
15917 case $configure_input in #(
15918 *\&* | *\|* | *\\* )
15919 ac_sed_conf_input=`$as_echo "$configure_input" |
15920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15921 *) ac_sed_conf_input=$configure_input;;
15925 *:-:* | *:-) cat >"$tmp/stdin" \
15926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15931 ac_dir=`$as_dirname -- "$ac_file" ||
15932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$ac_file" : 'X\(//\)[^/]' \| \
15934 X"$ac_file" : 'X\(//\)$' \| \
15935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15936 $as_echo X"$ac_file" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15941 /^X\(\/\/\)[^/].*/{
15954 as_dir="$ac_dir"; as_fn_mkdir_p
15958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15961 # A ".." for each directory in $ac_dir_suffix.
15962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15963 case $ac_top_builddir_sub in
15964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15968 ac_abs_top_builddir=$ac_pwd
15969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15970 # for backward compatibility:
15971 ac_top_builddir=$ac_top_build_prefix
15974 .) # We are building in place.
15976 ac_top_srcdir=$ac_top_builddir_sub
15977 ac_abs_top_srcdir=$ac_pwd ;;
15978 [\\/]* | ?:[\\/]* ) # Absolute name.
15979 ac_srcdir=$srcdir$ac_dir_suffix;
15980 ac_top_srcdir=$srcdir
15981 ac_abs_top_srcdir=$srcdir ;;
15982 *) # Relative name.
15983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15984 ac_top_srcdir=$ac_top_build_prefix$srcdir
15985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16003 # If the template does not know about datarootdir, expand it.
16004 # FIXME: This hack should be removed a few years after 2.60.
16005 ac_datarootdir_hack=; ac_datarootdir_seen=
16016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16017 *datarootdir*) ac_datarootdir_seen=yes;;
16018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_datarootdir_hack='
16024 s&@datadir@&$datadir&g
16025 s&@docdir@&$docdir&g
16026 s&@infodir@&$infodir&g
16027 s&@localedir@&$localedir&g
16028 s&@mandir@&$mandir&g
16029 s&\\\${datarootdir}&$datarootdir&g' ;;
16033 # Neutralize VPATH when `$srcdir' = `.'.
16034 # Shell code in configure.ac might set extrasub.
16035 # FIXME: do we really want to maintain this feature?
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037 ac_sed_extra="$ac_vpsub
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16043 s|@configure_input@|$ac_sed_conf_input|;t t
16044 s&@top_builddir@&$ac_top_builddir_sub&;t t
16045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16046 s&@srcdir@&$ac_srcdir&;t t
16047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16048 s&@top_srcdir@&$ac_top_srcdir&;t t
16049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16050 s&@builddir@&$ac_builddir&;t t
16051 s&@abs_builddir@&$ac_abs_builddir&;t t
16052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16053 s&@INSTALL@&$ac_INSTALL&;t t
16054 $ac_datarootdir_hack
16056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16057 if $ac_cs_awk_getline; then
16058 $AWK -f "$tmp/subs.awk"
16060 $AWK -f "$tmp/subs.awk" | $SHELL
16062 || as_fn_error "could not create $ac_file" "$LINENO" 5
16064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16068 which seems to be undefined. Please make sure it is defined." >&5
16069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16070 which seems to be undefined. Please make sure it is defined." >&2;}
16074 -) cat "$tmp/out" && rm -f "$tmp/out";;
16075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16085 case $ac_file$ac_mode in
16086 "Makefile":F) sed "$extrasub_build" Makefile |
16087 sed "$extrasub_host" |
16088 sed "$extrasub_target" > mf$$
16089 mv -f mf$$ Makefile ;;
16097 ac_clean_files=$ac_clean_files_save
16099 test $ac_write_fail = 0 ||
16100 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16103 # configure is writing to config.log, and then calls config.status.
16104 # config.status does its own redirection, appending to config.log.
16105 # Unfortunately, on DOS this fails, as config.log is still kept open
16106 # by configure, so config.status won't be able to write to it; its
16107 # output is simply discarded. So we exec the FD to /dev/null,
16108 # effectively closing config.log, so it can be properly (re)opened and
16109 # appended to by config.status. When coming back to configure, we
16110 # need to make the FD available again.
16111 if test "$no_create" != yes; then
16113 ac_config_status_args=
16114 test "$silent" = yes &&
16115 ac_config_status_args="$ac_config_status_args --quiet"
16117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16120 # would make configure fail if this is the last instruction.
16121 $ac_cs_success || as_fn_exit $?
16123 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16125 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}