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
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
675 extra_liboffloadmic_configure_flags
702 TOPLEVEL_CONFIGURE_ARGUMENTS
730 program_transform_name
741 ac_subst_files='serialization_dependencies
747 enable_option_checking
750 enable_as_accelerator_for
751 enable_offload_targets
754 enable_compressed_debug_sections
756 enable_libquadmath_support
780 enable_isl_version_check
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
787 with_target_bdw_gc_include
788 with_target_bdw_gc_lib
790 with_debug_prefix_map
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
800 ac_precious_vars='build_alias
847 # Initialize some variables set by options.
849 ac_init_version=false
850 ac_unrecognized_opts=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
861 program_transform_name=s,x,x,
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1153 -site=* | --site=* | --sit=*)
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=no ;;
1212 # Obsolete; use --with-x.
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 as_fn_error "path to source, $srcdir, contains spaces"
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1462 if test -n "$ac_init_help"; then
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480 Enable compressed debug sections for gas, gold or ld
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1487 --disable-libstdcxx do not build libstdc++-v3 directory
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for isl version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed isl
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
1565 --with-build-sysroot=SYSROOT
1566 use sysroot as the system root during the build
1567 --with-debug-prefix-map='A=B C=D ...'
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
1571 --with-build-time-tools=PATH
1572 use given path to find target tools during the build
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1585 additional configure arguments for build directories
1587 additional configure arguments for host directories
1589 additional configure arguments for target directories
1592 DLLTOOL DLLTOOL for the host
1594 LIPO LIPO for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
1599 WINDMC WINDMC for the host
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
1602 READELF READELF for the host
1610 GFORTRAN for the target
1618 DLLTOOL for the target
1626 OBJCOPY for the target
1628 OBJDUMP for the target
1630 RANLIB for the target
1632 READELF for the target
1634 STRIP for the target
1636 WINDRES for the target
1638 WINDMC for the target
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to the package provider.
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1673 .) # We are building in place.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1707 generated by GNU Autoconf 2.64
1709 Copyright (C) 2009 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 } # ac_fn_c_try_compile
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 } # ac_fn_cxx_try_compile
1796 # ac_fn_cxx_try_link LINENO
1797 # -------------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_link ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_cxx_try_link
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 } # ac_fn_c_try_link
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1891 It was created by $as_me, which was
1892 generated by GNU Autoconf 2.64. Invocation command line was
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_must_keep_next=false
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981 -* ) ac_must_keep_next=true ;;
1984 as_fn_append ac_configure_args " '$ac_arg'"
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
2003 ## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##
2008 # The following way of writing the cache mishandles newlines in values,
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2041 ## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##
2046 for ac_var in $ac_subst_vars
2048 eval ac_val=\$$ac_var
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 $as_echo "$ac_var='\''$ac_val'\''"
2056 if test -n "$ac_subst_files"; then
2058 ## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##
2063 for ac_var in $ac_subst_files
2065 eval ac_val=\$$ac_var
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 $as_echo "$ac_var='\''$ac_val'\''"
2074 if test -s confdefs.h; then
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2100 $as_echo "/* confdefs.h */" > confdefs.h
2102 # Predefined preprocessor variables.
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2133 if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 test "x$ac_site_file" = xNONE && continue
2145 if test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2170 # Check that the precious variables saved in the cache have kept the same
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246 # if PWD already has a value, it is probably wrong.
2247 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2249 # Export original configure arguments for use by sub-configures.
2250 # Quote arguments with shell meta charatcers.
2251 TOPLEVEL_CONFIGURE_ARGUMENTS=
2252 set -- "$progname" "$@"
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2265 if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2268 # Remove the initial space we just introduced and, as these will be
2269 # expanded by make, quote '$'.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2273 # Find the build, host, and target systems.
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2322 ac_save_IFS=$IFS; IFS='-'
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
2357 test "$host_noncanonical" = "$target_noncanonical" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2360 program_transform_name=s,y,y,
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363 $as_echo_n "checking host system type... " >&6; }
2364 if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2379 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2382 ac_save_IFS=$IFS; IFS='-'
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396 $as_echo_n "checking target system type... " >&6; }
2397 if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409 $as_echo "$ac_cv_target" >&6; }
2410 case $ac_cv_target in
2412 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2414 target=$ac_cv_target
2415 ac_save_IFS=$IFS; IFS='-'
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2428 # The aliases save the names the user supplied, while $host etc.
2429 # will get canonicalized.
2430 test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2433 program_prefix=${target_alias}-
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447 # Get 'install' or 'install-sh' and its variants.
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2517 rm -rf conftest.one conftest.two conftest.dir
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542 $as_echo_n "checking whether ln works... " >&6; }
2543 if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2546 rm -f conftestdata_t
2547 echo >conftestdata_f
2548 if ln conftestdata_f conftestdata_t 2>/dev/null
2554 rm -f conftestdata_f conftestdata_t
2557 if test $acx_cv_prog_LN = no; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560 $as_echo "no, using $LN" >&6; }
2562 LN="$acx_cv_prog_LN"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568 $as_echo_n "checking whether ln -s works... " >&6; }
2570 if test "$LN_S" = "ln -s"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575 $as_echo "no, using $LN_S" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580 if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601 # Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603 case `"$ac_path_SED" --version 2>&1` in
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2608 $as_echo_n 0123456789 >"conftest.in"
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2629 $ac_path_SED_found && break 3
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643 $as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2647 for ac_prog in gawk mawk nawk awk
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$AWK" && break
2690 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2692 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2694 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2698 # Set srcdir to "." if that's what it is.
2699 # This is important for multilib support.
2701 if test "${pwd}" = "${srcpwd}" ; then
2709 ### To add a new directory to the tree, first choose whether it is a target
2710 ### or a host dependent tool. Then put it into the appropriate list
2711 ### (library or tools, host or target), doing a dependency sort.
2713 # Subdirs will be configured in the order listed in build_configdirs,
2714 # configdirs, or target_configdirs; see the serialization section below.
2716 # Dependency sorting is only needed when *configuration* must be done in
2717 # a particular order. In all cases a dependency should be specified in
2718 # the Makefile, whether or not it's implicitly specified here.
2720 # Double entries in build_configdirs, configdirs, or target_configdirs may
2721 # cause circular dependencies and break everything horribly.
2723 # these library is used by various programs built for the build
2726 build_libs="build-libiberty build-libcpp"
2728 # these tools are built for the build environment
2729 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2731 # these libraries are used by various programs built for the host environment
2733 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2735 # these tools are built for the host environment
2736 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737 # know that we are building the simulator.
2738 # binutils, gas and ld appear in that order because it makes sense to run
2739 # "make check" in that particular order.
2740 # If --enable-gold is used, "gold" may replace "ld".
2741 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"
2743 # these libraries are built for the target environment, and are built after
2744 # the host libraries and the host tools (which may be a cross compiler)
2745 # Note that libiberty is not a target library.
2746 target_libraries="target-libgcc \
2747 target-libbacktrace \
2752 target-liboffloadmic \
2755 target-libstdc++-v3 \
2756 target-libsanitizer \
2760 target-libquadmath \
2761 target-libgfortran \
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2773 target_tools="target-rda"
2775 ################################################################################
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines. This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2788 ################################################################################
2790 srcname="gnu development package"
2792 # This gets set non-empty for some net releases of packages.
2795 # Define is_cross_compiler to save on calls to 'test'.
2797 if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2800 is_cross_compiler=yes
2803 # Find the build and target subdir names.
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2821 build_libsubdir="$build_subdir"
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2832 target_subdir=${target_noncanonical}
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 # Skipdirs are removed silently.
2842 # Noconfigdirs are removed loudly.
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2849 noconfigdirs="$noconfigdirs ld gold"
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2856 noconfigdirs="$noconfigdirs gas"
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2876 yes | "") ;; # the default value for this tree is that X11 is available
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2889 case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 # If both --with-headers and --with-libs are specified, default to
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2922 enable_offload_targets=
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 # Build only ld. Default option.
2929 # --enable-gold [--enable-ld]
2930 # Build both gold and ld. Install gold as "ld.gold", install ld
2931 # as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2934 # install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 # Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940 # In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2952 case "${ENABLE_GOLD}" in
2954 # Check for ELF target.
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
2962 *-*-linux*aout* | *-*-linux*oldld*)
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2999 case "${ENABLE_LD}" in
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3020 # Decide the default method for compressing debug sections.
3021 # Provide a configure time option to override our default.
3022 # Check whether --enable-compressed_debug_sections was given.
3023 if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3030 enable_compressed_debug_sections=
3034 # Configure extra directories which are host specific
3038 configdirs="$configdirs libtermcap" ;;
3041 # A target can indicate whether a language isn't supported for some reason.
3042 # Only spaces may be used in this macro; not newlines or tabs.
3043 unsupported_languages=
3045 # Remove more programs from consideration, based on the host or
3046 # target this usually means that a port of the program doesn't
3050 i[3456789]86-*-msdosdjgpp*)
3051 noconfigdirs="$noconfigdirs tcl tk itcl"
3056 # Check whether --enable-libquadmath was given.
3057 if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3060 ENABLE_LIBQUADMATH=yes
3063 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3068 # Check whether --enable-libquadmath-support was given.
3069 if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3075 enable_libquadmath_support=
3076 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3081 # Check whether --enable-libada was given.
3082 if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3088 if test "${ENABLE_LIBADA}" != "yes" ; then
3089 noconfigdirs="$noconfigdirs gnattools"
3092 # Check whether --enable-libssp was given.
3093 if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3100 # Check whether --enable-libstdcxx was given.
3101 if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3104 ENABLE_LIBSTDCXX=default
3107 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111 # If this is accelerator compiler and its target is intelmic we enable
3112 # target liboffloadmic by default. If this is compiler with offloading
3113 # for intelmic we enable host liboffloadmic by default. Otherwise
3114 # liboffloadmic is disabled by default.
3115 # Check whether --enable-liboffloadmic was given.
3116 if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3119 enable_liboffloadmic=$enableval ;;
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124 if test x"$enable_as_accelerator_for" != x; then
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 enable_liboffloadmic=no
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 enable_liboffloadmic=no
3149 # Enable libgomp by default on hosted POSIX systems, and a few others.
3150 if test x$enable_libgomp = x ; then
3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3156 *-*-solaris2* | *-*-hpux11*)
3158 *-*-darwin* | *-*-aix*)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3168 # Disable libatomic on unsupported systems.
3169 if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172 $as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3187 # Disable libcilkrts on unsupported systems.
3188 if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191 $as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3206 # Disable liboffloadmic on unsupported systems.
3207 if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210 $as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3225 # Disable libitm on unsupported systems.
3226 if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229 $as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3244 # Disable libsanitizer on unsupported systems.
3245 if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248 $as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3263 # Disable libvtv on unsupported systems.
3264 if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267 $as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3283 # Enable libmpx on supported systems by request.
3284 if test -d ${srcdir}/libmpx; then
3285 if test x$enable_libmpx = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287 $as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3304 # Disable libquadmath for some systems.
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3316 # Disable libssp for some systems.
3319 # No hosted I/O support.
3320 noconfigdirs="$noconfigdirs target-libssp"
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
3329 noconfigdirs="$noconfigdirs target-libssp"
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3337 # Disable libstdc++-v3 for some systems.
3338 # Allow user to override this if they pass --enable-libstdc++-v3
3339 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 # Disable Fortran for some systems.
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3366 # Disable libffi for some systems.
3370 i[3456789]86-*-darwin*)
3372 x86_64-*-darwin[912]*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3378 noconfigdirs="$noconfigdirs target-libffi"
3381 noconfigdirs="$noconfigdirs target-libffi"
3384 noconfigdirs="$noconfigdirs target-libffi"
3387 noconfigdirs="$noconfigdirs target-libffi"
3390 noconfigdirs="$noconfigdirs target-libffi"
3393 noconfigdirs="$noconfigdirs target-libffi"
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3399 noconfigdirs="$noconfigdirs target-libffi"
3402 noconfigdirs="$noconfigdirs target-libffi"
3405 noconfigdirs="$noconfigdirs target-libffi"
3408 noconfigdirs="$noconfigdirs target-libffi"
3410 cris-*-* | crisv32-*-*)
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3419 noconfigdirs="$noconfigdirs target-libffi"
3424 noconfigdirs="$noconfigdirs target-libffi"
3427 noconfigdirs="$noconfigdirs target-libffi"
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3436 noconfigdirs="$noconfigdirs target-libffi"
3439 noconfigdirs="$noconfigdirs target-libffi"
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3446 noconfigdirs="$noconfigdirs target-libffi"
3449 noconfigdirs="$noconfigdirs target-libffi"
3452 noconfigdirs="$noconfigdirs target-libffi"
3456 # Disable the go frontend on systems where it is known to not work. Please keep
3457 # this in sync with contrib/config-list.mk.
3459 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3464 # Disable libgo for some systems where it is known to not work.
3465 # For testing, you can easily override this with --enable-libgo.
3466 if test x$enable_libgo = x; then
3470 noconfigdirs="$noconfigdirs target-libgo"
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3476 noconfigdirs="$noconfigdirs target-libgo"
3481 # Default libgloss CPU subdirectory.
3482 libgloss_dir="$target_cpu"
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3489 libgloss_dir=aarch64
3494 cris-*-* | crisv32-*-*)
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3506 m68*-*-* | fido-*-*)
3520 # Disable newlib and libgloss for various target OSes.
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3606 x86_64-*-darwin[912]*)
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3623 # Remove unsupported stuff on all kaOS configurations.
3624 noconfigdirs="$noconfigdirs target-libgloss"
3631 noconfigdirs="$noconfigdirs target-libgloss"
3634 noconfigdirs="$noconfigdirs target-libgloss"
3636 # The tpf target doesn't support gdb yet.
3638 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3641 noconfigdirs="$noconfigdirs target-rda"
3646 # ld works, but does not support shared libraries.
3647 # gas doesn't generate exception information.
3648 noconfigdirs="$noconfigdirs gas ld"
3651 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3654 # newlib is not 64 bit ready
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3658 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3661 noconfigdirs="$noconfigdirs sim"
3664 noconfigdirs="$noconfigdirs target-libgloss"
3667 noconfigdirs="$noconfigdirs ld target-libgloss"
3670 if test x${with_avrlibc} != xno; then
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 c4x-*-* | tic4x-*-*)
3675 noconfigdirs="$noconfigdirs target-libgloss"
3678 noconfigdirs="$noconfigdirs target-libgloss gdb"
3681 noconfigdirs="$noconfigdirs target-libgloss"
3684 noconfigdirs="$noconfigdirs gdb"
3687 noconfigdirs="$noconfigdirs gdb"
3690 noconfigdirs="$noconfigdirs target-rda gprof"
3693 noconfigdirs="$noconfigdirs"
3696 noconfigdirs="$noconfigdirs target-libgloss"
3699 noconfigdirs="$noconfigdirs target-libgloss"
3701 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3704 noconfigdirs="$noconfigdirs gdb"
3707 noconfigdirs="$noconfigdirs gdb ld"
3715 hppa*-*-openbsd* | \
3721 noconfigdirs="$noconfigdirs ld"
3724 noconfigdirs="$noconfigdirs gdb"
3727 # No gdb support yet.
3728 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3731 # No ld support yet.
3732 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3735 # No ld support yet.
3736 noconfigdirs="$noconfigdirs libgui itcl ld"
3738 i[3456789]86-w64-mingw*)
3740 i[3456789]86-*-mingw*)
3741 target_configdirs="$target_configdirs target-winsup"
3744 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3745 noconfigdirs="$noconfigdirs target-libgloss"
3746 # always build newlib if winsup directory is present.
3747 if test -d "$srcdir/winsup/cygwin"; then
3748 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3749 elif test -d "$srcdir/newlib"; then
3750 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3754 noconfigdirs="$noconfigdirs target-libgloss"
3756 i[3456789]86-*-sco3.2v5*)
3757 # The linker does not yet know about weak symbols in COFF,
3758 # and is not configured to handle mixed ELF and COFF.
3759 noconfigdirs="$noconfigdirs ld target-libgloss"
3761 i[3456789]86-*-sco*)
3762 noconfigdirs="$noconfigdirs gprof target-libgloss"
3764 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3765 noconfigdirs="$noconfigdirs target-libgloss"
3767 i[3456789]86-*-sysv4*)
3768 noconfigdirs="$noconfigdirs target-libgloss"
3770 i[3456789]86-*-beos*)
3771 noconfigdirs="$noconfigdirs gdb"
3773 i[3456789]86-*-rdos*)
3774 noconfigdirs="$noconfigdirs gdb"
3777 noconfigdirs="$noconfigdirs gdb"
3780 noconfigdirs="$noconfigdirs sim"
3783 # copied from rs6000-*-* entry
3784 noconfigdirs="$noconfigdirs gprof"
3786 powerpc*-*-winnt* | powerpc*-*-pe*)
3787 target_configdirs="$target_configdirs target-winsup"
3788 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3789 # always build newlib.
3790 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3792 # This is temporary until we can link against shared libraries
3793 powerpcle-*-solaris*)
3794 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3797 noconfigdirs="$noconfigdirs gdb"
3800 noconfigdirs="$noconfigdirs gprof"
3803 noconfigdirs="$noconfigdirs gprof"
3806 noconfigdirs="$noconfigdirs gprof"
3809 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3812 noconfigdirs="$noconfigdirs gprof"
3814 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3815 if test x$with_newlib = xyes; then
3816 noconfigdirs="$noconfigdirs gprof"
3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
3823 noconfigdirs="$noconfigdirs gprof target-libgloss"
3826 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3830 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3831 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3832 noconfigdirs="$noconfigdirs ld gas gprof"
3835 noconfigdirs="$noconfigdirs gprof"
3838 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3845 noconfigdirs="$noconfigdirs target-libgloss" ;;
3849 if test x${is_cross_compiler} = xno ; then
3854 noconfigdirs="$noconfigdirs sim"
3856 tilepro*-*-* | tilegx*-*-*)
3857 noconfigdirs="$noconfigdirs sim"
3860 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3867 # If we aren't building newlib, then don't build libgloss, since libgloss
3868 # depends upon some newlib header files.
3869 case "${noconfigdirs}" in
3870 *target-libgloss*) ;;
3871 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3874 # Work in distributions that contain no compiler tools, like Autoconf.
3875 host_makefile_frag=/dev/null
3876 if test -d ${srcdir}/config ; then
3878 i[3456789]86-*-msdosdjgpp*)
3879 host_makefile_frag="config/mh-djgpp"
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3884 $as_echo_n "checking to see if cat works as expected... " >&6; }
3885 echo a >cygwin-cat-check
3886 if test `cat cygwin-cat-check` = a ; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889 $as_echo "yes" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 as_fn_error "The cat command does not ignore carriage return characters.
3895 Please either mount the build directory in binary mode or run the following
3896 commands before running any configure script:
3902 host_makefile_frag="config/mh-cygwin"
3905 host_makefile_frag="config/mh-mingw"
3908 host_makefile_frag="config/mh-alpha-linux"
3911 host_makefile_frag="config/mh-pa-hpux10"
3914 host_makefile_frag="config/mh-pa"
3917 host_makefile_frag="config/mh-pa"
3920 host_makefile_frag="config/mh-darwin"
3923 host_makefile_frag="config/mh-ppc-aix"
3926 host_makefile_frag="config/mh-ppc-aix"
3931 if test "${build}" != "${host}" ; then
3932 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3933 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3934 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3935 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3936 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3937 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3938 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3939 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3940 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3941 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3942 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3943 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3945 AR_FOR_BUILD="\$(AR)"
3946 AS_FOR_BUILD="\$(AS)"
3947 CC_FOR_BUILD="\$(CC)"
3948 CXX_FOR_BUILD="\$(CXX)"
3949 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3950 GOC_FOR_BUILD="\$(GOC)"
3951 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3952 LD_FOR_BUILD="\$(LD)"
3953 NM_FOR_BUILD="\$(NM)"
3954 RANLIB_FOR_BUILD="\$(RANLIB)"
3955 WINDRES_FOR_BUILD="\$(WINDRES)"
3956 WINDMC_FOR_BUILD="\$(WINDMC)"
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 $as_echo "$CC" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4003 if test -z "$ac_cv_prog_CC"; then
4005 # Extract the first word of "gcc", so it can be a program name with args.
4006 set dummy gcc; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4012 if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_ac_ct_CC="gcc"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033 if test -n "$ac_ct_CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4035 $as_echo "$ac_ct_CC" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4041 if test "x$ac_ct_CC" = x; then
4044 case $cross_compiling:$ac_tool_warned in
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}cc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if test "${ac_cv_prog_CC+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_CC="${ac_tool_prefix}cc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 if test -n "$CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4097 if test -z "$CC"; then
4098 # Extract the first word of "cc", so it can be a program name with args.
4099 set dummy cc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117 ac_prog_rejected=yes
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test $ac_prog_rejected = yes; then
4129 # We found a bogon in the path, so make sure we never use it.
4130 set dummy $ac_cv_prog_CC
4132 if test $# != 0; then
4133 # We chose a different compiler from the bogus one.
4134 # However, it has the same basename, so the bogon will be chosen
4135 # first if we set CC to just the basename; use the full file name.
4137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4153 if test -z "$CC"; then
4154 if test -n "$ac_tool_prefix"; then
4155 for ac_prog in cl.exe
4157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if test "${ac_cv_prog_CC+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 test -n "$CC" && break
4197 if test -z "$CC"; then
4199 for ac_prog in cl.exe
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy $ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_CC="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 $as_echo "$ac_ct_CC" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4238 test -n "$ac_ct_CC" && break
4241 if test "x$ac_ct_CC" = x; then
4244 case $cross_compiling:$ac_tool_warned in
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error "no acceptable C compiler found in \$PATH
4260 See \`config.log' for more details." "$LINENO" 5; }
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4276 if test -s conftest.err; then
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4298 ac_clean_files_save=$ac_clean_files
4299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4300 # Try to create an executable without -o first, disregard a.out.
4301 # It will help us diagnose broken compilers, and finding out an intuition
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4304 $as_echo_n "checking for C compiler default output file name... " >&6; }
4305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4307 # The possible output files:
4308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4311 for ac_file in $ac_files
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4320 if { { ac_try="$ac_link_default"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link_default") 2>&5
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4334 # so that the user can short-circuit this test for compilers unknown to
4336 for ac_file in $ac_files ''
4338 test -f "$ac_file" || continue
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4343 # We found the default executable, but exeext='' is most
4347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351 # We set ac_cv_exeext here because the later test for it is not
4352 # safe: cross compilers may not add the suffix if given an `-o'
4353 # argument, so we may need to know it at that point already.
4354 # Even if this section looks crufty: it has the advantage of
4361 test "$ac_cv_exeext" = no && ac_cv_exeext=
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4367 $as_echo "$ac_file" >&6; }
4368 if test -z "$ac_file"; then :
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 { as_fn_set_status 77
4375 as_fn_error "C compiler cannot create executables
4376 See \`config.log' for more details." "$LINENO" 5; }; }
4378 ac_exeext=$ac_cv_exeext
4380 # Check that the compiler produces executables we can run. If not, either
4381 # the compiler is broken, or we cross compile.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4383 $as_echo_n "checking whether the C compiler works... " >&6; }
4384 # If not cross compiling, check that we can run a simple program.
4385 if test "$cross_compiling" != yes; then
4386 if { ac_try='./$ac_file'
4387 { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; }; then
4399 if test "$cross_compiling" = maybe; then
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error "cannot run C compiled programs.
4405 If you meant to cross compile, use \`--host'.
4406 See \`config.log' for more details." "$LINENO" 5; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411 $as_echo "yes" >&6; }
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4414 ac_clean_files=$ac_clean_files_save
4415 # Check that the compiler produces executables we can run. If not, either
4416 # the compiler is broken, or we cross compile.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4418 $as_echo_n "checking whether we are cross compiling... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420 $as_echo "$cross_compiling" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4423 $as_echo_n "checking for suffix of executables... " >&6; }
4424 if { { ac_try="$ac_link"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link") 2>&5
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4437 # work properly (i.e., refer to `conftest.exe'), while it won't with
4439 for ac_file in conftest.exe conftest conftest.*; do
4440 test -f "$ac_file" || continue
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error "cannot compute suffix of executables: cannot compile and link
4452 See \`config.log' for more details." "$LINENO" 5; }
4454 rm -f conftest$ac_cv_exeext
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4456 $as_echo "$ac_cv_exeext" >&6; }
4458 rm -f conftest.$ac_ext
4459 EXEEXT=$ac_cv_exeext
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462 $as_echo_n "checking for suffix of object files... " >&6; }
4463 if test "${ac_cv_objext+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4477 rm -f conftest.o conftest.obj
4478 if { { ac_try="$ac_compile"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_compile") 2>&5
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 for ac_file in conftest.o conftest.obj conftest.*; do
4490 test -f "$ac_file" || continue;
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error "cannot compute suffix of object files: cannot compile
4504 See \`config.log' for more details." "$LINENO" 5; }
4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 $as_echo "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4514 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4531 if ac_fn_c_try_compile "$LINENO"; then :
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4547 ac_test_CFLAGS=${CFLAGS+set}
4548 ac_save_CFLAGS=$CFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cc_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 ac_save_c_werror_flag=$ac_c_werror_flag
4555 ac_c_werror_flag=yes
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4569 if ac_fn_c_try_compile "$LINENO"; then :
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4600 if ac_fn_c_try_compile "$LINENO"; then :
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_c_werror_flag=$ac_save_c_werror_flag
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611 $as_echo "$ac_cv_prog_cc_g" >&6; }
4612 if test "$ac_test_CFLAGS" = set; then
4613 CFLAGS=$ac_save_CFLAGS
4614 elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4621 if test "$GCC" = yes; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4629 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 ac_cv_prog_cc_c89=no
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/stat.h>
4640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4641 struct buf { int x; };
4642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4643 static char *e (p, i)
4649 static char *f (char * (*g) (char **, int), char **p, ...)
4654 s = g (p, va_arg (v,int));
4659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4660 function prototypes and stuff, but not '\xHH' hex character constants.
4661 These don't provoke an error unfortunately, instead are silently treated
4662 as 'x'. The following induces an error, until -std is added to get
4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4664 array size at least. It's necessary to write '\x00'==0 to get something
4665 that's true only with -std. */
4666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4669 inside strings and character constants. */
4671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4673 int test (int i, double x);
4674 struct s1 {int (*f) (int a);};
4675 struct s2 {int (*f) (double a);};
4676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4690 CC="$ac_save_CC $ac_arg"
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_cv_prog_cc_c89=$ac_arg
4694 rm -f core conftest.err conftest.$ac_objext
4695 test "x$ac_cv_prog_cc_c89" != "xno" && break
4697 rm -f conftest.$ac_ext
4702 case "x$ac_cv_prog_cc_c89" in
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4705 $as_echo "none needed" >&6; } ;;
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4708 $as_echo "unsupported" >&6; } ;;
4710 CC="$CC $ac_cv_prog_cc_c89"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4714 if test "x$ac_cv_prog_cc_c89" != xno; then :
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725 ac_cpp='$CXXCPP $CPPFLAGS'
4726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4729 if test -z "$CXX"; then
4730 if test -n "$CCC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_CXX+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$CXX"; then
4744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test -n "$CXX"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4766 $as_echo "$CXX" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$CXX" && break
4776 if test -z "$CXX"; then
4778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$ac_ct_CXX"; then
4788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CXX="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4808 if test -n "$ac_ct_CXX"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4810 $as_echo "$ac_ct_CXX" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$ac_ct_CXX" && break
4820 if test "x$ac_ct_CXX" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4835 # Provide some information about the compiler.
4836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4839 for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4849 if test -s conftest.err; then
4851 ... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 rm -f conftest.er1 conftest.err
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4861 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4879 if ac_fn_cxx_try_compile "$LINENO"; then :
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4889 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4890 if test $ac_compiler_gnu = yes; then
4895 ac_test_CXXFLAGS=${CXXFLAGS+set}
4896 ac_save_CXXFLAGS=$CXXFLAGS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4898 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4899 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4903 ac_cxx_werror_flag=yes
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4917 if ac_fn_cxx_try_compile "$LINENO"; then :
4918 ac_cv_prog_cxx_g=yes
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4932 if ac_fn_cxx_try_compile "$LINENO"; then :
4935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4959 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4960 if test "$ac_test_CXXFLAGS" = set; then
4961 CXXFLAGS=$ac_save_CXXFLAGS
4962 elif test $ac_cv_prog_cxx_g = yes; then
4963 if test "$GXX" = yes; then
4969 if test "$GXX" = yes; then
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 # We must set the default linker to the linker used by gcc for the correct
4983 # operation of libtool. If LD is not defined and we are using gcc, try to
4984 # set the LD default to the ld used by gcc.
4985 if test -z "$LD"; then
4986 if test "$GCC" = yes; then
4989 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4991 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4993 case $gcc_prog_ld in
4994 # Accept absolute paths.
4995 [\\/]* | [A-Za-z]:[\\/]*)
4996 LD="$gcc_prog_ld" ;;
5001 # Check whether -static-libstdc++ -static-libgcc is supported.
5003 if test "$GCC" = yes; then
5004 saved_LDFLAGS="$LDFLAGS"
5006 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5008 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5019 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5020 #error -static-libstdc++ not implemented
5024 if ac_fn_cxx_try_link "$LINENO"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }; have_static_libs=yes
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5031 rm -f core conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 LDFLAGS="$saved_LDFLAGS"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 GNATBIND=$ac_cv_prog_GNATBIND
5075 if test -n "$GNATBIND"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077 $as_echo "$GNATBIND" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088 set dummy gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115 if test -n "$ac_ct_GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117 $as_echo "$ac_ct_GNATBIND" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5123 if test "x$ac_ct_GNATBIND" = x; then
5126 case $cross_compiling:$ac_tool_warned in
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5132 GNATBIND=$ac_ct_GNATBIND
5135 GNATBIND="$ac_cv_prog_GNATBIND"
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 GNATMAKE=$ac_cv_prog_GNATMAKE
5167 if test -n "$GNATMAKE"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169 $as_echo "$GNATMAKE" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180 set dummy gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207 if test -n "$ac_ct_GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209 $as_echo "$ac_ct_GNATMAKE" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5215 if test "x$ac_ct_GNATMAKE" = x; then
5218 case $cross_compiling:$ac_tool_warned in
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5224 GNATMAKE=$ac_ct_GNATMAKE
5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5231 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5232 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat >conftest.adb <<EOF
5236 procedure conftest is begin null; end conftest;
5238 acx_cv_cc_gcc_supports_ada=no
5239 # There is a bug in old released versions of GCC which causes the
5240 # driver to exit successfully when the appropriate language module
5241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5242 # Therefore we must check for the error message as well as an
5243 # unsuccessful exit.
5244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5245 # given a .adb file, but produce no object file. So we must check
5246 # if an object file was really produced to guard against this.
5247 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5248 if test x"$errors" = x && test -f conftest.$ac_objext; then
5249 acx_cv_cc_gcc_supports_ada=yes
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5254 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5256 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5263 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5264 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5269 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5288 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5289 do_compare="$gcc_cv_prog_cmp_skip"
5293 # Check whether --enable-bootstrap was given.
5294 if test "${enable_bootstrap+set}" = set; then :
5295 enableval=$enable_bootstrap;
5297 enable_bootstrap=default
5301 # Issue errors and warnings for invalid/strange bootstrap combinations.
5302 if test -r $srcdir/gcc/configure; then
5308 case "$have_compiler:$host:$target:$enable_bootstrap" in
5311 # Default behavior. Enable bootstrap if we have a compiler
5312 # and we are in a native configuration.
5313 yes:$build:$build:default)
5314 enable_bootstrap=yes ;;
5317 enable_bootstrap=no ;;
5319 # We have a compiler and we are in a native configuration, bootstrap is ok
5320 yes:$build:$build:yes)
5323 # Other configurations, but we have a compiler. Assume the user knows
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5327 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5330 # No compiler: if they passed --enable-bootstrap explicitly, fail
5332 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5334 # Fail if wrong command line
5336 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5340 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5341 # C++98 compiler can still start the bootstrap.
5342 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5343 CXX="$CXX -std=gnu++98"
5346 # Used for setting $lt_cv_objdir
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5348 $as_echo_n "checking for objdir... " >&6; }
5349 if test "${lt_cv_objdir+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 rm -f .libs 2>/dev/null
5353 mkdir .libs 2>/dev/null
5354 if test -d .libs; then
5357 # MS-DOS does not allow filenames that begin with a dot.
5360 rmdir .libs 2>/dev/null
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5363 $as_echo "$lt_cv_objdir" >&6; }
5364 objdir=$lt_cv_objdir
5370 cat >>confdefs.h <<_ACEOF
5371 #define LT_OBJDIR "$lt_cv_objdir/"
5376 # Check for GMP, MPFR and MPC
5377 gmplibs="-lmpc -lmpfr -lgmp"
5381 # Specify a location for mpc
5382 # check for this first so it ends up on the link line before mpfr.
5384 # Check whether --with-mpc was given.
5385 if test "${with_mpc+set}" = set; then :
5390 # Check whether --with-mpc-include was given.
5391 if test "${with_mpc_include+set}" = set; then :
5392 withval=$with_mpc_include;
5396 # Check whether --with-mpc-lib was given.
5397 if test "${with_mpc_lib+set}" = set; then :
5398 withval=$with_mpc_lib;
5402 if test "x$with_mpc" != x; then
5403 gmplibs="-L$with_mpc/lib $gmplibs"
5404 gmpinc="-I$with_mpc/include $gmpinc"
5406 if test "x$with_mpc_include" != x; then
5407 gmpinc="-I$with_mpc_include $gmpinc"
5409 if test "x$with_mpc_lib" != x; then
5410 gmplibs="-L$with_mpc_lib $gmplibs"
5412 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5413 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5414 gmpinc='-I$$s/mpc/src '"$gmpinc"
5415 # Do not test the mpc version. Assume that it is sufficient, since
5416 # it is in the source tree, and the library has not been built yet
5417 # but it would be included on the link line in the version check below
5418 # hence making the test fail.
5422 # Specify a location for mpfr
5423 # check for this first so it ends up on the link line before gmp.
5425 # Check whether --with-mpfr-dir was given.
5426 if test "${with_mpfr_dir+set}" = set; then :
5427 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5428 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5433 # Check whether --with-mpfr was given.
5434 if test "${with_mpfr+set}" = set; then :
5439 # Check whether --with-mpfr-include was given.
5440 if test "${with_mpfr_include+set}" = set; then :
5441 withval=$with_mpfr_include;
5445 # Check whether --with-mpfr-lib was given.
5446 if test "${with_mpfr_lib+set}" = set; then :
5447 withval=$with_mpfr_lib;
5451 if test "x$with_mpfr" != x; then
5452 gmplibs="-L$with_mpfr/lib $gmplibs"
5453 gmpinc="-I$with_mpfr/include $gmpinc"
5455 if test "x$with_mpfr_include" != x; then
5456 gmpinc="-I$with_mpfr_include $gmpinc"
5458 if test "x$with_mpfr_lib" != x; then
5459 gmplibs="-L$with_mpfr_lib $gmplibs"
5461 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5462 # MPFR v3.1.0 moved the sources into a src sub-directory.
5463 if ! test -d ${srcdir}/mpfr/src; then
5464 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5466 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5467 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5468 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5469 # Do not test the mpfr version. Assume that it is sufficient, since
5470 # it is in the source tree, and the library has not been built yet
5471 # but it would be included on the link line in the version check below
5472 # hence making the test fail.
5476 # Specify a location for gmp
5478 # Check whether --with-gmp-dir was given.
5479 if test "${with_gmp_dir+set}" = set; then :
5480 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5481 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5486 # Check whether --with-gmp was given.
5487 if test "${with_gmp+set}" = set; then :
5492 # Check whether --with-gmp-include was given.
5493 if test "${with_gmp_include+set}" = set; then :
5494 withval=$with_gmp_include;
5498 # Check whether --with-gmp-lib was given.
5499 if test "${with_gmp_lib+set}" = set; then :
5500 withval=$with_gmp_lib;
5505 if test "x$with_gmp" != x; then
5506 gmplibs="-L$with_gmp/lib $gmplibs"
5507 gmpinc="-I$with_gmp/include $gmpinc"
5509 if test "x$with_gmp_include" != x; then
5510 gmpinc="-I$with_gmp_include $gmpinc"
5512 if test "x$with_gmp_lib" != x; then
5513 gmplibs="-L$with_gmp_lib $gmplibs"
5515 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5516 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5517 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5518 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5519 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5520 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5521 # Do not test the gmp version. Assume that it is sufficient, since
5522 # it is in the source tree, and the library has not been built yet
5523 # but it would be included on the link line in the version check below
5524 # hence making the test fail.
5528 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5530 saved_CFLAGS="$CFLAGS"
5531 CFLAGS="$CFLAGS $gmpinc"
5532 # Check for the recommended and required versions of GMP.
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5534 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5543 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5544 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5545 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5561 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5562 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5563 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573 $as_echo "yes" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5576 $as_echo "buggy but acceptable" >&6; }
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }; have_gmp=no
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 # If we have GMP, check the MPFR version.
5586 if test x"$have_gmp" = xyes; then
5587 # Check for the recommended and required versions of MPFR.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5589 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5598 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5615 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625 $as_echo "yes" >&6; }
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5628 $as_echo "buggy but acceptable" >&6; }
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }; have_gmp=no
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 # Check for the MPC header version.
5639 if test x"$have_gmp" = xyes ; then
5640 # Check for the recommended and required versions of MPC.
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5642 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5650 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5666 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5679 $as_echo "buggy but acceptable" >&6; }
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }; have_gmp=no
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 # Now check the MPFR library.
5690 if test x"$have_gmp" = xyes; then
5692 LIBS="$LIBS $gmplibs"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5694 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5708 mpfr_atan2 (n, n, x, GMP_RNDN);
5709 mpfr_erfc (n, x, GMP_RNDN);
5710 mpfr_subnormalize (x, t, GMP_RNDN);
5714 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5715 mpc_cosh (c, c, MPC_RNDNN);
5716 mpc_pow (c, c, c, MPC_RNDNN);
5717 mpc_acosh (c, c, MPC_RNDNN);
5724 if ac_fn_c_try_link "$LINENO"; then :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 $as_echo "yes" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }; have_gmp=no
5731 rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5736 CFLAGS="$saved_CFLAGS"
5738 # The library versions listed in the error message below should match
5739 # the HARD-minimums enforced above.
5740 if test x$have_gmp != xyes; then
5741 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5742 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5743 their locations. Source code for these libraries can be found at
5744 their respective hosting sites as well as at
5745 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5746 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5747 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5748 make sure that you have installed both the libraries and the header
5749 files. They may be located in separate packages." "$LINENO" 5
5753 # Flags needed for both GMP, MPFR and/or MPC.
5761 # Libraries to use for stage1 or when not bootstrapping.
5763 # Check whether --with-stage1-libs was given.
5764 if test "${with_stage1_libs+set}" = set; then :
5765 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5768 stage1_libs=$withval
5776 # Linker flags to use for stage1 or when not bootstrapping.
5778 # Check whether --with-stage1-ldflags was given.
5779 if test "${with_stage1_ldflags+set}" = set; then :
5780 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5783 stage1_ldflags=$withval
5787 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5788 # if supported. But if the user explicitly specified the libraries to use,
5789 # trust that they are doing what they want.
5790 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5791 stage1_ldflags="-static-libstdc++ -static-libgcc"
5797 # Libraries to use for stage2 and later builds.
5799 # Check whether --with-boot-libs was given.
5800 if test "${with_boot_libs+set}" = set; then :
5801 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5804 poststage1_libs=$withval
5812 # Linker flags to use for stage2 and later builds.
5814 # Check whether --with-boot-ldflags was given.
5815 if test "${with_boot_ldflags+set}" = set; then :
5816 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5819 poststage1_ldflags=$withval
5823 # In stages 2 and 3, default to linking libstdc++ and libgcc
5824 # statically. But if the user explicitly specified the libraries to
5825 # use, trust that they are doing what they want.
5826 if test "$poststage1_libs" = ""; then
5827 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5833 # GCC GRAPHITE dependency isl.
5834 # Basic setup is inlined here, actual checks are in config/isl.m4
5837 # Check whether --with-isl was given.
5838 if test "${with_isl+set}" = set; then :
5843 # Treat --without-isl as a request to disable
5844 # GRAPHITE support and skip all following checks.
5845 if test "x$with_isl" != "xno"; then
5849 # Check whether --with-isl-include was given.
5850 if test "${with_isl_include+set}" = set; then :
5851 withval=$with_isl_include;
5855 # Check whether --with-isl-lib was given.
5856 if test "${with_isl_lib+set}" = set; then :
5857 withval=$with_isl_lib;
5861 # Check whether --enable-isl-version-check was given.
5862 if test "${enable_isl_version_check+set}" = set; then :
5863 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5865 ENABLE_ISL_CHECK=yes
5869 # Initialize isllibs and islinc.
5878 isllibs="-L$with_isl/lib"
5879 islinc="-I$with_isl/include"
5882 if test "x${with_isl_include}" != x ; then
5883 islinc="-I$with_isl_include"
5885 if test "x${with_isl_lib}" != x; then
5886 isllibs="-L$with_isl_lib"
5888 if test "x${islinc}" = x && test "x${isllibs}" = x \
5889 && test -d ${srcdir}/isl; then
5890 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5891 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5894 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5897 isllibs="${isllibs} -lisl"
5901 if test "${ENABLE_ISL_CHECK}" = yes ; then
5902 _isl_saved_CFLAGS=$CFLAGS
5903 _isl_saved_LDFLAGS=$LDFLAGS
5904 _isl_saved_LIBS=$LIBS
5906 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5907 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5908 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5911 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <isl/ctx.h>
5918 isl_ctx_get_max_operations (isl_ctx_alloc ());
5923 if ac_fn_c_try_link "$LINENO"; then :
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5931 $as_echo "$gcc_cv_isl" >&6; }
5933 if test "${gcc_cv_isl}" = no ; then
5934 { $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
5935 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5939 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <isl/schedule.h>
5946 isl_options_set_schedule_serialize_sccs (NULL, 0);
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_has_isl_options_set_schedule_serialize_sccs=yes
5954 ac_has_isl_options_set_schedule_serialize_sccs=no
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5959 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5961 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5966 CFLAGS=$_isl_saved_CFLAGS
5967 LDFLAGS=$_isl_saved_LDFLAGS
5968 LIBS=$_isl_saved_LIBS
5976 if test "x${with_isl}" = xno; then
5977 graphite_requested=no
5978 elif test "x${with_isl}" != x \
5979 || test "x${with_isl_include}" != x \
5980 || test "x${with_isl_lib}" != x ; then
5981 graphite_requested=yes
5983 graphite_requested=no
5988 if test "${gcc_cv_isl}" = no ; then
5993 if test "${graphite_requested}" = yes \
5994 && test "x${isllibs}" = x \
5995 && test "x${islinc}" = x ; then
5997 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6003 # If the isl check failed, disable builds of in-tree variant of isl
6004 if test "x$with_isl" = xno ||
6005 test "x$gcc_cv_isl" = xno; then
6006 noconfigdirs="$noconfigdirs isl"
6013 # Check for LTO support.
6014 # Check whether --enable-lto was given.
6015 if test "${enable_lto+set}" = set; then :
6016 enableval=$enable_lto; enable_lto=$enableval
6018 enable_lto=yes; default_enable_lto=yes
6027 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6028 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6029 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6038 if test $target_elf = yes; then :
6039 # ELF platforms build the lto-plugin always.
6040 build_lto_plugin=yes
6043 if test x"$default_enable_lto" = x"yes" ; then
6045 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6046 # On other non-ELF platforms, LTO has yet to be validated.
6050 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6051 # It would also be nice to check the binutils support, but we don't
6052 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6053 # warn during gcc/ subconfigure; unless you're bootstrapping with
6054 # -flto it won't be needed until after installation anyway.
6056 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6057 *) if test x"$enable_lto" = x"yes"; then
6058 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6063 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6064 # Build it unless LTO was explicitly disabled.
6066 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6073 # Check whether --enable-linker-plugin-configure-flags was given.
6074 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6075 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6077 extra_linker_plugin_configure_flags=
6081 # Check whether --enable-linker-plugin-flags was given.
6082 if test "${enable_linker_plugin_flags+set}" = set; then :
6083 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6085 extra_linker_plugin_flags=
6091 # By default, C and C++ are the only stage 1 languages.
6092 stage1_languages=,c,
6094 # Target libraries that we bootstrap.
6095 bootstrap_target_libs=,target-libgcc,
6097 # Figure out what language subdirectories are present.
6098 # Look if the user specified --enable-languages="..."; if not, use
6099 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6101 # NB: embedded tabs in this IF block -- do not untabify
6102 if test -d ${srcdir}/gcc; then
6103 if test x"${enable_languages+set}" != xset; then
6104 if test x"${LANGUAGES+set}" = xset; then
6105 enable_languages="${LANGUAGES}"
6106 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6108 enable_languages=all
6111 if test x"${enable_languages}" = x ||
6112 test x"${enable_languages}" = xyes;
6114 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6118 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6120 # 'f95' is the old name for the 'fortran' language. We issue a warning
6121 # and make the substitution.
6122 case ,${enable_languages}, in
6124 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6129 # If bootstrapping, C++ must be enabled.
6130 case ",$enable_languages,:$enable_bootstrap" in
6133 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6134 enable_languages="${enable_languages},c++"
6136 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6141 # First scan to see if an enabled language requires some other language.
6142 # We assume that a given config-lang.in will list all the language
6143 # front ends it requires, even if some are required indirectly.
6144 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6145 case ${lang_frag} in
6147 # The odd quoting in the next line works around
6148 # an apparent bug in bash 1.12 on linux.
6149 ${srcdir}/gcc/[*]/config-lang.in) ;;
6151 # From the config-lang.in, get $language, $lang_requires, and
6152 # $lang_requires_boot_languages.
6155 lang_requires_boot_languages=
6157 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6158 case ,${enable_languages}, in
6162 echo " \`$other' language required by \`$language'; enabling" 1>&2
6163 enable_languages="${enable_languages},${other}"
6167 for other in ${lang_requires_boot_languages} ; do
6168 if test "$other" != "c"; then
6169 case ,${enable_stage1_languages}, in
6173 case ,${enable_languages}, in
6175 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6176 enable_stage1_languages="$enable_stage1_languages,${other}"
6187 new_enable_languages=,c,
6189 # If LTO is enabled, add the LTO front end.
6190 if test "$enable_lto" = "yes" ; then
6191 case ,${enable_languages}, in
6193 *) enable_languages="${enable_languages},lto" ;;
6195 if test "${build_lto_plugin}" = "yes" ; then
6196 configdirs="$configdirs lto-plugin"
6200 # If we're building an offloading compiler, add the LTO front end.
6201 if test x"$enable_as_accelerator_for" != x ; then
6202 case ,${enable_languages}, in
6204 *) enable_languages="${enable_languages},lto" ;;
6208 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6209 potential_languages=,c,
6211 enabled_target_libs=
6212 disabled_target_libs=
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6221 # From the config-lang.in, get $language, $target_libs,
6222 # $lang_dirs, $boot_language, and $build_by_default
6228 build_by_default=yes
6230 if test x${language} = x; then
6231 echo "${lang_frag} doesn't set \$language." 1>&2
6235 if test "$language" = "c++"; then
6240 case ,${enable_languages}, in
6242 # Language was explicitly selected; include it
6243 # unless it is C, which is enabled by default.
6244 if test "$language" != "c"; then
6249 # 'all' was selected, select it if it is a default language
6250 if test "$language" != "c"; then
6251 add_this_lang=${build_by_default}
6256 # Disable languages that need other directories if these aren't available.
6257 for i in $subdir_requires; do
6258 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6259 case ,${enable_languages}, in
6261 # Specifically requested language; tell them.
6262 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6266 add_this_lang=unsupported
6271 # Disable Ada if no preexisting GNAT is available.
6272 case ,${enable_languages},:${language}:${have_gnat} in
6273 *,${language},*:ada:no)
6274 # Specifically requested language; tell them.
6275 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6279 add_this_lang=unsupported
6283 # Disable a language that is unsupported by the target.
6284 case " $unsupported_languages " in
6286 add_this_lang=unsupported
6290 case $add_this_lang in
6292 # Remove language-dependent dirs.
6293 disabled_target_libs="$disabled_target_libs $target_libs"
6294 noconfigdirs="$noconfigdirs $lang_dirs"
6297 # Remove language-dependent dirs; still show language as supported.
6298 disabled_target_libs="$disabled_target_libs $target_libs"
6299 noconfigdirs="$noconfigdirs $lang_dirs"
6300 potential_languages="${potential_languages}${language},"
6303 new_enable_languages="${new_enable_languages}${language},"
6304 potential_languages="${potential_languages}${language},"
6305 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6306 enabled_target_libs="$enabled_target_libs $target_libs"
6307 case "${boot_language}:,$enable_stage1_languages," in
6308 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6309 # Add to (comma-separated) list of stage 1 languages.
6310 case ",$stage1_languages," in
6311 *,$language,* | ,yes, | ,all,) ;;
6312 *) stage1_languages="${stage1_languages}${language}," ;;
6314 # We need to bootstrap any supporting libraries.
6315 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6324 # Add target libraries which are only needed for disabled languages
6326 if test -n "$disabled_target_libs"; then
6327 for dir in $disabled_target_libs; do
6328 case " $enabled_target_libs " in
6330 *) noconfigdirs="$noconfigdirs $dir" ;;
6335 # Check whether --enable-stage1-languages was given.
6336 if test "${enable_stage1_languages+set}" = set; then :
6337 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6339 # Set it to something that will have no effect in the loop below
6340 enable_stage1_languages=c ;;
6342 enable_stage1_languages=`echo $new_enable_languages | \
6343 sed -e "s/^,//" -e "s/,$//" ` ;;
6345 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6346 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6349 # Add "good" languages from enable_stage1_languages to stage1_languages,
6350 # while "bad" languages go in missing_languages. Leave no duplicates.
6351 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6352 case $potential_languages in
6354 case $stage1_languages in
6356 *) stage1_languages="$stage1_languages$i," ;;
6359 case $missing_languages in
6361 *) missing_languages="$missing_languages$i," ;;
6368 # Remove leading/trailing commas that were added for simplicity
6369 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6370 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6371 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6372 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6374 if test "x$missing_languages" != x; then
6376 The following requested languages could not be built: ${missing_languages}
6377 Supported languages are: ${potential_languages}" "$LINENO" 5
6379 if test "x$new_enable_languages" != "x$enable_languages"; then
6380 echo The following languages will be built: ${new_enable_languages}
6381 enable_languages="$new_enable_languages"
6385 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6388 # Handle --disable-<component> generically.
6389 for dir in $configdirs $build_configdirs $target_configdirs ; do
6390 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6391 varname=`echo $dirname | sed -e s/+/_/g`
6392 if eval test x\${enable_${varname}} "=" xno ; then
6393 noconfigdirs="$noconfigdirs $dir"
6397 # Check for Boehm's garbage collector
6398 # Check whether --enable-objc-gc was given.
6399 if test "${enable_objc_gc+set}" = set; then :
6400 enableval=$enable_objc_gc;
6404 # Check whether --with-target-bdw-gc was given.
6405 if test "${with_target_bdw_gc+set}" = set; then :
6406 withval=$with_target_bdw_gc;
6410 # Check whether --with-target-bdw-gc-include was given.
6411 if test "${with_target_bdw_gc_include+set}" = set; then :
6412 withval=$with_target_bdw_gc_include;
6416 # Check whether --with-target-bdw-gc-lib was given.
6417 if test "${with_target_bdw_gc_lib+set}" = set; then :
6418 withval=$with_target_bdw_gc_lib;
6422 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6424 $as_echo_n "checking for bdw garbage collector... " >&6; }
6425 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6427 $as_echo "using bdw-gc in default locations" >&6; }
6429 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6430 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6431 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6432 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6435 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6440 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6441 case ,${enable_languages}, in
6443 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6444 case "${noconfigdirs}" in
6445 *target-libstdc++-v3*)
6446 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6452 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6456 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6457 # $build_configdirs and $target_configdirs.
6458 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6461 for dir in . $skipdirs $noconfigdirs ; do
6462 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6463 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6464 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6465 if test -r $srcdir/$dirname/configure ; then
6466 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 notsupp="$notsupp $dir"
6473 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6475 if test -r $srcdir/$dirname/configure ; then
6476 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6479 notsupp="$notsupp $dir"
6483 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6485 if test -r $srcdir/$dirname/configure ; then
6486 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6489 notsupp="$notsupp $dir"
6495 # Quietly strip out all directories which aren't configurable in this tree.
6496 # This relies on all configurable subdirectories being autoconfiscated, which
6498 build_configdirs_all="$build_configdirs"
6500 for i in ${build_configdirs_all} ; do
6501 j=`echo $i | sed -e s/build-//g`
6502 if test -f ${srcdir}/$j/configure ; then
6503 build_configdirs="${build_configdirs} $i"
6507 configdirs_all="$configdirs"
6509 for i in ${configdirs_all} ; do
6510 if test -f ${srcdir}/$i/configure ; then
6511 configdirs="${configdirs} $i"
6515 target_configdirs_all="$target_configdirs"
6517 for i in ${target_configdirs_all} ; do
6518 j=`echo $i | sed -e s/target-//g`
6519 if test -f ${srcdir}/$j/configure ; then
6520 target_configdirs="${target_configdirs} $i"
6524 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6525 # so we have to add it after the preceding checks.
6526 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6528 case " $configdirs " in
6530 # If we can build libiberty, we can also build libiberty-linker-plugin.
6531 configdirs="$configdirs libiberty-linker-plugin"
6532 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6533 --with-libiberty=../libiberty-linker-plugin";;
6535 as_fn_error "libiberty missing" "$LINENO" 5;;
6539 # Sometimes we have special requirements for the host libiberty.
6540 extra_host_libiberty_configure_flags=
6541 extra_host_zlib_configure_flags=
6542 case " $configdirs " in
6543 *" lto-plugin "* | *" libcc1 "*)
6544 # When these are to be built as shared libraries, the same applies to
6546 extra_host_libiberty_configure_flags=--enable-shared
6549 # When bfd is to be built as a shared library, the same applies to
6551 if test "$enable_shared" = "yes"; then
6552 extra_host_zlib_configure_flags=--enable-host-shared
6559 # Produce a warning message for the subdirs we can't configure.
6560 # This isn't especially interesting in the Cygnus tree, but in the individual
6561 # FSF releases, it's important to let people know when their machine isn't
6562 # supported by the one or two programs in a package.
6564 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6565 # If $appdirs is non-empty, at least one of those directories must still
6566 # be configured, or we error out. (E.g., if the gas release supports a
6567 # specified target in some subdirs but not the gas subdir, we shouldn't
6568 # pretend that all is well.)
6569 if test -n "$appdirs" ; then
6570 for dir in $appdirs ; do
6571 if test -r $dir/Makefile.in ; then
6572 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6576 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6582 if test -n "$appdirs" ; then
6583 echo "*** This configuration is not supported by this package." 1>&2
6587 # Okay, some application will build, or we don't care to check. Still
6588 # notify of subdirs not getting built.
6589 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6590 echo " ${notsupp}" 1>&2
6591 echo " (Any other directories should still work fine.)" 1>&2
6599 # To find our prefix, in gcc_cv_tool_prefix.
6601 # The user is always right.
6602 if test "${PATH_SEPARATOR+set}" != set; then
6603 echo "#! /bin/sh" >conf$$.sh
6604 echo "exit 0" >>conf$$.sh
6606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6616 if test "x$exec_prefix" = xNONE; then
6617 if test "x$prefix" = xNONE; then
6618 gcc_cv_tool_prefix=$ac_default_prefix
6620 gcc_cv_tool_prefix=$prefix
6623 gcc_cv_tool_prefix=$exec_prefix
6626 # If there is no compiler in the tree, use the PATH only. In any
6627 # case, if there is no compiler in the tree nobody should use
6628 # AS_FOR_TARGET and LD_FOR_TARGET.
6629 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6630 gcc_version=`cat $srcdir/gcc/BASE-VER`
6631 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6636 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6641 if test x$build = x$target && test -n "$md_exec_prefix"; then
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650 # Check whether --with-build-sysroot was given.
6651 if test "${with_build_sysroot+set}" = set; then :
6652 withval=$with_build_sysroot; if test x"$withval" != x ; then
6653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6656 SYSROOT_CFLAGS_FOR_TARGET=
6662 # Check whether --with-debug-prefix-map was given.
6663 if test "${with_debug_prefix_map+set}" = set; then :
6664 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6665 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6666 for debug_map in $withval; do
6667 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6671 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6676 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6677 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6678 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6679 # We want to ensure that TARGET libraries (which we know are built with
6680 # gcc) are built with "-O2 -g", so include those options when setting
6681 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6682 if test "x$CFLAGS_FOR_TARGET" = x; then
6683 if test "x${is_cross_compiler}" = xyes; then
6684 CFLAGS_FOR_TARGET="-g -O2"
6686 CFLAGS_FOR_TARGET=$CFLAGS
6689 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6692 *" -g "* | *" -g3 "*) ;;
6693 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6699 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6700 if test "x${is_cross_compiler}" = xyes; then
6701 CXXFLAGS_FOR_TARGET="-g -O2"
6703 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6704 case " $CXXFLAGS " in
6706 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6708 case " $CXXFLAGS " in
6709 *" -g "* | *" -g3 "*) ;;
6710 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6719 # the named directory are copied to $(tooldir)/sys-include.
6720 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6721 if test x${is_cross_compiler} = xno ; then
6722 echo 1>&2 '***' --with-headers is only supported when cross compiling
6725 if test x"${with_headers}" != xyes ; then
6726 x=${gcc_cv_tool_prefix}
6727 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6731 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6732 # the name directories are copied to $(tooldir)/lib. Multiple directories
6734 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6735 if test x${is_cross_compiler} = xno ; then
6736 echo 1>&2 '***' --with-libs is only supported when cross compiling
6739 if test x"${with_libs}" != xyes ; then
6740 # Copy the libraries in reverse order, so that files in the first named
6741 # library override files in subsequent libraries.
6742 x=${gcc_cv_tool_prefix}
6743 for l in ${with_libs}; do
6744 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6749 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6751 # This is done by determining whether or not the appropriate directory
6752 # is available, and by checking whether or not specific configurations
6753 # have requested that this magic not happen.
6755 # The command line options always override the explicit settings in
6756 # configure.ac, and the settings in configure.ac override this magic.
6758 # If the default for a toolchain is to use GNU as and ld, and you don't
6759 # want to do that, then you should use the --without-gnu-as and
6760 # --without-gnu-ld options for the configure script. Similarly, if
6761 # the default is to use the included zlib and you don't want to do that,
6762 # you should use the --with-system-zlib option for the configure script.
6764 if test x${use_gnu_as} = x &&
6765 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6767 extra_host_args="$extra_host_args --with-gnu-as"
6770 if test x${use_gnu_ld} = x &&
6771 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6773 extra_host_args="$extra_host_args --with-gnu-ld"
6776 if test x${use_included_zlib} = x &&
6777 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6780 with_system_zlib=yes
6781 extra_host_args="$extra_host_args --with-system-zlib"
6784 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6785 # can detect this case.
6787 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6789 extra_host_args="$extra_host_args --with-newlib"
6792 # Handle ${copy_dirs}
6793 set fnord ${copy_dirs}
6795 while test $# != 0 ; do
6796 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6799 echo Copying $1 to $2
6801 # Use the install script to create the directory and all required
6802 # parent directories.
6803 if test -d $2 ; then
6807 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6810 # Copy the directory, assuming we have tar.
6811 # FIXME: Should we use B in the second tar? Not all systems support it.
6812 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6814 # It is the responsibility of the user to correctly adjust all
6815 # symlinks. If somebody can figure out how to handle them correctly
6816 # here, feel free to add the code.
6823 # Determine a target-dependent exec_prefix that the installed
6824 # gcc will search in. Keep this list sorted by triplet, with
6825 # the *-*-osname triplets last.
6828 i[34567]86-pc-msdosdjgpp*)
6829 md_exec_prefix=/dev/env/DJDIR/bin
6834 md_exec_prefix=/usr/ccs/bin
6838 extra_arflags_for_target=
6839 extra_nmflags_for_target=
6840 extra_ranlibflags_for_target=
6841 target_makefile_frag=/dev/null
6844 target_makefile_frag="config/mt-spu"
6846 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6847 target_makefile_frag="config/mt-sde"
6849 mipsisa*-*-elfoabi*)
6850 target_makefile_frag="config/mt-mips-elfoabi"
6852 mips*-*-*linux* | mips*-*-gnu*)
6853 target_makefile_frag="config/mt-mips-gnu"
6856 target_makefile_frag="config/mt-nios2-elf"
6858 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6859 target_makefile_frag="config/mt-gnu"
6861 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6862 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6863 # commands to handle both 32-bit and 64-bit objects. These flags are
6864 # harmless if we're using GNU nm or ar.
6865 extra_arflags_for_target=" -X32_64"
6866 extra_nmflags_for_target=" -B -X32_64"
6870 alphaieee_frag=/dev/null
6873 # This just makes sure to use the -mieee option to build target libs.
6874 # This should probably be set individually by each library.
6875 alphaieee_frag="config/mt-alphaieee"
6879 # If --enable-target-optspace always use -Os instead of -O2 to build
6880 # the target libraries, similarly if it is not specified, use -Os
6881 # on selected platforms.
6882 ospace_frag=/dev/null
6883 case "${enable_target_optspace}:${target}" in
6885 ospace_frag="config/mt-ospace"
6888 ospace_frag="config/mt-d30v"
6890 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6891 ospace_frag="config/mt-ospace"
6896 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6900 # Some systems (e.g., one of the i386-aix systems the gas testers are
6901 # using) don't handle "\$" correctly, so don't use it here.
6902 tooldir='${exec_prefix}'/${target_noncanonical}
6903 build_tooldir=${tooldir}
6905 # Create a .gdbinit file which runs the one in srcdir
6906 # and tells GDB to look there for source files.
6908 if test -r ${srcdir}/.gdbinit ; then
6911 *) cat > ./.gdbinit <<EOF
6915 source ${srcdir}/.gdbinit
6921 # Make sure that the compiler is able to generate an executable. If it
6922 # can't, we are probably in trouble. We don't care whether we can run the
6923 # executable--we might be using a cross compiler--we only care whether it
6924 # can be created. At this point the main configure script has set CC.
6926 echo "int main () { return 0; }" > conftest.c
6927 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6928 if test $? = 0 ; then
6929 if test -s conftest || test -s conftest.exe ; then
6935 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6936 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6943 # Decide which environment variable is used to find dynamic libraries.
6945 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6946 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6947 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6948 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6951 # On systems where the dynamic library environment variable is PATH,
6952 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6953 # built executables to PATH.
6954 if test "$RPATH_ENVVAR" = PATH; then
6955 GCC_SHLIB_SUBDIR=/shlib
6960 # Adjust the toplevel makefile according to whether bootstrap was selected.
6961 case $enable_bootstrap in
6963 bootstrap_suffix=bootstrap
6964 BUILD_CONFIG=bootstrap-debug
6967 bootstrap_suffix=no-bootstrap
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6973 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6976 # Check whether --with-build-config was given.
6977 if test "${with_build_config+set}" = set; then :
6978 withval=$with_build_config; case $with_build_config in
6979 yes) with_build_config= ;;
6980 no) with_build_config= BUILD_CONFIG= ;;
6985 if test "x${with_build_config}" != x; then
6986 BUILD_CONFIG=$with_build_config
6988 case $BUILD_CONFIG in
6990 if echo "int f (void) { return 0; }" > conftest.c &&
6991 ${CC} -c conftest.c &&
6992 mv conftest.o conftest.o.g0 &&
6993 ${CC} -c -g conftest.c &&
6994 mv conftest.o conftest.o.g &&
6995 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7000 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7005 $as_echo "$BUILD_CONFIG" >&6; }
7008 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7010 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7011 # Check whether --enable-vtable-verify was given.
7012 if test "${enable_vtable_verify+set}" = set; then :
7013 enableval=$enable_vtable_verify; case "$enableval" in
7014 yes) enable_vtable_verify=yes ;;
7015 no) enable_vtable_verify=no ;;
7016 *) enable_vtable_verify=no;;
7019 enable_vtable_verify=no
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7023 $as_echo "$enable_vtable_verify" >&6; }
7025 # Record target_configdirs and the configure arguments for target and
7026 # build configuration in Makefile.
7027 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7028 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7029 bootstrap_fixincludes=no
7031 # If we are building libgomp, bootstrap it.
7032 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7033 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7036 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7037 # or bootstrap-ubsan, bootstrap it.
7038 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7039 case "$BUILD_CONFIG" in
7040 *bootstrap-asan* | *bootstrap-ubsan* )
7041 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7042 bootstrap_fixincludes=yes
7047 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7048 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7049 test "$enable_vtable_verify" != no; then
7050 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7053 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7055 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7056 case "$BUILD_CONFIG" in
7058 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7063 # Determine whether gdb needs tk/tcl or not.
7064 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7065 # and in that case we want gdb to be built without tk. Ugh!
7066 # In fact I believe gdb is the *only* package directly dependent on tk,
7067 # so we should be able to put the 'maybe's in unconditionally and
7068 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7069 # 100% sure that that's safe though.
7071 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7072 case "$enable_gdbtk" in
7076 GDB_TK="${gdb_tk}" ;;
7078 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7079 # distro. Eventually someone will fix this and move Insight, nee
7080 # gdbtk to a separate directory.
7081 if test -d ${srcdir}/gdb/gdbtk ; then
7088 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7089 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7091 # Strip out unwanted targets.
7093 # While at that, we remove Makefiles if we were started for recursive
7094 # configuration, so that the top-level Makefile reconfigures them,
7095 # like we used to do when configure itself was recursive.
7097 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7098 # but now we're fixing up the Makefile ourselves with the additional
7099 # commands passed to AC_CONFIG_FILES. Use separate variables
7100 # extrasub-{build,host,target} not because there is any reason to split
7101 # the substitutions up that way, but only to remain below the limit of
7102 # 99 commands in a script, for HP-UX sed.
7103 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7105 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7106 yes:yes:*\ gold\ *:*,c++,*) ;;
7107 yes:yes:*\ gold\ *:*)
7108 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7113 for module in ${build_configdirs} ; do
7114 if test -z "${no_recursion}" \
7115 && test -f ${build_subdir}/${module}/Makefile; then
7116 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7117 rm -f ${build_subdir}/${module}/Makefile
7119 extrasub_build="$extrasub_build
7120 /^@if build-$module\$/d
7121 /^@endif build-$module\$/d
7122 /^@if build-$module-$bootstrap_suffix\$/d
7123 /^@endif build-$module-$bootstrap_suffix\$/d"
7126 for module in ${configdirs} ; do
7127 if test -z "${no_recursion}"; then
7128 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7129 if test -f ${file}; then
7130 echo 1>&2 "*** removing ${file} to force reconfigure"
7135 case ${module},${bootstrap_fixincludes} in
7136 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7137 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7139 extrasub_host="$extrasub_host
7141 /^@endif $module\$/d
7142 /^@if $module-$host_bootstrap_suffix\$/d
7143 /^@endif $module-$host_bootstrap_suffix\$/d"
7146 for module in ${target_configdirs} ; do
7147 if test -z "${no_recursion}" \
7148 && test -f ${target_subdir}/${module}/Makefile; then
7149 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7150 rm -f ${target_subdir}/${module}/Makefile
7153 # We only bootstrap target libraries listed in bootstrap_target_libs.
7154 case $bootstrap_target_libs in
7155 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7156 *) target_bootstrap_suffix=no-bootstrap ;;
7159 extrasub_target="$extrasub_target
7160 /^@if target-$module\$/d
7161 /^@endif target-$module\$/d
7162 /^@if target-$module-$target_bootstrap_suffix\$/d
7163 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7166 # Do the final fixup along with target modules.
7167 extrasub_target="$extrasub_target
7168 /^@if /,/^@endif /d"
7170 # Create the serialization dependencies. This uses a temporary file.
7172 # Check whether --enable-serial-configure was given.
7173 if test "${enable_serial_configure+set}" = set; then :
7174 enableval=$enable_serial_configure;
7178 case ${enable_serial_configure} in
7180 enable_serial_build_configure=yes
7181 enable_serial_host_configure=yes
7182 enable_serial_target_configure=yes
7186 # These force 'configure's to be done one at a time, to avoid problems
7187 # with contention over a shared config.cache.
7189 echo '# serdep.tmp' > serdep.tmp
7191 test "x${enable_serial_build_configure}" = xyes &&
7192 for item in ${build_configdirs} ; do
7195 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7200 test "x${enable_serial_host_configure}" = xyes &&
7201 for item in ${configdirs} ; do
7204 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7209 test "x${enable_serial_target_configure}" = xyes &&
7210 for item in ${target_configdirs} ; do
7213 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7217 serialization_dependencies=serdep.tmp
7220 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7221 # target, nonopt, and variable assignments. These are the ones we
7222 # might not want to pass down to subconfigures. The exception being
7223 # --cache-file=/dev/null, which is used to turn off the use of cache
7224 # files altogether, and which should be passed on to subconfigures.
7225 # Also strip program-prefix, program-suffix, and program-transform-name,
7226 # so that we can pass down a consistent program-transform-name.
7231 eval "set -- $ac_configure_args"
7234 if test X"$skip_next" = X"yes"; then
7238 if test X"$keep_next" = X"yes"; then
7241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7243 baseargs="$baseargs '$ac_arg'"
7244 tbaseargs="$tbaseargs '$ac_arg'"
7249 # Handle separated arguments. Based on the logic generated by
7252 *=* | --config-cache | -C | -disable-* | --disable-* \
7253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7255 | -with-* | --with-* | -without-* | --without-* | --x)
7269 --with-* | --without-*)
7270 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7274 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7277 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7286 mpc | mpfr | gmp | isl)
7287 # If we're processing --with-$lib, --with-$lib-include or
7288 # --with-$lib-lib, for one of the libs above, and target is
7289 # different from host, don't pass the current argument to any
7290 # target library's configure.
7291 if test x$is_cross_compiler = xyes; then
7300 --cache-file=/dev/null | \
7301 -cache-file=/dev/null )
7302 # Handled here to avoid the test to skip args below.
7303 baseargs="$baseargs '$ac_arg'"
7304 tbaseargs="$tbaseargs '$ac_arg'"
7305 # Assert: $separate_arg should always be no.
7306 keep_next=$separate_arg
7322 -program-prefix* | \
7323 -program-suffix* | \
7324 -program-transform-name* )
7325 skip_next=$separate_arg
7329 # An option. Add it.
7332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7334 baseargs="$baseargs '$ac_arg'"
7335 if test X"$skip_targ" = Xno; then
7336 tbaseargs="$tbaseargs '$ac_arg'"
7338 keep_next=$separate_arg
7341 # Either a variable assignment, or a nonopt (triplet). Don't
7342 # pass it down; let the Makefile handle this.
7347 # Remove the initial space we just introduced and, as these will be
7348 # expanded by make, quote '$'.
7349 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7351 # Add in --program-transform-name, after --program-prefix and
7352 # --program-suffix have been applied to it. Autoconf has already
7353 # doubled dollar signs and backslashes in program_transform_name; we want
7354 # the backslashes un-doubled, and then the entire thing wrapped in single
7355 # quotes, because this will be expanded first by make and then by the shell.
7356 # Also, because we want to override the logic in subdir configure scripts to
7357 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7358 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7359 ${program_transform_name}
7361 gcc_transform_name=`cat conftestsed.out`
7362 rm -f conftestsed.out
7363 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7364 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7365 if test "$silent" = yes; then
7366 baseargs="$baseargs --silent"
7367 tbaseargs="$tbaseargs --silent"
7369 baseargs="$baseargs --disable-option-checking"
7370 tbaseargs="$tbaseargs --disable-option-checking"
7372 # Record and document user additions to sub configure arguments.
7377 # For the build-side libraries, we just need to pretend we're native,
7378 # and not use the same cache file. Multilibs are neither needed nor
7379 # desired. We can't even use the same cache file for all build-side
7380 # libraries, as they're compiled differently; some with C, some with
7381 # C++ or with different feature-enabling options.
7382 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7384 # For host modules, accept cache file option, or specification as blank.
7385 case "${cache_file}" in
7387 cache_file_option="" ;;
7388 /* | [A-Za-z]:[\\/]* ) # absolute path
7389 cache_file_option="--cache-file=${cache_file}" ;;
7391 cache_file_option="--cache-file=../${cache_file}" ;;
7394 # Host dirs don't like to share a cache file either, horribly enough.
7395 # This seems to be due to autoconf 2.5x stupidity.
7396 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7398 target_configargs="$target_configargs ${tbaseargs}"
7400 # Passing a --with-cross-host argument lets the target libraries know
7401 # whether they are being built with a cross-compiler or being built
7402 # native. However, it would be better to use other mechanisms to make the
7403 # sorts of decisions they want to make on this basis. Please consider
7404 # this option to be deprecated. FIXME.
7405 if test x${is_cross_compiler} = xyes ; then
7406 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7409 # Special user-friendly check for native x86_64-linux build, if
7410 # multilib is not explicitly enabled.
7411 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7412 x86_64-*linux*:yes:$build:$build:)
7413 # Make sure we have a development environment that handles 32-bit
7415 echo "int main () { return 0; }" > conftest.c
7416 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7417 if test $? = 0 ; then
7418 if test -s conftest || test -s conftest.exe ; then
7423 if test x${dev64} != xyes ; then
7424 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
7429 # Default to --enable-multilib.
7430 if test x${enable_multilib} = x ; then
7431 target_configargs="--enable-multilib ${target_configargs}"
7434 # Pass --with-newlib if appropriate. Note that target_configdirs has
7435 # changed from the earlier setting of with_newlib.
7436 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7437 target_configargs="--with-newlib ${target_configargs}"
7440 # Different target subdirs use different values of certain variables
7441 # (notably CXX). Worse, multilibs use *lots* of different values.
7442 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7443 # it doesn't automatically accept command-line overrides of them.
7444 # This means it's not safe for target subdirs to share a cache file,
7445 # which is disgusting, but there you have it. Hopefully this can be
7446 # fixed in future. It's still worthwhile to use a cache file for each
7447 # directory. I think.
7449 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7450 # We need to pass --target, as newer autoconf's requires consistency
7451 # for target_alias and gcc doesn't manage it consistently.
7452 target_configargs="--cache-file=./config.cache ${target_configargs}"
7455 case " $target_configdirs " in
7457 case " $target_configargs " in
7458 *" --with-newlib "*)
7461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7465 # If we're not building GCC, don't discard standard headers.
7466 if test -d ${srcdir}/gcc; then
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7469 if test "${build}" != "${host}"; then
7470 # On Canadian crosses, CC_FOR_TARGET will have already been set
7471 # by `configure', so we won't have an opportunity to add -Bgcc/
7472 # to it. This is right: we don't want to search that directory
7473 # for binaries, but we want the header files in there, so add
7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7477 # Someone might think of using the pre-installed headers on
7478 # Canadian crosses, in case the installed compiler is not fully
7479 # compatible with the compiler being built. In this case, it
7480 # would be better to flag an error than risking having
7481 # incompatible object files being constructed. We can't
7482 # guarantee that an error will be flagged, but let's hope the
7483 # compiler will do it, when presented with incompatible header
7488 case "${target}-${is_cross_compiler}" in
7489 i[3456789]86-*-linux*-no)
7490 # Here host == target, so we don't need to build gcc,
7491 # so we don't want to discard standard headers.
7492 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7495 # If we're building newlib, use its generic headers last, but search
7496 # for any libc-related directories first (so make it the last -B
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7500 # If we're building libgloss, find the startup file, simulator library
7501 # and linker script.
7502 case " $target_configdirs " in
7504 # Look for startup file, simulator library and maybe linker script.
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7506 # Look for libnosys.a in case the target needs it.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7508 # Most targets have the linker script in the source directory.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7520 x86_64-*mingw* | *-w64-mingw*)
7521 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7522 # however, use a symlink named 'mingw' in ${prefix} .
7523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7526 # MinGW can't be handled as Cygwin above since it does not use newlib.
7527 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'
7531 # Allow the user to override the flags for
7532 # our build compiler if desired.
7533 if test x"${build}" = x"${host}" ; then
7534 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7535 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7536 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7539 # On Canadian crosses, we'll be searching the right directories for
7540 # the previously-installed cross compiler, so don't bother to add
7541 # flags for directories within the install tree of the compiler
7542 # being built; programs in there won't even run.
7543 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7544 # Search for pre-installed headers if nothing else fits.
7545 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7548 if test "x${use_gnu_ld}" = x &&
7549 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7550 # Arrange for us to find uninstalled linker scripts.
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7554 # Search for other target-specific linker scripts and such.
7557 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7561 # Makefile fragments.
7562 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7564 eval fragval=\$$frag
7565 if test $fragval != /dev/null; then
7566 eval $frag=${srcdir}/$fragval
7574 # Miscellanea: directories, flags, etc.
7583 # Build module lists & subconfigure args.
7587 # Host module lists & subconfigure args.
7592 # Target module lists & subconfigure args.
7613 # Generate default definitions for YACC, M4, LEX and other programs that run
7614 # on the build machine. These are used if the Makefile can't locate these
7615 # programs in objdir.
7616 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7618 for ac_prog in 'bison -y' byacc yacc
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_YACC+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$YACC"; then
7628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_YACC="$ac_prog"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 YACC=$ac_cv_prog_YACC
7648 if test -n "$YACC"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7650 $as_echo "$YACC" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7657 test -n "$YACC" && break
7659 test -n "$YACC" || YACC="$MISSING bison -y"
7661 case " $build_configdirs " in
7662 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7665 for ac_prog in bison
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_BISON+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$BISON"; then
7675 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_BISON="$ac_prog"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 BISON=$ac_cv_prog_BISON
7695 if test -n "$BISON"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7697 $as_echo "$BISON" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7704 test -n "$BISON" && break
7706 test -n "$BISON" || BISON="$MISSING bison"
7708 case " $build_configdirs " in
7709 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7712 for ac_prog in gm4 gnum4 m4
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_M4+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7721 if test -n "$M4"; then
7722 ac_cv_prog_M4="$M4" # Let the user override the test.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_M4="$ac_prog"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 if test -n "$M4"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7744 $as_echo "$M4" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7751 test -n "$M4" && break
7753 test -n "$M4" || M4="$MISSING m4"
7755 case " $build_configdirs " in
7756 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7759 for ac_prog in flex lex
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_LEX+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -n "$LEX"; then
7769 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_LEX="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 if test -n "$LEX"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7791 $as_echo "$LEX" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 test -n "$LEX" && break
7800 test -n "$LEX" || LEX="$MISSING flex"
7802 case " $build_configdirs " in
7803 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7804 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_FLEX+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$FLEX"; then
7817 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_FLEX="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 FLEX=$ac_cv_prog_FLEX
7837 if test -n "$FLEX"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7839 $as_echo "$FLEX" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$FLEX" && break
7848 test -n "$FLEX" || FLEX="$MISSING flex"
7850 case " $build_configdirs " in
7851 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854 for ac_prog in makeinfo
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7863 if test -n "$MAKEINFO"; then
7864 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_MAKEINFO="$ac_prog"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 MAKEINFO=$ac_cv_prog_MAKEINFO
7884 if test -n "$MAKEINFO"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7886 $as_echo "$MAKEINFO" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7893 test -n "$MAKEINFO" && break
7895 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7897 case " $build_configdirs " in
7898 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7901 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7902 # higher, else we use the "missing" dummy.
7903 if ${MAKEINFO} --version \
7904 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7907 MAKEINFO="$MISSING makeinfo"
7913 # FIXME: expect and dejagnu may become build tools?
7915 for ac_prog in expect
7917 # Extract the first word of "$ac_prog", so it can be a program name with args.
7918 set dummy $ac_prog; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7924 if test -n "$EXPECT"; then
7925 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7934 ac_cv_prog_EXPECT="$ac_prog"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 EXPECT=$ac_cv_prog_EXPECT
7945 if test -n "$EXPECT"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7947 $as_echo "$EXPECT" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7954 test -n "$EXPECT" && break
7956 test -n "$EXPECT" || EXPECT="expect"
7958 case " $configdirs " in
7960 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7964 for ac_prog in runtest
7966 # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7973 if test -n "$RUNTEST"; then
7974 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_prog_RUNTEST="$ac_prog"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 RUNTEST=$ac_cv_prog_RUNTEST
7994 if test -n "$RUNTEST"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7996 $as_echo "$RUNTEST" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8003 test -n "$RUNTEST" && break
8005 test -n "$RUNTEST" || RUNTEST="runtest"
8007 case " $configdirs " in
8009 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8016 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8017 ncn_target_tool_prefix=
8018 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8022 if test -n "$AR"; then
8024 elif test -n "$ac_cv_prog_AR"; then
8028 if test -n "$ac_cv_prog_AR"; then
8029 for ncn_progname in ar; do
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031 set dummy ${ncn_progname}; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_prog_AR="${ncn_progname}"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8070 for ncn_progname in ar; do
8071 if test -n "$ncn_tool_prefix"; then
8072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_AR+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8079 if test -n "$AR"; then
8080 ac_cv_prog_AR="$AR" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 if test -n "$AR"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8102 $as_echo "$AR" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112 set dummy ${ncn_progname}; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AR+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$AR"; then
8119 ac_cv_prog_AR="$AR" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_AR="${ncn_progname}"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 if test -n "$AR"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141 $as_echo "$AR" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 test -n "$ac_cv_prog_AR" && break
8152 if test -z "$ac_cv_prog_AR" ; then
8154 if test $build = $host ; then
8157 AR="${ncn_tool_prefix}$2"
8163 if test -n "$AS"; then
8165 elif test -n "$ac_cv_prog_AS"; then
8169 if test -n "$ac_cv_prog_AS"; then
8170 for ncn_progname in as; do
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AS="${ncn_progname}"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 if test -n "$AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201 $as_echo "$AS" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8211 for ncn_progname in as; do
8212 if test -n "$ncn_tool_prefix"; then
8213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8214 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_AS+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8220 if test -n "$AS"; then
8221 ac_cv_prog_AS="$AS" # Let the user override the test.
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 if test -n "$AS"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8243 $as_echo "$AS" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253 set dummy ${ncn_progname}; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_AS+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8259 if test -n "$AS"; then
8260 ac_cv_prog_AS="$AS" # Let the user override the test.
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_AS="${ncn_progname}"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 if test -n "$AS"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8282 $as_echo "$AS" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8290 test -n "$ac_cv_prog_AS" && break
8293 if test -z "$ac_cv_prog_AS" ; then
8295 if test $build = $host ; then
8298 AS="${ncn_tool_prefix}$2"
8304 if test -n "$DLLTOOL"; then
8305 ac_cv_prog_DLLTOOL=$DLLTOOL
8306 elif test -n "$ac_cv_prog_DLLTOOL"; then
8307 DLLTOOL=$ac_cv_prog_DLLTOOL
8310 if test -n "$ac_cv_prog_DLLTOOL"; then
8311 for ncn_progname in dlltool; do
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_progname}; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_DLLTOOL="${ncn_progname}"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 DLLTOOL=$ac_cv_prog_DLLTOOL
8340 if test -n "$DLLTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342 $as_echo "$DLLTOOL" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8352 for ncn_progname in dlltool; do
8353 if test -n "$ncn_tool_prefix"; then
8354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$DLLTOOL"; then
8362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 DLLTOOL=$ac_cv_prog_DLLTOOL
8382 if test -n "$DLLTOOL"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8384 $as_echo "$DLLTOOL" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8392 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394 set dummy ${ncn_progname}; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 if test -n "$DLLTOOL"; then
8401 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_prog_DLLTOOL="${ncn_progname}"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 DLLTOOL=$ac_cv_prog_DLLTOOL
8421 if test -n "$DLLTOOL"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8423 $as_echo "$DLLTOOL" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8431 test -n "$ac_cv_prog_DLLTOOL" && break
8434 if test -z "$ac_cv_prog_DLLTOOL" ; then
8436 if test $build = $host ; then
8439 DLLTOOL="${ncn_tool_prefix}$2"
8445 if test -n "$LD"; then
8447 elif test -n "$ac_cv_prog_LD"; then
8451 if test -n "$ac_cv_prog_LD"; then
8452 for ncn_progname in ld; do
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_progname}; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_LD="${ncn_progname}"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 if test -n "$LD"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483 $as_echo "$LD" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8493 for ncn_progname in ld; do
8494 if test -n "$ncn_tool_prefix"; then
8495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_prog_LD+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8502 if test -n "$LD"; then
8503 ac_cv_prog_LD="$LD" # Let the user override the test.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 if test -n "$LD"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8525 $as_echo "$LD" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8533 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535 set dummy ${ncn_progname}; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_LD+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8541 if test -n "$LD"; then
8542 ac_cv_prog_LD="$LD" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_prog_LD="${ncn_progname}"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 if test -n "$LD"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8564 $as_echo "$LD" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8572 test -n "$ac_cv_prog_LD" && break
8575 if test -z "$ac_cv_prog_LD" ; then
8577 if test $build = $host ; then
8580 LD="${ncn_tool_prefix}$2"
8586 if test -n "$LIPO"; then
8587 ac_cv_prog_LIPO=$LIPO
8588 elif test -n "$ac_cv_prog_LIPO"; then
8589 LIPO=$ac_cv_prog_LIPO
8592 if test -n "$ac_cv_prog_LIPO"; then
8593 for ncn_progname in lipo; do
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_LIPO="${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 LIPO=$ac_cv_prog_LIPO
8622 if test -n "$LIPO"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624 $as_echo "$LIPO" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8634 for ncn_progname in lipo; do
8635 if test -n "$ncn_tool_prefix"; then
8636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8637 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if test "${ac_cv_prog_LIPO+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8643 if test -n "$LIPO"; then
8644 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 LIPO=$ac_cv_prog_LIPO
8664 if test -n "$LIPO"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8666 $as_echo "$LIPO" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8674 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676 set dummy ${ncn_progname}; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_LIPO+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$LIPO"; then
8683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_LIPO="${ncn_progname}"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 LIPO=$ac_cv_prog_LIPO
8703 if test -n "$LIPO"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8705 $as_echo "$LIPO" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8713 test -n "$ac_cv_prog_LIPO" && break
8716 if test -z "$ac_cv_prog_LIPO" ; then
8718 if test $build = $host ; then
8721 LIPO="${ncn_tool_prefix}$2"
8727 if test -n "$NM"; then
8729 elif test -n "$ac_cv_prog_NM"; then
8733 if test -n "$ac_cv_prog_NM"; then
8734 for ncn_progname in nm; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_NM="${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 if test -n "$NM"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765 $as_echo "$NM" >&6; }
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8775 for ncn_progname in nm; do
8776 if test -n "$ncn_tool_prefix"; then
8777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8778 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if test "${ac_cv_prog_NM+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8784 if test -n "$NM"; then
8785 ac_cv_prog_NM="$NM" # Let the user override the test.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 if test -n "$NM"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8807 $as_echo "$NM" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8815 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817 set dummy ${ncn_progname}; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_prog_NM+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8823 if test -n "$NM"; then
8824 ac_cv_prog_NM="$NM" # Let the user override the test.
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833 ac_cv_prog_NM="${ncn_progname}"
8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 if test -n "$NM"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8846 $as_echo "$NM" >&6; }
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8854 test -n "$ac_cv_prog_NM" && break
8857 if test -z "$ac_cv_prog_NM" ; then
8859 if test $build = $host ; then
8862 NM="${ncn_tool_prefix}$2"
8868 if test -n "$RANLIB"; then
8869 ac_cv_prog_RANLIB=$RANLIB
8870 elif test -n "$ac_cv_prog_RANLIB"; then
8871 RANLIB=$ac_cv_prog_RANLIB
8874 if test -n "$ac_cv_prog_RANLIB"; then
8875 for ncn_progname in ranlib; do
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_RANLIB="${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 RANLIB=$ac_cv_prog_RANLIB
8904 if test -n "$RANLIB"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906 $as_echo "$RANLIB" >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8916 for ncn_progname in ranlib; do
8917 if test -n "$ncn_tool_prefix"; then
8918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8919 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8925 if test -n "$RANLIB"; then
8926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 RANLIB=$ac_cv_prog_RANLIB
8946 if test -n "$RANLIB"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8948 $as_echo "$RANLIB" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8956 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8958 set dummy ${ncn_progname}; ac_word=$2
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 $as_echo_n "checking for $ac_word... " >&6; }
8961 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8964 if test -n "$RANLIB"; then
8965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 test -z "$as_dir" && as_dir=.
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8974 ac_cv_prog_RANLIB="${ncn_progname}"
8975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 RANLIB=$ac_cv_prog_RANLIB
8985 if test -n "$RANLIB"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8987 $as_echo "$RANLIB" >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8995 test -n "$ac_cv_prog_RANLIB" && break
8998 if test -z "$ac_cv_prog_RANLIB" ; then
9004 if test -n "$STRIP"; then
9005 ac_cv_prog_STRIP=$STRIP
9006 elif test -n "$ac_cv_prog_STRIP"; then
9007 STRIP=$ac_cv_prog_STRIP
9010 if test -n "$ac_cv_prog_STRIP"; then
9011 for ncn_progname in strip; do
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_STRIP="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 STRIP=$ac_cv_prog_STRIP
9040 if test -n "$STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042 $as_echo "$STRIP" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9052 for ncn_progname in strip; do
9053 if test -n "$ncn_tool_prefix"; then
9054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9055 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_prog_STRIP+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 if test -n "$STRIP"; then
9062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 STRIP=$ac_cv_prog_STRIP
9082 if test -n "$STRIP"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9084 $as_echo "$STRIP" >&6; }
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9092 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9094 set dummy ${ncn_progname}; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if test "${ac_cv_prog_STRIP+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9100 if test -n "$STRIP"; then
9101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110 ac_cv_prog_STRIP="${ncn_progname}"
9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 STRIP=$ac_cv_prog_STRIP
9121 if test -n "$STRIP"; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9123 $as_echo "$STRIP" >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }
9131 test -n "$ac_cv_prog_STRIP" && break
9134 if test -z "$ac_cv_prog_STRIP" ; then
9140 if test -n "$WINDRES"; then
9141 ac_cv_prog_WINDRES=$WINDRES
9142 elif test -n "$ac_cv_prog_WINDRES"; then
9143 WINDRES=$ac_cv_prog_WINDRES
9146 if test -n "$ac_cv_prog_WINDRES"; then
9147 for ncn_progname in windres; do
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_WINDRES="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 WINDRES=$ac_cv_prog_WINDRES
9176 if test -n "$WINDRES"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178 $as_echo "$WINDRES" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9188 for ncn_progname in windres; do
9189 if test -n "$ncn_tool_prefix"; then
9190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9197 if test -n "$WINDRES"; then
9198 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 WINDRES=$ac_cv_prog_WINDRES
9218 if test -n "$WINDRES"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9220 $as_echo "$WINDRES" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9228 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230 set dummy ${ncn_progname}; ac_word=$2
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232 $as_echo_n "checking for $ac_word... " >&6; }
9233 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9236 if test -n "$WINDRES"; then
9237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_prog_WINDRES="${ncn_progname}"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 WINDRES=$ac_cv_prog_WINDRES
9257 if test -n "$WINDRES"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9259 $as_echo "$WINDRES" >&6; }
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9267 test -n "$ac_cv_prog_WINDRES" && break
9270 if test -z "$ac_cv_prog_WINDRES" ; then
9272 if test $build = $host ; then
9275 WINDRES="${ncn_tool_prefix}$2"
9281 if test -n "$WINDMC"; then
9282 ac_cv_prog_WINDMC=$WINDMC
9283 elif test -n "$ac_cv_prog_WINDMC"; then
9284 WINDMC=$ac_cv_prog_WINDMC
9287 if test -n "$ac_cv_prog_WINDMC"; then
9288 for ncn_progname in windmc; do
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290 set dummy ${ncn_progname}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_prog_WINDMC="${ncn_progname}"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9316 WINDMC=$ac_cv_prog_WINDMC
9317 if test -n "$WINDMC"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319 $as_echo "$WINDMC" >&6; }
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9329 for ncn_progname in windmc; do
9330 if test -n "$ncn_tool_prefix"; then
9331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
9338 if test -n "$WINDMC"; then
9339 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 WINDMC=$ac_cv_prog_WINDMC
9359 if test -n "$WINDMC"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9361 $as_echo "$WINDMC" >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9369 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371 set dummy ${ncn_progname}; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9377 if test -n "$WINDMC"; then
9378 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_prog_WINDMC="${ncn_progname}"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 WINDMC=$ac_cv_prog_WINDMC
9398 if test -n "$WINDMC"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9400 $as_echo "$WINDMC" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9408 test -n "$ac_cv_prog_WINDMC" && break
9411 if test -z "$ac_cv_prog_WINDMC" ; then
9413 if test $build = $host ; then
9416 WINDMC="${ncn_tool_prefix}$2"
9422 if test -n "$OBJCOPY"; then
9423 ac_cv_prog_OBJCOPY=$OBJCOPY
9424 elif test -n "$ac_cv_prog_OBJCOPY"; then
9425 OBJCOPY=$ac_cv_prog_OBJCOPY
9428 if test -n "$ac_cv_prog_OBJCOPY"; then
9429 for ncn_progname in objcopy; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_progname}; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJCOPY="${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 OBJCOPY=$ac_cv_prog_OBJCOPY
9458 if test -n "$OBJCOPY"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460 $as_echo "$OBJCOPY" >&6; }
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9470 for ncn_progname in objcopy; do
9471 if test -n "$ncn_tool_prefix"; then
9472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9479 if test -n "$OBJCOPY"; then
9480 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 OBJCOPY=$ac_cv_prog_OBJCOPY
9500 if test -n "$OBJCOPY"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9502 $as_echo "$OBJCOPY" >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9510 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512 set dummy ${ncn_progname}; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9518 if test -n "$OBJCOPY"; then
9519 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_prog_OBJCOPY="${ncn_progname}"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 OBJCOPY=$ac_cv_prog_OBJCOPY
9539 if test -n "$OBJCOPY"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9541 $as_echo "$OBJCOPY" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9549 test -n "$ac_cv_prog_OBJCOPY" && break
9552 if test -z "$ac_cv_prog_OBJCOPY" ; then
9554 if test $build = $host ; then
9557 OBJCOPY="${ncn_tool_prefix}$2"
9563 if test -n "$OBJDUMP"; then
9564 ac_cv_prog_OBJDUMP=$OBJDUMP
9565 elif test -n "$ac_cv_prog_OBJDUMP"; then
9566 OBJDUMP=$ac_cv_prog_OBJDUMP
9569 if test -n "$ac_cv_prog_OBJDUMP"; then
9570 for ncn_progname in objdump; do
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572 set dummy ${ncn_progname}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_OBJDUMP="${ncn_progname}"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 OBJDUMP=$ac_cv_prog_OBJDUMP
9599 if test -n "$OBJDUMP"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601 $as_echo "$OBJDUMP" >&6; }
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9611 for ncn_progname in objdump; do
9612 if test -n "$ncn_tool_prefix"; then
9613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
9620 if test -n "$OBJDUMP"; then
9621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9630 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 OBJDUMP=$ac_cv_prog_OBJDUMP
9641 if test -n "$OBJDUMP"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9643 $as_echo "$OBJDUMP" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9651 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9659 if test -n "$OBJDUMP"; then
9660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669 ac_cv_prog_OBJDUMP="${ncn_progname}"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 OBJDUMP=$ac_cv_prog_OBJDUMP
9680 if test -n "$OBJDUMP"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9682 $as_echo "$OBJDUMP" >&6; }
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9690 test -n "$ac_cv_prog_OBJDUMP" && break
9693 if test -z "$ac_cv_prog_OBJDUMP" ; then
9695 if test $build = $host ; then
9698 OBJDUMP="${ncn_tool_prefix}$2"
9704 if test -n "$READELF"; then
9705 ac_cv_prog_READELF=$READELF
9706 elif test -n "$ac_cv_prog_READELF"; then
9707 READELF=$ac_cv_prog_READELF
9710 if test -n "$ac_cv_prog_READELF"; then
9711 for ncn_progname in readelf; do
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 READELF=$ac_cv_prog_READELF
9740 if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742 $as_echo "$READELF" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9752 for ncn_progname in readelf; do
9753 if test -n "$ncn_tool_prefix"; then
9754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_prog_READELF+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9761 if test -n "$READELF"; then
9762 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 READELF=$ac_cv_prog_READELF
9782 if test -n "$READELF"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9784 $as_echo "$READELF" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9792 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9794 set dummy ${ncn_progname}; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if test "${ac_cv_prog_READELF+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$READELF"; then
9801 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_READELF="${ncn_progname}"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 READELF=$ac_cv_prog_READELF
9821 if test -n "$READELF"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9823 $as_echo "$READELF" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9831 test -n "$ac_cv_prog_READELF" && break
9834 if test -z "$ac_cv_prog_READELF" ; then
9836 if test $build = $host ; then
9839 READELF="${ncn_tool_prefix}$2"
9850 # Check whether --with-build-time-tools was given.
9851 if test "${with_build_time_tools+set}" = set; then :
9852 withval=$with_build_time_tools; case x"$withval" in
9855 with_build_time_tools=
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9857 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9861 with_build_time_tools=
9867 if test -n "$CC_FOR_TARGET"; then
9868 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9869 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9870 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9873 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9874 for ncn_progname in cc gcc; do
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9882 if test -n "$CC_FOR_TARGET"; then
9883 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9903 if test -n "$CC_FOR_TARGET"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9905 $as_echo "$CC_FOR_TARGET" >&6; }
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9915 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9916 for ncn_progname in cc gcc; do
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9919 if test -x $with_build_time_tools/${ncn_progname}; then
9920 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9922 $as_echo "yes" >&6; }
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9931 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9932 for ncn_progname in cc gcc; do
9933 if test -n "$ncn_target_tool_prefix"; then
9934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9941 if test -n "$CC_FOR_TARGET"; then
9942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9962 if test -n "$CC_FOR_TARGET"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9964 $as_echo "$CC_FOR_TARGET" >&6; }
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9972 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9974 set dummy ${ncn_progname}; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9980 if test -n "$CC_FOR_TARGET"; then
9981 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10001 if test -n "$CC_FOR_TARGET"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10003 $as_echo "$CC_FOR_TARGET" >&6; }
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10011 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10015 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10017 if test $build = $target ; then
10020 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10023 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10028 if test -n "$CXX_FOR_TARGET"; then
10029 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10030 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10031 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10034 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10035 for ncn_progname in c++ g++ cxx gxx; do
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037 set dummy ${ncn_progname}; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10043 if test -n "$CXX_FOR_TARGET"; then
10044 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10064 if test -n "$CXX_FOR_TARGET"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10066 $as_echo "$CXX_FOR_TARGET" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10076 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10077 for ncn_progname in c++ g++ cxx gxx; do
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10080 if test -x $with_build_time_tools/${ncn_progname}; then
10081 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10083 $as_echo "yes" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10092 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10093 for ncn_progname in c++ g++ cxx gxx; do
10094 if test -n "$ncn_target_tool_prefix"; then
10095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10102 if test -n "$CXX_FOR_TARGET"; then
10103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10123 if test -n "$CXX_FOR_TARGET"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10125 $as_echo "$CXX_FOR_TARGET" >&6; }
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10133 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10135 set dummy ${ncn_progname}; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10141 if test -n "$CXX_FOR_TARGET"; then
10142 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10151 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10162 if test -n "$CXX_FOR_TARGET"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10164 $as_echo "$CXX_FOR_TARGET" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10172 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10176 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10177 set dummy c++ g++ cxx gxx
10178 if test $build = $target ; then
10179 CXX_FOR_TARGET="$2"
10181 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10184 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10189 if test -n "$GCC_FOR_TARGET"; then
10190 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10191 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10192 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10195 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10196 for ncn_progname in gcc; do
10197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10198 set dummy ${ncn_progname}; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10204 if test -n "$GCC_FOR_TARGET"; then
10205 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10225 if test -n "$GCC_FOR_TARGET"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10227 $as_echo "$GCC_FOR_TARGET" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10237 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10238 for ncn_progname in gcc; do
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10241 if test -x $with_build_time_tools/${ncn_progname}; then
10242 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10244 $as_echo "yes" >&6; }
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10253 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10254 for ncn_progname in gcc; do
10255 if test -n "$ncn_target_tool_prefix"; then
10256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10263 if test -n "$GCC_FOR_TARGET"; then
10264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10284 if test -n "$GCC_FOR_TARGET"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10286 $as_echo "$GCC_FOR_TARGET" >&6; }
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10294 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10296 set dummy ${ncn_progname}; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10302 if test -n "$GCC_FOR_TARGET"; then
10303 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10323 if test -n "$GCC_FOR_TARGET"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10325 $as_echo "$GCC_FOR_TARGET" >&6; }
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10333 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10337 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10338 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10340 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10345 if test -n "$GFORTRAN_FOR_TARGET"; then
10346 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10347 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10351 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10352 for ncn_progname in gfortran; do
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10381 if test -n "$GFORTRAN_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10383 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10393 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10394 for ncn_progname in gfortran; do
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10396 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10397 if test -x $with_build_time_tools/${ncn_progname}; then
10398 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10400 $as_echo "yes" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10410 for ncn_progname in gfortran; do
10411 if test -n "$ncn_target_tool_prefix"; then
10412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10413 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10419 if test -n "$GFORTRAN_FOR_TARGET"; then
10420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10440 if test -n "$GFORTRAN_FOR_TARGET"; then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10442 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10450 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10452 set dummy ${ncn_progname}; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10458 if test -n "$GFORTRAN_FOR_TARGET"; then
10459 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10468 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10479 if test -n "$GFORTRAN_FOR_TARGET"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10481 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10489 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10493 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10495 if test $build = $target ; then
10496 GFORTRAN_FOR_TARGET="$2"
10498 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10501 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10506 if test -n "$GOC_FOR_TARGET"; then
10507 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10508 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10509 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10513 for ncn_progname in gccgo; do
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515 set dummy ${ncn_progname}; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10521 if test -n "$GOC_FOR_TARGET"; then
10522 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10542 if test -n "$GOC_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10544 $as_echo "$GOC_FOR_TARGET" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10554 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10555 for ncn_progname in gccgo; do
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10557 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10558 if test -x $with_build_time_tools/${ncn_progname}; then
10559 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561 $as_echo "yes" >&6; }
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10570 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10571 for ncn_progname in gccgo; do
10572 if test -n "$ncn_target_tool_prefix"; then
10573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10574 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10580 if test -n "$GOC_FOR_TARGET"; then
10581 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10590 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10601 if test -n "$GOC_FOR_TARGET"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10603 $as_echo "$GOC_FOR_TARGET" >&6; }
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10611 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10613 set dummy ${ncn_progname}; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10619 if test -n "$GOC_FOR_TARGET"; then
10620 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10640 if test -n "$GOC_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10642 $as_echo "$GOC_FOR_TARGET" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10650 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10654 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10656 if test $build = $target ; then
10657 GOC_FOR_TARGET="$2"
10659 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10667 cat > conftest.c << \EOF
10672 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10673 have_gcc_for_target=yes
10675 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10676 have_gcc_for_target=no
10683 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10684 if test -n "$with_build_time_tools"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10686 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10687 if test -x $with_build_time_tools/ar; then
10688 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10689 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10691 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10696 elif test $build != $host && test $have_gcc_for_target = yes; then
10697 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10698 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10699 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10702 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10703 # Extract the first word of "ar", so it can be a program name with args.
10704 set dummy ar; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10710 case $AR_FOR_TARGET in
10712 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $gcc_cv_tool_dirs
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10734 if test -n "$AR_FOR_TARGET"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10736 $as_echo "$AR_FOR_TARGET" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10744 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10747 if test -n "$AR_FOR_TARGET"; then
10748 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10749 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10750 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10753 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10754 for ncn_progname in ar; do
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 if test -n "$AR_FOR_TARGET"; then
10763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10783 if test -n "$AR_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10785 $as_echo "$AR_FOR_TARGET" >&6; }
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10795 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10796 for ncn_progname in ar; do
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10799 if test -x $with_build_time_tools/${ncn_progname}; then
10800 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10802 $as_echo "yes" >&6; }
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10811 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10812 for ncn_progname in ar; do
10813 if test -n "$ncn_target_tool_prefix"; then
10814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10821 if test -n "$AR_FOR_TARGET"; then
10822 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10842 if test -n "$AR_FOR_TARGET"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10844 $as_echo "$AR_FOR_TARGET" >&6; }
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10852 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10860 if test -n "$AR_FOR_TARGET"; then
10861 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10881 if test -n "$AR_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883 $as_echo "$AR_FOR_TARGET" >&6; }
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10891 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10895 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10897 if test $build = $target ; then
10900 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10903 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10907 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10913 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10916 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10917 if test -x $with_build_time_tools/as; then
10918 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10919 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10921 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10928 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10929 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10932 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10933 # Extract the first word of "as", so it can be a program name with args.
10934 set dummy as; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 case $AS_FOR_TARGET in
10942 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $gcc_cv_tool_dirs
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10964 if test -n "$AS_FOR_TARGET"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10966 $as_echo "$AS_FOR_TARGET" >&6; }
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10974 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10977 if test -n "$AS_FOR_TARGET"; then
10978 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10979 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10980 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10983 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10984 for ncn_progname in as; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10992 if test -n "$AS_FOR_TARGET"; then
10993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11013 if test -n "$AS_FOR_TARGET"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11015 $as_echo "$AS_FOR_TARGET" >&6; }
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11025 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11026 for ncn_progname in as; do
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11029 if test -x $with_build_time_tools/${ncn_progname}; then
11030 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032 $as_echo "yes" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11041 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11042 for ncn_progname in as; do
11043 if test -n "$ncn_target_tool_prefix"; then
11044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11051 if test -n "$AS_FOR_TARGET"; then
11052 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11072 if test -n "$AS_FOR_TARGET"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11074 $as_echo "$AS_FOR_TARGET" >&6; }
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11082 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11084 set dummy ${ncn_progname}; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11090 if test -n "$AS_FOR_TARGET"; then
11091 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11111 if test -n "$AS_FOR_TARGET"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113 $as_echo "$AS_FOR_TARGET" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11125 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11127 if test $build = $target ; then
11130 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11133 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11137 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11143 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11144 if test -n "$with_build_time_tools"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11146 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11147 if test -x $with_build_time_tools/dlltool; then
11148 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11149 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11151 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11156 elif test $build != $host && test $have_gcc_for_target = yes; then
11157 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11158 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11159 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11162 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11163 # Extract the first word of "dlltool", so it can be a program name with args.
11164 set dummy dlltool; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11170 case $DLLTOOL_FOR_TARGET in
11172 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $gcc_cv_tool_dirs
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11194 if test -n "$DLLTOOL_FOR_TARGET"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11196 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11204 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11207 if test -n "$DLLTOOL_FOR_TARGET"; then
11208 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11209 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11210 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11213 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11214 for ncn_progname in dlltool; do
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11222 if test -n "$DLLTOOL_FOR_TARGET"; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11243 if test -n "$DLLTOOL_FOR_TARGET"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11245 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11255 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11256 for ncn_progname in dlltool; do
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11259 if test -x $with_build_time_tools/${ncn_progname}; then
11260 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 $as_echo "yes" >&6; }
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11271 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11272 for ncn_progname in dlltool; do
11273 if test -n "$ncn_target_tool_prefix"; then
11274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11281 if test -n "$DLLTOOL_FOR_TARGET"; then
11282 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11302 if test -n "$DLLTOOL_FOR_TARGET"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11304 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11312 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11320 if test -n "$DLLTOOL_FOR_TARGET"; then
11321 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11341 if test -n "$DLLTOOL_FOR_TARGET"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11351 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11355 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11357 if test $build = $target ; then
11358 DLLTOOL_FOR_TARGET="$2"
11360 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11367 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11373 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11374 if test -n "$with_build_time_tools"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11376 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11377 if test -x $with_build_time_tools/ld; then
11378 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11379 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11381 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11386 elif test $build != $host && test $have_gcc_for_target = yes; then
11387 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11388 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11389 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11392 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11393 # Extract the first word of "ld", so it can be a program name with args.
11394 set dummy ld; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 case $LD_FOR_TARGET in
11402 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $gcc_cv_tool_dirs
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11424 if test -n "$LD_FOR_TARGET"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11426 $as_echo "$LD_FOR_TARGET" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11434 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11437 if test -n "$LD_FOR_TARGET"; then
11438 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11439 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11440 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11443 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11444 for ncn_progname in ld; do
11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11446 set dummy ${ncn_progname}; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11452 if test -n "$LD_FOR_TARGET"; then
11453 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11473 if test -n "$LD_FOR_TARGET"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11475 $as_echo "$LD_FOR_TARGET" >&6; }
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11485 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11486 for ncn_progname in ld; do
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11489 if test -x $with_build_time_tools/${ncn_progname}; then
11490 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11501 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11502 for ncn_progname in ld; do
11503 if test -n "$ncn_target_tool_prefix"; then
11504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11511 if test -n "$LD_FOR_TARGET"; then
11512 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11532 if test -n "$LD_FOR_TARGET"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11534 $as_echo "$LD_FOR_TARGET" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11542 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11544 set dummy ${ncn_progname}; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11550 if test -n "$LD_FOR_TARGET"; then
11551 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11571 if test -n "$LD_FOR_TARGET"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573 $as_echo "$LD_FOR_TARGET" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11581 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11585 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11587 if test $build = $target ; then
11590 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11593 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11597 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11603 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11604 if test -n "$with_build_time_tools"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11606 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11607 if test -x $with_build_time_tools/lipo; then
11608 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11609 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11611 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11616 elif test $build != $host && test $have_gcc_for_target = yes; then
11617 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11618 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11619 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11622 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11623 # Extract the first word of "lipo", so it can be a program name with args.
11624 set dummy lipo; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11630 case $LIPO_FOR_TARGET in
11632 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $gcc_cv_tool_dirs
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11654 if test -n "$LIPO_FOR_TARGET"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11656 $as_echo "$LIPO_FOR_TARGET" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11664 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11667 if test -n "$LIPO_FOR_TARGET"; then
11668 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11669 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11670 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11673 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11674 for ncn_progname in lipo; do
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11682 if test -n "$LIPO_FOR_TARGET"; then
11683 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11703 if test -n "$LIPO_FOR_TARGET"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11705 $as_echo "$LIPO_FOR_TARGET" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11715 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11716 for ncn_progname in lipo; do
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11719 if test -x $with_build_time_tools/${ncn_progname}; then
11720 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11732 for ncn_progname in lipo; do
11733 if test -n "$ncn_target_tool_prefix"; then
11734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11741 if test -n "$LIPO_FOR_TARGET"; then
11742 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11762 if test -n "$LIPO_FOR_TARGET"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11764 $as_echo "$LIPO_FOR_TARGET" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11772 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11780 if test -n "$LIPO_FOR_TARGET"; then
11781 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11801 if test -n "$LIPO_FOR_TARGET"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803 $as_echo "$LIPO_FOR_TARGET" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11811 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11815 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11817 if test $build = $target ; then
11818 LIPO_FOR_TARGET="$2"
11820 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11827 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11833 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11834 if test -n "$with_build_time_tools"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11836 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11837 if test -x $with_build_time_tools/nm; then
11838 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11839 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11841 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11846 elif test $build != $host && test $have_gcc_for_target = yes; then
11847 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11848 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11849 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11852 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11853 # Extract the first word of "nm", so it can be a program name with args.
11854 set dummy nm; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11860 case $NM_FOR_TARGET in
11862 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $gcc_cv_tool_dirs
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11884 if test -n "$NM_FOR_TARGET"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11886 $as_echo "$NM_FOR_TARGET" >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11894 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11897 if test -n "$NM_FOR_TARGET"; then
11898 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11899 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11900 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11903 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11904 for ncn_progname in nm; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 if test -n "$NM_FOR_TARGET"; then
11913 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11933 if test -n "$NM_FOR_TARGET"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11935 $as_echo "$NM_FOR_TARGET" >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11945 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11946 for ncn_progname in nm; do
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11949 if test -x $with_build_time_tools/${ncn_progname}; then
11950 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11961 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11962 for ncn_progname in nm; do
11963 if test -n "$ncn_target_tool_prefix"; then
11964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11971 if test -n "$NM_FOR_TARGET"; then
11972 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11981 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11992 if test -n "$NM_FOR_TARGET"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11994 $as_echo "$NM_FOR_TARGET" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12002 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 if test -n "$NM_FOR_TARGET"; then
12011 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12031 if test -n "$NM_FOR_TARGET"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033 $as_echo "$NM_FOR_TARGET" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12041 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12045 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12047 if test $build = $target ; then
12050 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12053 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12057 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12063 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12064 if test -n "$with_build_time_tools"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12066 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12067 if test -x $with_build_time_tools/objcopy; then
12068 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12069 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12071 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12076 elif test $build != $host && test $have_gcc_for_target = yes; then
12077 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12078 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12079 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12082 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12083 # Extract the first word of "objcopy", so it can be a program name with args.
12084 set dummy objcopy; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12090 case $OBJCOPY_FOR_TARGET in
12092 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $gcc_cv_tool_dirs
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12114 if test -n "$OBJCOPY_FOR_TARGET"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12116 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12124 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12127 if test -n "$OBJCOPY_FOR_TARGET"; then
12128 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12129 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12130 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12133 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12134 for ncn_progname in objcopy; do
12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12142 if test -n "$OBJCOPY_FOR_TARGET"; then
12143 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12163 if test -n "$OBJCOPY_FOR_TARGET"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12165 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12175 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12176 for ncn_progname in objcopy; do
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12179 if test -x $with_build_time_tools/${ncn_progname}; then
12180 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12191 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12192 for ncn_progname in objcopy; do
12193 if test -n "$ncn_target_tool_prefix"; then
12194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12201 if test -n "$OBJCOPY_FOR_TARGET"; then
12202 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12222 if test -n "$OBJCOPY_FOR_TARGET"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12224 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12232 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12240 if test -n "$OBJCOPY_FOR_TARGET"; then
12241 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12261 if test -n "$OBJCOPY_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12263 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12275 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12277 if test $build = $target ; then
12278 OBJCOPY_FOR_TARGET="$2"
12280 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12287 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12293 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12294 if test -n "$with_build_time_tools"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12296 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12297 if test -x $with_build_time_tools/objdump; then
12298 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12299 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12301 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12306 elif test $build != $host && test $have_gcc_for_target = yes; then
12307 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12308 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12309 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12312 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12313 # Extract the first word of "objdump", so it can be a program name with args.
12314 set dummy objdump; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12320 case $OBJDUMP_FOR_TARGET in
12322 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $gcc_cv_tool_dirs
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12344 if test -n "$OBJDUMP_FOR_TARGET"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12346 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12354 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12359 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12360 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12363 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12364 for ncn_progname in objdump; do
12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12366 set dummy ${ncn_progname}; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12372 if test -n "$OBJDUMP_FOR_TARGET"; then
12373 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12393 if test -n "$OBJDUMP_FOR_TARGET"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12395 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12405 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12406 for ncn_progname in objdump; do
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12409 if test -x $with_build_time_tools/${ncn_progname}; then
12410 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12422 for ncn_progname in objdump; do
12423 if test -n "$ncn_target_tool_prefix"; then
12424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$OBJDUMP_FOR_TARGET"; then
12432 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12452 if test -n "$OBJDUMP_FOR_TARGET"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12454 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12462 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12464 set dummy ${ncn_progname}; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12470 if test -n "$OBJDUMP_FOR_TARGET"; then
12471 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12491 if test -n "$OBJDUMP_FOR_TARGET"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12493 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12501 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12505 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12507 if test $build = $target ; then
12508 OBJDUMP_FOR_TARGET="$2"
12510 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12513 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12517 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12523 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12524 if test -n "$with_build_time_tools"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12526 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12527 if test -x $with_build_time_tools/ranlib; then
12528 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12529 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12531 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12536 elif test $build != $host && test $have_gcc_for_target = yes; then
12537 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12538 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12539 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12542 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12543 # Extract the first word of "ranlib", so it can be a program name with args.
12544 set dummy ranlib; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12550 case $RANLIB_FOR_TARGET in
12552 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $gcc_cv_tool_dirs
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12574 if test -n "$RANLIB_FOR_TARGET"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12576 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12584 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12587 if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12589 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12590 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12593 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12594 for ncn_progname in ranlib; do
12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12596 set dummy ${ncn_progname}; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12602 if test -n "$RANLIB_FOR_TARGET"; then
12603 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12623 if test -n "$RANLIB_FOR_TARGET"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12625 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12635 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12636 for ncn_progname in ranlib; do
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12638 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12639 if test -x $with_build_time_tools/${ncn_progname}; then
12640 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12651 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12652 for ncn_progname in ranlib; do
12653 if test -n "$ncn_target_tool_prefix"; then
12654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12661 if test -n "$RANLIB_FOR_TARGET"; then
12662 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12671 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12682 if test -n "$RANLIB_FOR_TARGET"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12684 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12692 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12700 if test -n "$RANLIB_FOR_TARGET"; then
12701 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12721 if test -n "$RANLIB_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12723 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12731 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12735 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12737 if test $build = $target ; then
12738 RANLIB_FOR_TARGET="$2"
12740 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12743 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12747 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12753 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12754 if test -n "$with_build_time_tools"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12756 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12757 if test -x $with_build_time_tools/readelf; then
12758 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12759 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12761 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12766 elif test $build != $host && test $have_gcc_for_target = yes; then
12767 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12768 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12769 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12772 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12773 # Extract the first word of "readelf", so it can be a program name with args.
12774 set dummy readelf; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12780 case $READELF_FOR_TARGET in
12782 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $gcc_cv_tool_dirs
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12804 if test -n "$READELF_FOR_TARGET"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12806 $as_echo "$READELF_FOR_TARGET" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12814 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12817 if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12819 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12820 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12823 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12824 for ncn_progname in readelf; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 if test -n "$READELF_FOR_TARGET"; then
12833 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12853 if test -n "$READELF_FOR_TARGET"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12855 $as_echo "$READELF_FOR_TARGET" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12865 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12866 for ncn_progname in readelf; do
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12868 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12869 if test -x $with_build_time_tools/${ncn_progname}; then
12870 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12881 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12882 for ncn_progname in readelf; do
12883 if test -n "$ncn_target_tool_prefix"; then
12884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12885 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12891 if test -n "$READELF_FOR_TARGET"; then
12892 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12912 if test -n "$READELF_FOR_TARGET"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12914 $as_echo "$READELF_FOR_TARGET" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12922 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12924 set dummy ${ncn_progname}; ac_word=$2
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 $as_echo_n "checking for $ac_word... " >&6; }
12927 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12930 if test -n "$READELF_FOR_TARGET"; then
12931 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12951 if test -n "$READELF_FOR_TARGET"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12953 $as_echo "$READELF_FOR_TARGET" >&6; }
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12961 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12965 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12967 if test $build = $target ; then
12968 READELF_FOR_TARGET="$2"
12970 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12973 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12977 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12983 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12984 if test -n "$with_build_time_tools"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12986 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12987 if test -x $with_build_time_tools/strip; then
12988 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12989 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12991 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12996 elif test $build != $host && test $have_gcc_for_target = yes; then
12997 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12998 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12999 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13002 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13003 # Extract the first word of "strip", so it can be a program name with args.
13004 set dummy strip; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13010 case $STRIP_FOR_TARGET in
13012 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $gcc_cv_tool_dirs
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13034 if test -n "$STRIP_FOR_TARGET"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13036 $as_echo "$STRIP_FOR_TARGET" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13044 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13047 if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13049 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13050 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13053 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13054 for ncn_progname in strip; do
13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13062 if test -n "$STRIP_FOR_TARGET"; then
13063 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13083 if test -n "$STRIP_FOR_TARGET"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13085 $as_echo "$STRIP_FOR_TARGET" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13095 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13096 for ncn_progname in strip; do
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13098 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13099 if test -x $with_build_time_tools/${ncn_progname}; then
13100 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102 $as_echo "yes" >&6; }
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13111 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13112 for ncn_progname in strip; do
13113 if test -n "$ncn_target_tool_prefix"; then
13114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13115 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13121 if test -n "$STRIP_FOR_TARGET"; then
13122 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13142 if test -n "$STRIP_FOR_TARGET"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13144 $as_echo "$STRIP_FOR_TARGET" >&6; }
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13152 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13154 set dummy ${ncn_progname}; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13160 if test -n "$STRIP_FOR_TARGET"; then
13161 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13181 if test -n "$STRIP_FOR_TARGET"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13183 $as_echo "$STRIP_FOR_TARGET" >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13191 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13195 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13197 if test $build = $target ; then
13198 STRIP_FOR_TARGET="$2"
13200 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13207 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13213 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13214 if test -n "$with_build_time_tools"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13216 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13217 if test -x $with_build_time_tools/windres; then
13218 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13219 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13221 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13226 elif test $build != $host && test $have_gcc_for_target = yes; then
13227 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13228 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13229 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13232 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13233 # Extract the first word of "windres", so it can be a program name with args.
13234 set dummy windres; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13240 case $WINDRES_FOR_TARGET in
13242 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $gcc_cv_tool_dirs
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13264 if test -n "$WINDRES_FOR_TARGET"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13266 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13274 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13277 if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13279 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13280 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13283 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13284 for ncn_progname in windres; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13292 if test -n "$WINDRES_FOR_TARGET"; then
13293 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13313 if test -n "$WINDRES_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13315 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13325 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13326 for ncn_progname in windres; do
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13341 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13342 for ncn_progname in windres; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13351 if test -n "$WINDRES_FOR_TARGET"; then
13352 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13372 if test -n "$WINDRES_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13374 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13390 if test -n "$WINDRES_FOR_TARGET"; then
13391 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13411 if test -n "$WINDRES_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13413 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13421 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13425 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13427 if test $build = $target ; then
13428 WINDRES_FOR_TARGET="$2"
13430 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13433 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13437 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13443 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13444 if test -n "$with_build_time_tools"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13446 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13447 if test -x $with_build_time_tools/windmc; then
13448 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13449 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13451 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13456 elif test $build != $host && test $have_gcc_for_target = yes; then
13457 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13458 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13459 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13462 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13463 # Extract the first word of "windmc", so it can be a program name with args.
13464 set dummy windmc; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13470 case $WINDMC_FOR_TARGET in
13472 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $gcc_cv_tool_dirs
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13482 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13494 if test -n "$WINDMC_FOR_TARGET"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13496 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13504 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13509 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13513 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13514 for ncn_progname in windmc; do
13515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13522 if test -n "$WINDMC_FOR_TARGET"; then
13523 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13543 if test -n "$WINDMC_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13545 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13555 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13556 for ncn_progname in windmc; do
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13559 if test -x $with_build_time_tools/${ncn_progname}; then
13560 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13562 $as_echo "yes" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13571 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13572 for ncn_progname in windmc; do
13573 if test -n "$ncn_target_tool_prefix"; then
13574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13581 if test -n "$WINDMC_FOR_TARGET"; then
13582 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13591 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13601 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13602 if test -n "$WINDMC_FOR_TARGET"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13604 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13612 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13614 set dummy ${ncn_progname}; ac_word=$2
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13616 $as_echo_n "checking for $ac_word... " >&6; }
13617 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13620 if test -n "$WINDMC_FOR_TARGET"; then
13621 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13630 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13641 if test -n "$WINDMC_FOR_TARGET"; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13643 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13651 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13655 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13657 if test $build = $target ; then
13658 WINDMC_FOR_TARGET="$2"
13660 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13663 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13667 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13671 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13674 $as_echo_n "checking where to find the target ar... " >&6; }
13675 if test "x${build}" != "x${host}" ; then
13676 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13677 # We already found the complete path
13678 ac_dir=`dirname $AR_FOR_TARGET`
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13680 $as_echo "pre-installed in $ac_dir" >&6; }
13682 # Canadian cross, just use what we found
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684 $as_echo "pre-installed" >&6; }
13688 case " ${configdirs} " in
13693 if test $ok = yes; then
13694 # An in-tree tool is available and we can use it
13695 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13697 $as_echo "just compiled" >&6; }
13698 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13699 # We already found the complete path
13700 ac_dir=`dirname $AR_FOR_TARGET`
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13702 $as_echo "pre-installed in $ac_dir" >&6; }
13703 elif test "x$target" = "x$host"; then
13704 # We can use an host tool
13705 AR_FOR_TARGET='$(AR)'
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13707 $as_echo "host tool" >&6; }
13709 # We need a cross tool
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13711 $as_echo "pre-installed" >&6; }
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13716 $as_echo_n "checking where to find the target as... " >&6; }
13717 if test "x${build}" != "x${host}" ; then
13718 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13719 # We already found the complete path
13720 ac_dir=`dirname $AS_FOR_TARGET`
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722 $as_echo "pre-installed in $ac_dir" >&6; }
13724 # Canadian cross, just use what we found
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726 $as_echo "pre-installed" >&6; }
13730 case " ${configdirs} " in
13735 if test $ok = yes; then
13736 # An in-tree tool is available and we can use it
13737 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13739 $as_echo "just compiled" >&6; }
13740 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13741 # We already found the complete path
13742 ac_dir=`dirname $AS_FOR_TARGET`
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13744 $as_echo "pre-installed in $ac_dir" >&6; }
13745 elif test "x$target" = "x$host"; then
13746 # We can use an host tool
13747 AS_FOR_TARGET='$(AS)'
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13749 $as_echo "host tool" >&6; }
13751 # We need a cross tool
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13753 $as_echo "pre-installed" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13758 $as_echo_n "checking where to find the target cc... " >&6; }
13759 if test "x${build}" != "x${host}" ; then
13760 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13761 # We already found the complete path
13762 ac_dir=`dirname $CC_FOR_TARGET`
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13764 $as_echo "pre-installed in $ac_dir" >&6; }
13766 # Canadian cross, just use what we found
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768 $as_echo "pre-installed" >&6; }
13772 case " ${configdirs} " in
13777 if test $ok = yes; then
13778 # An in-tree tool is available and we can use it
13779 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13781 $as_echo "just compiled" >&6; }
13782 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
13784 ac_dir=`dirname $CC_FOR_TARGET`
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786 $as_echo "pre-installed in $ac_dir" >&6; }
13787 elif test "x$target" = "x$host"; then
13788 # We can use an host tool
13789 CC_FOR_TARGET='$(CC)'
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13791 $as_echo "host tool" >&6; }
13793 # We need a cross tool
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13795 $as_echo "pre-installed" >&6; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13800 $as_echo_n "checking where to find the target c++... " >&6; }
13801 if test "x${build}" != "x${host}" ; then
13802 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13803 # We already found the complete path
13804 ac_dir=`dirname $CXX_FOR_TARGET`
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13806 $as_echo "pre-installed in $ac_dir" >&6; }
13808 # Canadian cross, just use what we found
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810 $as_echo "pre-installed" >&6; }
13814 case " ${configdirs} " in
13818 case ,${enable_languages}, in
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
13824 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'
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826 $as_echo "just compiled" >&6; }
13827 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
13829 ac_dir=`dirname $CXX_FOR_TARGET`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831 $as_echo "pre-installed in $ac_dir" >&6; }
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 CXX_FOR_TARGET='$(CXX)'
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836 $as_echo "host tool" >&6; }
13838 # We need a cross tool
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840 $as_echo "pre-installed" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13845 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13846 if test "x${build}" != "x${host}" ; then
13847 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
13849 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851 $as_echo "pre-installed in $ac_dir" >&6; }
13853 # Canadian cross, just use what we found
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855 $as_echo "pre-installed" >&6; }
13859 case " ${configdirs} " in
13863 case ,${enable_languages}, in
13867 if test $ok = yes; then
13868 # An in-tree tool is available and we can use it
13869 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'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871 $as_echo "just compiled" >&6; }
13872 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 RAW_CXX_FOR_TARGET='$(CXX)'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881 $as_echo "host tool" >&6; }
13883 # We need a cross tool
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13890 $as_echo_n "checking where to find the target dlltool... " >&6; }
13891 if test "x${build}" != "x${host}" ; then
13892 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13898 # Canadian cross, just use what we found
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13904 case " ${configdirs} " in
13909 if test $ok = yes; then
13910 # An in-tree tool is available and we can use it
13911 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13913 $as_echo "just compiled" >&6; }
13914 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13915 # We already found the complete path
13916 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13918 $as_echo "pre-installed in $ac_dir" >&6; }
13919 elif test "x$target" = "x$host"; then
13920 # We can use an host tool
13921 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13923 $as_echo "host tool" >&6; }
13925 # We need a cross tool
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927 $as_echo "pre-installed" >&6; }
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13932 $as_echo_n "checking where to find the target gcc... " >&6; }
13933 if test "x${build}" != "x${host}" ; then
13934 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13935 # We already found the complete path
13936 ac_dir=`dirname $GCC_FOR_TARGET`
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13938 $as_echo "pre-installed in $ac_dir" >&6; }
13940 # Canadian cross, just use what we found
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942 $as_echo "pre-installed" >&6; }
13946 case " ${configdirs} " in
13951 if test $ok = yes; then
13952 # An in-tree tool is available and we can use it
13953 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13955 $as_echo "just compiled" >&6; }
13956 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
13958 ac_dir=`dirname $GCC_FOR_TARGET`
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960 $as_echo "pre-installed in $ac_dir" >&6; }
13961 elif test "x$target" = "x$host"; then
13962 # We can use an host tool
13963 GCC_FOR_TARGET='$()'
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13965 $as_echo "host tool" >&6; }
13967 # We need a cross tool
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13974 $as_echo_n "checking where to find the target gfortran... " >&6; }
13975 if test "x${build}" != "x${host}" ; then
13976 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
13978 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13980 $as_echo "pre-installed in $ac_dir" >&6; }
13982 # Canadian cross, just use what we found
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984 $as_echo "pre-installed" >&6; }
13988 case " ${configdirs} " in
13992 case ,${enable_languages}, in
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000 $as_echo "just compiled" >&6; }
14001 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo" >&5
14019 $as_echo_n "checking where to find the target gccgo... " >&6; }
14020 if test "x${build}" != "x${host}" ; then
14021 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $GOC_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
14037 case ,${enable_languages}, in
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045 $as_echo "just compiled" >&6; }
14046 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GOC_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050 $as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 GOC_FOR_TARGET='$(GOC)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055 $as_echo "host tool" >&6; }
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059 $as_echo "pre-installed" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14064 $as_echo_n "checking where to find the target ld... " >&6; }
14065 if test "x${build}" != "x${host}" ; then
14066 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $LD_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14072 # Canadian cross, just use what we found
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074 $as_echo "pre-installed" >&6; }
14078 case " ${configdirs} " in
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087 $as_echo "just compiled" >&6; }
14088 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
14090 ac_dir=`dirname $LD_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 LD_FOR_TARGET='$(LD)'
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 lipo" >&5
14106 $as_echo_n "checking where to find the target lipo... " >&6; }
14107 if test "x${build}" != "x${host}" ; then
14108 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $LIPO_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; }
14119 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $LIPO_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 LIPO_FOR_TARGET='$(LIPO)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14137 $as_echo_n "checking where to find the target nm... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $NM_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14151 case " ${configdirs} " in
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $NM_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 NM_FOR_TARGET='$(NM)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14179 $as_echo_n "checking where to find the target objcopy... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14193 case " ${configdirs} " in
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14221 $as_echo_n "checking where to find the target objdump... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14235 case " ${configdirs} " in
14240 if test $ok = yes; then
14241 # An in-tree tool is available and we can use it
14242 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244 $as_echo "just compiled" >&6; }
14245 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
14247 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250 elif test "x$target" = "x$host"; then
14251 # We can use an host tool
14252 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254 $as_echo "host tool" >&6; }
14256 # We need a cross tool
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14263 $as_echo_n "checking where to find the target ranlib... " >&6; }
14264 if test "x${build}" != "x${host}" ; then
14265 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
14267 ac_dir=`dirname $RANLIB_FOR_TARGET`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269 $as_echo "pre-installed in $ac_dir" >&6; }
14271 # Canadian cross, just use what we found
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14277 case " ${configdirs} " in
14282 if test $ok = yes; then
14283 # An in-tree tool is available and we can use it
14284 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286 $as_echo "just compiled" >&6; }
14287 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $RANLIB_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291 $as_echo "pre-installed in $ac_dir" >&6; }
14292 elif test "x$target" = "x$host"; then
14293 # We can use an host tool
14294 RANLIB_FOR_TARGET='$(RANLIB)'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296 $as_echo "host tool" >&6; }
14298 # We need a cross tool
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14305 $as_echo_n "checking where to find the target readelf... " >&6; }
14306 if test "x${build}" != "x${host}" ; then
14307 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $READELF_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; }
14313 # Canadian cross, just use what we found
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14319 case " ${configdirs} " in
14324 if test $ok = yes; then
14325 # An in-tree tool is available and we can use it
14326 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328 $as_echo "just compiled" >&6; }
14329 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
14331 ac_dir=`dirname $READELF_FOR_TARGET`
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333 $as_echo "pre-installed in $ac_dir" >&6; }
14334 elif test "x$target" = "x$host"; then
14335 # We can use an host tool
14336 READELF_FOR_TARGET='$(READELF)'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338 $as_echo "host tool" >&6; }
14340 # We need a cross tool
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14347 $as_echo_n "checking where to find the target strip... " >&6; }
14348 if test "x${build}" != "x${host}" ; then
14349 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14350 # We already found the complete path
14351 ac_dir=`dirname $STRIP_FOR_TARGET`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14353 $as_echo "pre-installed in $ac_dir" >&6; }
14355 # Canadian cross, just use what we found
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357 $as_echo "pre-installed" >&6; }
14361 case " ${configdirs} " in
14366 if test $ok = yes; then
14367 # An in-tree tool is available and we can use it
14368 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14370 $as_echo "just compiled" >&6; }
14371 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
14373 ac_dir=`dirname $STRIP_FOR_TARGET`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375 $as_echo "pre-installed in $ac_dir" >&6; }
14376 elif test "x$target" = "x$host"; then
14377 # We can use an host tool
14378 STRIP_FOR_TARGET='$(STRIP)'
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14380 $as_echo "host tool" >&6; }
14382 # We need a cross tool
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384 $as_echo "pre-installed" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14389 $as_echo_n "checking where to find the target windres... " >&6; }
14390 if test "x${build}" != "x${host}" ; then
14391 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14392 # We already found the complete path
14393 ac_dir=`dirname $WINDRES_FOR_TARGET`
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14395 $as_echo "pre-installed in $ac_dir" >&6; }
14397 # Canadian cross, just use what we found
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399 $as_echo "pre-installed" >&6; }
14403 case " ${configdirs} " in
14408 if test $ok = yes; then
14409 # An in-tree tool is available and we can use it
14410 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14412 $as_echo "just compiled" >&6; }
14413 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
14415 ac_dir=`dirname $WINDRES_FOR_TARGET`
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417 $as_echo "pre-installed in $ac_dir" >&6; }
14418 elif test "x$target" = "x$host"; then
14419 # We can use an host tool
14420 WINDRES_FOR_TARGET='$(WINDRES)'
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14422 $as_echo "host tool" >&6; }
14424 # We need a cross tool
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426 $as_echo "pre-installed" >&6; }
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14431 $as_echo_n "checking where to find the target windmc... " >&6; }
14432 if test "x${build}" != "x${host}" ; then
14433 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14434 # We already found the complete path
14435 ac_dir=`dirname $WINDMC_FOR_TARGET`
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14437 $as_echo "pre-installed in $ac_dir" >&6; }
14439 # Canadian cross, just use what we found
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441 $as_echo "pre-installed" >&6; }
14445 case " ${configdirs} " in
14450 if test $ok = yes; then
14451 # An in-tree tool is available and we can use it
14452 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14454 $as_echo "just compiled" >&6; }
14455 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14456 # We already found the complete path
14457 ac_dir=`dirname $WINDMC_FOR_TARGET`
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14459 $as_echo "pre-installed in $ac_dir" >&6; }
14460 elif test "x$target" = "x$host"; then
14461 # We can use an host tool
14462 WINDMC_FOR_TARGET='$(WINDMC)'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14464 $as_echo "host tool" >&6; }
14466 # We need a cross tool
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14476 # Certain tools may need extra flags.
14477 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14478 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14479 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14481 # When building target libraries, except in a Canadian cross, we use
14482 # the same toolchain as the compiler we just built.
14483 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14484 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14485 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14486 if test $host = $build; then
14487 case " $configdirs " in
14489 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14490 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14491 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14501 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14502 # Check whether --enable-maintainer-mode was given.
14503 if test "${enable_maintainer_mode+set}" = set; then :
14504 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14506 USE_MAINTAINER_MODE=no
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14510 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14513 if test "$USE_MAINTAINER_MODE" = yes; then
14514 MAINTAINER_MODE_TRUE=
14515 MAINTAINER_MODE_FALSE='#'
14517 MAINTAINER_MODE_TRUE='#'
14518 MAINTAINER_MODE_FALSE=
14520 MAINT=$MAINTAINER_MODE_TRUE
14522 # ---------------------
14523 # GCC bootstrap support
14524 # ---------------------
14526 # Stage specific cflags for build.
14531 yes) stage1_cflags="-g -Wa,-J" ;;
14532 *) stage1_cflags="-g -J" ;;
14538 # Enable --enable-checking in stage1 of the compiler.
14539 # Check whether --enable-stage1-checking was given.
14540 if test "${enable_stage1_checking+set}" = set; then :
14541 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14543 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14544 # For --disable-checking or implicit --enable-checking=release, avoid
14545 # setting --enable-checking=gc in the default stage1 checking for LTO
14546 # bootstraps. See PR62077.
14547 case $BUILD_CONFIG in
14549 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14551 stage1_checking=--enable-checking=yes,types;;
14553 if test "x$enable_checking" = x && \
14554 test -d ${srcdir}/gcc && \
14555 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14556 stage1_checking=--enable-checking=yes,types,extra
14559 stage1_checking=--enable-checking=$enable_checking,types
14565 # Enable -Werror in bootstrap stage2 and later.
14566 # Check whether --enable-werror was given.
14567 if test "${enable_werror+set}" = set; then :
14568 enableval=$enable_werror;
14570 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14577 case ${enable_werror} in
14578 yes) stage2_werror_flag="--enable-werror-always" ;;
14579 *) stage2_werror_flag="" ;;
14583 # Enable --enable-host-shared.
14584 # Check whether --enable-host-shared was given.
14585 if test "${enable_host_shared+set}" = set; then :
14586 enableval=$enable_host_shared; host_shared=$enableval
14593 # PR jit/64780: Require the user to explicitly specify
14594 # --enable-host-shared if the jit is enabled, hinting
14595 # that they might want to do a separate configure/build of
14596 # the jit, to avoid users from slowing down the rest of the
14597 # compiler by enabling the jit.
14598 if test ${host_shared} = "no" ; then
14599 case "${enable_languages}" in
14602 Enabling language \"jit\" requires --enable-host-shared.
14604 --enable-host-shared typically slows the rest of the compiler down by
14605 a few %, so you must explicitly enable it.
14607 If you want to build both the jit and the regular compiler, it is often
14608 best to do this via two separate configure/builds, in separate
14609 directories, to avoid imposing the performance cost of
14610 --enable-host-shared on the regular compiler." "$LINENO" 5
14617 # Specify what files to not compare during bootstrap.
14619 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14621 hppa*64*-*-hpux*) ;;
14622 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14623 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14627 ac_config_files="$ac_config_files Makefile"
14629 cat >confcache <<\_ACEOF
14630 # This file is a shell script that caches the results of configure
14631 # tests run on this system so they can be shared between configure
14632 # scripts and configure runs, see configure's option --config-cache.
14633 # It is not useful on other systems. If it contains results you don't
14634 # want to keep, you may remove or edit it.
14636 # config.status only pays attention to the cache file if you give it
14637 # the --recheck option to rerun configure.
14639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14641 # following values.
14645 # The following way of writing the cache mishandles newlines in values,
14646 # but we know of no workaround that is simple, portable, and efficient.
14647 # So, we kill variables containing newlines.
14648 # Ultrix sh set writes to stderr and can't be redirected directly,
14649 # and sets the high bit in the cache file unless we assign to the vars.
14651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14652 eval ac_val=\$$ac_var
14656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14660 _ | IFS | as_nl) ;; #(
14661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14662 *) { eval $ac_var=; unset $ac_var;} ;;
14668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14669 *${as_nl}ac_space=\ *)
14670 # `set' does not quote correctly, so add quotes: double-quote
14671 # substitution turns \\\\ into \\, and sed turns \\ into \.
14674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14677 # `set' quotes correctly as required by POSIX, so do not add quotes.
14678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14692 if test -w "$cache_file"; then
14693 test "x$cache_file" != "x/dev/null" &&
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14695 $as_echo "$as_me: updating cache $cache_file" >&6;}
14696 cat confcache >$cache_file
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14705 # Let make expand exec_prefix.
14706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14708 # Transform confdefs.h into DEFS.
14709 # Protect against shell expansion while executing Makefile rules.
14710 # Protect against Makefile macro expansion.
14712 # If the first sed substitution is executed (which looks for macros that
14713 # take arguments), then branch to the quote section. Otherwise,
14714 # look for a macro that doesn't take arguments.
14724 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14726 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14730 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14743 DEFS=`sed -n "$ac_script" confdefs.h`
14748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14749 # 1. Remove the extension, and $U if already installed.
14750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14753 # will be set to the directory where LIBOBJS objects are built.
14754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14757 LIBOBJS=$ac_libobjs
14759 LTLIBOBJS=$ac_ltlibobjs
14763 : ${CONFIG_STATUS=./config.status}
14765 ac_clean_files_save=$ac_clean_files
14766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14772 # Generated by $as_me.
14773 # Run this file to recreate the current configuration.
14774 # Compiler output produced by configure, useful for debugging
14775 # configure, is in config.log if it exists.
14778 ac_cs_recheck=false
14781 SHELL=\${CONFIG_SHELL-$SHELL}
14784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14785 ## -------------------- ##
14786 ## M4sh Initialization. ##
14787 ## -------------------- ##
14789 # Be more Bourne compatible
14790 DUALCASE=1; export DUALCASE # for MKS sh
14791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14795 # is contrary to our usage. Disable this feature.
14796 alias -g '${1+"$@"}'='"$@"'
14797 setopt NO_GLOB_SUBST
14799 case `(set -o) 2>/dev/null` in #(
14811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14815 # Prefer a ksh shell builtin over an external printf program on Solaris,
14816 # but without wasting forks for bash or zsh.
14817 if test -z "$BASH_VERSION$ZSH_VERSION" \
14818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14819 as_echo='print -r --'
14820 as_echo_n='print -rn --'
14821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14822 as_echo='printf %s\n'
14823 as_echo_n='printf %s'
14825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14827 as_echo_n='/usr/ucb/echo -n'
14829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14830 as_echo_n_body='eval
14834 expr "X$arg" : "X\\(.*\\)$as_nl";
14835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14839 export as_echo_n_body
14840 as_echo_n='sh -c $as_echo_n_body as_echo'
14842 export as_echo_body
14843 as_echo='sh -c $as_echo_body as_echo'
14846 # The user is always right.
14847 if test "${PATH_SEPARATOR+set}" != set; then
14849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14857 # We need space, tab and new line, in precisely that order. Quoting is
14858 # there to prevent editors from complaining about space-tab.
14859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14860 # splitting by setting IFS to empty value.)
14863 # Find who we are. Look in the path if we contain no directory separator.
14865 *[\\/]* ) as_myself=$0 ;;
14866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14870 test -z "$as_dir" && as_dir=.
14871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14877 # We did not find ourselves, most probably we were run as `sh COMMAND'
14878 # in which case we are not to be found in the path.
14879 if test "x$as_myself" = x; then
14882 if test ! -f "$as_myself"; then
14883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14887 # Unset variables that we do not need and which cause bugs (e.g. in
14888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14889 # suppresses any "Segmentation fault" message there. '((' could
14890 # trigger a bug in pdksh 5.2.14.
14891 for as_var in BASH_ENV ENV MAIL MAILPATH
14892 do eval test x\${$as_var+set} = xset \
14893 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14909 # as_fn_error ERROR [LINENO LOG_FD]
14910 # ---------------------------------
14911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14913 # script with status $?, using 1 if that was 0.
14916 as_status=$?; test $as_status -eq 0 && as_status=1
14918 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14921 $as_echo "$as_me: error: $1" >&2
14922 as_fn_exit $as_status
14926 # as_fn_set_status STATUS
14927 # -----------------------
14928 # Set $? to STATUS, without forking.
14929 as_fn_set_status ()
14932 } # as_fn_set_status
14934 # as_fn_exit STATUS
14935 # -----------------
14936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14940 as_fn_set_status $1
14946 # Portably unset VAR.
14949 { eval $1=; unset $1;}
14951 as_unset=as_fn_unset
14952 # as_fn_append VAR VALUE
14953 # ----------------------
14954 # Append the text in VALUE to the end of the definition contained in VAR. Take
14955 # advantage of any shell optimizations that allow amortized linear growth over
14956 # repeated appends, instead of the typical quadratic growth present in naive
14958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14959 eval 'as_fn_append ()
14970 # as_fn_arith ARG...
14971 # ------------------
14972 # Perform arithmetic evaluation on the ARGs, and store the result in the
14973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14974 # must be portable across $(()) and expr.
14975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14976 eval 'as_fn_arith ()
14983 as_val=`expr "$@" || test $? -eq 1`
14988 if expr a : '\(a\)' >/dev/null 2>&1 &&
14989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14996 as_basename=basename
15001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15007 as_me=`$as_basename -- "$0" ||
15008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15009 X"$0" : 'X\(//\)$' \| \
15010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15012 sed '/^.*\/\([^/][^/]*\)\/*$/{
15026 # Avoid depending upon Character Ranges.
15027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15030 as_cr_digits='0123456789'
15031 as_cr_alnum=$as_cr_Letters$as_cr_digits
15033 ECHO_C= ECHO_N= ECHO_T=
15034 case `echo -n x` in #(((((
15036 case `echo 'xy\c'` in
15037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15046 rm -f conf$$ conf$$.exe conf$$.file
15047 if test -d conf$$.dir; then
15048 rm -f conf$$.dir/conf$$.file
15051 mkdir conf$$.dir 2>/dev/null
15053 if (echo >conf$$.file) 2>/dev/null; then
15054 if ln -s conf$$.file conf$$ 2>/dev/null; then
15056 # ... but there are two gotchas:
15057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15059 # In both cases, we have to default to `cp -p'.
15060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15062 elif ln conf$$.file conf$$ 2>/dev/null; then
15070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15071 rmdir conf$$.dir 2>/dev/null
15076 # Create "$as_dir" as a directory, including parents if necessary.
15081 -*) as_dir=./$as_dir;;
15083 test -d "$as_dir" || eval $as_mkdir_p || {
15087 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15088 *) as_qdir=$as_dir;;
15090 as_dirs="'$as_qdir' $as_dirs"
15091 as_dir=`$as_dirname -- "$as_dir" ||
15092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15093 X"$as_dir" : 'X\(//\)[^/]' \| \
15094 X"$as_dir" : 'X\(//\)$' \| \
15095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15096 $as_echo X"$as_dir" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15101 /^X\(\/\/\)[^/].*/{
15114 test -d "$as_dir" && break
15116 test -z "$as_dirs" || eval "mkdir $as_dirs"
15117 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15121 if mkdir -p . 2>/dev/null; then
15122 as_mkdir_p='mkdir -p "$as_dir"'
15124 test -d ./-p && rmdir ./-p
15128 if test -x / >/dev/null 2>&1; then
15129 as_test_x='test -x'
15131 if ls -dL / >/dev/null 2>&1; then
15138 if test -d "$1"; then
15144 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15145 ???[sx]*):;;*)false;;esac;fi
15149 as_executable_p=$as_test_x
15151 # Sed expression to map a string onto a valid CPP name.
15152 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15154 # Sed expression to map a string onto a valid variable name.
15155 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15159 ## ----------------------------------- ##
15160 ## Main body of $CONFIG_STATUS script. ##
15161 ## ----------------------------------- ##
15163 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 # Save the log message, to keep $0 and so on meaningful, and to
15167 # report actual input values of CONFIG_FILES etc. instead of their
15168 # values after options handling.
15170 This file was extended by $as_me, which was
15171 generated by GNU Autoconf 2.64. Invocation command line was
15173 CONFIG_FILES = $CONFIG_FILES
15174 CONFIG_HEADERS = $CONFIG_HEADERS
15175 CONFIG_LINKS = $CONFIG_LINKS
15176 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15184 case $ac_config_files in *"
15185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191 # Files that config.status was made for.
15192 config_files="$ac_config_files"
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15198 \`$as_me' instantiates files and other configuration actions
15199 from templates according to the current configuration. Unless the files
15200 and actions are specified as TAGs, all are instantiated by default.
15202 Usage: $0 [OPTION]... [TAG]...
15204 -h, --help print this help, then exit
15205 -V, --version print version number and configuration settings, then exit
15206 -q, --quiet, --silent
15207 do not print progress messages
15208 -d, --debug don't remove temporary files
15209 --recheck update $as_me by reconfiguring in the same conditions
15210 --file=FILE[:TEMPLATE]
15211 instantiate the configuration file FILE
15213 Configuration files:
15216 Report bugs to the package provider."
15219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 configured by $0, generated by GNU Autoconf 2.64,
15223 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15225 Copyright (C) 2009 Free Software Foundation, Inc.
15226 This config.status script is free software; the Free Software Foundation
15227 gives unlimited permission to copy, distribute and modify it."
15233 test -n "\$AWK" || AWK=awk
15236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # The default lists apply if the user does not specify any file.
15243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15255 # Handling of the options.
15256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15259 $as_echo "$ac_cs_version"; exit ;;
15260 --debug | --debu | --deb | --de | --d | -d )
15262 --file | --fil | --fi | --f )
15265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15267 as_fn_append CONFIG_FILES " '$ac_optarg'"
15268 ac_need_defaults=false;;
15269 --he | --h | --help | --hel | -h )
15270 $as_echo "$ac_cs_usage"; exit ;;
15271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15275 # This is an error.
15276 -*) as_fn_error "unrecognized option: \`$1'
15277 Try \`$0 --help' for more information." ;;
15279 *) as_fn_append ac_config_targets " $1"
15280 ac_need_defaults=false ;;
15286 ac_configure_extra_args=
15288 if $ac_cs_silent; then
15290 ac_configure_extra_args="$ac_configure_extra_args --silent"
15294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15295 if \$ac_cs_recheck; then
15296 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15299 CONFIG_SHELL='$SHELL'
15300 export CONFIG_SHELL
15305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15310 ## Running $as_me. ##
15316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15320 extrasub_build="$extrasub_build"
15321 extrasub_host="$extrasub_host"
15322 extrasub_target="$extrasub_target"
15326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328 # Handling of arguments.
15329 for ac_config_target in $ac_config_targets
15331 case $ac_config_target in
15332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15334 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15339 # If the user did not use the arguments to specify the items to instantiate,
15340 # then the envvar interface is used. Set only those that are not.
15341 # We use the long form for the default assignment because of an extremely
15342 # bizarre bug on SunOS 4.1.3.
15343 if $ac_need_defaults; then
15344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15347 # Have a temporary directory for convenience. Make it in the build tree
15348 # simply because there is no reason against having it here, and in addition,
15349 # creating and moving files from /tmp can sometimes cause problems.
15350 # Hook for its removal unless debugging.
15351 # Note that there is a small window in which the directory will not be cleaned:
15352 # after its creation but before its name has been assigned to `$tmp'.
15356 trap 'exit_status=$?
15357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15359 trap 'as_fn_exit 1' 1 2 13 15
15361 # Create a (secure) tmp directory for tmp files.
15364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15365 test -n "$tmp" && test -d "$tmp"
15368 tmp=./conf$$-$RANDOM
15369 (umask 077 && mkdir "$tmp")
15370 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15372 # Set up the scripts for CONFIG_FILES section.
15373 # No need to generate them if there are no CONFIG_FILES.
15374 # This happens for instance with `./config.status config.h'.
15375 if test -n "$CONFIG_FILES"; then
15377 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15378 ac_cs_awk_getline=:
15379 ac_cs_awk_pipe_init=
15380 ac_cs_awk_read_file='
15381 while ((getline aline < (F[key])) > 0)
15384 ac_cs_awk_pipe_fini=
15386 ac_cs_awk_getline=false
15387 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15388 ac_cs_awk_read_file='
15390 print "cat " F[key] " &&"
15391 '$ac_cs_awk_pipe_init
15392 # The final `:' finishes the AND list.
15393 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15395 ac_cr=`echo X | tr X '\015'`
15396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15397 # But we know of no other shell where ac_cr would be empty at this
15398 # point, so we can use a bashism as a fallback.
15399 if test "x$ac_cr" = x; then
15400 eval ac_cr=\$\'\\r\'
15402 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15406 ac_cs_awk_cr=$ac_cr
15409 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15412 # Create commands to substitute file output variables.
15414 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15415 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15416 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15419 } >conf$$files.sh &&
15420 . ./conf$$files.sh ||
15421 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15422 rm -f conf$$files.sh
15425 echo "cat >conf$$subs.awk <<_ACEOF" &&
15426 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15428 } >conf$$subs.sh ||
15429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15430 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15432 for ac_last_try in false false false false false :; do
15433 . ./conf$$subs.sh ||
15434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15436 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15437 if test $ac_delim_n = $ac_delim_num; then
15439 elif $ac_last_try; then
15440 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15445 rm -f conf$$subs.sh
15447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15452 s/^/S["/; s/!.*/"]=/
15462 s/\(.\{148\}\).*/\1/
15464 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15469 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15476 s/\(.\{148\}\).*/\1/
15478 s/["\\]/\\&/g; s/^/"/; s/$/"/
15482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15487 ' <conf$$subs.awk | sed '
15492 ' >>$CONFIG_STATUS || ac_write_fail=1
15493 rm -f conf$$subs.awk
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15497 for (key in S) S_is_set[key] = 1
15499 \$ac_cs_awk_pipe_init
15503 nfields = split(line, field, "@")
15505 len = length(field[1])
15506 for (i = 2; i < nfields; i++) {
15508 keylen = length(key)
15509 if (S_is_set[key]) {
15511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15512 len += length(value) + length(field[++i])
15517 if (nfields == 3 && !substed) {
15519 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15520 \$ac_cs_awk_read_file
15526 \$ac_cs_awk_pipe_fini
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15534 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15535 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15538 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15539 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15540 # trailing colons and then remove the whole line if VPATH becomes empty
15541 # (actually we leave an empty line to preserve line numbers).
15542 if test "x$srcdir" = x.; then
15543 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15544 s/:*\$(srcdir):*/:/
15545 s/:*\${srcdir}:*/:/
15547 s/^\([^=]*=[ ]*\):*/\1/
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 fi # test -n "$CONFIG_FILES"
15557 eval set X " :F $CONFIG_FILES "
15562 :[FHLC]) ac_mode=$ac_tag; continue;;
15564 case $ac_mode$ac_tag in
15566 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15567 :[FH]-) ac_tag=-:-;;
15568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15585 -) ac_f="$tmp/stdin";;
15586 *) # Look for the file first in the build tree, then in the source tree
15587 # (if the path is not absolute). The absolute path cannot be DOS-style,
15588 # because $ac_f cannot contain `:'.
15592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15594 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15597 as_fn_append ac_file_inputs " '$ac_f'"
15600 # Let's still pretend it is `configure' which instantiates (i.e., don't
15601 # use $as_me), people would be surprised to read:
15602 # /* config.h. Generated by config.status. */
15603 configure_input='Generated from '`
15604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15606 if test x"$ac_file" != x-; then
15607 configure_input="$ac_file. $configure_input"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15609 $as_echo "$as_me: creating $ac_file" >&6;}
15611 # Neutralize special characters interpreted by sed in replacement strings.
15612 case $configure_input in #(
15613 *\&* | *\|* | *\\* )
15614 ac_sed_conf_input=`$as_echo "$configure_input" |
15615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15616 *) ac_sed_conf_input=$configure_input;;
15620 *:-:* | *:-) cat >"$tmp/stdin" \
15621 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15626 ac_dir=`$as_dirname -- "$ac_file" ||
15627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$ac_file" : 'X\(//\)[^/]' \| \
15629 X"$ac_file" : 'X\(//\)$' \| \
15630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15631 $as_echo X"$ac_file" |
15632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15636 /^X\(\/\/\)[^/].*/{
15649 as_dir="$ac_dir"; as_fn_mkdir_p
15653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15656 # A ".." for each directory in $ac_dir_suffix.
15657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15658 case $ac_top_builddir_sub in
15659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663 ac_abs_top_builddir=$ac_pwd
15664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15665 # for backward compatibility:
15666 ac_top_builddir=$ac_top_build_prefix
15669 .) # We are building in place.
15671 ac_top_srcdir=$ac_top_builddir_sub
15672 ac_abs_top_srcdir=$ac_pwd ;;
15673 [\\/]* | ?:[\\/]* ) # Absolute name.
15674 ac_srcdir=$srcdir$ac_dir_suffix;
15675 ac_top_srcdir=$srcdir
15676 ac_abs_top_srcdir=$srcdir ;;
15677 *) # Relative name.
15678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_build_prefix$srcdir
15680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 # If the template does not know about datarootdir, expand it.
15699 # FIXME: This hack should be removed a few years after 2.60.
15700 ac_datarootdir_hack=; ac_datarootdir_seen=
15711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15712 *datarootdir*) ac_datarootdir_seen=yes;;
15713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15718 ac_datarootdir_hack='
15719 s&@datadir@&$datadir&g
15720 s&@docdir@&$docdir&g
15721 s&@infodir@&$infodir&g
15722 s&@localedir@&$localedir&g
15723 s&@mandir@&$mandir&g
15724 s&\\\${datarootdir}&$datarootdir&g' ;;
15728 # Neutralize VPATH when `$srcdir' = `.'.
15729 # Shell code in configure.ac might set extrasub.
15730 # FIXME: do we really want to maintain this feature?
15731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732 ac_sed_extra="$ac_vpsub
15735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15738 s|@configure_input@|$ac_sed_conf_input|;t t
15739 s&@top_builddir@&$ac_top_builddir_sub&;t t
15740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15741 s&@srcdir@&$ac_srcdir&;t t
15742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15743 s&@top_srcdir@&$ac_top_srcdir&;t t
15744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15745 s&@builddir@&$ac_builddir&;t t
15746 s&@abs_builddir@&$ac_abs_builddir&;t t
15747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15748 s&@INSTALL@&$ac_INSTALL&;t t
15749 $ac_datarootdir_hack
15751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15752 if $ac_cs_awk_getline; then
15753 $AWK -f "$tmp/subs.awk"
15755 $AWK -f "$tmp/subs.awk" | $SHELL
15757 || as_fn_error "could not create $ac_file" "$LINENO" 5
15759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15760 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15763 which seems to be undefined. Please make sure it is defined." >&5
15764 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765 which seems to be undefined. Please make sure it is defined." >&2;}
15769 -) cat "$tmp/out" && rm -f "$tmp/out";;
15770 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15772 || as_fn_error "could not create $ac_file" "$LINENO" 5
15780 case $ac_file$ac_mode in
15781 "Makefile":F) sed "$extrasub_build" Makefile |
15782 sed "$extrasub_host" |
15783 sed "$extrasub_target" > mf$$
15784 mv -f mf$$ Makefile ;;
15792 ac_clean_files=$ac_clean_files_save
15794 test $ac_write_fail = 0 ||
15795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15798 # configure is writing to config.log, and then calls config.status.
15799 # config.status does its own redirection, appending to config.log.
15800 # Unfortunately, on DOS this fails, as config.log is still kept open
15801 # by configure, so config.status won't be able to write to it; its
15802 # output is simply discarded. So we exec the FD to /dev/null,
15803 # effectively closing config.log, so it can be properly (re)opened and
15804 # appended to by config.status. When coming back to configure, we
15805 # need to make the FD available again.
15806 if test "$no_create" != yes; then
15808 ac_config_status_args=
15809 test "$silent" = yes &&
15810 ac_config_status_args="$ac_config_status_args --quiet"
15812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15815 # would make configure fail if this is the last instruction.
15816 $ac_cs_success || as_fn_exit $?
15818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}