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
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_libiberty_configure_flags
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
673 EXTRA_CONFIGARGS_LIBJAVA
700 TOPLEVEL_CONFIGURE_ARGUMENTS
728 program_transform_name
739 ac_subst_files='serialization_dependencies
745 enable_option_checking
750 enable_libquadmath_support
754 enable_static_libjava
776 enable_isl_version_check
779 enable_cloog_version_check
781 enable_stage1_languages
784 with_debug_prefix_map
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
793 ac_precious_vars='build_alias
840 # Initialize some variables set by options.
842 ac_init_version=false
843 ac_unrecognized_opts=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name=s,x,x,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 as_fn_error "path to source, $srcdir, contains spaces"
1370 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1455 if test -n "$ac_init_help"; then
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1470 --disable-libstdcxx do not build libstdc++-v3 directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --disable-isl-version-check
1475 disable check for ISL version
1476 --disable-cloog-version-check
1477 disable check for CLooG version
1478 --enable-lto enable link time optimization support
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1484 --enable-serial-[{host,target,build}-]configure
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1494 --enable-werror enable -Werror in bootstrap stage2 and later
1495 --enable-host-shared build host code as shared libraries
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1510 --with-mpfr-include=PATH
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 --with-stage1-libs=LIBS libraries for stage1
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
1532 --with-isl=PATH Specify prefix directory for the installed ISL
1533 package. Equivalent to
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 --with-build-sysroot=SYSROOT
1543 use sysroot as the system root during the build
1544 --with-debug-prefix-map='A=B C=D ...'
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
1548 --with-build-time-tools=PATH
1549 use given path to find target tools during the build
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1562 additional configure arguments for build directories
1564 additional configure arguments for host directories
1566 additional configure arguments for target directories
1569 DLLTOOL DLLTOOL for the host
1571 LIPO LIPO for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
1576 WINDMC WINDMC for the host
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
1579 READELF READELF for the host
1589 GFORTRAN for the target
1597 DLLTOOL for the target
1605 OBJDUMP for the target
1607 RANLIB for the target
1609 READELF for the target
1611 STRIP for the target
1613 WINDRES for the target
1615 WINDMC for the target
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1650 .) # We are building in place.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1684 generated by GNU Autoconf 2.64
1686 Copyright (C) 2009 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_cxx_try_link LINENO
1774 # -------------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_link ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_cxx_try_link
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 } # ac_fn_c_try_link
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1910 It was created by $as_me, which was
1911 generated by GNU Autoconf 2.64. Invocation command line was
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 $as_echo "PATH: $as_dir"
1963 # Keep a trace of the command line.
1964 # Strip out --no-create and --no-recursion so they do not pile up.
1965 # Strip out --silent because we don't want to record it for future runs.
1966 # Also quote any args containing shell meta-characters.
1967 # Make two passes to allow for proper duplicate-argument suppression.
1971 ac_must_keep_next=false
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 -* ) ac_must_keep_next=true ;;
2003 as_fn_append ac_configure_args " '$ac_arg'"
2008 { ac_configure_args0=; unset ac_configure_args0;}
2009 { ac_configure_args1=; unset ac_configure_args1;}
2011 # When interrupted or exit'd, cleanup temporary files, and complete
2012 # config.log. We remove comments because anyway the quotes in there
2013 # would cause problems or look ugly.
2014 # WARNING: Use '\'' to represent an apostrophe within the trap.
2015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2016 trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2022 ## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##
2027 # The following way of writing the cache mishandles newlines in values,
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060 ## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##
2065 for ac_var in $ac_subst_vars
2067 eval ac_val=\$$ac_var
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 $as_echo "$ac_var='\''$ac_val'\''"
2075 if test -n "$ac_subst_files"; then
2077 ## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##
2082 for ac_var in $ac_subst_files
2084 eval ac_val=\$$ac_var
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 $as_echo "$ac_var='\''$ac_val'\''"
2093 if test -s confdefs.h; then
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2119 $as_echo "/* confdefs.h */" > confdefs.h
2121 # Predefined preprocessor variables.
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_NAME "$PACKAGE_NAME"
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_STRING "$PACKAGE_STRING"
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_URL "$PACKAGE_URL"
2148 # Let the site file select an alternate cache file if it wants to.
2149 # Prefer an explicitly selected file to automatically selected ones.
2152 if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163 test "x$ac_site_file" = xNONE && continue
2164 if test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2189 # Check that the precious variables saved in the cache have kept the same
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 # if PWD already has a value, it is probably wrong.
2266 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2268 # Export original configure arguments for use by sub-configures.
2269 # Quote arguments with shell meta charatcers.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=
2271 set -- "$progname" "$@"
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2284 if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2287 # Remove the initial space we just introduced and, as these will be
2288 # expanded by make, quote '$'.
2289 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2292 # Find the build, host, and target systems.
2294 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316 # Make sure we can run config.sub.
2317 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321 $as_echo_n "checking build system type... " >&6; }
2322 if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2325 ac_build_alias=$build_alias
2326 test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328 test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335 $as_echo "$ac_cv_build" >&6; }
2336 case $ac_cv_build in
2338 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2341 ac_save_IFS=$IFS; IFS='-'
2347 # Remember, the first character of IFS is used to create $*,
2348 # except with old shells:
2351 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
2376 test "$host_noncanonical" = "$target_noncanonical" &&
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2379 program_transform_name=s,y,y,
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401 ac_save_IFS=$IFS; IFS='-'
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2431 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2452 program_prefix=${target_alias}-
2454 test "$program_prefix" != NONE &&
2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2456 # Use a double $ so make ignores it.
2457 test "$program_suffix" != NONE &&
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459 # Double any \ or $.
2460 # By default was `s,x,x', remove it if useless.
2461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2466 # Get 'install' or 'install-sh' and its variants.
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 rm -rf conftest.one conftest.two conftest.dir
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561 $as_echo_n "checking whether ln works... " >&6; }
2562 if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2565 rm -f conftestdata_t
2566 echo >conftestdata_f
2567 if ln conftestdata_f conftestdata_t 2>/dev/null
2573 rm -f conftestdata_f conftestdata_t
2576 if test $acx_cv_prog_LN = no; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579 $as_echo "no, using $LN" >&6; }
2581 LN="$acx_cv_prog_LN"
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587 $as_echo_n "checking whether ln -s works... " >&6; }
2589 if test "$LN_S" = "ln -s"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594 $as_echo "no, using $LN_S" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599 if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620 # Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622 case `"$ac_path_SED" --version 2>&1` in
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2627 $as_echo_n 0123456789 >"conftest.in"
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2648 $ac_path_SED_found && break 3
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662 $as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$AWK" && break
2709 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2711 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2713 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2717 # Set srcdir to "." if that's what it is.
2718 # This is important for multilib support.
2720 if test "${pwd}" = "${srcpwd}" ; then
2728 ### To add a new directory to the tree, first choose whether it is a target
2729 ### or a host dependent tool. Then put it into the appropriate list
2730 ### (library or tools, host or target), doing a dependency sort.
2732 # Subdirs will be configured in the order listed in build_configdirs,
2733 # configdirs, or target_configdirs; see the serialization section below.
2735 # Dependency sorting is only needed when *configuration* must be done in
2736 # a particular order. In all cases a dependency should be specified in
2737 # the Makefile, whether or not it's implicitly specified here.
2739 # Double entries in build_configdirs, configdirs, or target_configdirs may
2740 # cause circular dependencies and break everything horribly.
2742 # these library is used by various programs built for the build
2745 build_libs="build-libiberty"
2747 # these tools are built for the build environment
2748 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2750 # these libraries are used by various programs built for the host environment
2752 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2754 # these tools are built for the host environment
2755 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756 # know that we are building the simulator.
2757 # binutils, gas and ld appear in that order because it makes sense to run
2758 # "make check" in that particular order.
2759 # If --enable-gold is used, "gold" may replace "ld".
2760 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2762 # libgcj represents the runtime libraries only used by gcj.
2763 libgcj="target-libffi \
2767 # these libraries are built for the target environment, and are built after
2768 # the host libraries and the host tools (which may be a cross compiler)
2769 # Note that libiberty is not a target library.
2770 target_libraries="target-libgcc \
2771 target-libbacktrace \
2777 target-libstdc++-v3 \
2778 target-libsanitizer \
2781 target-libquadmath \
2782 target-libgfortran \
2789 # these tools are built using the target libraries, and are intended to
2790 # run only in the target environment
2792 # note: any program that *uses* libraries that are in the "target_libraries"
2793 # list belongs in this list.
2795 target_tools="target-rda"
2797 ################################################################################
2799 ## All tools belong in one of the four categories, and are assigned above
2800 ## We assign ${configdirs} this way to remove all embedded newlines. This
2801 ## is important because configure will choke if they ever get through.
2802 ## ${configdirs} is directories we build using the host tools.
2803 ## ${target_configdirs} is directories we build using the target tools.
2804 configdirs=`echo ${host_libs} ${host_tools}`
2805 target_configdirs=`echo ${target_libraries} ${target_tools}`
2806 build_configdirs=`echo ${build_libs} ${build_tools}`
2810 ################################################################################
2812 srcname="gnu development package"
2814 # This gets set non-empty for some net releases of packages.
2817 # Define is_cross_compiler to save on calls to 'test'.
2819 if test x"${host}" = x"${target}" ; then
2820 is_cross_compiler=no
2822 is_cross_compiler=yes
2825 # Find the build and target subdir names.
2827 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828 # have matching libraries, they should use host libraries: Makefile.tpl
2829 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830 # However, they still use the build modules, because the corresponding
2831 # host modules (e.g. bison) are only built for the host when bootstrap
2833 # - build_subdir is where we find build modules, and never changes.
2834 # - build_libsubdir is where we find build libraries, and can be overridden.
2836 # Prefix 'build-' so this never conflicts with target_subdir.
2837 build_subdir="build-${build_noncanonical}"
2839 # Check whether --with-build-libsubdir was given.
2840 if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
2843 build_libsubdir="$build_subdir"
2846 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847 if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2854 target_subdir=${target_noncanonical}
2856 # Be sure to cover against remnants of an in-tree build.
2857 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2858 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2859 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2862 # Skipdirs are removed silently.
2864 # Noconfigdirs are removed loudly.
2868 # Make sure we don't let GNU ld be added if we didn't want it.
2869 if test x$with_gnu_ld = xno ; then
2871 noconfigdirs="$noconfigdirs ld gold"
2875 # Make sure we don't let GNU as be added if we didn't want it.
2876 if test x$with_gnu_as = xno ; then
2878 noconfigdirs="$noconfigdirs gas"
2882 # Make sure we don't let ZLIB be added if we didn't want it.
2883 if test x$with_system_zlib = xyes ; then
2884 use_included_zlib=no
2885 noconfigdirs="$noconfigdirs zlib"
2888 # some tools are so dependent upon X11 that if we're not building with X,
2889 # it's not even worth trying to configure, much less build, that tool.
2892 yes | "") ;; # the default value for this tree is that X11 is available
2894 skipdirs="${skipdirs} tk itcl libgui"
2895 # We won't be able to build gdbtk without X.
2898 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2901 # Some are only suitable for cross toolchains.
2902 # Remove these if host=target.
2903 cross_only="target-libgloss target-newlib target-opcodes"
2905 case $is_cross_compiler in
2906 no) skipdirs="${skipdirs} ${cross_only}" ;;
2909 # If both --with-headers and --with-libs are specified, default to
2911 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2912 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2913 if test x"${with_newlib}" = x ; then
2918 # Recognize --with-newlib/--without-newlib.
2919 case ${with_newlib} in
2920 no) skipdirs="${skipdirs} target-newlib" ;;
2921 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2924 # Handle --enable-gold, --enable-ld.
2925 # --disable-gold [--enable-ld]
2926 # Build only ld. Default option.
2927 # --enable-gold [--enable-ld]
2928 # Build both gold and ld. Install gold as "ld.gold", install ld
2929 # as "ld.bfd" and "ld".
2930 # --enable-gold=default [--enable-ld]
2931 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2932 # install ld as "ld.bfd".
2933 # --enable-gold[=default] --disable-ld
2934 # Build only gold, which is then installed as both "ld.gold" and "ld".
2935 # --enable-gold --enable-ld=default
2936 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2938 # In other words, ld is default
2939 # --enable-gold=default --enable-ld=default
2943 # Check whether --enable-gold was given.
2944 if test "${enable_gold+set}" = set; then :
2945 enableval=$enable_gold; ENABLE_GOLD=$enableval
2950 case "${ENABLE_GOLD}" in
2952 # Check for ELF target.
2955 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2956 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2957 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2958 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2960 *-*-linux*aout* | *-*-linux*oldld*)
2968 if test "$is_elf" = "yes"; then
2969 # Check for target supported by gold.
2971 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2972 configdirs="$configdirs gold"
2973 if test x${ENABLE_GOLD} = xdefault; then
2984 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 # Check whether --enable-ld was given.
2989 if test "${enable_ld+set}" = set; then :
2990 enableval=$enable_ld; ENABLE_LD=$enableval
2996 case "${ENABLE_LD}" in
2998 if test x${default_ld} != x; then
2999 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 if test x${ENABLE_GOLD} != xyes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3007 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3009 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3012 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 # Configure extra directories which are host specific
3020 configdirs="$configdirs libtermcap" ;;
3023 # A target can indicate whether a language isn't supported for some reason.
3024 # Only spaces may be used in this macro; not newlines or tabs.
3025 unsupported_languages=
3027 # Remove more programs from consideration, based on the host or
3028 # target this usually means that a port of the program doesn't
3032 i[3456789]86-*-msdosdjgpp*)
3033 noconfigdirs="$noconfigdirs tcl tk itcl"
3038 # Check whether --enable-libquadmath was given.
3039 if test "${enable_libquadmath+set}" = set; then :
3040 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3042 ENABLE_LIBQUADMATH=yes
3045 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3046 noconfigdirs="$noconfigdirs target-libquadmath"
3050 # Check whether --enable-libquadmath-support was given.
3051 if test "${enable_libquadmath_support+set}" = set; then :
3052 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3054 ENABLE_LIBQUADMATH_SUPPORT=yes
3057 enable_libquadmath_support=
3058 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3059 enable_libquadmath_support=no
3063 # Check whether --enable-libada was given.
3064 if test "${enable_libada+set}" = set; then :
3065 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3070 if test "${ENABLE_LIBADA}" != "yes" ; then
3071 noconfigdirs="$noconfigdirs gnattools"
3074 # Check whether --enable-libssp was given.
3075 if test "${enable_libssp+set}" = set; then :
3076 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3082 # Check whether --enable-libstdcxx was given.
3083 if test "${enable_libstdcxx+set}" = set; then :
3084 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3086 ENABLE_LIBSTDCXX=default
3089 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3090 noconfigdirs="$noconfigdirs libstdc++-v3"
3093 # Save it here so that, even in case of --enable-libgcj, if the Java
3094 # front-end isn't enabled, we still get libgcj disabled.
3095 libgcj_saved=$libgcj
3096 case $enable_libgcj in
3098 # If we reset it here, it won't get added to noconfigdirs in the
3099 # target-specific build rules, so it will be forcibly enabled
3100 # (unless the Java language itself isn't enabled).
3104 # Make sure we get it printed in the list of not supported target libs.
3105 # Don't disable libffi, though, other languages use it.
3106 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3107 # Clear libgcj_saved so that even if java is enabled libffi won't be
3113 # Check whether --enable-static-libjava was given.
3114 if test "${enable_static_libjava+set}" = set; then :
3115 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3117 ENABLE_STATIC_LIBJAVA=no
3120 enable_static_libjava=
3121 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3122 enable_static_libjava=yes
3125 if test x$enable_static_libjava != xyes ; then
3126 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3130 # Disable libgomp on non POSIX hosted systems.
3131 if test x$enable_libgomp = x ; then
3132 # Enable libgomp by default on hosted POSIX systems.
3134 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3136 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3138 *-*-solaris2* | *-*-hpux11*)
3140 *-*-darwin* | *-*-aix*)
3143 noconfigdirs="$noconfigdirs target-libgomp"
3148 # Disable libatomic on unsupported systems.
3149 if test -d ${srcdir}/libatomic; then
3150 if test x$enable_libatomic = x; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3152 $as_echo_n "checking for libatomic support... " >&6; }
3153 if (srcdir=${srcdir}/libatomic; \
3154 . ${srcdir}/configure.tgt; \
3155 test -n "$UNSUPPORTED")
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 noconfigdirs="$noconfigdirs target-libatomic"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3167 # Disable libitm on unsupported systems.
3168 if test -d ${srcdir}/libitm; then
3169 if test x$enable_libitm = x; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3171 $as_echo_n "checking for libitm support... " >&6; }
3172 if (srcdir=${srcdir}/libitm; \
3173 . ${srcdir}/configure.tgt; \
3174 test -n "$UNSUPPORTED")
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 noconfigdirs="$noconfigdirs target-libitm"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3186 # Disable libsanitizer on unsupported systems.
3187 if test -d ${srcdir}/libsanitizer; then
3188 if test x$enable_libsanitizer = x; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3190 $as_echo_n "checking for libsanitizer support... " >&6; }
3191 if (srcdir=${srcdir}/libsanitizer; \
3192 . ${srcdir}/configure.tgt; \
3193 test -n "$UNSUPPORTED")
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 noconfigdirs="$noconfigdirs target-libsanitizer"
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3205 # Disable libvtv on unsupported systems.
3206 if test -d ${srcdir}/libvtv; then
3207 if test x$enable_libvtv = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3209 $as_echo_n "checking for libvtv support... " >&6; }
3210 if (srcdir=${srcdir}/libvtv; \
3211 . ${srcdir}/configure.tgt; \
3212 test "$VTV_SUPPORTED" != "yes")
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libvtv"
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3224 # Disable libquadmath for some systems.
3227 noconfigdirs="$noconfigdirs target-libquadmath"
3229 # libquadmath is unused on AIX and libquadmath build process use of
3230 # LD_LIBRARY_PATH can break AIX bootstrap.
3231 powerpc-*-aix* | rs6000-*-aix*)
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3236 # Disable libssp for some systems.
3239 # No hosted I/O support.
3240 noconfigdirs="$noconfigdirs target-libssp"
3242 powerpc-*-aix* | rs6000-*-aix*)
3243 noconfigdirs="$noconfigdirs target-libssp"
3246 # libssp uses a misaligned load to trigger a fault, but the RL78
3247 # doesn't fault for those - instead, it gives a build-time error
3248 # for explicit misaligned loads.
3249 noconfigdirs="$noconfigdirs target-libssp"
3253 # Disable libstdc++-v3 for some systems.
3254 # Allow user to override this if they pass --enable-libstdc++-v3
3255 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3258 # VxWorks uses the Dinkumware C++ library.
3259 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3262 # the C++ libraries don't build on top of CE's C libraries
3263 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3271 # Disable Fortran for some systems.
3274 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3275 unsupported_languages="$unsupported_languages fortran"
3279 # Disable Java if libffi is not supported.
3311 powerpc-*-aix* | rs6000-*-aix*)
3315 powerpc64-*-freebsd*)
3319 s390-*-* | s390x-*-*)
3321 sh-*-* | sh[34]*-*-*)
3323 sh64-*-* | sh5*-*-*)
3330 unsupported_languages="$unsupported_languages java"
3334 # Disable Java, libgcj or related libraries for some systems.
3338 i[3456789]86-*-darwin*)
3340 x86_64-*-darwin[912]*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3370 noconfigdirs="$noconfigdirs target-boehm-gc"
3372 cris-*-* | crisv32-*-*)
3373 unsupported_languages="$unsupported_languages java"
3377 *) # See PR46792 regarding target-libffi.
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3382 # In this case, it's because the hppa64-linux target is for
3383 # the kernel only at this point and has no libc, and thus no
3384 # headers, crt*.o, etc., all of which are needed by these.
3385 unsupported_languages="$unsupported_languages java"
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3394 # build on HP-UX 10.20.
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3400 i[3456789]86-w64-mingw*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3403 i[3456789]86-*-mingw*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3413 # copied from rs6000-*-* entry
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3424 # Disable libgo for some systems where it is known to not work.
3425 # For testing, you can easily override this with --enable-libgo.
3426 if test x$enable_libgo = x; then
3430 noconfigdirs="$noconfigdirs target-libgo"
3432 *-*-cygwin* | *-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libgo"
3436 noconfigdirs="$noconfigdirs target-libgo"
3441 # Default libgloss CPU subdirectory.
3442 libgloss_dir="$target_cpu"
3445 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3449 libgloss_dir=aarch64
3454 cris-*-* | crisv32-*-*)
3463 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3464 libgloss_dir=m68hc11
3466 m68*-*-* | fido-*-*)
3480 # Disable newlib and libgloss for various target OSes.
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3485 i[3456789]86-*-linux*)
3486 # This section makes it possible to build newlib natively on linux.
3487 # If we are using a cross compiler then don't configure newlib.
3488 if test x${is_cross_compiler} != xno ; then
3489 noconfigdirs="$noconfigdirs target-newlib"
3491 noconfigdirs="$noconfigdirs target-libgloss"
3492 # If we are not using a cross compiler, do configure newlib.
3493 # Note however, that newlib will only be configured in this situation
3494 # if the --with-newlib option has been given, because otherwise
3495 # 'target-newlib' will appear in skipdirs.
3497 i[3456789]86-*-rdos*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3552 noconfigdirs="$noconfigdirs sim target-rda"
3554 i[3456789]86-*-darwin*)
3555 noconfigdirs="$noconfigdirs ld gprof"
3556 noconfigdirs="$noconfigdirs sim target-rda"
3558 x86_64-*-darwin[912]*)
3559 noconfigdirs="$noconfigdirs ld gas gprof"
3560 noconfigdirs="$noconfigdirs sim target-rda"
3563 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3564 noconfigdirs="$noconfigdirs sim target-rda"
3569 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3570 && test -f /usr/local/include/gmp.h; then
3575 # Remove unsupported stuff on all kaOS configurations.
3576 noconfigdirs="$noconfigdirs target-libgloss"
3583 noconfigdirs="$noconfigdirs target-libgloss"
3585 # The tpf target doesn't support gdb yet.
3587 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3590 noconfigdirs="$noconfigdirs target-rda"
3595 # ld works, but does not support shared libraries.
3596 # gas doesn't generate exception information.
3597 noconfigdirs="$noconfigdirs gas ld"
3600 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3603 # newlib is not 64 bit ready
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3607 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3610 noconfigdirs="$noconfigdirs target-libgloss"
3613 noconfigdirs="$noconfigdirs target-libgloss"
3616 noconfigdirs="$noconfigdirs ld target-libgloss"
3621 if test x${with_avrlibc} != xno; then
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 c4x-*-* | tic4x-*-*)
3626 noconfigdirs="$noconfigdirs target-libgloss"
3629 noconfigdirs="$noconfigdirs target-libgloss gdb"
3632 noconfigdirs="$noconfigdirs target-libgloss"
3635 noconfigdirs="$noconfigdirs gdb"
3638 noconfigdirs="$noconfigdirs gdb"
3641 noconfigdirs="$noconfigdirs gprof"
3644 noconfigdirs="$noconfigdirs target-libgloss"
3647 noconfigdirs="$noconfigdirs target-libgloss"
3649 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3657 hppa*-*-openbsd* | \
3661 noconfigdirs="$noconfigdirs ld"
3666 noconfigdirs="$noconfigdirs ld"
3669 noconfigdirs="$noconfigdirs gdb"
3672 # No gdb support yet.
3673 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3676 # No ld support yet.
3677 noconfigdirs="$noconfigdirs libgui itcl ld"
3680 # No ld support yet.
3681 noconfigdirs="$noconfigdirs libgui itcl ld"
3683 i[3456789]86-w64-mingw*)
3685 i[3456789]86-*-mingw*)
3686 target_configdirs="$target_configdirs target-winsup"
3689 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3690 noconfigdirs="$noconfigdirs target-libgloss"
3691 # always build newlib if winsup directory is present.
3692 if test -d "$srcdir/winsup/cygwin"; then
3693 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3694 elif test -d "$srcdir/newlib"; then
3695 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3699 noconfigdirs="$noconfigdirs target-libgloss"
3701 i[3456789]86-*-sco3.2v5*)
3702 # The linker does not yet know about weak symbols in COFF,
3703 # and is not configured to handle mixed ELF and COFF.
3704 noconfigdirs="$noconfigdirs ld target-libgloss"
3706 i[3456789]86-*-sco*)
3707 noconfigdirs="$noconfigdirs gprof target-libgloss"
3709 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3710 noconfigdirs="$noconfigdirs target-libgloss"
3712 i[3456789]86-*-sysv4*)
3713 noconfigdirs="$noconfigdirs target-libgloss"
3715 i[3456789]86-*-beos*)
3716 noconfigdirs="$noconfigdirs gdb"
3718 i[3456789]86-*-rdos*)
3719 noconfigdirs="$noconfigdirs gdb"
3722 noconfigdirs="$noconfigdirs gdb"
3725 noconfigdirs="$noconfigdirs sim"
3728 # copied from rs6000-*-* entry
3729 noconfigdirs="$noconfigdirs gprof"
3731 powerpc*-*-winnt* | powerpc*-*-pe*)
3732 target_configdirs="$target_configdirs target-winsup"
3733 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3734 # always build newlib.
3735 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3737 # This is temporary until we can link against shared libraries
3738 powerpcle-*-solaris*)
3739 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3742 noconfigdirs="$noconfigdirs gdb"
3745 noconfigdirs="$noconfigdirs gprof"
3748 noconfigdirs="$noconfigdirs gprof"
3751 noconfigdirs="$noconfigdirs gprof"
3754 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3757 noconfigdirs="$noconfigdirs gprof"
3759 mips*-sde-elf* | mips*-mti-elf*)
3760 if test x$with_newlib = xyes; then
3761 noconfigdirs="$noconfigdirs gprof"
3765 noconfigdirs="$noconfigdirs gprof target-libgloss"
3768 noconfigdirs="$noconfigdirs gprof target-libgloss"
3771 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3775 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3776 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3777 noconfigdirs="$noconfigdirs ld gas gprof"
3780 noconfigdirs="$noconfigdirs gprof"
3787 noconfigdirs="$noconfigdirs target-libgloss" ;;
3791 if test x${is_cross_compiler} = xno ; then
3796 noconfigdirs="$noconfigdirs sim"
3798 tilepro-*-* | tilegx-*-*)
3799 noconfigdirs="$noconfigdirs sim"
3802 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3809 # If we aren't building newlib, then don't build libgloss, since libgloss
3810 # depends upon some newlib header files.
3811 case "${noconfigdirs}" in
3812 *target-libgloss*) ;;
3813 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3816 # Work in distributions that contain no compiler tools, like Autoconf.
3817 host_makefile_frag=/dev/null
3818 if test -d ${srcdir}/config ; then
3820 i[3456789]86-*-msdosdjgpp*)
3821 host_makefile_frag="config/mh-djgpp"
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3826 $as_echo_n "checking to see if cat works as expected... " >&6; }
3827 echo a >cygwin-cat-check
3828 if test `cat cygwin-cat-check` = a ; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 $as_echo "yes" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 as_fn_error "The cat command does not ignore carriage return characters.
3837 Please either mount the build directory in binary mode or run the following
3838 commands before running any configure script:
3844 host_makefile_frag="config/mh-cygwin"
3847 host_makefile_frag="config/mh-mingw"
3850 host_makefile_frag="config/mh-pa-hpux10"
3853 host_makefile_frag="config/mh-pa"
3856 host_makefile_frag="config/mh-pa"
3859 host_makefile_frag="config/mh-darwin"
3862 host_makefile_frag="config/mh-ppc-aix"
3865 host_makefile_frag="config/mh-ppc-aix"
3870 if test "${build}" != "${host}" ; then
3871 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3872 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3873 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3874 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3875 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3876 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3877 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3878 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3879 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3880 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3881 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3882 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3883 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3885 AR_FOR_BUILD="\$(AR)"
3886 AS_FOR_BUILD="\$(AS)"
3887 CC_FOR_BUILD="\$(CC)"
3888 CXX_FOR_BUILD="\$(CXX)"
3889 GCJ_FOR_BUILD="\$(GCJ)"
3890 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3891 GOC_FOR_BUILD="\$(GOC)"
3892 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3893 LD_FOR_BUILD="\$(LD)"
3894 NM_FOR_BUILD="\$(NM)"
3895 RANLIB_FOR_BUILD="\$(RANLIB)"
3896 WINDRES_FOR_BUILD="\$(WINDRES)"
3897 WINDMC_FOR_BUILD="\$(WINDMC)"
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3944 if test -z "$ac_cv_prog_CC"; then
3946 # Extract the first word of "gcc", so it can be a program name with args.
3947 set dummy gcc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_ac_ct_CC="gcc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3982 if test "x$ac_ct_CC" = x; then
3985 case $cross_compiling:$ac_tool_warned in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3997 if test -z "$CC"; then
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}cc; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_CC="${ac_tool_prefix}cc"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 if test -n "$CC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 $as_echo "$CC" >&6; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4038 if test -z "$CC"; then
4039 # Extract the first word of "cc", so it can be a program name with args.
4040 set dummy cc; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4058 ac_prog_rejected=yes
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_CC
4073 if test $# != 0; then
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set CC to just the basename; use the full file name.
4078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4094 if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
4096 for ac_prog in cl.exe
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099 set dummy $ac_tool_prefix$ac_prog; 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.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 if test -n "$CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128 $as_echo "$CC" >&6; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4135 test -n "$CC" && break
4138 if test -z "$CC"; then
4140 for ac_prog in cl.exe
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_ac_ct_CC="$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172 $as_echo "$ac_ct_CC" >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4179 test -n "$ac_ct_CC" && break
4182 if test "x$ac_ct_CC" = x; then
4185 case $cross_compiling:$ac_tool_warned in
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189 ac_tool_warned=yes ;;
4198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error "no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details." "$LINENO" 5; }
4203 # Provide some information about the compiler.
4204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4207 for ac_option in --version -v -V -qversion; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4217 if test -s conftest.err; then
4219 ... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4222 rm -f conftest.er1 conftest.err
4224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4239 ac_clean_files_save=$ac_clean_files
4240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4241 # Try to create an executable without -o first, disregard a.out.
4242 # It will help us diagnose broken compilers, and finding out an intuition
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4245 $as_echo_n "checking for C compiler default output file name... " >&6; }
4246 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4248 # The possible output files:
4249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4252 for ac_file in $ac_files
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4261 if { { ac_try="$ac_link_default"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; then :
4272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4275 # so that the user can short-circuit this test for compilers unknown to
4277 for ac_file in $ac_files ''
4279 test -f "$ac_file" || continue
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4284 # We found the default executable, but exeext='' is most
4288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4292 # We set ac_cv_exeext here because the later test for it is not
4293 # safe: cross compilers may not add the suffix if given an `-o'
4294 # argument, so we may need to know it at that point already.
4295 # Even if this section looks crufty: it has the advantage of
4302 test "$ac_cv_exeext" = no && ac_cv_exeext=
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4308 $as_echo "$ac_file" >&6; }
4309 if test -z "$ac_file"; then :
4310 $as_echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 { as_fn_set_status 77
4316 as_fn_error "C compiler cannot create executables
4317 See \`config.log' for more details." "$LINENO" 5; }; }
4319 ac_exeext=$ac_cv_exeext
4321 # Check that the compiler produces executables we can run. If not, either
4322 # the compiler is broken, or we cross compile.
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4324 $as_echo_n "checking whether the C compiler works... " >&6; }
4325 # If not cross compiling, check that we can run a simple program.
4326 if test "$cross_compiling" != yes; then
4327 if { ac_try='./$ac_file'
4328 { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; }; then
4340 if test "$cross_compiling" = maybe; then
4343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4345 as_fn_error "cannot run C compiled programs.
4346 If you meant to cross compile, use \`--host'.
4347 See \`config.log' for more details." "$LINENO" 5; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4355 ac_clean_files=$ac_clean_files_save
4356 # Check that the compiler produces executables we can run. If not, either
4357 # the compiler is broken, or we cross compile.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359 $as_echo_n "checking whether we are cross compiling... " >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4361 $as_echo "$cross_compiling" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4364 $as_echo_n "checking for suffix of executables... " >&6; }
4365 if { { ac_try="$ac_link"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_link") 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; then :
4376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4378 # work properly (i.e., refer to `conftest.exe'), while it won't with
4380 for ac_file in conftest.exe conftest conftest.*; do
4381 test -f "$ac_file" || continue
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error "cannot compute suffix of executables: cannot compile and link
4393 See \`config.log' for more details." "$LINENO" 5; }
4395 rm -f conftest$ac_cv_exeext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397 $as_echo "$ac_cv_exeext" >&6; }
4399 rm -f conftest.$ac_ext
4400 EXEEXT=$ac_cv_exeext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4403 $as_echo_n "checking for suffix of object files... " >&6; }
4404 if test "${ac_cv_objext+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4418 rm -f conftest.o conftest.obj
4419 if { { ac_try="$ac_compile"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compile") 2>&5
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
4430 for ac_file in conftest.o conftest.obj conftest.*; do
4431 test -f "$ac_file" || continue;
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4439 $as_echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error "cannot compute suffix of object files: cannot compile
4445 See \`config.log' for more details." "$LINENO" 5; }
4447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4450 $as_echo "$ac_cv_objext" >&6; }
4451 OBJEXT=$ac_cv_objext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4455 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4472 if ac_fn_c_try_compile "$LINENO"; then :
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4483 if test $ac_compiler_gnu = yes; then
4488 ac_test_CFLAGS=${CFLAGS+set}
4489 ac_save_CFLAGS=$CFLAGS
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4492 if test "${ac_cv_prog_cc_g+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4495 ac_save_c_werror_flag=$ac_c_werror_flag
4496 ac_c_werror_flag=yes
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4510 if ac_fn_c_try_compile "$LINENO"; then :
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4525 if ac_fn_c_try_compile "$LINENO"; then :
4528 ac_c_werror_flag=$ac_save_c_werror_flag
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 if ac_fn_c_try_compile "$LINENO"; then :
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4552 $as_echo "$ac_cv_prog_cc_g" >&6; }
4553 if test "$ac_test_CFLAGS" = set; then
4554 CFLAGS=$ac_save_CFLAGS
4555 elif test $ac_cv_prog_cc_g = yes; then
4556 if test "$GCC" = yes; then
4562 if test "$GCC" = yes; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4570 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4573 ac_cv_prog_cc_c89=no
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4579 #include <sys/types.h>
4580 #include <sys/stat.h>
4581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4582 struct buf { int x; };
4583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4584 static char *e (p, i)
4590 static char *f (char * (*g) (char **, int), char **p, ...)
4595 s = g (p, va_arg (v,int));
4600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4601 function prototypes and stuff, but not '\xHH' hex character constants.
4602 These don't provoke an error unfortunately, instead are silently treated
4603 as 'x'. The following induces an error, until -std is added to get
4604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4605 array size at least. It's necessary to write '\x00'==0 to get something
4606 that's true only with -std. */
4607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4610 inside strings and character constants. */
4612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4614 int test (int i, double x);
4615 struct s1 {int (*f) (int a);};
4616 struct s2 {int (*f) (double a);};
4617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4631 CC="$ac_save_CC $ac_arg"
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_c89=$ac_arg
4635 rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c89" != "xno" && break
4638 rm -f conftest.$ac_ext
4643 case "x$ac_cv_prog_cc_c89" in
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4646 $as_echo "none needed" >&6; } ;;
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649 $as_echo "unsupported" >&6; } ;;
4651 CC="$CC $ac_cv_prog_cc_c89"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4655 if test "x$ac_cv_prog_cc_c89" != xno; then :
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 ac_cpp='$CXXCPP $CPPFLAGS'
4667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4670 if test -z "$CXX"; then
4671 if test -n "$CCC"; then
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_CXX+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$CXX"; then
4685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test -n "$CXX"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4707 $as_echo "$CXX" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$CXX" && break
4717 if test -z "$CXX"; then
4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$ac_ct_CXX"; then
4729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CXX="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4749 if test -n "$ac_ct_CXX"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4751 $as_echo "$ac_ct_CXX" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 test -n "$ac_ct_CXX" && break
4761 if test "x$ac_ct_CXX" = x; then
4764 case $cross_compiling:$ac_tool_warned in
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4776 # Provide some information about the compiler.
4777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4780 for ac_option in --version -v -V -qversion; do
4781 { { ac_try="$ac_compiler $ac_option >&5"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787 $as_echo "$ac_try_echo"; } >&5
4788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4790 if test -s conftest.err; then
4792 ... rest of stderr output deleted ...
4793 10q' conftest.err >conftest.er1
4794 cat conftest.er1 >&5
4795 rm -f conftest.er1 conftest.err
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4802 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4803 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4820 if ac_fn_cxx_try_compile "$LINENO"; then :
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4830 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4831 if test $ac_compiler_gnu = yes; then
4836 ac_test_CXXFLAGS=${CXXFLAGS+set}
4837 ac_save_CXXFLAGS=$CXXFLAGS
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4839 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4840 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4844 ac_cxx_werror_flag=yes
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4858 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 ac_cv_prog_cxx_g=yes
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4873 if ac_fn_cxx_try_compile "$LINENO"; then :
4876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_cxx_try_compile "$LINENO"; then :
4890 ac_cv_prog_cxx_g=yes
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4900 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4901 if test "$ac_test_CXXFLAGS" = set; then
4902 CXXFLAGS=$ac_save_CXXFLAGS
4903 elif test $ac_cv_prog_cxx_g = yes; then
4904 if test "$GXX" = yes; then
4910 if test "$GXX" = yes; then
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 # We must set the default linker to the linker used by gcc for the correct
4924 # operation of libtool. If LD is not defined and we are using gcc, try to
4925 # set the LD default to the ld used by gcc.
4926 if test -z "$LD"; then
4927 if test "$GCC" = yes; then
4930 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4932 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4934 case $gcc_prog_ld in
4935 # Accept absolute paths.
4936 [\\/]* | [A-Za-z]:[\\/]*)
4937 LD="$gcc_prog_ld" ;;
4942 # Check whether -static-libstdc++ -static-libgcc is supported.
4944 if test "$GCC" = yes; then
4945 saved_LDFLAGS="$LDFLAGS"
4947 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4949 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4960 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4961 #error -static-libstdc++ not implemented
4965 if ac_fn_cxx_try_link "$LINENO"; then :
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967 $as_echo "yes" >&6; }; have_static_libs=yes
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4972 rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 LDFLAGS="$saved_LDFLAGS"
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4995 if test -n "$GNATBIND"; then
4996 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 GNATBIND=$ac_cv_prog_GNATBIND
5016 if test -n "$GNATBIND"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5018 $as_echo "$GNATBIND" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5026 if test -z "$ac_cv_prog_GNATBIND"; then
5027 ac_ct_GNATBIND=$GNATBIND
5028 # Extract the first word of "gnatbind", so it can be a program name with args.
5029 set dummy gnatbind; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$ac_ct_GNATBIND"; then
5036 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5056 if test -n "$ac_ct_GNATBIND"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5058 $as_echo "$ac_ct_GNATBIND" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5064 if test "x$ac_ct_GNATBIND" = x; then
5067 case $cross_compiling:$ac_tool_warned in
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5073 GNATBIND=$ac_ct_GNATBIND
5076 GNATBIND="$ac_cv_prog_GNATBIND"
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$GNATMAKE"; then
5088 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 GNATMAKE=$ac_cv_prog_GNATMAKE
5108 if test -n "$GNATMAKE"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5110 $as_echo "$GNATMAKE" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_GNATMAKE"; then
5119 ac_ct_GNATMAKE=$GNATMAKE
5120 # Extract the first word of "gnatmake", so it can be a program name with args.
5121 set dummy gnatmake; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$ac_ct_GNATMAKE"; then
5128 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5148 if test -n "$ac_ct_GNATMAKE"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5150 $as_echo "$ac_ct_GNATMAKE" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_GNATMAKE" = x; then
5159 case $cross_compiling:$ac_tool_warned in
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5165 GNATMAKE=$ac_ct_GNATMAKE
5168 GNATMAKE="$ac_cv_prog_GNATMAKE"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5172 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5173 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 cat >conftest.adb <<EOF
5177 procedure conftest is begin null; end conftest;
5179 acx_cv_cc_gcc_supports_ada=no
5180 # There is a bug in old released versions of GCC which causes the
5181 # driver to exit successfully when the appropriate language module
5182 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5183 # Therefore we must check for the error message as well as an
5184 # unsuccessful exit.
5185 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5186 # given a .adb file, but produce no object file. So we must check
5187 # if an object file was really produced to guard against this.
5188 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5189 if test x"$errors" = x && test -f conftest.$ac_objext; then
5190 acx_cv_cc_gcc_supports_ada=yes
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5195 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5197 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5204 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5205 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5210 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5211 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5212 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5215 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5218 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5219 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5222 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5229 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5230 do_compare="$gcc_cv_prog_cmp_skip"
5234 # Check whether --enable-bootstrap was given.
5235 if test "${enable_bootstrap+set}" = set; then :
5236 enableval=$enable_bootstrap;
5238 enable_bootstrap=default
5242 # Issue errors and warnings for invalid/strange bootstrap combinations.
5243 if test -r $srcdir/gcc/configure; then
5249 case "$have_compiler:$host:$target:$enable_bootstrap" in
5252 # Default behavior. Enable bootstrap if we have a compiler
5253 # and we are in a native configuration.
5254 yes:$build:$build:default)
5255 enable_bootstrap=yes ;;
5258 enable_bootstrap=no ;;
5260 # We have a compiler and we are in a native configuration, bootstrap is ok
5261 yes:$build:$build:yes)
5264 # Other configurations, but we have a compiler. Assume the user knows
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5268 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5271 # No compiler: if they passed --enable-bootstrap explicitly, fail
5273 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5275 # Fail if wrong command line
5277 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5281 # Used for setting $lt_cv_objdir
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5283 $as_echo_n "checking for objdir... " >&6; }
5284 if test "${lt_cv_objdir+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 rm -f .libs 2>/dev/null
5288 mkdir .libs 2>/dev/null
5289 if test -d .libs; then
5292 # MS-DOS does not allow filenames that begin with a dot.
5295 rmdir .libs 2>/dev/null
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5298 $as_echo "$lt_cv_objdir" >&6; }
5299 objdir=$lt_cv_objdir
5305 cat >>confdefs.h <<_ACEOF
5306 #define LT_OBJDIR "$lt_cv_objdir/"
5311 # Check for GMP, MPFR and MPC
5312 gmplibs="-lmpc -lmpfr -lgmp"
5316 # Specify a location for mpc
5317 # check for this first so it ends up on the link line before mpfr.
5319 # Check whether --with-mpc was given.
5320 if test "${with_mpc+set}" = set; then :
5325 # Check whether --with-mpc-include was given.
5326 if test "${with_mpc_include+set}" = set; then :
5327 withval=$with_mpc_include;
5331 # Check whether --with-mpc-lib was given.
5332 if test "${with_mpc_lib+set}" = set; then :
5333 withval=$with_mpc_lib;
5337 if test "x$with_mpc" != x; then
5338 gmplibs="-L$with_mpc/lib $gmplibs"
5339 gmpinc="-I$with_mpc/include $gmpinc"
5341 if test "x$with_mpc_include" != x; then
5342 gmpinc="-I$with_mpc_include $gmpinc"
5344 if test "x$with_mpc_lib" != x; then
5345 gmplibs="-L$with_mpc_lib $gmplibs"
5347 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5348 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5349 gmpinc='-I$$s/mpc/src '"$gmpinc"
5350 # Do not test the mpc version. Assume that it is sufficient, since
5351 # it is in the source tree, and the library has not been built yet
5352 # but it would be included on the link line in the version check below
5353 # hence making the test fail.
5357 # Specify a location for mpfr
5358 # check for this first so it ends up on the link line before gmp.
5360 # Check whether --with-mpfr-dir was given.
5361 if test "${with_mpfr_dir+set}" = set; then :
5362 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5363 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5368 # Check whether --with-mpfr was given.
5369 if test "${with_mpfr+set}" = set; then :
5374 # Check whether --with-mpfr-include was given.
5375 if test "${with_mpfr_include+set}" = set; then :
5376 withval=$with_mpfr_include;
5380 # Check whether --with-mpfr-lib was given.
5381 if test "${with_mpfr_lib+set}" = set; then :
5382 withval=$with_mpfr_lib;
5386 if test "x$with_mpfr" != x; then
5387 gmplibs="-L$with_mpfr/lib $gmplibs"
5388 gmpinc="-I$with_mpfr/include $gmpinc"
5390 if test "x$with_mpfr_include" != x; then
5391 gmpinc="-I$with_mpfr_include $gmpinc"
5393 if test "x$with_mpfr_lib" != x; then
5394 gmplibs="-L$with_mpfr_lib $gmplibs"
5396 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5397 # MPFR v3.1.0 moved the sources into a src sub-directory.
5398 if test -d ${srcdir}/mpfr/src; then
5399 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5400 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5401 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5403 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5404 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5405 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5407 # Do not test the mpfr version. Assume that it is sufficient, since
5408 # it is in the source tree, and the library has not been built yet
5409 # but it would be included on the link line in the version check below
5410 # hence making the test fail.
5414 # Specify a location for gmp
5416 # Check whether --with-gmp-dir was given.
5417 if test "${with_gmp_dir+set}" = set; then :
5418 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5419 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5424 # Check whether --with-gmp was given.
5425 if test "${with_gmp+set}" = set; then :
5430 # Check whether --with-gmp-include was given.
5431 if test "${with_gmp_include+set}" = set; then :
5432 withval=$with_gmp_include;
5436 # Check whether --with-gmp-lib was given.
5437 if test "${with_gmp_lib+set}" = set; then :
5438 withval=$with_gmp_lib;
5443 if test "x$with_gmp" != x; then
5444 gmplibs="-L$with_gmp/lib $gmplibs"
5445 gmpinc="-I$with_gmp/include $gmpinc"
5447 if test "x$with_gmp_include" != x; then
5448 gmpinc="-I$with_gmp_include $gmpinc"
5450 if test "x$with_gmp_lib" != x; then
5451 gmplibs="-L$with_gmp_lib $gmplibs"
5453 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5454 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5455 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5456 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5457 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5458 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5459 # Do not test the gmp version. Assume that it is sufficient, since
5460 # it is in the source tree, and the library has not been built yet
5461 # but it would be included on the link line in the version check below
5462 # hence making the test fail.
5466 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5468 saved_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS $gmpinc"
5470 # Check for the recommended and required versions of GMP.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5472 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5481 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5482 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5483 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5499 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5500 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5501 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5514 $as_echo "buggy but acceptable" >&6; }
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }; have_gmp=no
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 # If we have GMP, check the MPFR version.
5524 if test x"$have_gmp" = xyes; then
5525 # Check for the recommended and required versions of MPFR.
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5527 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5536 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5566 $as_echo "buggy but acceptable" >&6; }
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }; have_gmp=no
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 # Check for the MPC header version.
5577 if test x"$have_gmp" = xyes ; then
5578 # Check for the recommended and required versions of MPC.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5580 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5588 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5604 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614 $as_echo "yes" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5617 $as_echo "buggy but acceptable" >&6; }
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }; have_gmp=no
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 # Now check the MPFR library.
5628 if test x"$have_gmp" = xyes; then
5630 LIBS="$LIBS $gmplibs"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5632 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5646 mpfr_atan2 (n, n, x, GMP_RNDN);
5647 mpfr_erfc (n, x, GMP_RNDN);
5648 mpfr_subnormalize (x, t, GMP_RNDN);
5652 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5653 mpc_cosh (c, c, MPC_RNDNN);
5654 mpc_pow (c, c, c, MPC_RNDNN);
5655 mpc_acosh (c, c, MPC_RNDNN);
5662 if ac_fn_c_try_link "$LINENO"; then :
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664 $as_echo "yes" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }; have_gmp=no
5669 rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5674 CFLAGS="$saved_CFLAGS"
5676 # The library versions listed in the error message below should match
5677 # the HARD-minimums enforced above.
5678 if test x$have_gmp != xyes; then
5679 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5680 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5681 their locations. Source code for these libraries can be found at
5682 their respective hosting sites as well as at
5683 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5684 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5685 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5686 make sure that you have installed both the libraries and the header
5687 files. They may be located in separate packages." "$LINENO" 5
5691 # Flags needed for both GMP, MPFR and/or MPC.
5699 # Allow host libstdc++ to be specified for static linking with PPL.
5701 # Check whether --with-host-libstdcxx was given.
5702 if test "${with_host_libstdcxx+set}" = set; then :
5703 withval=$with_host_libstdcxx;
5707 case $with_host_libstdcxx in
5709 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5713 # Libraries to use for stage1 or when not bootstrapping.
5715 # Check whether --with-stage1-libs was given.
5716 if test "${with_stage1_libs+set}" = set; then :
5717 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5720 stage1_libs=$withval
5723 stage1_libs=$with_host_libstdcxx
5728 # Linker flags to use for stage1 or when not bootstrapping.
5730 # Check whether --with-stage1-ldflags was given.
5731 if test "${with_stage1_ldflags+set}" = set; then :
5732 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5735 stage1_ldflags=$withval
5739 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5740 # if supported. But if the user explicitly specified the libraries to use,
5741 # trust that they are doing what they want.
5742 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5743 stage1_ldflags="-static-libstdc++ -static-libgcc"
5749 # Libraries to use for stage2 and later builds. This defaults to the
5750 # argument passed to --with-host-libstdcxx.
5752 # Check whether --with-boot-libs was given.
5753 if test "${with_boot_libs+set}" = set; then :
5754 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5757 poststage1_libs=$withval
5760 poststage1_libs=$with_host_libstdcxx
5765 # Linker flags to use for stage2 and later builds.
5767 # Check whether --with-boot-ldflags was given.
5768 if test "${with_boot_ldflags+set}" = set; then :
5769 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5772 poststage1_ldflags=$withval
5776 # In stages 2 and 3, default to linking libstdc++ and libgcc
5777 # statically. But if the user explicitly specified the libraries to
5778 # use, trust that they are doing what they want.
5779 if test "$poststage1_libs" = ""; then
5780 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5786 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5787 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5791 # Check whether --with-cloog was given.
5792 if test "${with_cloog+set}" = set; then :
5793 withval=$with_cloog;
5797 # Check whether --with-isl was given.
5798 if test "${with_isl+set}" = set; then :
5803 # Treat either --without-cloog or --without-isl as a request to disable
5804 # GRAPHITE support and skip all following checks.
5805 if test "x$with_isl" != "xno" &&
5806 test "x$with_cloog" != "xno"; then
5810 # Check whether --with-isl-include was given.
5811 if test "${with_isl_include+set}" = set; then :
5812 withval=$with_isl_include;
5816 # Check whether --with-isl-lib was given.
5817 if test "${with_isl_lib+set}" = set; then :
5818 withval=$with_isl_lib;
5822 # Check whether --enable-isl-version-check was given.
5823 if test "${enable_isl_version_check+set}" = set; then :
5824 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5826 ENABLE_ISL_CHECK=yes
5830 # Initialize isllibs and islinc.
5839 isllibs="-L$with_isl/lib"
5840 islinc="-I$with_isl/include"
5843 if test "x${with_isl_include}" != x ; then
5844 islinc="-I$with_isl_include"
5846 if test "x${with_isl_lib}" != x; then
5847 isllibs="-L$with_isl_lib"
5849 if test "x${islinc}" = x && test "x${isllibs}" = x \
5850 && test -d ${srcdir}/isl; then
5851 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5852 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5855 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5860 if test "${ENABLE_ISL_CHECK}" = yes ; then
5861 _isl_saved_CFLAGS=$CFLAGS
5862 _isl_saved_LDFLAGS=$LDFLAGS
5863 _isl_saved_LIBS=$LIBS
5865 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5866 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5867 LIBS="${_isl_saved_LIBS} -lisl"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5870 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5871 if test "$cross_compiling" = yes; then :
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <isl/version.h>
5881 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5888 if ac_fn_c_try_run "$LINENO"; then :
5893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894 conftest.$ac_objext conftest.beam conftest.$ac_ext
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5898 $as_echo "$gcc_cv_isl" >&6; }
5900 CFLAGS=$_isl_saved_CFLAGS
5901 LDFLAGS=$_isl_saved_LDFLAGS
5902 LIBS=$_isl_saved_LIBS
5906 if test "${gcc_cv_isl}" = no ; then
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5918 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5919 if test "$cross_compiling" = yes; then :
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #include <isl/version.h>
5929 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5936 if ac_fn_c_try_run "$LINENO"; then :
5941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5946 $as_echo "$gcc_cv_isl" >&6; }
5948 CFLAGS=$_isl_saved_CFLAGS
5949 LDFLAGS=$_isl_saved_LDFLAGS
5950 LIBS=$_isl_saved_LIBS
5954 if test "${gcc_cv_isl}" = no ; then
5956 if test "${ENABLE_ISL_CHECK}" = yes ; then
5957 _isl_saved_CFLAGS=$CFLAGS
5958 _isl_saved_LDFLAGS=$LDFLAGS
5959 _isl_saved_LIBS=$LIBS
5961 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5962 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5963 LIBS="${_isl_saved_LIBS} -lisl"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5966 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5967 if test "$cross_compiling" = yes; then :
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <isl/version.h>
5977 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5984 if ac_fn_c_try_run "$LINENO"; then :
5989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5990 conftest.$ac_objext conftest.beam conftest.$ac_ext
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5994 $as_echo "$gcc_cv_isl" >&6; }
5996 CFLAGS=$_isl_saved_CFLAGS
5997 LDFLAGS=$_isl_saved_LDFLAGS
5998 LIBS=$_isl_saved_LIBS
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6015 graphite_requested=no
6020 if test "${gcc_cv_isl}" = no ; then
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
6029 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6034 if test "x$gcc_cv_isl" != "xno"; then
6038 # Check whether --with-cloog-include was given.
6039 if test "${with_cloog_include+set}" = set; then :
6040 withval=$with_cloog_include;
6044 # Check whether --with-cloog-lib was given.
6045 if test "${with_cloog_lib+set}" = set; then :
6046 withval=$with_cloog_lib;
6050 # Check whether --enable-cloog-version-check was given.
6051 if test "${enable_cloog_version_check+set}" = set; then :
6052 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6054 ENABLE_CLOOG_CHECK=yes
6058 # Initialize clooglibs and clooginc.
6067 clooglibs="-L$with_cloog/lib"
6068 clooginc="-I$with_cloog/include"
6071 if test "x${with_cloog_include}" != x ; then
6072 clooginc="-I$with_cloog_include"
6074 if test "x${with_cloog_lib}" != x; then
6075 clooglibs="-L$with_cloog_lib"
6077 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6078 && test -d ${srcdir}/cloog; then
6079 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6080 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6081 ENABLE_CLOOG_CHECK=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6083 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6086 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6087 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6093 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6094 _cloog_saved_CFLAGS=$CFLAGS
6095 _cloog_saved_LDFLAGS=$LDFLAGS
6097 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6098 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6101 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include "cloog/version.h"
6108 #if CLOOG_VERSION_MAJOR != 0 \
6109 || CLOOG_VERSION_MINOR != 17 \
6110 || CLOOG_VERSION_REVISION < 0
6117 if ac_fn_c_try_compile "$LINENO"; then :
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6124 $as_echo "$gcc_cv_cloog" >&6; }
6126 CFLAGS=$_cloog_saved_CFLAGS
6127 LDFLAGS=$_cloog_saved_LDFLAGS
6131 if test "${gcc_cv_cloog}" = no ; then
6135 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6136 _cloog_saved_CFLAGS=$CFLAGS
6137 _cloog_saved_LDFLAGS=$LDFLAGS
6139 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6140 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6143 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include "cloog/version.h"
6150 #if CLOOG_VERSION_MAJOR != 0 \
6151 || CLOOG_VERSION_MINOR != 18 \
6152 || CLOOG_VERSION_REVISION < 0
6159 if ac_fn_c_try_compile "$LINENO"; then :
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6166 $as_echo "$gcc_cv_cloog" >&6; }
6168 CFLAGS=$_cloog_saved_CFLAGS
6169 LDFLAGS=$_cloog_saved_LDFLAGS
6179 if test "x${with_cloog}" = xno; then
6180 graphite_requested=no
6181 elif test "x${with_cloog}" != x \
6182 || test "x${with_cloog_include}" != x \
6183 || test "x${with_cloog_lib}" != x ; then
6184 graphite_requested=yes
6186 graphite_requested=no
6191 if test "${gcc_cv_cloog}" = no ; then
6196 if test "${graphite_requested}" = yes \
6197 && test "x${clooglibs}" = x \
6198 && test "x${clooginc}" = x ; then
6200 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6207 # If either the ISL or the CLooG check failed, disable builds of in-tree
6209 if test "x$with_isl" = xno ||
6210 test "x$with_cloog" = xno ||
6211 test "x$gcc_cv_cloog" = xno ||
6212 test "x$gcc_cv_isl" = xno; then
6213 noconfigdirs="$noconfigdirs cloog isl"
6224 # Check for LTO support.
6225 # Check whether --enable-lto was given.
6226 if test "${enable_lto+set}" = set; then :
6227 enableval=$enable_lto; enable_lto=$enableval
6229 enable_lto=yes; default_enable_lto=yes
6238 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6239 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6240 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6248 if test $target_elf = yes; then :
6249 # ELF platforms build the lto-plugin always.
6250 build_lto_plugin=yes
6253 if test x"$default_enable_lto" = x"yes" ; then
6255 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6256 # On other non-ELF platforms, LTO has yet to be validated.
6260 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6261 # It would also be nice to check the binutils support, but we don't
6262 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6263 # warn during gcc/ subconfigure; unless you're bootstrapping with
6264 # -flto it won't be needed until after installation anyway.
6266 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6267 *) if test x"$enable_lto" = x"yes"; then
6268 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6273 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6274 # Build it unless LTO was explicitly disabled.
6276 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6284 # By default, C and C++ are the only stage 1 languages.
6285 stage1_languages=,c,
6287 # Target libraries that we bootstrap.
6288 bootstrap_target_libs=,target-libgcc,
6290 # Figure out what language subdirectories are present.
6291 # Look if the user specified --enable-languages="..."; if not, use
6292 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6294 # NB: embedded tabs in this IF block -- do not untabify
6295 if test -d ${srcdir}/gcc; then
6296 if test x"${enable_languages+set}" != xset; then
6297 if test x"${LANGUAGES+set}" = xset; then
6298 enable_languages="${LANGUAGES}"
6299 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6301 enable_languages=all
6304 if test x"${enable_languages}" = x ||
6305 test x"${enable_languages}" = xyes;
6307 echo configure.in: --enable-languages needs at least one language argument 1>&2
6311 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6313 # 'f95' is the old name for the 'fortran' language. We issue a warning
6314 # and make the substitution.
6315 case ,${enable_languages}, in
6317 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6318 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6322 # If bootstrapping, C++ must be enabled.
6323 case ",$enable_languages,:$enable_bootstrap" in
6326 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6327 enable_languages="${enable_languages},c++"
6329 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6334 # First scan to see if an enabled language requires some other language.
6335 # We assume that a given config-lang.in will list all the language
6336 # front ends it requires, even if some are required indirectly.
6337 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6338 case ${lang_frag} in
6340 # The odd quoting in the next line works around
6341 # an apparent bug in bash 1.12 on linux.
6342 ${srcdir}/gcc/[*]/config-lang.in) ;;
6344 # From the config-lang.in, get $language, $lang_requires, and
6345 # $lang_requires_boot_languages.
6348 lang_requires_boot_languages=
6350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6351 case ,${enable_languages}, in
6355 echo " \`$other' language required by \`$language'; enabling" 1>&2
6356 enable_languages="${enable_languages},${other}"
6360 for other in ${lang_requires_boot_languages} ; do
6361 if test "$other" != "c"; then
6362 case ,${enable_stage1_languages}, in
6366 case ,${enable_languages}, in
6368 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6369 enable_stage1_languages="$enable_stage1_languages,${other}"
6380 new_enable_languages=,c,
6382 # If LTO is enabled, add the LTO front end.
6383 extra_host_libiberty_configure_flags=
6384 if test "$enable_lto" = "yes" ; then
6385 case ,${enable_languages}, in
6387 *) enable_languages="${enable_languages},lto" ;;
6389 if test "${build_lto_plugin}" = "yes" ; then
6390 configdirs="$configdirs lto-plugin"
6391 extra_host_libiberty_configure_flags=--enable-shared
6396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6397 potential_languages=,c,
6399 enabled_target_libs=
6400 disabled_target_libs=
6402 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6403 case ${lang_frag} in
6405 # The odd quoting in the next line works around
6406 # an apparent bug in bash 1.12 on linux.
6407 ${srcdir}/gcc/[*]/config-lang.in) ;;
6409 # From the config-lang.in, get $language, $target_libs,
6410 # $lang_dirs, $boot_language, and $build_by_default
6416 build_by_default=yes
6418 if test x${language} = x; then
6419 echo "${lang_frag} doesn't set \$language." 1>&2
6423 if test "$language" = "c++"; then
6428 case ,${enable_languages}, in
6430 # Language was explicitly selected; include it
6431 # unless it is C, which is enabled by default.
6432 if test "$language" != "c"; then
6437 # 'all' was selected, select it if it is a default language
6438 if test "$language" != "c"; then
6439 add_this_lang=${build_by_default}
6444 # Disable languages that need other directories if these aren't available.
6445 for i in $subdir_requires; do
6446 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6447 case ,${enable_languages}, in
6449 # Specifically requested language; tell them.
6450 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6454 add_this_lang=unsupported
6459 # Disable Ada if no preexisting GNAT is available.
6460 case ,${enable_languages},:${language}:${have_gnat} in
6461 *,${language},*:ada:no)
6462 # Specifically requested language; tell them.
6463 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6467 add_this_lang=unsupported
6471 # Disable a language that is unsupported by the target.
6472 case " $unsupported_languages " in
6474 add_this_lang=unsupported
6478 case $add_this_lang in
6480 # Remove language-dependent dirs.
6481 disabled_target_libs="$disabled_target_libs $target_libs"
6482 noconfigdirs="$noconfigdirs $lang_dirs"
6485 # Remove language-dependent dirs; still show language as supported.
6486 disabled_target_libs="$disabled_target_libs $target_libs"
6487 noconfigdirs="$noconfigdirs $lang_dirs"
6488 potential_languages="${potential_languages}${language},"
6491 new_enable_languages="${new_enable_languages}${language},"
6492 potential_languages="${potential_languages}${language},"
6493 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6494 enabled_target_libs="$enabled_target_libs $target_libs"
6495 case "${boot_language}:,$enable_stage1_languages," in
6496 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6497 # Add to (comma-separated) list of stage 1 languages.
6498 case ",$stage1_languages," in
6499 *,$language,* | ,yes, | ,all,) ;;
6500 *) stage1_languages="${stage1_languages}${language}," ;;
6502 # We need to bootstrap any supporting libraries.
6503 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6512 # Add target libraries which are only needed for disabled languages
6514 if test -n "$disabled_target_libs"; then
6515 for dir in $disabled_target_libs; do
6516 case " $enabled_target_libs " in
6518 *) noconfigdirs="$noconfigdirs $dir" ;;
6523 # Check whether --enable-stage1-languages was given.
6524 if test "${enable_stage1_languages+set}" = set; then :
6525 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6527 # Set it to something that will have no effect in the loop below
6528 enable_stage1_languages=c ;;
6530 enable_stage1_languages=`echo $new_enable_languages | \
6531 sed -e "s/^,//" -e "s/,$//" ` ;;
6533 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6534 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6537 # Add "good" languages from enable_stage1_languages to stage1_languages,
6538 # while "bad" languages go in missing_languages. Leave no duplicates.
6539 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6540 case $potential_languages in
6542 case $stage1_languages in
6544 *) stage1_languages="$stage1_languages$i," ;;
6547 case $missing_languages in
6549 *) missing_languages="$missing_languages$i," ;;
6556 # Remove leading/trailing commas that were added for simplicity
6557 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6558 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6559 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6560 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6562 if test "x$missing_languages" != x; then
6564 The following requested languages could not be built: ${missing_languages}
6565 Supported languages are: ${potential_languages}" "$LINENO" 5
6567 if test "x$new_enable_languages" != "x$enable_languages"; then
6568 echo The following languages will be built: ${new_enable_languages}
6569 enable_languages="$new_enable_languages"
6573 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6576 # Handle --disable-<component> generically.
6577 for dir in $configdirs $build_configdirs $target_configdirs ; do
6578 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6579 varname=`echo $dirname | sed -e s/+/_/g`
6580 if eval test x\${enable_${varname}} "=" xno ; then
6581 noconfigdirs="$noconfigdirs $dir"
6585 # Check for Boehm's garbage collector
6586 # Check whether --enable-objc-gc was given.
6587 if test "${enable_objc_gc+set}" = set; then :
6588 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6589 *,objc,*:*:yes:*target-boehm-gc*)
6590 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6596 # Make sure we only build Boehm's garbage collector if required.
6597 case ,${enable_languages},:${enable_objc_gc} in
6599 # Keep target-boehm-gc if requested for Objective-C.
6602 # Otherwise remove target-boehm-gc depending on target-libjava.
6603 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6604 noconfigdirs="$noconfigdirs target-boehm-gc"
6609 # Disable libitm, libsanitizer, libvtv if we're not building C++
6610 case ,${enable_languages}, in
6613 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
6617 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6618 # $build_configdirs and $target_configdirs.
6619 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6622 for dir in . $skipdirs $noconfigdirs ; do
6623 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6624 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6625 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6626 if test -r $srcdir/$dirname/configure ; then
6627 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6630 notsupp="$notsupp $dir"
6634 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6636 if test -r $srcdir/$dirname/configure ; then
6637 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6640 notsupp="$notsupp $dir"
6644 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6645 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6646 if test -r $srcdir/$dirname/configure ; then
6647 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6650 notsupp="$notsupp $dir"
6656 # Quietly strip out all directories which aren't configurable in this tree.
6657 # This relies on all configurable subdirectories being autoconfiscated, which
6659 build_configdirs_all="$build_configdirs"
6661 for i in ${build_configdirs_all} ; do
6662 j=`echo $i | sed -e s/build-//g`
6663 if test -f ${srcdir}/$j/configure ; then
6664 build_configdirs="${build_configdirs} $i"
6668 configdirs_all="$configdirs"
6670 for i in ${configdirs_all} ; do
6671 if test -f ${srcdir}/$i/configure ; then
6672 configdirs="${configdirs} $i"
6676 target_configdirs_all="$target_configdirs"
6678 for i in ${target_configdirs_all} ; do
6679 j=`echo $i | sed -e s/target-//g`
6680 if test -f ${srcdir}/$j/configure ; then
6681 target_configdirs="${target_configdirs} $i"
6685 # Produce a warning message for the subdirs we can't configure.
6686 # This isn't especially interesting in the Cygnus tree, but in the individual
6687 # FSF releases, it's important to let people know when their machine isn't
6688 # supported by the one or two programs in a package.
6690 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6691 # If $appdirs is non-empty, at least one of those directories must still
6692 # be configured, or we error out. (E.g., if the gas release supports a
6693 # specified target in some subdirs but not the gas subdir, we shouldn't
6694 # pretend that all is well.)
6695 if test -n "$appdirs" ; then
6696 for dir in $appdirs ; do
6697 if test -r $dir/Makefile.in ; then
6698 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6702 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6708 if test -n "$appdirs" ; then
6709 echo "*** This configuration is not supported by this package." 1>&2
6713 # Okay, some application will build, or we don't care to check. Still
6714 # notify of subdirs not getting built.
6715 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6716 echo " ${notsupp}" 1>&2
6717 echo " (Any other directories should still work fine.)" 1>&2
6725 # To find our prefix, in gcc_cv_tool_prefix.
6727 # The user is always right.
6728 if test "${PATH_SEPARATOR+set}" != set; then
6729 echo "#! /bin/sh" >conf$$.sh
6730 echo "exit 0" >>conf$$.sh
6732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6742 if test "x$exec_prefix" = xNONE; then
6743 if test "x$prefix" = xNONE; then
6744 gcc_cv_tool_prefix=$ac_default_prefix
6746 gcc_cv_tool_prefix=$prefix
6749 gcc_cv_tool_prefix=$exec_prefix
6752 # If there is no compiler in the tree, use the PATH only. In any
6753 # case, if there is no compiler in the tree nobody should use
6754 # AS_FOR_TARGET and LD_FOR_TARGET.
6755 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6756 gcc_version=`cat $srcdir/gcc/BASE-VER`
6757 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6758 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6759 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6760 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6762 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6767 if test x$build = x$target && test -n "$md_exec_prefix"; then
6768 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6776 # Check whether --with-build-sysroot was given.
6777 if test "${with_build_sysroot+set}" = set; then :
6778 withval=$with_build_sysroot; if test x"$withval" != x ; then
6779 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6782 SYSROOT_CFLAGS_FOR_TARGET=
6788 # Check whether --with-debug-prefix-map was given.
6789 if test "${with_debug_prefix_map+set}" = set; then :
6790 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6791 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6792 for debug_map in $withval; do
6793 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6797 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6802 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6803 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6804 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6805 # We want to ensure that TARGET libraries (which we know are built with
6806 # gcc) are built with "-O2 -g", so include those options when setting
6807 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6808 if test "x$CFLAGS_FOR_TARGET" = x; then
6809 CFLAGS_FOR_TARGET=$CFLAGS
6812 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6815 *" -g "* | *" -g3 "*) ;;
6816 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6821 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6836 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6837 # the named directory are copied to $(tooldir)/sys-include.
6838 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-headers is only supported when cross compiling
6843 if test x"${with_headers}" != xyes ; then
6844 x=${gcc_cv_tool_prefix}
6845 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6849 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6850 # the name directories are copied to $(tooldir)/lib. Multiple directories
6852 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6853 if test x${is_cross_compiler} = xno ; then
6854 echo 1>&2 '***' --with-libs is only supported when cross compiling
6857 if test x"${with_libs}" != xyes ; then
6858 # Copy the libraries in reverse order, so that files in the first named
6859 # library override files in subsequent libraries.
6860 x=${gcc_cv_tool_prefix}
6861 for l in ${with_libs}; do
6862 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6867 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6869 # This is done by determining whether or not the appropriate directory
6870 # is available, and by checking whether or not specific configurations
6871 # have requested that this magic not happen.
6873 # The command line options always override the explicit settings in
6874 # configure.in, and the settings in configure.in override this magic.
6876 # If the default for a toolchain is to use GNU as and ld, and you don't
6877 # want to do that, then you should use the --without-gnu-as and
6878 # --without-gnu-ld options for the configure script. Similarly, if
6879 # the default is to use the included zlib and you don't want to do that,
6880 # you should use the --with-system-zlib option for the configure script.
6882 if test x${use_gnu_as} = x &&
6883 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6885 extra_host_args="$extra_host_args --with-gnu-as"
6888 if test x${use_gnu_ld} = x &&
6889 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6891 extra_host_args="$extra_host_args --with-gnu-ld"
6894 if test x${use_included_zlib} = x &&
6895 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6898 with_system_zlib=yes
6899 extra_host_args="$extra_host_args --with-system-zlib"
6902 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6903 # can detect this case.
6905 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6907 extra_host_args="$extra_host_args --with-newlib"
6910 # Handle ${copy_dirs}
6911 set fnord ${copy_dirs}
6913 while test $# != 0 ; do
6914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6917 echo Copying $1 to $2
6919 # Use the install script to create the directory and all required
6920 # parent directories.
6921 if test -d $2 ; then
6925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6928 # Copy the directory, assuming we have tar.
6929 # FIXME: Should we use B in the second tar? Not all systems support it.
6930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6932 # It is the responsibility of the user to correctly adjust all
6933 # symlinks. If somebody can figure out how to handle them correctly
6934 # here, feel free to add the code.
6941 # Determine a target-dependent exec_prefix that the installed
6942 # gcc will search in. Keep this list sorted by triplet, with
6943 # the *-*-osname triplets last.
6946 i[34567]86-pc-msdosdjgpp*)
6947 md_exec_prefix=/dev/env/DJDIR/bin
6952 md_exec_prefix=/usr/ccs/bin
6956 extra_arflags_for_target=
6957 extra_nmflags_for_target=
6958 extra_ranlibflags_for_target=
6959 target_makefile_frag=/dev/null
6962 target_makefile_frag="config/mt-spu"
6964 mips*-sde-elf* | mips*-mti-elf*)
6965 target_makefile_frag="config/mt-sde"
6967 mipsisa*-*-elfoabi*)
6968 target_makefile_frag="config/mt-mips-elfoabi"
6970 mips*-*-*linux* | mips*-*-gnu*)
6971 target_makefile_frag="config/mt-mips-gnu"
6973 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6974 target_makefile_frag="config/mt-gnu"
6976 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6977 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6978 # commands to handle both 32-bit and 64-bit objects. These flags are
6979 # harmless if we're using GNU nm or ar.
6980 extra_arflags_for_target=" -X32_64"
6981 extra_nmflags_for_target=" -B -X32_64"
6985 alphaieee_frag=/dev/null
6988 # This just makes sure to use the -mieee option to build target libs.
6989 # This should probably be set individually by each library.
6990 alphaieee_frag="config/mt-alphaieee"
6994 # If --enable-target-optspace always use -Os instead of -O2 to build
6995 # the target libraries, similarly if it is not specified, use -Os
6996 # on selected platforms.
6997 ospace_frag=/dev/null
6998 case "${enable_target_optspace}:${target}" in
7000 ospace_frag="config/mt-ospace"
7003 ospace_frag="config/mt-d30v"
7005 :m32r-* | :d10v-* | :fr30-*)
7006 ospace_frag="config/mt-ospace"
7011 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7015 # Some systems (e.g., one of the i386-aix systems the gas testers are
7016 # using) don't handle "\$" correctly, so don't use it here.
7017 tooldir='${exec_prefix}'/${target_noncanonical}
7018 build_tooldir=${tooldir}
7020 # Create a .gdbinit file which runs the one in srcdir
7021 # and tells GDB to look there for source files.
7023 if test -r ${srcdir}/.gdbinit ; then
7026 *) cat > ./.gdbinit <<EOF
7030 source ${srcdir}/.gdbinit
7036 # Make sure that the compiler is able to generate an executable. If it
7037 # can't, we are probably in trouble. We don't care whether we can run the
7038 # executable--we might be using a cross compiler--we only care whether it
7039 # can be created. At this point the main configure script has set CC.
7041 echo "int main () { return 0; }" > conftest.c
7042 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7043 if test $? = 0 ; then
7044 if test -s conftest || test -s conftest.exe ; then
7050 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7051 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7058 # Decide which environment variable is used to find dynamic libraries.
7060 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7061 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7062 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7063 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7066 # On systems where the dynamic library environment variable is PATH,
7067 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7068 # built executables to PATH.
7069 if test "$RPATH_ENVVAR" = PATH; then
7070 GCC_SHLIB_SUBDIR=/shlib
7075 # Record target_configdirs and the configure arguments for target and
7076 # build configuration in Makefile.
7077 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7078 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7080 # If we are building libgomp, bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7082 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7085 # If we are building libsanitizer, bootstrap it.
7086 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7090 # If we are building libvtv, bootstrap it.
7091 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7095 # Determine whether gdb needs tk/tcl or not.
7096 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7097 # and in that case we want gdb to be built without tk. Ugh!
7098 # In fact I believe gdb is the *only* package directly dependent on tk,
7099 # so we should be able to put the 'maybe's in unconditionally and
7100 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7101 # 100% sure that that's safe though.
7103 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7104 case "$enable_gdbtk" in
7108 GDB_TK="${gdb_tk}" ;;
7110 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7111 # distro. Eventually someone will fix this and move Insight, nee
7112 # gdbtk to a separate directory.
7113 if test -d ${srcdir}/gdb/gdbtk ; then
7120 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7121 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7123 # Strip out unwanted targets.
7125 # While at that, we remove Makefiles if we were started for recursive
7126 # configuration, so that the top-level Makefile reconfigures them,
7127 # like we used to do when configure itself was recursive.
7129 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7130 # but now we're fixing up the Makefile ourselves with the additional
7131 # commands passed to AC_CONFIG_FILES. Use separate variables
7132 # extrasub-{build,host,target} not because there is any reason to split
7133 # the substitutions up that way, but only to remain below the limit of
7134 # 99 commands in a script, for HP-UX sed.
7135 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7137 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7144 # Adjust the toplevel makefile according to whether bootstrap was selected.
7145 case $enable_bootstrap in
7147 bootstrap_suffix=bootstrap
7148 BUILD_CONFIG=bootstrap-debug
7151 bootstrap_suffix=no-bootstrap
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7157 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7160 # Check whether --with-build-config was given.
7161 if test "${with_build_config+set}" = set; then :
7162 withval=$with_build_config; case $with_build_config in
7163 yes) with_build_config= ;;
7164 no) with_build_config= BUILD_CONFIG= ;;
7169 if test "x${with_build_config}" != x; then
7170 BUILD_CONFIG=$with_build_config
7172 case $BUILD_CONFIG in
7174 if echo "int f (void) { return 0; }" > conftest.c &&
7175 ${CC} -c conftest.c &&
7176 mv conftest.o conftest.o.g0 &&
7177 ${CC} -c -g conftest.c &&
7178 mv conftest.o conftest.o.g &&
7179 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7184 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7189 $as_echo "$BUILD_CONFIG" >&6; }
7193 for module in ${build_configdirs} ; do
7194 if test -z "${no_recursion}" \
7195 && test -f ${build_subdir}/${module}/Makefile; then
7196 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7197 rm -f ${build_subdir}/${module}/Makefile
7199 extrasub_build="$extrasub_build
7200 /^@if build-$module\$/d
7201 /^@endif build-$module\$/d
7202 /^@if build-$module-$bootstrap_suffix\$/d
7203 /^@endif build-$module-$bootstrap_suffix\$/d"
7206 for module in ${configdirs} ; do
7207 if test -z "${no_recursion}"; then
7208 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7209 if test -f ${file}; then
7210 echo 1>&2 "*** removing ${file} to force reconfigure"
7215 extrasub_host="$extrasub_host
7217 /^@endif $module\$/d
7218 /^@if $module-$bootstrap_suffix\$/d
7219 /^@endif $module-$bootstrap_suffix\$/d"
7222 for module in ${target_configdirs} ; do
7223 if test -z "${no_recursion}" \
7224 && test -f ${target_subdir}/${module}/Makefile; then
7225 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7226 rm -f ${target_subdir}/${module}/Makefile
7229 # We only bootstrap target libraries listed in bootstrap_target_libs.
7230 case $bootstrap_target_libs in
7231 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7232 *) target_bootstrap_suffix=no-bootstrap ;;
7235 extrasub_target="$extrasub_target
7236 /^@if target-$module\$/d
7237 /^@endif target-$module\$/d
7238 /^@if target-$module-$target_bootstrap_suffix\$/d
7239 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7242 # Do the final fixup along with target modules.
7243 extrasub_target="$extrasub_target
7244 /^@if /,/^@endif /d"
7246 # Create the serialization dependencies. This uses a temporary file.
7248 # Check whether --enable-serial-configure was given.
7249 if test "${enable_serial_configure+set}" = set; then :
7250 enableval=$enable_serial_configure;
7254 case ${enable_serial_configure} in
7256 enable_serial_build_configure=yes
7257 enable_serial_host_configure=yes
7258 enable_serial_target_configure=yes
7262 # These force 'configure's to be done one at a time, to avoid problems
7263 # with contention over a shared config.cache.
7265 echo '# serdep.tmp' > serdep.tmp
7267 test "x${enable_serial_build_configure}" = xyes &&
7268 for item in ${build_configdirs} ; do
7271 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7276 test "x${enable_serial_host_configure}" = xyes &&
7277 for item in ${configdirs} ; do
7280 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7285 test "x${enable_serial_target_configure}" = xyes &&
7286 for item in ${target_configdirs} ; do
7289 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7293 serialization_dependencies=serdep.tmp
7296 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7297 # target, nonopt, and variable assignments. These are the ones we
7298 # might not want to pass down to subconfigures. The exception being
7299 # --cache-file=/dev/null, which is used to turn off the use of cache
7300 # files altogether, and which should be passed on to subconfigures.
7301 # Also strip program-prefix, program-suffix, and program-transform-name,
7302 # so that we can pass down a consistent program-transform-name.
7307 eval "set -- $ac_configure_args"
7310 if test X"$skip_next" = X"yes"; then
7314 if test X"$keep_next" = X"yes"; then
7317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7319 baseargs="$baseargs '$ac_arg'"
7320 tbaseargs="$tbaseargs '$ac_arg'"
7325 # Handle separated arguments. Based on the logic generated by
7328 *=* | --config-cache | -C | -disable-* | --disable-* \
7329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7331 | -with-* | --with-* | -without-* | --without-* | --x)
7345 --with-* | --without-*)
7346 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7350 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7353 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7362 mpc | mpfr | gmp | cloog)
7363 # If we're processing --with-$lib, --with-$lib-include or
7364 # --with-$lib-lib, for one of the libs above, and target is
7365 # different from host, don't pass the current argument to any
7366 # target library's configure.
7367 if test x$is_cross_compiler = xyes; then
7376 --cache-file=/dev/null | \
7377 -cache-file=/dev/null )
7378 # Handled here to avoid the test to skip args below.
7379 baseargs="$baseargs '$ac_arg'"
7380 tbaseargs="$tbaseargs '$ac_arg'"
7381 # Assert: $separate_arg should always be no.
7382 keep_next=$separate_arg
7398 -program-prefix* | \
7399 -program-suffix* | \
7400 -program-transform-name* )
7401 skip_next=$separate_arg
7405 # An option. Add it.
7408 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7410 baseargs="$baseargs '$ac_arg'"
7411 if test X"$skip_targ" = Xno; then
7412 tbaseargs="$tbaseargs '$ac_arg'"
7414 keep_next=$separate_arg
7417 # Either a variable assignment, or a nonopt (triplet). Don't
7418 # pass it down; let the Makefile handle this.
7423 # Remove the initial space we just introduced and, as these will be
7424 # expanded by make, quote '$'.
7425 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7427 # Add in --program-transform-name, after --program-prefix and
7428 # --program-suffix have been applied to it. Autoconf has already
7429 # doubled dollar signs and backslashes in program_transform_name; we want
7430 # the backslashes un-doubled, and then the entire thing wrapped in single
7431 # quotes, because this will be expanded first by make and then by the shell.
7432 # Also, because we want to override the logic in subdir configure scripts to
7433 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7434 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7435 ${program_transform_name}
7437 gcc_transform_name=`cat conftestsed.out`
7438 rm -f conftestsed.out
7439 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7440 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7441 if test "$silent" = yes; then
7442 baseargs="$baseargs --silent"
7443 tbaseargs="$tbaseargs --silent"
7445 baseargs="$baseargs --disable-option-checking"
7446 tbaseargs="$tbaseargs --disable-option-checking"
7448 # Record and document user additions to sub configure arguments.
7453 # For the build-side libraries, we just need to pretend we're native,
7454 # and not use the same cache file. Multilibs are neither needed nor
7456 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7458 # For host modules, accept cache file option, or specification as blank.
7459 case "${cache_file}" in
7461 cache_file_option="" ;;
7462 /* | [A-Za-z]:[\\/]* ) # absolute path
7463 cache_file_option="--cache-file=${cache_file}" ;;
7465 cache_file_option="--cache-file=../${cache_file}" ;;
7468 # Host dirs don't like to share a cache file either, horribly enough.
7469 # This seems to be due to autoconf 2.5x stupidity.
7470 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7472 target_configargs="$target_configargs ${tbaseargs}"
7474 # Passing a --with-cross-host argument lets the target libraries know
7475 # whether they are being built with a cross-compiler or being built
7476 # native. However, it would be better to use other mechanisms to make the
7477 # sorts of decisions they want to make on this basis. Please consider
7478 # this option to be deprecated. FIXME.
7479 if test x${is_cross_compiler} = xyes ; then
7480 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7483 # Default to --enable-multilib.
7484 if test x${enable_multilib} = x ; then
7485 target_configargs="--enable-multilib ${target_configargs}"
7488 # Pass --with-newlib if appropriate. Note that target_configdirs has
7489 # changed from the earlier setting of with_newlib.
7490 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7491 target_configargs="--with-newlib ${target_configargs}"
7494 # Different target subdirs use different values of certain variables
7495 # (notably CXX). Worse, multilibs use *lots* of different values.
7496 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7497 # it doesn't automatically accept command-line overrides of them.
7498 # This means it's not safe for target subdirs to share a cache file,
7499 # which is disgusting, but there you have it. Hopefully this can be
7500 # fixed in future. It's still worthwhile to use a cache file for each
7501 # directory. I think.
7503 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7504 # We need to pass --target, as newer autoconf's requires consistency
7505 # for target_alias and gcc doesn't manage it consistently.
7506 target_configargs="--cache-file=./config.cache ${target_configargs}"
7509 case " $target_configdirs " in
7511 case " $target_configargs " in
7512 *" --with-newlib "*)
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7519 # If we're not building GCC, don't discard standard headers.
7520 if test -d ${srcdir}/gcc; then
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7523 if test "${build}" != "${host}"; then
7524 # On Canadian crosses, CC_FOR_TARGET will have already been set
7525 # by `configure', so we won't have an opportunity to add -Bgcc/
7526 # to it. This is right: we don't want to search that directory
7527 # for binaries, but we want the header files in there, so add
7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7531 # Someone might think of using the pre-installed headers on
7532 # Canadian crosses, in case the installed compiler is not fully
7533 # compatible with the compiler being built. In this case, it
7534 # would be better to flag an error than risking having
7535 # incompatible object files being constructed. We can't
7536 # guarantee that an error will be flagged, but let's hope the
7537 # compiler will do it, when presented with incompatible header
7542 case "${target}-${is_cross_compiler}" in
7543 i[3456789]86-*-linux*-no)
7544 # Here host == target, so we don't need to build gcc,
7545 # so we don't want to discard standard headers.
7546 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7549 # If we're building newlib, use its generic headers last, but search
7550 # for any libc-related directories first (so make it the last -B
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7554 # If we're building libgloss, find the startup file, simulator library
7555 # and linker script.
7556 case " $target_configdirs " in
7558 # Look for startup file, simulator library and maybe linker script.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7560 # Look for libnosys.a in case the target needs it.
7561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7562 # Most targets have the linker script in the source directory.
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7574 x86_64-*mingw* | *-w64-mingw*)
7575 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7576 # however, use a symlink named 'mingw' in ${prefix} .
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7580 # MinGW can't be handled as Cygwin above since it does not use newlib.
7581 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'
7585 # Allow the user to override the flags for
7586 # our build compiler if desired.
7587 if test x"${build}" = x"${host}" ; then
7588 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7589 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7590 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7593 # On Canadian crosses, we'll be searching the right directories for
7594 # the previously-installed cross compiler, so don't bother to add
7595 # flags for directories within the install tree of the compiler
7596 # being built; programs in there won't even run.
7597 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7598 # Search for pre-installed headers if nothing else fits.
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7602 if test "x${use_gnu_ld}" = x &&
7603 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7604 # Arrange for us to find uninstalled linker scripts.
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7608 # Search for other target-specific linker scripts and such.
7611 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7615 # Makefile fragments.
7616 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7618 eval fragval=\$$frag
7619 if test $fragval != /dev/null; then
7620 eval $frag=${srcdir}/$fragval
7628 # Miscellanea: directories, flags, etc.
7637 # Build module lists & subconfigure args.
7641 # Host module lists & subconfigure args.
7646 # Target module lists & subconfigure args.
7668 # Generate default definitions for YACC, M4, LEX and other programs that run
7669 # on the build machine. These are used if the Makefile can't locate these
7670 # programs in objdir.
7671 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7673 for ac_prog in 'bison -y' byacc yacc
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_YACC+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7682 if test -n "$YACC"; then
7683 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_YACC="$ac_prog"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 YACC=$ac_cv_prog_YACC
7703 if test -n "$YACC"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7705 $as_echo "$YACC" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7712 test -n "$YACC" && break
7714 test -n "$YACC" || YACC="$MISSING bison -y"
7716 case " $build_configdirs " in
7717 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7720 for ac_prog in bison
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if test "${ac_cv_prog_BISON+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 BISON=$ac_cv_prog_BISON
7750 if test -n "$BISON"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7752 $as_echo "$BISON" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7759 test -n "$BISON" && break
7761 test -n "$BISON" || BISON="$MISSING bison"
7763 case " $build_configdirs " in
7764 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7767 for ac_prog in gm4 gnum4 m4
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_M4+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$M4"; then
7777 ac_cv_prog_M4="$M4" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_M4="$ac_prog"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 if test -n "$M4"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7799 $as_echo "$M4" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7806 test -n "$M4" && break
7808 test -n "$M4" || M4="$MISSING m4"
7810 case " $build_configdirs " in
7811 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7814 for ac_prog in flex lex
7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if test "${ac_cv_prog_LEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -n "$LEX"; then
7824 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_prog_LEX="$ac_prog"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 if test -n "$LEX"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7846 $as_echo "$LEX" >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7853 test -n "$LEX" && break
7855 test -n "$LEX" || LEX="$MISSING flex"
7857 case " $build_configdirs " in
7858 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_FLEX+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$FLEX"; then
7872 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_FLEX="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 FLEX=$ac_cv_prog_FLEX
7892 if test -n "$FLEX"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7894 $as_echo "$FLEX" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 test -n "$FLEX" && break
7903 test -n "$FLEX" || FLEX="$MISSING flex"
7905 case " $build_configdirs " in
7906 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7909 for ac_prog in makeinfo
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -n "$MAKEINFO"; then
7919 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_MAKEINFO="$ac_prog"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 MAKEINFO=$ac_cv_prog_MAKEINFO
7939 if test -n "$MAKEINFO"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7941 $as_echo "$MAKEINFO" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7948 test -n "$MAKEINFO" && break
7950 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7952 case " $build_configdirs " in
7953 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7956 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7957 # higher, else we use the "missing" dummy.
7958 if ${MAKEINFO} --version \
7959 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7962 MAKEINFO="$MISSING makeinfo"
7968 # FIXME: expect and dejagnu may become build tools?
7970 for ac_prog in expect
7972 # Extract the first word of "$ac_prog", so it can be a program name with args.
7973 set dummy $ac_prog; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 if test -n "$EXPECT"; then
7980 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_EXPECT="$ac_prog"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 EXPECT=$ac_cv_prog_EXPECT
8000 if test -n "$EXPECT"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8002 $as_echo "$EXPECT" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8009 test -n "$EXPECT" && break
8011 test -n "$EXPECT" || EXPECT="expect"
8013 case " $configdirs " in
8015 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8019 for ac_prog in runtest
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 if test -n "$RUNTEST"; then
8029 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_RUNTEST="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 RUNTEST=$ac_cv_prog_RUNTEST
8049 if test -n "$RUNTEST"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8051 $as_echo "$RUNTEST" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8058 test -n "$RUNTEST" && break
8060 test -n "$RUNTEST" || RUNTEST="runtest"
8062 case " $configdirs " in
8064 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8071 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8072 ncn_target_tool_prefix=
8073 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8077 if test -n "$AR"; then
8079 elif test -n "$ac_cv_prog_AR"; then
8083 if test -n "$ac_cv_prog_AR"; then
8084 for ncn_progname in ar; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086 set dummy ${ncn_progname}; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="${ncn_progname}"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 if test -n "$AR"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115 $as_echo "$AR" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8125 for ncn_progname in ar; do
8126 if test -n "$ncn_tool_prefix"; then
8127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167 set dummy ${ncn_progname}; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_AR+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 if test -n "$AR"; then
8174 ac_cv_prog_AR="$AR" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_AR="${ncn_progname}"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 if test -n "$AR"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196 $as_echo "$AR" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8204 test -n "$ac_cv_prog_AR" && break
8207 if test -z "$ac_cv_prog_AR" ; then
8209 if test $build = $host ; then
8212 AR="${ncn_tool_prefix}$2"
8218 if test -n "$AS"; then
8220 elif test -n "$ac_cv_prog_AS"; then
8224 if test -n "$ac_cv_prog_AS"; then
8225 for ncn_progname in as; do
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227 set dummy ${ncn_progname}; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_AS="${ncn_progname}"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 if test -n "$AS"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256 $as_echo "$AS" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8266 for ncn_progname in as; do
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 if test -n "$AS"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298 $as_echo "$AS" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8306 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if test "${ac_cv_prog_AS+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8314 if test -n "$AS"; then
8315 ac_cv_prog_AS="$AS" # Let the user override the test.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_prog_AS="${ncn_progname}"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 if test -n "$AS"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8337 $as_echo "$AS" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8345 test -n "$ac_cv_prog_AS" && break
8348 if test -z "$ac_cv_prog_AS" ; then
8350 if test $build = $host ; then
8353 AS="${ncn_tool_prefix}$2"
8359 if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL=$DLLTOOL
8361 elif test -n "$ac_cv_prog_DLLTOOL"; then
8362 DLLTOOL=$ac_cv_prog_DLLTOOL
8365 if test -n "$ac_cv_prog_DLLTOOL"; then
8366 for ncn_progname in dlltool; do
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368 set dummy ${ncn_progname}; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 DLLTOOL=$ac_cv_prog_DLLTOOL
8395 if test -n "$DLLTOOL"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397 $as_echo "$DLLTOOL" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8407 for ncn_progname in dlltool; do
8408 if test -n "$ncn_tool_prefix"; then
8409 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 DLLTOOL=$ac_cv_prog_DLLTOOL
8437 if test -n "$DLLTOOL"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439 $as_echo "$DLLTOOL" >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8447 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449 set dummy ${ncn_progname}; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8455 if test -n "$DLLTOOL"; then
8456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465 ac_cv_prog_DLLTOOL="${ncn_progname}"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 DLLTOOL=$ac_cv_prog_DLLTOOL
8476 if test -n "$DLLTOOL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8478 $as_echo "$DLLTOOL" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8486 test -n "$ac_cv_prog_DLLTOOL" && break
8489 if test -z "$ac_cv_prog_DLLTOOL" ; then
8491 if test $build = $host ; then
8494 DLLTOOL="${ncn_tool_prefix}$2"
8500 if test -n "$LD"; then
8502 elif test -n "$ac_cv_prog_LD"; then
8506 if test -n "$ac_cv_prog_LD"; then
8507 for ncn_progname in ld; do
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_LD="${ncn_progname}"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 if test -n "$LD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538 $as_echo "$LD" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8548 for ncn_progname in ld; do
8549 if test -n "$ncn_tool_prefix"; then
8550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8551 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 if test -n "$LD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580 $as_echo "$LD" >&6; }
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8588 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590 set dummy ${ncn_progname}; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if test "${ac_cv_prog_LD+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8596 if test -n "$LD"; then
8597 ac_cv_prog_LD="$LD" # Let the user override the test.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_prog_LD="${ncn_progname}"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 if test -n "$LD"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8619 $as_echo "$LD" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8627 test -n "$ac_cv_prog_LD" && break
8630 if test -z "$ac_cv_prog_LD" ; then
8632 if test $build = $host ; then
8635 LD="${ncn_tool_prefix}$2"
8641 if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO=$LIPO
8643 elif test -n "$ac_cv_prog_LIPO"; then
8644 LIPO=$ac_cv_prog_LIPO
8647 if test -n "$ac_cv_prog_LIPO"; then
8648 for ncn_progname in lipo; do
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650 set dummy ${ncn_progname}; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_LIPO="${ncn_progname}"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 LIPO=$ac_cv_prog_LIPO
8677 if test -n "$LIPO"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679 $as_echo "$LIPO" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8689 for ncn_progname in lipo; do
8690 if test -n "$ncn_tool_prefix"; then
8691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8692 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 LIPO=$ac_cv_prog_LIPO
8719 if test -n "$LIPO"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721 $as_echo "$LIPO" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731 set dummy ${ncn_progname}; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_prog_LIPO+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8737 if test -n "$LIPO"; then
8738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_prog_LIPO="${ncn_progname}"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 LIPO=$ac_cv_prog_LIPO
8758 if test -n "$LIPO"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8760 $as_echo "$LIPO" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8768 test -n "$ac_cv_prog_LIPO" && break
8771 if test -z "$ac_cv_prog_LIPO" ; then
8773 if test $build = $host ; then
8776 LIPO="${ncn_tool_prefix}$2"
8782 if test -n "$NM"; then
8784 elif test -n "$ac_cv_prog_NM"; then
8788 if test -n "$ac_cv_prog_NM"; then
8789 for ncn_progname in nm; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791 set dummy ${ncn_progname}; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_prog_NM="${ncn_progname}"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 if test -n "$NM"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820 $as_echo "$NM" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8830 for ncn_progname in nm; do
8831 if test -n "$ncn_tool_prefix"; then
8832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 if test -n "$NM"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862 $as_echo "$NM" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8870 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872 set dummy ${ncn_progname}; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_NM+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$NM"; then
8879 ac_cv_prog_NM="$NM" # Let the user override the test.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_NM="${ncn_progname}"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 if test -n "$NM"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8901 $as_echo "$NM" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 test -n "$ac_cv_prog_NM" && break
8912 if test -z "$ac_cv_prog_NM" ; then
8914 if test $build = $host ; then
8917 NM="${ncn_tool_prefix}$2"
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB=$RANLIB
8925 elif test -n "$ac_cv_prog_RANLIB"; then
8926 RANLIB=$ac_cv_prog_RANLIB
8929 if test -n "$ac_cv_prog_RANLIB"; then
8930 for ncn_progname in ranlib; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_RANLIB="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 RANLIB=$ac_cv_prog_RANLIB
8959 if test -n "$RANLIB"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961 $as_echo "$RANLIB" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8971 for ncn_progname in ranlib; do
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 RANLIB=$ac_cv_prog_RANLIB
9001 if test -n "$RANLIB"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003 $as_echo "$RANLIB" >&6; }
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9011 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
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_RANLIB+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9019 if test -n "$RANLIB"; then
9020 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 RANLIB=$ac_cv_prog_RANLIB
9040 if test -n "$RANLIB"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9042 $as_echo "$RANLIB" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9050 test -n "$ac_cv_prog_RANLIB" && break
9053 if test -z "$ac_cv_prog_RANLIB" ; then
9059 if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP=$STRIP
9061 elif test -n "$ac_cv_prog_STRIP"; then
9062 STRIP=$ac_cv_prog_STRIP
9065 if test -n "$ac_cv_prog_STRIP"; then
9066 for ncn_progname in strip; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068 set dummy ${ncn_progname}; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_STRIP="${ncn_progname}"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 STRIP=$ac_cv_prog_STRIP
9095 if test -n "$STRIP"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097 $as_echo "$STRIP" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9107 for ncn_progname in strip; do
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 STRIP=$ac_cv_prog_STRIP
9137 if test -n "$STRIP"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139 $as_echo "$STRIP" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9147 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
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_STRIP+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$STRIP"; then
9156 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 STRIP=$ac_cv_prog_STRIP
9176 if test -n "$STRIP"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9178 $as_echo "$STRIP" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 test -n "$ac_cv_prog_STRIP" && break
9189 if test -z "$ac_cv_prog_STRIP" ; then
9195 if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES=$WINDRES
9197 elif test -n "$ac_cv_prog_WINDRES"; then
9198 WINDRES=$ac_cv_prog_WINDRES
9201 if test -n "$ac_cv_prog_WINDRES"; then
9202 for ncn_progname in windres; do
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204 set dummy ${ncn_progname}; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220 ac_cv_prog_WINDRES="${ncn_progname}"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 WINDRES=$ac_cv_prog_WINDRES
9231 if test -n "$WINDRES"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233 $as_echo "$WINDRES" >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9243 for ncn_progname in windres; do
9244 if test -n "$ncn_tool_prefix"; then
9245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 WINDRES=$ac_cv_prog_WINDRES
9273 if test -n "$WINDRES"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275 $as_echo "$WINDRES" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9283 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285 set dummy ${ncn_progname}; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9291 if test -n "$WINDRES"; then
9292 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_prog_WINDRES="${ncn_progname}"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 WINDRES=$ac_cv_prog_WINDRES
9312 if test -n "$WINDRES"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9314 $as_echo "$WINDRES" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9322 test -n "$ac_cv_prog_WINDRES" && break
9325 if test -z "$ac_cv_prog_WINDRES" ; then
9327 if test $build = $host ; then
9330 WINDRES="${ncn_tool_prefix}$2"
9336 if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC=$WINDMC
9338 elif test -n "$ac_cv_prog_WINDMC"; then
9339 WINDMC=$ac_cv_prog_WINDMC
9342 if test -n "$ac_cv_prog_WINDMC"; then
9343 for ncn_progname in windmc; do
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345 set dummy ${ncn_progname}; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361 ac_cv_prog_WINDMC="${ncn_progname}"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 WINDMC=$ac_cv_prog_WINDMC
9372 if test -n "$WINDMC"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374 $as_echo "$WINDMC" >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9384 for ncn_progname in windmc; do
9385 if test -n "$ncn_tool_prefix"; then
9386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9387 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9403 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 WINDMC=$ac_cv_prog_WINDMC
9414 if test -n "$WINDMC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416 $as_echo "$WINDMC" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9424 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426 set dummy ${ncn_progname}; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9432 if test -n "$WINDMC"; then
9433 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_prog_WINDMC="${ncn_progname}"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 WINDMC=$ac_cv_prog_WINDMC
9453 if test -n "$WINDMC"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9455 $as_echo "$WINDMC" >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9463 test -n "$ac_cv_prog_WINDMC" && break
9466 if test -z "$ac_cv_prog_WINDMC" ; then
9468 if test $build = $host ; then
9471 WINDMC="${ncn_tool_prefix}$2"
9477 if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY=$OBJCOPY
9479 elif test -n "$ac_cv_prog_OBJCOPY"; then
9480 OBJCOPY=$ac_cv_prog_OBJCOPY
9483 if test -n "$ac_cv_prog_OBJCOPY"; then
9484 for ncn_progname in objcopy; do
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486 set dummy ${ncn_progname}; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 OBJCOPY=$ac_cv_prog_OBJCOPY
9513 if test -n "$OBJCOPY"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515 $as_echo "$OBJCOPY" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9525 for ncn_progname in objcopy; do
9526 if test -n "$ncn_tool_prefix"; then
9527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9554 OBJCOPY=$ac_cv_prog_OBJCOPY
9555 if test -n "$OBJCOPY"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557 $as_echo "$OBJCOPY" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9565 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567 set dummy ${ncn_progname}; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9573 if test -n "$OBJCOPY"; then
9574 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9583 ac_cv_prog_OBJCOPY="${ncn_progname}"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 OBJCOPY=$ac_cv_prog_OBJCOPY
9594 if test -n "$OBJCOPY"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9596 $as_echo "$OBJCOPY" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9604 test -n "$ac_cv_prog_OBJCOPY" && break
9607 if test -z "$ac_cv_prog_OBJCOPY" ; then
9609 if test $build = $host ; then
9612 OBJCOPY="${ncn_tool_prefix}$2"
9618 if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP=$OBJDUMP
9620 elif test -n "$ac_cv_prog_OBJDUMP"; then
9621 OBJDUMP=$ac_cv_prog_OBJDUMP
9624 if test -n "$ac_cv_prog_OBJDUMP"; then
9625 for ncn_progname in objdump; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627 set dummy ${ncn_progname}; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 OBJDUMP=$ac_cv_prog_OBJDUMP
9654 if test -n "$OBJDUMP"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656 $as_echo "$OBJDUMP" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9666 for ncn_progname in objdump; do
9667 if test -n "$ncn_tool_prefix"; then
9668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9669 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 OBJDUMP=$ac_cv_prog_OBJDUMP
9696 if test -n "$OBJDUMP"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698 $as_echo "$OBJDUMP" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9706 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9708 set dummy ${ncn_progname}; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9714 if test -n "$OBJDUMP"; then
9715 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_prog_OBJDUMP="${ncn_progname}"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 OBJDUMP=$ac_cv_prog_OBJDUMP
9735 if test -n "$OBJDUMP"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9737 $as_echo "$OBJDUMP" >&6; }
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9745 test -n "$ac_cv_prog_OBJDUMP" && break
9748 if test -z "$ac_cv_prog_OBJDUMP" ; then
9750 if test $build = $host ; then
9753 OBJDUMP="${ncn_tool_prefix}$2"
9759 if test -n "$READELF"; then
9760 ac_cv_prog_READELF=$READELF
9761 elif test -n "$ac_cv_prog_READELF"; then
9762 READELF=$ac_cv_prog_READELF
9765 if test -n "$ac_cv_prog_READELF"; then
9766 for ncn_progname in readelf; do
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768 set dummy ${ncn_progname}; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 READELF=$ac_cv_prog_READELF
9795 if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797 $as_echo "$READELF" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9807 for ncn_progname in readelf; do
9808 if test -n "$ncn_tool_prefix"; then
9809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9810 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if test "${ac_cv_prog_READELF+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9816 if test -n "$READELF"; then
9817 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 READELF=$ac_cv_prog_READELF
9837 if test -n "$READELF"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9839 $as_echo "$READELF" >&6; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9847 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9849 set dummy ${ncn_progname}; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_prog_READELF+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9855 if test -n "$READELF"; then
9856 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_READELF="${ncn_progname}"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 READELF=$ac_cv_prog_READELF
9876 if test -n "$READELF"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9878 $as_echo "$READELF" >&6; }
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9886 test -n "$ac_cv_prog_READELF" && break
9889 if test -z "$ac_cv_prog_READELF" ; then
9891 if test $build = $host ; then
9894 READELF="${ncn_tool_prefix}$2"
9905 # Check whether --with-build-time-tools was given.
9906 if test "${with_build_time_tools+set}" = set; then :
9907 withval=$with_build_time_tools; case x"$withval" in
9910 with_build_time_tools=
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9912 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9916 with_build_time_tools=
9922 if test -n "$CC_FOR_TARGET"; then
9923 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9924 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9928 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9929 for ncn_progname in cc gcc; do
9930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931 set dummy ${ncn_progname}; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9937 if test -n "$CC_FOR_TARGET"; then
9938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9947 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9958 if test -n "$CC_FOR_TARGET"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9960 $as_echo "$CC_FOR_TARGET" >&6; }
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9970 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9971 for ncn_progname in cc gcc; do
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9973 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9974 if test -x $with_build_time_tools/${ncn_progname}; then
9975 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; }
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9986 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9987 for ncn_progname in cc gcc; do
9988 if test -n "$ncn_target_tool_prefix"; then
9989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9990 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9996 if test -n "$CC_FOR_TARGET"; then
9997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10017 if test -n "$CC_FOR_TARGET"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10019 $as_echo "$CC_FOR_TARGET" >&6; }
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10027 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029 set dummy ${ncn_progname}; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056 if test -n "$CC_FOR_TARGET"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058 $as_echo "$CC_FOR_TARGET" >&6; }
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10066 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10070 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10072 if test $build = $target ; then
10075 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10078 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10083 if test -n "$CXX_FOR_TARGET"; then
10084 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10085 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10089 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10090 for ncn_progname in c++ g++ cxx gxx; do
10091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10092 set dummy ${ncn_progname}; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 if test -n "$CXX_FOR_TARGET"; then
10099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10119 if test -n "$CXX_FOR_TARGET"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10121 $as_echo "$CXX_FOR_TARGET" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10131 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10132 for ncn_progname in c++ g++ cxx gxx; do
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10135 if test -x $with_build_time_tools/${ncn_progname}; then
10136 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138 $as_echo "yes" >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10147 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10148 for ncn_progname in c++ g++ cxx gxx; do
10149 if test -n "$ncn_target_tool_prefix"; then
10150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10157 if test -n "$CXX_FOR_TARGET"; then
10158 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10178 if test -n "$CXX_FOR_TARGET"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10180 $as_echo "$CXX_FOR_TARGET" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_progname}; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217 if test -n "$CXX_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219 $as_echo "$CXX_FOR_TARGET" >&6; }
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10231 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10232 set dummy c++ g++ cxx gxx
10233 if test $build = $target ; then
10234 CXX_FOR_TARGET="$2"
10236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10244 if test -n "$GCC_FOR_TARGET"; then
10245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10246 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10250 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10251 for ncn_progname in gcc; do
10252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10253 set dummy ${ncn_progname}; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10259 if test -n "$GCC_FOR_TARGET"; then
10260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10280 if test -n "$GCC_FOR_TARGET"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10282 $as_echo "$GCC_FOR_TARGET" >&6; }
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10292 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10293 for ncn_progname in gcc; do
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10295 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10296 if test -x $with_build_time_tools/${ncn_progname}; then
10297 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10299 $as_echo "yes" >&6; }
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10308 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10309 for ncn_progname in gcc; do
10310 if test -n "$ncn_target_tool_prefix"; then
10311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10312 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10318 if test -n "$GCC_FOR_TARGET"; then
10319 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10339 if test -n "$GCC_FOR_TARGET"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10341 $as_echo "$GCC_FOR_TARGET" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378 if test -n "$GCC_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380 $as_echo "$GCC_FOR_TARGET" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10388 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10392 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10393 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10395 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10400 if test -n "$GCJ_FOR_TARGET"; then
10401 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10402 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10406 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10407 for ncn_progname in gcj; do
10408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10409 set dummy ${ncn_progname}; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10415 if test -n "$GCJ_FOR_TARGET"; then
10416 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in $PATH
10422 test -z "$as_dir" && as_dir=.
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10436 if test -n "$GCJ_FOR_TARGET"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10438 $as_echo "$GCJ_FOR_TARGET" >&6; }
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10448 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10449 for ncn_progname in gcj; do
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10452 if test -x $with_build_time_tools/${ncn_progname}; then
10453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10464 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10465 for ncn_progname in gcj; do
10466 if test -n "$ncn_target_tool_prefix"; then
10467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495 if test -n "$GCJ_FOR_TARGET"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10497 $as_echo "$GCJ_FOR_TARGET" >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10505 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507 set dummy ${ncn_progname}; ac_word=$2
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509 $as_echo_n "checking for $ac_word... " >&6; }
10510 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10523 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10534 if test -n "$GCJ_FOR_TARGET"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10536 $as_echo "$GCJ_FOR_TARGET" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10544 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10548 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10550 if test $build = $target ; then
10551 GCJ_FOR_TARGET="$2"
10553 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10556 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10561 if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10563 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10567 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10568 for ncn_progname in gfortran; do
10569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10570 set dummy ${ncn_progname}; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10576 if test -n "$GFORTRAN_FOR_TARGET"; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10597 if test -n "$GFORTRAN_FOR_TARGET"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10599 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10609 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10610 for ncn_progname in gfortran; do
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10613 if test -x $with_build_time_tools/${ncn_progname}; then
10614 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10625 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10626 for ncn_progname in gfortran; do
10627 if test -n "$ncn_target_tool_prefix"; then
10628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10656 if test -n "$GFORTRAN_FOR_TARGET"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10658 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668 set dummy ${ncn_progname}; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10695 if test -n "$GFORTRAN_FOR_TARGET"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10697 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10705 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10709 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10711 if test $build = $target ; then
10712 GFORTRAN_FOR_TARGET="$2"
10714 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10717 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10722 if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10724 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10728 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10729 for ncn_progname in gccgo; do
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10731 set dummy ${ncn_progname}; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 if test -n "$GOC_FOR_TARGET"; then
10738 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10758 if test -n "$GOC_FOR_TARGET"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10760 $as_echo "$GOC_FOR_TARGET" >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10770 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10771 for ncn_progname in gccgo; do
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10773 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10774 if test -x $with_build_time_tools/${ncn_progname}; then
10775 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10777 $as_echo "yes" >&6; }
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10786 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10787 for ncn_progname in gccgo; do
10788 if test -n "$ncn_target_tool_prefix"; then
10789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10796 if test -n "$GOC_FOR_TARGET"; then
10797 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817 if test -n "$GOC_FOR_TARGET"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10819 $as_echo "$GOC_FOR_TARGET" >&6; }
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10827 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10829 set dummy ${ncn_progname}; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10835 if test -n "$GOC_FOR_TARGET"; then
10836 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10856 if test -n "$GOC_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10858 $as_echo "$GOC_FOR_TARGET" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10866 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10870 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10872 if test $build = $target ; then
10873 GOC_FOR_TARGET="$2"
10875 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10878 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10883 cat > conftest.c << \EOF
10888 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10889 have_gcc_for_target=yes
10891 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10892 have_gcc_for_target=no
10899 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10900 if test -n "$with_build_time_tools"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10902 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10903 if test -x $with_build_time_tools/ar; then
10904 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10905 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10907 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10912 elif test $build != $host && test $have_gcc_for_target = yes; then
10913 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10914 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10915 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10918 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10919 # Extract the first word of "ar", so it can be a program name with args.
10920 set dummy ar; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10926 case $AR_FOR_TARGET in
10928 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $gcc_cv_tool_dirs
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10950 if test -n "$AR_FOR_TARGET"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10952 $as_echo "$AR_FOR_TARGET" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10960 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10963 if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10965 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10969 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10970 for ncn_progname in ar; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10978 if test -n "$AR_FOR_TARGET"; then
10979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10999 if test -n "$AR_FOR_TARGET"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11001 $as_echo "$AR_FOR_TARGET" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11011 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11012 for ncn_progname in ar; do
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11014 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11015 if test -x $with_build_time_tools/${ncn_progname}; then
11016 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018 $as_echo "yes" >&6; }
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11027 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11028 for ncn_progname in ar; do
11029 if test -n "$ncn_target_tool_prefix"; then
11030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11031 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11037 if test -n "$AR_FOR_TARGET"; then
11038 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11058 if test -n "$AR_FOR_TARGET"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11060 $as_echo "$AR_FOR_TARGET" >&6; }
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11068 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_progname}; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11076 if test -n "$AR_FOR_TARGET"; then
11077 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11097 if test -n "$AR_FOR_TARGET"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11099 $as_echo "$AR_FOR_TARGET" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11107 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11111 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11113 if test $build = $target ; then
11116 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11119 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11129 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11130 if test -n "$with_build_time_tools"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11132 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11133 if test -x $with_build_time_tools/as; then
11134 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11135 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11137 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11142 elif test $build != $host && test $have_gcc_for_target = yes; then
11143 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11144 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11145 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11148 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11149 # Extract the first word of "as", so it can be a program name with args.
11150 set dummy as; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11156 case $AS_FOR_TARGET in
11158 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $gcc_cv_tool_dirs
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11180 if test -n "$AS_FOR_TARGET"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11182 $as_echo "$AS_FOR_TARGET" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11190 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11193 if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11195 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11199 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11200 for ncn_progname in as; do
11201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11202 set dummy ${ncn_progname}; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11208 if test -n "$AS_FOR_TARGET"; then
11209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11229 if test -n "$AS_FOR_TARGET"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11231 $as_echo "$AS_FOR_TARGET" >&6; }
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11241 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11242 for ncn_progname in as; do
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11244 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11245 if test -x $with_build_time_tools/${ncn_progname}; then
11246 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11257 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11258 for ncn_progname in as; do
11259 if test -n "$ncn_target_tool_prefix"; then
11260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11267 if test -n "$AS_FOR_TARGET"; then
11268 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11288 if test -n "$AS_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11290 $as_echo "$AS_FOR_TARGET" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11298 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11300 set dummy ${ncn_progname}; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11306 if test -n "$AS_FOR_TARGET"; then
11307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11327 if test -n "$AS_FOR_TARGET"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11329 $as_echo "$AS_FOR_TARGET" >&6; }
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11337 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11341 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11343 if test $build = $target ; then
11346 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11349 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11359 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11360 if test -n "$with_build_time_tools"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11362 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11363 if test -x $with_build_time_tools/dlltool; then
11364 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11365 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11367 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11372 elif test $build != $host && test $have_gcc_for_target = yes; then
11373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11374 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11375 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11378 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11379 # Extract the first word of "dlltool", so it can be a program name with args.
11380 set dummy dlltool; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11386 case $DLLTOOL_FOR_TARGET in
11388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $gcc_cv_tool_dirs
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11410 if test -n "$DLLTOOL_FOR_TARGET"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11412 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11420 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11423 if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11425 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11429 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11430 for ncn_progname in dlltool; do
11431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11459 if test -n "$DLLTOOL_FOR_TARGET"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11461 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11471 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11472 for ncn_progname in dlltool; do
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11474 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11475 if test -x $with_build_time_tools/${ncn_progname}; then
11476 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11488 for ncn_progname in dlltool; do
11489 if test -n "$ncn_target_tool_prefix"; then
11490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11518 if test -n "$DLLTOOL_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11520 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530 set dummy ${ncn_progname}; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11557 if test -n "$DLLTOOL_FOR_TARGET"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11559 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11567 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11571 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11573 if test $build = $target ; then
11574 DLLTOOL_FOR_TARGET="$2"
11576 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11579 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11589 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11590 if test -n "$with_build_time_tools"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11592 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11593 if test -x $with_build_time_tools/ld; then
11594 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11595 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11597 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11602 elif test $build != $host && test $have_gcc_for_target = yes; then
11603 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11604 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11605 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11608 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11609 # Extract the first word of "ld", so it can be a program name with args.
11610 set dummy ld; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11616 case $LD_FOR_TARGET in
11618 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $gcc_cv_tool_dirs
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11640 if test -n "$LD_FOR_TARGET"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11642 $as_echo "$LD_FOR_TARGET" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11650 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11653 if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11655 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11659 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11660 for ncn_progname in ld; do
11661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11662 set dummy ${ncn_progname}; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11668 if test -n "$LD_FOR_TARGET"; then
11669 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11689 if test -n "$LD_FOR_TARGET"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11691 $as_echo "$LD_FOR_TARGET" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11701 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11702 for ncn_progname in ld; do
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11705 if test -x $with_build_time_tools/${ncn_progname}; then
11706 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708 $as_echo "yes" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11717 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11718 for ncn_progname in ld; do
11719 if test -n "$ncn_target_tool_prefix"; then
11720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11727 if test -n "$LD_FOR_TARGET"; then
11728 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11748 if test -n "$LD_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11750 $as_echo "$LD_FOR_TARGET" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11760 set dummy ${ncn_progname}; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11766 if test -n "$LD_FOR_TARGET"; then
11767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11776 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11787 if test -n "$LD_FOR_TARGET"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11789 $as_echo "$LD_FOR_TARGET" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11797 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11801 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11803 if test $build = $target ; then
11806 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11809 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11813 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11819 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11820 if test -n "$with_build_time_tools"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11822 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11823 if test -x $with_build_time_tools/lipo; then
11824 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11825 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11827 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11832 elif test $build != $host && test $have_gcc_for_target = yes; then
11833 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11834 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11835 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11838 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11839 # Extract the first word of "lipo", so it can be a program name with args.
11840 set dummy lipo; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11846 case $LIPO_FOR_TARGET in
11848 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $gcc_cv_tool_dirs
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11870 if test -n "$LIPO_FOR_TARGET"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11872 $as_echo "$LIPO_FOR_TARGET" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11880 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11883 if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11885 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11889 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11890 for ncn_progname in lipo; do
11891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11892 set dummy ${ncn_progname}; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11919 if test -n "$LIPO_FOR_TARGET"; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11921 $as_echo "$LIPO_FOR_TARGET" >&6; }
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11931 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11932 for ncn_progname in lipo; do
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11935 if test -x $with_build_time_tools/${ncn_progname}; then
11936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11947 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11948 for ncn_progname in lipo; do
11949 if test -n "$ncn_target_tool_prefix"; then
11950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11978 if test -n "$LIPO_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11980 $as_echo "$LIPO_FOR_TARGET" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990 set dummy ${ncn_progname}; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12017 if test -n "$LIPO_FOR_TARGET"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12019 $as_echo "$LIPO_FOR_TARGET" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12027 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12031 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12033 if test $build = $target ; then
12034 LIPO_FOR_TARGET="$2"
12036 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12039 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12043 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12049 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12050 if test -n "$with_build_time_tools"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12052 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12053 if test -x $with_build_time_tools/nm; then
12054 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12055 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12057 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12062 elif test $build != $host && test $have_gcc_for_target = yes; then
12063 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12064 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12065 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12068 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12069 # Extract the first word of "nm", so it can be a program name with args.
12070 set dummy nm; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12076 case $NM_FOR_TARGET in
12078 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $gcc_cv_tool_dirs
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12100 if test -n "$NM_FOR_TARGET"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12102 $as_echo "$NM_FOR_TARGET" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12110 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12113 if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12115 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12119 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12120 for ncn_progname in nm; do
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12128 if test -n "$NM_FOR_TARGET"; then
12129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12149 if test -n "$NM_FOR_TARGET"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12151 $as_echo "$NM_FOR_TARGET" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12161 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12162 for ncn_progname in nm; do
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12165 if test -x $with_build_time_tools/${ncn_progname}; then
12166 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12168 $as_echo "yes" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12177 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12178 for ncn_progname in nm; do
12179 if test -n "$ncn_target_tool_prefix"; then
12180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12187 if test -n "$NM_FOR_TARGET"; then
12188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12208 if test -n "$NM_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12210 $as_echo "$NM_FOR_TARGET" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12218 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12220 set dummy ${ncn_progname}; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 if test -n "$NM_FOR_TARGET"; then
12227 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12247 if test -n "$NM_FOR_TARGET"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12249 $as_echo "$NM_FOR_TARGET" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12257 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12261 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12263 if test $build = $target ; then
12266 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12269 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12273 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12279 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12280 if test -n "$with_build_time_tools"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12282 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12283 if test -x $with_build_time_tools/objdump; then
12284 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12285 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12287 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12292 elif test $build != $host && test $have_gcc_for_target = yes; then
12293 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12294 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12295 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12298 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12299 # Extract the first word of "objdump", so it can be a program name with args.
12300 set dummy objdump; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12306 case $OBJDUMP_FOR_TARGET in
12308 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $gcc_cv_tool_dirs
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12330 if test -n "$OBJDUMP_FOR_TARGET"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12332 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12340 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12343 if test -n "$OBJDUMP_FOR_TARGET"; then
12344 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12345 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12349 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12350 for ncn_progname in objdump; do
12351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12352 set dummy ${ncn_progname}; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12381 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12391 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12392 for ncn_progname in objdump; do
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12395 if test -x $with_build_time_tools/${ncn_progname}; then
12396 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12407 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12408 for ncn_progname in objdump; do
12409 if test -n "$ncn_target_tool_prefix"; then
12410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12440 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450 set dummy ${ncn_progname}; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12479 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12487 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12491 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12493 if test $build = $target ; then
12494 OBJDUMP_FOR_TARGET="$2"
12496 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12499 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12503 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12509 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12510 if test -n "$with_build_time_tools"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12512 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12513 if test -x $with_build_time_tools/ranlib; then
12514 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12515 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12517 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12522 elif test $build != $host && test $have_gcc_for_target = yes; then
12523 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12524 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12525 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12528 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12529 # Extract the first word of "ranlib", so it can be a program name with args.
12530 set dummy ranlib; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12536 case $RANLIB_FOR_TARGET in
12538 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $gcc_cv_tool_dirs
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12560 if test -n "$RANLIB_FOR_TARGET"; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12562 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12570 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12573 if test -n "$RANLIB_FOR_TARGET"; then
12574 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12575 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12579 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12580 for ncn_progname in ranlib; do
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582 set dummy ${ncn_progname}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12611 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12621 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12622 for ncn_progname in ranlib; do
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12625 if test -x $with_build_time_tools/${ncn_progname}; then
12626 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12637 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12638 for ncn_progname in ranlib; do
12639 if test -n "$ncn_target_tool_prefix"; then
12640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12670 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12680 set dummy ${ncn_progname}; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12709 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12717 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12721 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12723 if test $build = $target ; then
12724 RANLIB_FOR_TARGET="$2"
12726 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12729 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12733 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12739 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12740 if test -n "$with_build_time_tools"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12742 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12743 if test -x $with_build_time_tools/readelf; then
12744 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12745 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12747 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12752 elif test $build != $host && test $have_gcc_for_target = yes; then
12753 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12754 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12755 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12758 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12759 # Extract the first word of "readelf", so it can be a program name with args.
12760 set dummy readelf; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12766 case $READELF_FOR_TARGET in
12768 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $gcc_cv_tool_dirs
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12790 if test -n "$READELF_FOR_TARGET"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12792 $as_echo "$READELF_FOR_TARGET" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12800 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12803 if test -n "$READELF_FOR_TARGET"; then
12804 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12805 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12809 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12810 for ncn_progname in readelf; do
12811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12812 set dummy ${ncn_progname}; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12818 if test -n "$READELF_FOR_TARGET"; then
12819 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12839 if test -n "$READELF_FOR_TARGET"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12841 $as_echo "$READELF_FOR_TARGET" >&6; }
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12851 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12852 for ncn_progname in readelf; do
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12855 if test -x $with_build_time_tools/${ncn_progname}; then
12856 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12867 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12868 for ncn_progname in readelf; do
12869 if test -n "$ncn_target_tool_prefix"; then
12870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 if test -n "$READELF_FOR_TARGET"; then
12878 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12898 if test -n "$READELF_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12900 $as_echo "$READELF_FOR_TARGET" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910 set dummy ${ncn_progname}; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 if test -n "$READELF_FOR_TARGET"; then
12917 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12937 if test -n "$READELF_FOR_TARGET"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12939 $as_echo "$READELF_FOR_TARGET" >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12947 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12951 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12953 if test $build = $target ; then
12954 READELF_FOR_TARGET="$2"
12956 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12959 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12963 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12969 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12970 if test -n "$with_build_time_tools"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12972 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12973 if test -x $with_build_time_tools/strip; then
12974 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12975 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12977 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12982 elif test $build != $host && test $have_gcc_for_target = yes; then
12983 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12984 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12985 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12988 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12989 # Extract the first word of "strip", so it can be a program name with args.
12990 set dummy strip; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 case $STRIP_FOR_TARGET in
12998 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $gcc_cv_tool_dirs
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13020 if test -n "$STRIP_FOR_TARGET"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13022 $as_echo "$STRIP_FOR_TARGET" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13030 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13033 if test -n "$STRIP_FOR_TARGET"; then
13034 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13035 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13039 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13040 for ncn_progname in strip; do
13041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13042 set dummy ${ncn_progname}; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13071 $as_echo "$STRIP_FOR_TARGET" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13081 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13082 for ncn_progname in strip; do
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13085 if test -x $with_build_time_tools/${ncn_progname}; then
13086 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088 $as_echo "yes" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13097 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13098 for ncn_progname in strip; do
13099 if test -n "$ncn_target_tool_prefix"; then
13100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130 $as_echo "$STRIP_FOR_TARGET" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140 set dummy ${ncn_progname}; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13169 $as_echo "$STRIP_FOR_TARGET" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13181 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13183 if test $build = $target ; then
13184 STRIP_FOR_TARGET="$2"
13186 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13189 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13193 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13199 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13200 if test -n "$with_build_time_tools"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13202 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13203 if test -x $with_build_time_tools/windres; then
13204 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13205 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13207 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13212 elif test $build != $host && test $have_gcc_for_target = yes; then
13213 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13214 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13215 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13218 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13219 # Extract the first word of "windres", so it can be a program name with args.
13220 set dummy windres; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13226 case $WINDRES_FOR_TARGET in
13228 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $gcc_cv_tool_dirs
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13250 if test -n "$WINDRES_FOR_TARGET"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13252 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13260 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13263 if test -n "$WINDRES_FOR_TARGET"; then
13264 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13265 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13269 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13270 for ncn_progname in windres; do
13271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13272 set dummy ${ncn_progname}; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13301 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13311 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13312 for ncn_progname in windres; do
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13315 if test -x $with_build_time_tools/${ncn_progname}; then
13316 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13318 $as_echo "yes" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13327 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13328 for ncn_progname in windres; do
13329 if test -n "$ncn_target_tool_prefix"; then
13330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13370 set dummy ${ncn_progname}; ac_word=$2
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372 $as_echo_n "checking for $ac_word... " >&6; }
13373 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380 for as_dir in $PATH
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13386 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13399 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13407 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13411 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13413 if test $build = $target ; then
13414 WINDRES_FOR_TARGET="$2"
13416 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13419 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13423 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13429 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13430 if test -n "$with_build_time_tools"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13432 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13433 if test -x $with_build_time_tools/windmc; then
13434 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13435 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13437 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13442 elif test $build != $host && test $have_gcc_for_target = yes; then
13443 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13444 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13445 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13448 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13449 # Extract the first word of "windmc", so it can be a program name with args.
13450 set dummy windmc; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13456 case $WINDMC_FOR_TARGET in
13458 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462 for as_dir in $gcc_cv_tool_dirs
13465 test -z "$as_dir" && as_dir=.
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13468 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13480 if test -n "$WINDMC_FOR_TARGET"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13482 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13490 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13493 if test -n "$WINDMC_FOR_TARGET"; then
13494 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13495 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13499 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13500 for ncn_progname in windmc; do
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502 set dummy ${ncn_progname}; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13531 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13541 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13542 for ncn_progname in windmc; do
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13545 if test -x $with_build_time_tools/${ncn_progname}; then
13546 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548 $as_echo "yes" >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13557 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13558 for ncn_progname in windmc; do
13559 if test -n "$ncn_target_tool_prefix"; then
13560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600 set dummy ${ncn_progname}; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 $as_echo_n "checking for $ac_word... " >&6; }
13603 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13629 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13637 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13641 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13643 if test $build = $target ; then
13644 WINDMC_FOR_TARGET="$2"
13646 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13649 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13653 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13657 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13660 $as_echo_n "checking where to find the target ar... " >&6; }
13661 if test "x${build}" != "x${host}" ; then
13662 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
13664 ac_dir=`dirname $AR_FOR_TARGET`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666 $as_echo "pre-installed in $ac_dir" >&6; }
13668 # Canadian cross, just use what we found
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670 $as_echo "pre-installed" >&6; }
13674 case " ${configdirs} " in
13679 if test $ok = yes; then
13680 # An in-tree tool is available and we can use it
13681 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13683 $as_echo "just compiled" >&6; }
13684 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
13686 ac_dir=`dirname $AR_FOR_TARGET`
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688 $as_echo "pre-installed in $ac_dir" >&6; }
13689 elif test "x$target" = "x$host"; then
13690 # We can use an host tool
13691 AR_FOR_TARGET='$(AR)'
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13693 $as_echo "host tool" >&6; }
13695 # We need a cross tool
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13702 $as_echo_n "checking where to find the target as... " >&6; }
13703 if test "x${build}" != "x${host}" ; then
13704 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
13706 ac_dir=`dirname $AS_FOR_TARGET`
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708 $as_echo "pre-installed in $ac_dir" >&6; }
13710 # Canadian cross, just use what we found
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712 $as_echo "pre-installed" >&6; }
13716 case " ${configdirs} " in
13721 if test $ok = yes; then
13722 # An in-tree tool is available and we can use it
13723 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13725 $as_echo "just compiled" >&6; }
13726 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $AS_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730 $as_echo "pre-installed in $ac_dir" >&6; }
13731 elif test "x$target" = "x$host"; then
13732 # We can use an host tool
13733 AS_FOR_TARGET='$(AS)'
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13735 $as_echo "host tool" >&6; }
13737 # We need a cross tool
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739 $as_echo "pre-installed" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13744 $as_echo_n "checking where to find the target cc... " >&6; }
13745 if test "x${build}" != "x${host}" ; then
13746 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
13748 ac_dir=`dirname $CC_FOR_TARGET`
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750 $as_echo "pre-installed in $ac_dir" >&6; }
13752 # Canadian cross, just use what we found
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754 $as_echo "pre-installed" >&6; }
13758 case " ${configdirs} " in
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767 $as_echo "just compiled" >&6; }
13768 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $CC_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772 $as_echo "pre-installed in $ac_dir" >&6; }
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 CC_FOR_TARGET='$(CC)'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777 $as_echo "host tool" >&6; }
13779 # We need a cross tool
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781 $as_echo "pre-installed" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13786 $as_echo_n "checking where to find the target c++... " >&6; }
13787 if test "x${build}" != "x${host}" ; then
13788 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
13790 ac_dir=`dirname $CXX_FOR_TARGET`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792 $as_echo "pre-installed in $ac_dir" >&6; }
13794 # Canadian cross, just use what we found
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796 $as_echo "pre-installed" >&6; }
13800 case " ${configdirs} " in
13804 case ,${enable_languages}, in
13808 if test $ok = yes; then
13809 # An in-tree tool is available and we can use it
13810 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'
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13812 $as_echo "just compiled" >&6; }
13813 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
13815 ac_dir=`dirname $CXX_FOR_TARGET`
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817 $as_echo "pre-installed in $ac_dir" >&6; }
13818 elif test "x$target" = "x$host"; then
13819 # We can use an host tool
13820 CXX_FOR_TARGET='$(CXX)'
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13822 $as_echo "host tool" >&6; }
13824 # We need a cross tool
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826 $as_echo "pre-installed" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13831 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13832 if test "x${build}" != "x${host}" ; then
13833 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
13835 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837 $as_echo "pre-installed in $ac_dir" >&6; }
13839 # Canadian cross, just use what we found
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841 $as_echo "pre-installed" >&6; }
13845 case " ${configdirs} " in
13849 case ,${enable_languages}, in
13853 if test $ok = yes; then
13854 # An in-tree tool is available and we can use it
13855 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'
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13857 $as_echo "just compiled" >&6; }
13858 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13859 # We already found the complete path
13860 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13862 $as_echo "pre-installed in $ac_dir" >&6; }
13863 elif test "x$target" = "x$host"; then
13864 # We can use an host tool
13865 RAW_CXX_FOR_TARGET='$(CXX)'
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13867 $as_echo "host tool" >&6; }
13869 # We need a cross tool
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871 $as_echo "pre-installed" >&6; }
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13876 $as_echo_n "checking where to find the target dlltool... " >&6; }
13877 if test "x${build}" != "x${host}" ; then
13878 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
13880 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13884 # Canadian cross, just use what we found
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886 $as_echo "pre-installed" >&6; }
13890 case " ${configdirs} " in
13895 if test $ok = yes; then
13896 # An in-tree tool is available and we can use it
13897 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13899 $as_echo "just compiled" >&6; }
13900 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13901 # We already found the complete path
13902 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13904 $as_echo "pre-installed in $ac_dir" >&6; }
13905 elif test "x$target" = "x$host"; then
13906 # We can use an host tool
13907 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13909 $as_echo "host tool" >&6; }
13911 # We need a cross tool
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913 $as_echo "pre-installed" >&6; }
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13918 $as_echo_n "checking where to find the target gcc... " >&6; }
13919 if test "x${build}" != "x${host}" ; then
13920 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
13922 ac_dir=`dirname $GCC_FOR_TARGET`
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13926 # Canadian cross, just use what we found
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928 $as_echo "pre-installed" >&6; }
13932 case " ${configdirs} " in
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941 $as_echo "just compiled" >&6; }
13942 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
13944 ac_dir=`dirname $GCC_FOR_TARGET`
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946 $as_echo "pre-installed in $ac_dir" >&6; }
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 GCC_FOR_TARGET='$()'
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951 $as_echo "host tool" >&6; }
13953 # We need a cross tool
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955 $as_echo "pre-installed" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13960 $as_echo_n "checking where to find the target gcj... " >&6; }
13961 if test "x${build}" != "x${host}" ; then
13962 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $GCJ_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13968 # Canadian cross, just use what we found
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13974 case " ${configdirs} " in
13978 case ,${enable_languages}, in
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986 $as_echo "just compiled" >&6; }
13987 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
13989 ac_dir=`dirname $GCJ_FOR_TARGET`
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 GCJ_FOR_TARGET='$(GCJ)'
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996 $as_echo "host tool" >&6; }
13998 # We need a cross tool
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14005 $as_echo_n "checking where to find the target gfortran... " >&6; }
14006 if test "x${build}" != "x${host}" ; then
14007 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14013 # Canadian cross, just use what we found
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14019 case " ${configdirs} " in
14023 case ,${enable_languages}, in
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
14029 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031 $as_echo "just compiled" >&6; }
14032 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
14034 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036 $as_echo "pre-installed in $ac_dir" >&6; }
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041 $as_echo "host tool" >&6; }
14043 # We need a cross tool
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045 $as_echo "pre-installed" >&6; }
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14050 $as_echo_n "checking where to find the target gccgo... " >&6; }
14051 if test "x${build}" != "x${host}" ; then
14052 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $GOC_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14058 # Canadian cross, just use what we found
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14064 case " ${configdirs} " in
14068 case ,${enable_languages}, in
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $GOC_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 GOC_FOR_TARGET='$(GOC)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14095 $as_echo_n "checking where to find the target ld... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $LD_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14103 # Canadian cross, just use what we found
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14109 case " ${configdirs} " in
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $LD_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 LD_FOR_TARGET='$(LD)'
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 lipo" >&5
14137 $as_echo_n "checking where to find the target lipo... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $LIPO_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; }
14150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $LIPO_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154 $as_echo "pre-installed in $ac_dir" >&6; }
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 LIPO_FOR_TARGET='$(LIPO)'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159 $as_echo "host tool" >&6; }
14161 # We need a cross tool
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14168 $as_echo_n "checking where to find the target nm... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $NM_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14176 # Canadian cross, just use what we found
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14182 case " ${configdirs} " in
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $NM_FOR_TARGET`
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196 $as_echo "pre-installed in $ac_dir" >&6; }
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 NM_FOR_TARGET='$(NM)'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201 $as_echo "host tool" >&6; }
14203 # We need a cross tool
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14210 $as_echo_n "checking where to find the target objdump... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14218 # Canadian cross, just use what we found
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14224 case " ${configdirs} " in
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14252 $as_echo_n "checking where to find the target ranlib... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $RANLIB_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14266 case " ${configdirs} " in
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $RANLIB_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 RANLIB_FOR_TARGET='$(RANLIB)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14294 $as_echo_n "checking where to find the target readelf... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $READELF_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14308 case " ${configdirs} " in
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $READELF_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 READELF_FOR_TARGET='$(READELF)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14336 $as_echo_n "checking where to find the target strip... " >&6; }
14337 if test "x${build}" != "x${host}" ; then
14338 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $STRIP_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14344 # Canadian cross, just use what we found
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14350 case " ${configdirs} " in
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359 $as_echo "just compiled" >&6; }
14360 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $STRIP_FOR_TARGET`
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364 $as_echo "pre-installed in $ac_dir" >&6; }
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 STRIP_FOR_TARGET='$(STRIP)'
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369 $as_echo "host tool" >&6; }
14371 # We need a cross tool
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14378 $as_echo_n "checking where to find the target windres... " >&6; }
14379 if test "x${build}" != "x${host}" ; then
14380 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $WINDRES_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14392 case " ${configdirs} " in
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401 $as_echo "just compiled" >&6; }
14402 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $WINDRES_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406 $as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 WINDRES_FOR_TARGET='$(WINDRES)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411 $as_echo "host tool" >&6; }
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14420 $as_echo_n "checking where to find the target windmc... " >&6; }
14421 if test "x${build}" != "x${host}" ; then
14422 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $WINDMC_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14434 case " ${configdirs} " in
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443 $as_echo "just compiled" >&6; }
14444 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $WINDMC_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448 $as_echo "pre-installed in $ac_dir" >&6; }
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 WINDMC_FOR_TARGET='$(WINDMC)'
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453 $as_echo "host tool" >&6; }
14455 # We need a cross tool
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14465 # Certain tools may need extra flags.
14466 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14467 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14468 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14470 # When building target libraries, except in a Canadian cross, we use
14471 # the same toolchain as the compiler we just built.
14472 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14473 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14474 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14475 if test $host = $build; then
14476 case " $configdirs " in
14478 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14479 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14480 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14490 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14491 # Check whether --enable-maintainer-mode was given.
14492 if test "${enable_maintainer_mode+set}" = set; then :
14493 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14495 USE_MAINTAINER_MODE=no
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14499 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14502 if test "$USE_MAINTAINER_MODE" = yes; then
14503 MAINTAINER_MODE_TRUE=
14504 MAINTAINER_MODE_FALSE='#'
14506 MAINTAINER_MODE_TRUE='#'
14507 MAINTAINER_MODE_FALSE=
14509 MAINT=$MAINTAINER_MODE_TRUE
14511 # ---------------------
14512 # GCC bootstrap support
14513 # ---------------------
14515 # Stage specific cflags for build.
14520 yes) stage1_cflags="-g -Wa,-J" ;;
14521 *) stage1_cflags="-g -J" ;;
14527 # Enable --enable-checking in stage1 of the compiler.
14528 # Check whether --enable-stage1-checking was given.
14529 if test "${enable_stage1_checking+set}" = set; then :
14530 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14532 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14533 stage1_checking=--enable-checking=yes,types
14535 stage1_checking=--enable-checking=$enable_checking,types
14541 # Enable -Werror in bootstrap stage2 and later.
14542 # Check whether --enable-werror was given.
14543 if test "${enable_werror+set}" = set; then :
14544 enableval=$enable_werror;
14546 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14553 case ${enable_werror} in
14554 yes) stage2_werror_flag="--enable-werror-always" ;;
14555 *) stage2_werror_flag="" ;;
14559 # Enable --enable-host-shared.
14560 # Check whether --enable-host-shared was given.
14561 if test "${enable_host_shared+set}" = set; then :
14562 enableval=$enable_host_shared; host_shared=$enableval
14569 # Specify what files to not compare during bootstrap.
14571 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14573 hppa*64*-*-hpux*) ;;
14574 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14575 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14579 ac_config_files="$ac_config_files Makefile"
14581 cat >confcache <<\_ACEOF
14582 # This file is a shell script that caches the results of configure
14583 # tests run on this system so they can be shared between configure
14584 # scripts and configure runs, see configure's option --config-cache.
14585 # It is not useful on other systems. If it contains results you don't
14586 # want to keep, you may remove or edit it.
14588 # config.status only pays attention to the cache file if you give it
14589 # the --recheck option to rerun configure.
14591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14593 # following values.
14597 # The following way of writing the cache mishandles newlines in values,
14598 # but we know of no workaround that is simple, portable, and efficient.
14599 # So, we kill variables containing newlines.
14600 # Ultrix sh set writes to stderr and can't be redirected directly,
14601 # and sets the high bit in the cache file unless we assign to the vars.
14603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14604 eval ac_val=\$$ac_var
14608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14612 _ | IFS | as_nl) ;; #(
14613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14614 *) { eval $ac_var=; unset $ac_var;} ;;
14620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14621 *${as_nl}ac_space=\ *)
14622 # `set' does not quote correctly, so add quotes: double-quote
14623 # substitution turns \\\\ into \\, and sed turns \\ into \.
14626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14629 # `set' quotes correctly as required by POSIX, so do not add quotes.
14630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14644 if test -w "$cache_file"; then
14645 test "x$cache_file" != "x/dev/null" &&
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14647 $as_echo "$as_me: updating cache $cache_file" >&6;}
14648 cat confcache >$cache_file
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14651 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14656 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14657 # Let make expand exec_prefix.
14658 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14660 # Transform confdefs.h into DEFS.
14661 # Protect against shell expansion while executing Makefile rules.
14662 # Protect against Makefile macro expansion.
14664 # If the first sed substitution is executed (which looks for macros that
14665 # take arguments), then branch to the quote section. Otherwise,
14666 # look for a macro that doesn't take arguments.
14676 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14678 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14682 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14695 DEFS=`sed -n "$ac_script" confdefs.h`
14700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14701 # 1. Remove the extension, and $U if already installed.
14702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14705 # will be set to the directory where LIBOBJS objects are built.
14706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14709 LIBOBJS=$ac_libobjs
14711 LTLIBOBJS=$ac_ltlibobjs
14715 : ${CONFIG_STATUS=./config.status}
14717 ac_clean_files_save=$ac_clean_files
14718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14724 # Generated by $as_me.
14725 # Run this file to recreate the current configuration.
14726 # Compiler output produced by configure, useful for debugging
14727 # configure, is in config.log if it exists.
14730 ac_cs_recheck=false
14733 SHELL=\${CONFIG_SHELL-$SHELL}
14736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14737 ## -------------------- ##
14738 ## M4sh Initialization. ##
14739 ## -------------------- ##
14741 # Be more Bourne compatible
14742 DUALCASE=1; export DUALCASE # for MKS sh
14743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14747 # is contrary to our usage. Disable this feature.
14748 alias -g '${1+"$@"}'='"$@"'
14749 setopt NO_GLOB_SUBST
14751 case `(set -o) 2>/dev/null` in #(
14763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14767 # Prefer a ksh shell builtin over an external printf program on Solaris,
14768 # but without wasting forks for bash or zsh.
14769 if test -z "$BASH_VERSION$ZSH_VERSION" \
14770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14771 as_echo='print -r --'
14772 as_echo_n='print -rn --'
14773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14774 as_echo='printf %s\n'
14775 as_echo_n='printf %s'
14777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14779 as_echo_n='/usr/ucb/echo -n'
14781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14782 as_echo_n_body='eval
14786 expr "X$arg" : "X\\(.*\\)$as_nl";
14787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14791 export as_echo_n_body
14792 as_echo_n='sh -c $as_echo_n_body as_echo'
14794 export as_echo_body
14795 as_echo='sh -c $as_echo_body as_echo'
14798 # The user is always right.
14799 if test "${PATH_SEPARATOR+set}" != set; then
14801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14809 # We need space, tab and new line, in precisely that order. Quoting is
14810 # there to prevent editors from complaining about space-tab.
14811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14812 # splitting by setting IFS to empty value.)
14815 # Find who we are. Look in the path if we contain no directory separator.
14817 *[\\/]* ) as_myself=$0 ;;
14818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14822 test -z "$as_dir" && as_dir=.
14823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14829 # We did not find ourselves, most probably we were run as `sh COMMAND'
14830 # in which case we are not to be found in the path.
14831 if test "x$as_myself" = x; then
14834 if test ! -f "$as_myself"; then
14835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14839 # Unset variables that we do not need and which cause bugs (e.g. in
14840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14841 # suppresses any "Segmentation fault" message there. '((' could
14842 # trigger a bug in pdksh 5.2.14.
14843 for as_var in BASH_ENV ENV MAIL MAILPATH
14844 do eval test x\${$as_var+set} = xset \
14845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14861 # as_fn_error ERROR [LINENO LOG_FD]
14862 # ---------------------------------
14863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14865 # script with status $?, using 1 if that was 0.
14868 as_status=$?; test $as_status -eq 0 && as_status=1
14870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14873 $as_echo "$as_me: error: $1" >&2
14874 as_fn_exit $as_status
14878 # as_fn_set_status STATUS
14879 # -----------------------
14880 # Set $? to STATUS, without forking.
14881 as_fn_set_status ()
14884 } # as_fn_set_status
14886 # as_fn_exit STATUS
14887 # -----------------
14888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14892 as_fn_set_status $1
14898 # Portably unset VAR.
14901 { eval $1=; unset $1;}
14903 as_unset=as_fn_unset
14904 # as_fn_append VAR VALUE
14905 # ----------------------
14906 # Append the text in VALUE to the end of the definition contained in VAR. Take
14907 # advantage of any shell optimizations that allow amortized linear growth over
14908 # repeated appends, instead of the typical quadratic growth present in naive
14910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14911 eval 'as_fn_append ()
14922 # as_fn_arith ARG...
14923 # ------------------
14924 # Perform arithmetic evaluation on the ARGs, and store the result in the
14925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14926 # must be portable across $(()) and expr.
14927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14928 eval 'as_fn_arith ()
14935 as_val=`expr "$@" || test $? -eq 1`
14940 if expr a : '\(a\)' >/dev/null 2>&1 &&
14941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14948 as_basename=basename
14953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14959 as_me=`$as_basename -- "$0" ||
14960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14961 X"$0" : 'X\(//\)$' \| \
14962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14964 sed '/^.*\/\([^/][^/]*\)\/*$/{
14978 # Avoid depending upon Character Ranges.
14979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14982 as_cr_digits='0123456789'
14983 as_cr_alnum=$as_cr_Letters$as_cr_digits
14985 ECHO_C= ECHO_N= ECHO_T=
14986 case `echo -n x` in #(((((
14988 case `echo 'xy\c'` in
14989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14998 rm -f conf$$ conf$$.exe conf$$.file
14999 if test -d conf$$.dir; then
15000 rm -f conf$$.dir/conf$$.file
15003 mkdir conf$$.dir 2>/dev/null
15005 if (echo >conf$$.file) 2>/dev/null; then
15006 if ln -s conf$$.file conf$$ 2>/dev/null; then
15008 # ... but there are two gotchas:
15009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15011 # In both cases, we have to default to `cp -p'.
15012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15014 elif ln conf$$.file conf$$ 2>/dev/null; then
15022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15023 rmdir conf$$.dir 2>/dev/null
15028 # Create "$as_dir" as a directory, including parents if necessary.
15033 -*) as_dir=./$as_dir;;
15035 test -d "$as_dir" || eval $as_mkdir_p || {
15039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15040 *) as_qdir=$as_dir;;
15042 as_dirs="'$as_qdir' $as_dirs"
15043 as_dir=`$as_dirname -- "$as_dir" ||
15044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$as_dir" : 'X\(//\)[^/]' \| \
15046 X"$as_dir" : 'X\(//\)$' \| \
15047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15048 $as_echo X"$as_dir" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15053 /^X\(\/\/\)[^/].*/{
15066 test -d "$as_dir" && break
15068 test -z "$as_dirs" || eval "mkdir $as_dirs"
15069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15073 if mkdir -p . 2>/dev/null; then
15074 as_mkdir_p='mkdir -p "$as_dir"'
15076 test -d ./-p && rmdir ./-p
15080 if test -x / >/dev/null 2>&1; then
15081 as_test_x='test -x'
15083 if ls -dL / >/dev/null 2>&1; then
15090 if test -d "$1"; then
15096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15097 ???[sx]*):;;*)false;;esac;fi
15101 as_executable_p=$as_test_x
15103 # Sed expression to map a string onto a valid CPP name.
15104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15106 # Sed expression to map a string onto a valid variable name.
15107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15111 ## ----------------------------------- ##
15112 ## Main body of $CONFIG_STATUS script. ##
15113 ## ----------------------------------- ##
15115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118 # Save the log message, to keep $0 and so on meaningful, and to
15119 # report actual input values of CONFIG_FILES etc. instead of their
15120 # values after options handling.
15122 This file was extended by $as_me, which was
15123 generated by GNU Autoconf 2.64. Invocation command line was
15125 CONFIG_FILES = $CONFIG_FILES
15126 CONFIG_HEADERS = $CONFIG_HEADERS
15127 CONFIG_LINKS = $CONFIG_LINKS
15128 CONFIG_COMMANDS = $CONFIG_COMMANDS
15131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15136 case $ac_config_files in *"
15137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143 # Files that config.status was made for.
15144 config_files="$ac_config_files"
15148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15150 \`$as_me' instantiates files and other configuration actions
15151 from templates according to the current configuration. Unless the files
15152 and actions are specified as TAGs, all are instantiated by default.
15154 Usage: $0 [OPTION]... [TAG]...
15156 -h, --help print this help, then exit
15157 -V, --version print version number and configuration settings, then exit
15158 -q, --quiet, --silent
15159 do not print progress messages
15160 -d, --debug don't remove temporary files
15161 --recheck update $as_me by reconfiguring in the same conditions
15162 --file=FILE[:TEMPLATE]
15163 instantiate the configuration file FILE
15165 Configuration files:
15168 Report bugs to the package provider."
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174 configured by $0, generated by GNU Autoconf 2.64,
15175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15177 Copyright (C) 2009 Free Software Foundation, Inc.
15178 This config.status script is free software; the Free Software Foundation
15179 gives unlimited permission to copy, distribute and modify it."
15185 test -n "\$AWK" || AWK=awk
15188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189 # The default lists apply if the user does not specify any file.
15195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15207 # Handling of the options.
15208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15211 $as_echo "$ac_cs_version"; exit ;;
15212 --debug | --debu | --deb | --de | --d | -d )
15214 --file | --fil | --fi | --f )
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15219 as_fn_append CONFIG_FILES " '$ac_optarg'"
15220 ac_need_defaults=false;;
15221 --he | --h | --help | --hel | -h )
15222 $as_echo "$ac_cs_usage"; exit ;;
15223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15227 # This is an error.
15228 -*) as_fn_error "unrecognized option: \`$1'
15229 Try \`$0 --help' for more information." ;;
15231 *) as_fn_append ac_config_targets " $1"
15232 ac_need_defaults=false ;;
15238 ac_configure_extra_args=
15240 if $ac_cs_silent; then
15242 ac_configure_extra_args="$ac_configure_extra_args --silent"
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247 if \$ac_cs_recheck; then
15248 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15251 CONFIG_SHELL='$SHELL'
15252 export CONFIG_SHELL
15257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15262 ## Running $as_me. ##
15268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15272 extrasub_build="$extrasub_build"
15273 extrasub_host="$extrasub_host"
15274 extrasub_target="$extrasub_target"
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 # Handling of arguments.
15281 for ac_config_target in $ac_config_targets
15283 case $ac_config_target in
15284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15286 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15291 # If the user did not use the arguments to specify the items to instantiate,
15292 # then the envvar interface is used. Set only those that are not.
15293 # We use the long form for the default assignment because of an extremely
15294 # bizarre bug on SunOS 4.1.3.
15295 if $ac_need_defaults; then
15296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15299 # Have a temporary directory for convenience. Make it in the build tree
15300 # simply because there is no reason against having it here, and in addition,
15301 # creating and moving files from /tmp can sometimes cause problems.
15302 # Hook for its removal unless debugging.
15303 # Note that there is a small window in which the directory will not be cleaned:
15304 # after its creation but before its name has been assigned to `$tmp'.
15308 trap 'exit_status=$?
15309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15311 trap 'as_fn_exit 1' 1 2 13 15
15313 # Create a (secure) tmp directory for tmp files.
15316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15317 test -n "$tmp" && test -d "$tmp"
15320 tmp=./conf$$-$RANDOM
15321 (umask 077 && mkdir "$tmp")
15322 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15324 # Set up the scripts for CONFIG_FILES section.
15325 # No need to generate them if there are no CONFIG_FILES.
15326 # This happens for instance with `./config.status config.h'.
15327 if test -n "$CONFIG_FILES"; then
15329 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15330 ac_cs_awk_getline=:
15331 ac_cs_awk_pipe_init=
15332 ac_cs_awk_read_file='
15333 while ((getline aline < (F[key])) > 0)
15336 ac_cs_awk_pipe_fini=
15338 ac_cs_awk_getline=false
15339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15340 ac_cs_awk_read_file='
15342 print "cat " F[key] " &&"
15343 '$ac_cs_awk_pipe_init
15344 # The final `:' finishes the AND list.
15345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15347 ac_cr=`echo X | tr X '\015'`
15348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15349 # But we know of no other shell where ac_cr would be empty at this
15350 # point, so we can use a bashism as a fallback.
15351 if test "x$ac_cr" = x; then
15352 eval ac_cr=\$\'\\r\'
15354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15358 ac_cs_awk_cr=$ac_cr
15361 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15364 # Create commands to substitute file output variables.
15366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15367 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15371 } >conf$$files.sh &&
15372 . ./conf$$files.sh ||
15373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15374 rm -f conf$$files.sh
15377 echo "cat >conf$$subs.awk <<_ACEOF" &&
15378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15380 } >conf$$subs.sh ||
15381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15384 for ac_last_try in false false false false false :; do
15385 . ./conf$$subs.sh ||
15386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15389 if test $ac_delim_n = $ac_delim_num; then
15391 elif $ac_last_try; then
15392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15397 rm -f conf$$subs.sh
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15404 s/^/S["/; s/!.*/"]=/
15414 s/\(.\{148\}\).*/\1/
15416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15428 s/\(.\{148\}\).*/\1/
15430 s/["\\]/\\&/g; s/^/"/; s/$/"/
15434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15439 ' <conf$$subs.awk | sed '
15444 ' >>$CONFIG_STATUS || ac_write_fail=1
15445 rm -f conf$$subs.awk
15446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15449 for (key in S) S_is_set[key] = 1
15451 \$ac_cs_awk_pipe_init
15455 nfields = split(line, field, "@")
15457 len = length(field[1])
15458 for (i = 2; i < nfields; i++) {
15460 keylen = length(key)
15461 if (S_is_set[key]) {
15463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15464 len += length(value) + length(field[++i])
15469 if (nfields == 3 && !substed) {
15471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15472 \$ac_cs_awk_read_file
15478 \$ac_cs_awk_pipe_fini
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15492 # trailing colons and then remove the whole line if VPATH becomes empty
15493 # (actually we leave an empty line to preserve line numbers).
15494 if test "x$srcdir" = x.; then
15495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15496 s/:*\$(srcdir):*/:/
15497 s/:*\${srcdir}:*/:/
15499 s/^\([^=]*=[ ]*\):*/\1/
15505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506 fi # test -n "$CONFIG_FILES"
15509 eval set X " :F $CONFIG_FILES "
15514 :[FHLC]) ac_mode=$ac_tag; continue;;
15516 case $ac_mode$ac_tag in
15518 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15519 :[FH]-) ac_tag=-:-;;
15520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15537 -) ac_f="$tmp/stdin";;
15538 *) # Look for the file first in the build tree, then in the source tree
15539 # (if the path is not absolute). The absolute path cannot be DOS-style,
15540 # because $ac_f cannot contain `:'.
15544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15546 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15549 as_fn_append ac_file_inputs " '$ac_f'"
15552 # Let's still pretend it is `configure' which instantiates (i.e., don't
15553 # use $as_me), people would be surprised to read:
15554 # /* config.h. Generated by config.status. */
15555 configure_input='Generated from '`
15556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15558 if test x"$ac_file" != x-; then
15559 configure_input="$ac_file. $configure_input"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15561 $as_echo "$as_me: creating $ac_file" >&6;}
15563 # Neutralize special characters interpreted by sed in replacement strings.
15564 case $configure_input in #(
15565 *\&* | *\|* | *\\* )
15566 ac_sed_conf_input=`$as_echo "$configure_input" |
15567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15568 *) ac_sed_conf_input=$configure_input;;
15572 *:-:* | *:-) cat >"$tmp/stdin" \
15573 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15578 ac_dir=`$as_dirname -- "$ac_file" ||
15579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15580 X"$ac_file" : 'X\(//\)[^/]' \| \
15581 X"$ac_file" : 'X\(//\)$' \| \
15582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15583 $as_echo X"$ac_file" |
15584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15588 /^X\(\/\/\)[^/].*/{
15601 as_dir="$ac_dir"; as_fn_mkdir_p
15605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15608 # A ".." for each directory in $ac_dir_suffix.
15609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15610 case $ac_top_builddir_sub in
15611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15615 ac_abs_top_builddir=$ac_pwd
15616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15617 # for backward compatibility:
15618 ac_top_builddir=$ac_top_build_prefix
15621 .) # We are building in place.
15623 ac_top_srcdir=$ac_top_builddir_sub
15624 ac_abs_top_srcdir=$ac_pwd ;;
15625 [\\/]* | ?:[\\/]* ) # Absolute name.
15626 ac_srcdir=$srcdir$ac_dir_suffix;
15627 ac_top_srcdir=$srcdir
15628 ac_abs_top_srcdir=$srcdir ;;
15629 *) # Relative name.
15630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15631 ac_top_srcdir=$ac_top_build_prefix$srcdir
15632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 # If the template does not know about datarootdir, expand it.
15651 # FIXME: This hack should be removed a few years after 2.60.
15652 ac_datarootdir_hack=; ac_datarootdir_seen=
15663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15664 *datarootdir*) ac_datarootdir_seen=yes;;
15665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15670 ac_datarootdir_hack='
15671 s&@datadir@&$datadir&g
15672 s&@docdir@&$docdir&g
15673 s&@infodir@&$infodir&g
15674 s&@localedir@&$localedir&g
15675 s&@mandir@&$mandir&g
15676 s&\\\${datarootdir}&$datarootdir&g' ;;
15680 # Neutralize VPATH when `$srcdir' = `.'.
15681 # Shell code in configure.ac might set extrasub.
15682 # FIXME: do we really want to maintain this feature?
15683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684 ac_sed_extra="$ac_vpsub
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15690 s|@configure_input@|$ac_sed_conf_input|;t t
15691 s&@top_builddir@&$ac_top_builddir_sub&;t t
15692 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15693 s&@srcdir@&$ac_srcdir&;t t
15694 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15695 s&@top_srcdir@&$ac_top_srcdir&;t t
15696 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15697 s&@builddir@&$ac_builddir&;t t
15698 s&@abs_builddir@&$ac_abs_builddir&;t t
15699 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15700 s&@INSTALL@&$ac_INSTALL&;t t
15701 $ac_datarootdir_hack
15703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15704 if $ac_cs_awk_getline; then
15705 $AWK -f "$tmp/subs.awk"
15707 $AWK -f "$tmp/subs.awk" | $SHELL
15709 || as_fn_error "could not create $ac_file" "$LINENO" 5
15711 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15715 which seems to be undefined. Please make sure it is defined." >&5
15716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15717 which seems to be undefined. Please make sure it is defined." >&2;}
15721 -) cat "$tmp/out" && rm -f "$tmp/out";;
15722 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15724 || as_fn_error "could not create $ac_file" "$LINENO" 5
15732 case $ac_file$ac_mode in
15733 "Makefile":F) sed "$extrasub_build" Makefile |
15734 sed "$extrasub_host" |
15735 sed "$extrasub_target" > mf$$
15736 mv -f mf$$ Makefile ;;
15744 ac_clean_files=$ac_clean_files_save
15746 test $ac_write_fail = 0 ||
15747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15750 # configure is writing to config.log, and then calls config.status.
15751 # config.status does its own redirection, appending to config.log.
15752 # Unfortunately, on DOS this fails, as config.log is still kept open
15753 # by configure, so config.status won't be able to write to it; its
15754 # output is simply discarded. So we exec the FD to /dev/null,
15755 # effectively closing config.log, so it can be properly (re)opened and
15756 # appended to by config.status. When coming back to configure, we
15757 # need to make the FD available again.
15758 if test "$no_create" != yes; then
15760 ac_config_status_args=
15761 test "$silent" = yes &&
15762 ac_config_status_args="$ac_config_status_args --quiet"
15764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15767 # would make configure fail if this is the last instruction.
15768 $ac_cs_success || as_fn_exit $?
15770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}