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."
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
564 MAINTAINER_MODE_FALSE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
647 extra_host_libiberty_configure_flags
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
674 EXTRA_CONFIGARGS_LIBJAVA
701 TOPLEVEL_CONFIGURE_ARGUMENTS
729 program_transform_name
740 ac_subst_files='serialization_dependencies
746 enable_option_checking
751 enable_libquadmath_support
755 enable_static_libjava
777 enable_isl_version_check
780 enable_cloog_version_check
782 enable_stage1_languages
785 with_debug_prefix_map
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
795 ac_precious_vars='build_alias
843 # Initialize some variables set by options.
845 ac_init_version=false
846 ac_unrecognized_opts=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name=s,x,x,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 as_fn_error "path to source, $srcdir, contains spaces"
1373 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1458 if test -n "$ac_init_help"; then
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
1473 --disable-libstdcxx do not build libstdc++-v3 directory
1474 --enable-static-libjava[=ARG]
1475 build static libjava [default=no]
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --disable-isl-version-check
1478 disable check for ISL version
1479 --disable-cloog-version-check
1480 disable check for CLooG version
1481 --enable-lto enable link time optimization support
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1487 --enable-vtable-verify Enable vtable verification feature
1488 --enable-serial-[{host,target,build}-]configure
1489 force sequential configuration of sub-packages for
1490 the host, target or build machine, or all
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
1495 --enable-stage1-checking[=all]
1496 choose additional checking for stage1 of the
1498 --enable-werror enable -Werror in bootstrap stage2 and later
1499 --enable-host-shared build host code as shared libraries
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-build-libsubdir=DIR Directory where to find libraries for build system
1505 --with-mpc=PATH specify prefix directory for installed MPC package.
1506 Equivalent to --with-mpc-include=PATH/include plus
1507 --with-mpc-lib=PATH/lib
1508 --with-mpc-include=PATH specify directory for installed MPC include files
1509 --with-mpc-lib=PATH specify directory for the installed MPC library
1510 --with-mpfr-dir=PATH this option has been REMOVED
1511 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1512 Equivalent to --with-mpfr-include=PATH/include plus
1513 --with-mpfr-lib=PATH/lib
1514 --with-mpfr-include=PATH
1515 specify directory for installed MPFR include files
1516 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1517 --with-gmp-dir=PATH this option has been REMOVED
1518 --with-gmp=PATH specify prefix directory for the installed GMP
1519 package. Equivalent to
1520 --with-gmp-include=PATH/include plus
1521 --with-gmp-lib=PATH/lib
1522 --with-gmp-include=PATH specify directory for installed GMP include files
1523 --with-gmp-lib=PATH specify directory for the installed GMP library
1524 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1526 --with-stage1-libs=LIBS libraries for stage1
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-boot-libs=LIBS libraries for stage2 and later
1530 --with-boot-ldflags=FLAGS
1531 linker flags for stage2 and later
1532 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1533 package. Equivalent to
1534 --with-cloog-include=PATH/include plus
1535 --with-cloog-lib=PATH/lib
1536 --with-isl=PATH Specify prefix directory for the installed ISL
1537 package. Equivalent to
1538 --with-isl-include=PATH/include plus
1539 --with-isl-lib=PATH/lib
1540 --with-isl-include=PATH Specify directory for installed ISL include files
1541 --with-isl-lib=PATH Specify the directory for the installed ISL library
1542 --with-cloog-include=PATH
1543 Specify directory for installed CLooG include files
1544 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1546 --with-build-sysroot=SYSROOT
1547 use sysroot as the system root during the build
1548 --with-debug-prefix-map='A=B C=D ...'
1549 map A to B, C to D ... in debug information
1550 --with-build-config='NAME NAME2...'
1551 use config/NAME.mk build configuration
1552 --with-build-time-tools=PATH
1553 use given path to find target tools during the build
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1566 additional configure arguments for build directories
1568 additional configure arguments for host directories
1570 additional configure arguments for target directories
1573 DLLTOOL DLLTOOL for the host
1575 LIPO LIPO for the host
1577 RANLIB RANLIB for the host
1578 STRIP STRIP for the host
1579 WINDRES WINDRES for the host
1580 WINDMC WINDMC for the host
1581 OBJCOPY OBJCOPY for the host
1582 OBJDUMP OBJDUMP for the host
1583 READELF READELF for the host
1593 GFORTRAN for the target
1601 DLLTOOL for the target
1609 OBJCOPY for the target
1611 OBJDUMP for the target
1613 RANLIB for the target
1615 READELF for the target
1617 STRIP for the target
1619 WINDRES for the target
1621 WINDMC for the target
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to the package provider.
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1656 .) # We are building in place.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1690 generated by GNU Autoconf 2.64
1692 Copyright (C) 2009 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 } # ac_fn_c_try_compile
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_cxx_try_link LINENO
1780 # -------------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_link ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_cxx_try_link
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_try_link
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=$ac_status
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1916 It was created by $as_me, which was
1917 generated by GNU Autoconf 2.64. Invocation command line was
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1942 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 $as_echo "PATH: $as_dir"
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_must_keep_next=false
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1993 as_fn_append ac_configure_args1 " '$ac_arg'"
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 -* ) ac_must_keep_next=true ;;
2009 as_fn_append ac_configure_args " '$ac_arg'"
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log. We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2028 ## ---------------- ##
2029 ## Cache variables. ##
2030 ## ---------------- ##
2033 # The following way of writing the cache mishandles newlines in values,
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 ## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##
2071 for ac_var in $ac_subst_vars
2073 eval ac_val=\$$ac_var
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 $as_echo "$ac_var='\''$ac_val'\''"
2081 if test -n "$ac_subst_files"; then
2083 ## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##
2088 for ac_var in $ac_subst_files
2090 eval ac_val=\$$ac_var
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 $as_echo "$ac_var='\''$ac_val'\''"
2099 if test -s confdefs.h; then
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2125 $as_echo "/* confdefs.h */" > confdefs.h
2127 # Predefined preprocessor variables.
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2158 if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 # Check that the precious variables saved in the cache have kept the same
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271 # if PWD already has a value, it is probably wrong.
2272 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2274 # Export original configure arguments for use by sub-configures.
2275 # Quote arguments with shell meta charatcers.
2276 TOPLEVEL_CONFIGURE_ARGUMENTS=
2277 set -- "$progname" "$@"
2281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2283 # if the argument is of the form -foo=baz, quote the baz part only
2284 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2287 # Add the quoted argument to the list.
2288 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2290 if test "$silent" = yes; then
2291 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2293 # Remove the initial space we just introduced and, as these will be
2294 # expanded by make, quote '$'.
2295 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2298 # Find the build, host, and target systems.
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 for ac_t in install-sh install.sh shtool; do
2302 if test -f "$ac_dir/$ac_t"; then
2304 ac_install_sh="$ac_aux_dir/$ac_t -c"
2309 if test -z "$ac_aux_dir"; then
2310 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2313 # These three variables are undocumented and unsupported,
2314 # and are intended to be withdrawn in a future Autoconf release.
2315 # They can cause serious problems if a builder's source tree is in a directory
2316 # whose full name contains unusual characters.
2317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322 # Make sure we can run config.sub.
2323 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2324 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2327 $as_echo_n "checking build system type... " >&6; }
2328 if test "${ac_cv_build+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
2331 ac_build_alias=$build_alias
2332 test "x$ac_build_alias" = x &&
2333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2334 test "x$ac_build_alias" = x &&
2335 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2336 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2337 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2341 $as_echo "$ac_cv_build" >&6; }
2342 case $ac_cv_build in
2344 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2347 ac_save_IFS=$IFS; IFS='-'
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
2367 case ${host_alias} in
2368 "") host_noncanonical=${build_noncanonical} ;;
2369 *) host_noncanonical=${host_alias} ;;
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
2382 test "$host_noncanonical" = "$target_noncanonical" &&
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2385 program_transform_name=s,y,y,
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388 $as_echo_n "checking host system type... " >&6; }
2389 if test "${ac_cv_host+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
2392 if test "x$host_alias" = x; then
2393 ac_cv_host=$ac_cv_build
2395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401 $as_echo "$ac_cv_host" >&6; }
2404 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2407 ac_save_IFS=$IFS; IFS='-'
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2421 $as_echo_n "checking target system type... " >&6; }
2422 if test "${ac_cv_target+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2425 if test "x$target_alias" = x; then
2426 ac_cv_target=$ac_cv_host
2428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2434 $as_echo "$ac_cv_target" >&6; }
2435 case $ac_cv_target in
2437 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2439 target=$ac_cv_target
2440 ac_save_IFS=$IFS; IFS='-'
2446 # Remember, the first character of IFS is used to create $*,
2447 # except with old shells:
2450 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2453 # The aliases save the names the user supplied, while $host etc.
2454 # will get canonicalized.
2455 test -n "$target_alias" &&
2456 test "$program_prefix$program_suffix$program_transform_name" = \
2458 program_prefix=${target_alias}-
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472 # Get 'install' or 'install-sh' and its variants.
2473 # Find a good install program. We prefer a C program (faster),
2474 # so one script is as good as another. But avoid the broken or
2475 # incompatible versions:
2476 # SysV /etc/install, /usr/sbin/install
2477 # SunOS /usr/etc/install
2478 # IRIX /sbin/install
2480 # AmigaOS /C/install, which installs bootblocks on floppy discs
2481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2484 # OS/2's system install, which has a completely different semantic
2485 # ./install, which can be erroneously created by make from ./install.sh.
2486 # Reject install programs that cannot install multiple files.
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2489 if test -z "$INSTALL"; then
2490 if test "${ac_cv_path_install+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 # Account for people who put trailing slashes in PATH elements.
2499 case $as_dir/ in #((
2500 ./ | .// | /[cC]/* | \
2501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2508 for ac_prog in ginstall scoinst install; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2511 if test $ac_prog = install &&
2512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # AIX install. It has an incompatible calling convention.
2515 elif test $ac_prog = install &&
2516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # program-specific install script used by HP pwplus--don't use.
2520 rm -rf conftest.one conftest.two conftest.dir
2521 echo one > conftest.one
2522 echo two > conftest.two
2524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2525 test -s conftest.one && test -s conftest.two &&
2526 test -s conftest.dir/conftest.one &&
2527 test -s conftest.dir/conftest.two
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 rm -rf conftest.one conftest.two conftest.dir
2545 if test "${ac_cv_path_install+set}" = set; then
2546 INSTALL=$ac_cv_path_install
2548 # As a last resort, use the slow shell script. Don't cache a
2549 # value for INSTALL within a source directory, because that will
2550 # break other packages using the cache if that directory is
2551 # removed, or if the value is a relative name.
2552 INSTALL=$ac_install_sh
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2556 $as_echo "$INSTALL" >&6; }
2558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559 # It thinks the first close brace ends the variable substitution.
2560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2567 $as_echo_n "checking whether ln works... " >&6; }
2568 if test "${acx_cv_prog_LN+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2571 rm -f conftestdata_t
2572 echo >conftestdata_f
2573 if ln conftestdata_f conftestdata_t 2>/dev/null
2579 rm -f conftestdata_f conftestdata_t
2582 if test $acx_cv_prog_LN = no; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2585 $as_echo "no, using $LN" >&6; }
2587 LN="$acx_cv_prog_LN"
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589 $as_echo "yes" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2593 $as_echo_n "checking whether ln -s works... " >&6; }
2595 if test "$LN_S" = "ln -s"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2600 $as_echo "no, using $LN_S" >&6; }
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2604 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2605 if test "${ac_cv_path_SED+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2609 for ac_i in 1 2 3 4 5 6 7; do
2610 ac_script="$ac_script$as_nl$ac_script"
2612 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2613 { ac_script=; unset ac_script;}
2614 if test -z "$SED"; then
2615 ac_path_SED_found=false
2616 # Loop through the user's path and test for each of PROGNAME-LIST
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_prog in sed gsed; do
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2625 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2626 # Check for GNU ac_path_SED and select it if it is found.
2627 # Check for GNU $ac_path_SED
2628 case `"$ac_path_SED" --version 2>&1` in
2630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2633 $as_echo_n 0123456789 >"conftest.in"
2636 cat "conftest.in" "conftest.in" >"conftest.tmp"
2637 mv "conftest.tmp" "conftest.in"
2638 cp "conftest.in" "conftest.nl"
2639 $as_echo '' >> "conftest.nl"
2640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2642 as_fn_arith $ac_count + 1 && ac_count=$as_val
2643 if test $ac_count -gt ${ac_path_SED_max-0}; then
2644 # Best one so far, save it but keep looking for a better one
2645 ac_cv_path_SED="$ac_path_SED"
2646 ac_path_SED_max=$ac_count
2648 # 10*(2^10) chars as input seems more than enough
2649 test $ac_count -gt 10 && break
2651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2654 $ac_path_SED_found && break 3
2659 if test -z "$ac_cv_path_SED"; then
2660 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2668 $as_echo "$ac_cv_path_SED" >&6; }
2669 SED="$ac_cv_path_SED"
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_AWK+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$AWK" && break
2715 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2717 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2719 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2720 INSTALL="${srcpwd}/install-sh -c"
2723 # Set srcdir to "." if that's what it is.
2724 # This is important for multilib support.
2726 if test "${pwd}" = "${srcpwd}" ; then
2734 ### To add a new directory to the tree, first choose whether it is a target
2735 ### or a host dependent tool. Then put it into the appropriate list
2736 ### (library or tools, host or target), doing a dependency sort.
2738 # Subdirs will be configured in the order listed in build_configdirs,
2739 # configdirs, or target_configdirs; see the serialization section below.
2741 # Dependency sorting is only needed when *configuration* must be done in
2742 # a particular order. In all cases a dependency should be specified in
2743 # the Makefile, whether or not it's implicitly specified here.
2745 # Double entries in build_configdirs, configdirs, or target_configdirs may
2746 # cause circular dependencies and break everything horribly.
2748 # these library is used by various programs built for the build
2751 build_libs="build-libiberty"
2753 # these tools are built for the build environment
2754 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2756 # these libraries are used by various programs built for the host environment
2758 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2760 # these tools are built for the host environment
2761 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2762 # know that we are building the simulator.
2763 # binutils, gas and ld appear in that order because it makes sense to run
2764 # "make check" in that particular order.
2765 # If --enable-gold is used, "gold" may replace "ld".
2766 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2768 # libgcj represents the runtime libraries only used by gcj.
2769 libgcj="target-libffi \
2773 # these libraries are built for the target environment, and are built after
2774 # the host libraries and the host tools (which may be a cross compiler)
2775 # Note that libiberty is not a target library.
2776 target_libraries="target-libgcc \
2777 target-libbacktrace \
2784 target-libstdc++-v3 \
2785 target-libsanitizer \
2788 target-libquadmath \
2789 target-libgfortran \
2796 # these tools are built using the target libraries, and are intended to
2797 # run only in the target environment
2799 # note: any program that *uses* libraries that are in the "target_libraries"
2800 # list belongs in this list.
2802 target_tools="target-rda"
2804 ################################################################################
2806 ## All tools belong in one of the four categories, and are assigned above
2807 ## We assign ${configdirs} this way to remove all embedded newlines. This
2808 ## is important because configure will choke if they ever get through.
2809 ## ${configdirs} is directories we build using the host tools.
2810 ## ${target_configdirs} is directories we build using the target tools.
2811 configdirs=`echo ${host_libs} ${host_tools}`
2812 target_configdirs=`echo ${target_libraries} ${target_tools}`
2813 build_configdirs=`echo ${build_libs} ${build_tools}`
2817 ################################################################################
2819 srcname="gnu development package"
2821 # This gets set non-empty for some net releases of packages.
2824 # Define is_cross_compiler to save on calls to 'test'.
2826 if test x"${host}" = x"${target}" ; then
2827 is_cross_compiler=no
2829 is_cross_compiler=yes
2832 # Find the build and target subdir names.
2834 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835 # have matching libraries, they should use host libraries: Makefile.tpl
2836 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837 # However, they still use the build modules, because the corresponding
2838 # host modules (e.g. bison) are only built for the host when bootstrap
2840 # - build_subdir is where we find build modules, and never changes.
2841 # - build_libsubdir is where we find build libraries, and can be overridden.
2843 # Prefix 'build-' so this never conflicts with target_subdir.
2844 build_subdir="build-${build_noncanonical}"
2846 # Check whether --with-build-libsubdir was given.
2847 if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
2850 build_libsubdir="$build_subdir"
2853 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854 if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2861 target_subdir=${target_noncanonical}
2863 # Be sure to cover against remnants of an in-tree build.
2864 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2865 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2866 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2869 # Skipdirs are removed silently.
2871 # Noconfigdirs are removed loudly.
2875 # Make sure we don't let GNU ld be added if we didn't want it.
2876 if test x$with_gnu_ld = xno ; then
2878 noconfigdirs="$noconfigdirs ld gold"
2882 # Make sure we don't let GNU as be added if we didn't want it.
2883 if test x$with_gnu_as = xno ; then
2885 noconfigdirs="$noconfigdirs gas"
2889 # Make sure we don't let ZLIB be added if we didn't want it.
2890 if test x$with_system_zlib = xyes ; then
2891 use_included_zlib=no
2892 noconfigdirs="$noconfigdirs zlib"
2895 # some tools are so dependent upon X11 that if we're not building with X,
2896 # it's not even worth trying to configure, much less build, that tool.
2899 yes | "") ;; # the default value for this tree is that X11 is available
2901 skipdirs="${skipdirs} tk itcl libgui"
2902 # We won't be able to build gdbtk without X.
2905 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2908 # Some are only suitable for cross toolchains.
2909 # Remove these if host=target.
2910 cross_only="target-libgloss target-newlib target-opcodes"
2912 case $is_cross_compiler in
2913 no) skipdirs="${skipdirs} ${cross_only}" ;;
2916 # If both --with-headers and --with-libs are specified, default to
2918 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2919 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2920 if test x"${with_newlib}" = x ; then
2925 # Recognize --with-newlib/--without-newlib.
2926 case ${with_newlib} in
2927 no) skipdirs="${skipdirs} target-newlib" ;;
2928 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2931 # Handle --enable-gold, --enable-ld.
2932 # --disable-gold [--enable-ld]
2933 # Build only ld. Default option.
2934 # --enable-gold [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold", install ld
2936 # as "ld.bfd" and "ld".
2937 # --enable-gold=default [--enable-ld]
2938 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2939 # install ld as "ld.bfd".
2940 # --enable-gold[=default] --disable-ld
2941 # Build only gold, which is then installed as both "ld.gold" and "ld".
2942 # --enable-gold --enable-ld=default
2943 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2945 # In other words, ld is default
2946 # --enable-gold=default --enable-ld=default
2950 # Check whether --enable-gold was given.
2951 if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
2957 case "${ENABLE_GOLD}" in
2959 # Check for ELF target.
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2967 *-*-linux*aout* | *-*-linux*oldld*)
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-*)
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2996 # Check whether --enable-ld was given.
2997 if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
3004 case "${ENABLE_LD}" in
3006 if test x${default_ld} != x; then
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3024 # Configure extra directories which are host specific
3028 configdirs="$configdirs libtermcap" ;;
3031 # A target can indicate whether a language isn't supported for some reason.
3032 # Only spaces may be used in this macro; not newlines or tabs.
3033 unsupported_languages=
3035 # Remove more programs from consideration, based on the host or
3036 # target this usually means that a port of the program doesn't
3040 i[3456789]86-*-msdosdjgpp*)
3041 noconfigdirs="$noconfigdirs tcl tk itcl"
3046 # Check whether --enable-libquadmath was given.
3047 if test "${enable_libquadmath+set}" = set; then :
3048 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3050 ENABLE_LIBQUADMATH=yes
3053 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3054 noconfigdirs="$noconfigdirs target-libquadmath"
3058 # Check whether --enable-libquadmath-support was given.
3059 if test "${enable_libquadmath_support+set}" = set; then :
3060 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3062 ENABLE_LIBQUADMATH_SUPPORT=yes
3065 enable_libquadmath_support=
3066 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3067 enable_libquadmath_support=no
3071 # Check whether --enable-libada was given.
3072 if test "${enable_libada+set}" = set; then :
3073 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3078 if test "${ENABLE_LIBADA}" != "yes" ; then
3079 noconfigdirs="$noconfigdirs gnattools"
3082 # Check whether --enable-libssp was given.
3083 if test "${enable_libssp+set}" = set; then :
3084 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3090 # Check whether --enable-libstdcxx was given.
3091 if test "${enable_libstdcxx+set}" = set; then :
3092 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3094 ENABLE_LIBSTDCXX=default
3097 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3098 noconfigdirs="$noconfigdirs libstdc++-v3"
3101 # Save it here so that, even in case of --enable-libgcj, if the Java
3102 # front-end isn't enabled, we still get libgcj disabled.
3103 libgcj_saved=$libgcj
3104 case $enable_libgcj in
3106 # If we reset it here, it won't get added to noconfigdirs in the
3107 # target-specific build rules, so it will be forcibly enabled
3108 # (unless the Java language itself isn't enabled).
3112 # Make sure we get it printed in the list of not supported target libs.
3113 # Don't disable libffi, though, other languages use it.
3114 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3115 # Clear libgcj_saved so that even if java is enabled libffi won't be
3121 # Check whether --enable-static-libjava was given.
3122 if test "${enable_static_libjava+set}" = set; then :
3123 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3125 ENABLE_STATIC_LIBJAVA=no
3128 enable_static_libjava=
3129 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3130 enable_static_libjava=yes
3133 if test x$enable_static_libjava != xyes ; then
3134 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3138 # Disable libgomp on non POSIX hosted systems.
3139 if test x$enable_libgomp = x ; then
3140 # Enable libgomp by default on hosted POSIX systems.
3142 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3144 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3146 *-*-solaris2* | *-*-hpux11*)
3148 *-*-darwin* | *-*-aix*)
3151 noconfigdirs="$noconfigdirs target-libgomp"
3156 # Disable libatomic on unsupported systems.
3157 if test -d ${srcdir}/libatomic; then
3158 if test x$enable_libatomic = x; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160 $as_echo_n "checking for libatomic support... " >&6; }
3161 if (srcdir=${srcdir}/libatomic; \
3162 . ${srcdir}/configure.tgt; \
3163 test -n "$UNSUPPORTED")
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 noconfigdirs="$noconfigdirs target-libatomic"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3175 # Disable libcilkrts on unsupported systems.
3176 if test -d ${srcdir}/libcilkrts; then
3177 if test x$enable_libcilkrts = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179 $as_echo_n "checking for libcilkrts support... " >&6; }
3180 if (srcdir=${srcdir}/libcilkrts; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libcilkrts"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3194 # Disable libitm on unsupported systems.
3195 if test -d ${srcdir}/libitm; then
3196 if test x$enable_libitm = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3198 $as_echo_n "checking for libitm support... " >&6; }
3199 if (srcdir=${srcdir}/libitm; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libitm"
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3213 # Disable libsanitizer on unsupported systems.
3214 if test -d ${srcdir}/libsanitizer; then
3215 if test x$enable_libsanitizer = x; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3217 $as_echo_n "checking for libsanitizer support... " >&6; }
3218 if (srcdir=${srcdir}/libsanitizer; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-libsanitizer"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3232 # Disable libvtv on unsupported systems.
3233 if test -d ${srcdir}/libvtv; then
3234 if test x$enable_libvtv = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3236 $as_echo_n "checking for libvtv support... " >&6; }
3237 if (srcdir=${srcdir}/libvtv; \
3238 . ${srcdir}/configure.tgt; \
3239 test "$VTV_SUPPORTED" != "yes")
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libvtv"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3251 # Disable libquadmath for some systems.
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3256 # libquadmath is unused on AIX and libquadmath build process use of
3257 # LD_LIBRARY_PATH can break AIX bootstrap.
3258 powerpc-*-aix* | rs6000-*-aix*)
3259 noconfigdirs="$noconfigdirs target-libquadmath"
3263 # Disable libssp for some systems.
3266 # No hosted I/O support.
3267 noconfigdirs="$noconfigdirs target-libssp"
3269 powerpc-*-aix* | rs6000-*-aix*)
3270 noconfigdirs="$noconfigdirs target-libssp"
3273 # libssp uses a misaligned load to trigger a fault, but the RL78
3274 # doesn't fault for those - instead, it gives a build-time error
3275 # for explicit misaligned loads.
3276 noconfigdirs="$noconfigdirs target-libssp"
3280 # Disable libstdc++-v3 for some systems.
3281 # Allow user to override this if they pass --enable-libstdc++-v3
3282 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3285 # VxWorks uses the Dinkumware C++ library.
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 # the C++ libraries don't build on top of CE's C libraries
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3293 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3298 # Disable Fortran for some systems.
3301 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3302 unsupported_languages="$unsupported_languages fortran"
3306 # Disable Java if libffi is not supported.
3338 powerpc-*-aix* | rs6000-*-aix*)
3342 powerpc64-*-freebsd*)
3346 s390-*-* | s390x-*-*)
3348 sh-*-* | sh[34]*-*-*)
3350 sh64-*-* | sh5*-*-*)
3357 unsupported_languages="$unsupported_languages java"
3361 # Disable Java, libgcj or related libraries for some systems.
3365 i[3456789]86-*-darwin*)
3367 x86_64-*-darwin[912]*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3397 noconfigdirs="$noconfigdirs target-boehm-gc"
3399 cris-*-* | crisv32-*-*)
3400 unsupported_languages="$unsupported_languages java"
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3409 # In this case, it's because the hppa64-linux target is for
3410 # the kernel only at this point and has no libc, and thus no
3411 # headers, crt*.o, etc., all of which are needed by these.
3412 unsupported_languages="$unsupported_languages java"
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3421 # build on HP-UX 10.20.
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3427 i[3456789]86-w64-mingw*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 i[3456789]86-*-mingw*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3437 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3440 # copied from rs6000-*-* entry
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3454 # Disable libgo for some systems where it is known to not work.
3455 # For testing, you can easily override this with --enable-libgo.
3456 if test x$enable_libgo = x; then
3460 noconfigdirs="$noconfigdirs target-libgo"
3462 *-*-cygwin* | *-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3466 noconfigdirs="$noconfigdirs target-libgo"
3471 # Default libgloss CPU subdirectory.
3472 libgloss_dir="$target_cpu"
3475 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3479 libgloss_dir=aarch64
3484 cris-*-* | crisv32-*-*)
3493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3494 libgloss_dir=m68hc11
3496 m68*-*-* | fido-*-*)
3510 # Disable newlib and libgloss for various target OSes.
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 i[3456789]86-*-linux*)
3516 # This section makes it possible to build newlib natively on linux.
3517 # If we are using a cross compiler then don't configure newlib.
3518 if test x${is_cross_compiler} != xno ; then
3519 noconfigdirs="$noconfigdirs target-newlib"
3521 noconfigdirs="$noconfigdirs target-libgloss"
3522 # If we are not using a cross compiler, do configure newlib.
3523 # Note however, that newlib will only be configured in this situation
3524 # if the --with-newlib option has been given, because otherwise
3525 # 'target-newlib' will appear in skipdirs.
3527 i[3456789]86-*-rdos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 sh*-*-pe|mips*-*-pe|arm-wince-pe)
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"
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3584 i[3456789]86-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3588 x86_64-*-darwin[912]*)
3589 noconfigdirs="$noconfigdirs ld gas gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
3593 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3594 noconfigdirs="$noconfigdirs sim target-rda"
3599 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3600 && test -f /usr/local/include/gmp.h; then
3605 # Remove unsupported stuff on all kaOS configurations.
3606 noconfigdirs="$noconfigdirs target-libgloss"
3613 noconfigdirs="$noconfigdirs target-libgloss"
3614 # this is not caught below because this stanza matches earlier
3616 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3619 # The tpf target doesn't support gdb yet.
3621 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3624 noconfigdirs="$noconfigdirs target-rda"
3629 # ld works, but does not support shared libraries.
3630 # gas doesn't generate exception information.
3631 noconfigdirs="$noconfigdirs gas ld"
3634 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3637 # newlib is not 64 bit ready
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3641 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3644 noconfigdirs="$noconfigdirs target-libgloss"
3647 noconfigdirs="$noconfigdirs target-libgloss"
3650 noconfigdirs="$noconfigdirs ld target-libgloss"
3655 if test x${with_avrlibc} != xno; then
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 c4x-*-* | tic4x-*-*)
3660 noconfigdirs="$noconfigdirs target-libgloss"
3663 noconfigdirs="$noconfigdirs target-libgloss gdb"
3666 noconfigdirs="$noconfigdirs target-libgloss"
3669 noconfigdirs="$noconfigdirs gdb"
3672 noconfigdirs="$noconfigdirs gdb"
3675 noconfigdirs="$noconfigdirs target-rda gprof"
3678 noconfigdirs="$noconfigdirs"
3681 noconfigdirs="$noconfigdirs target-libgloss"
3684 noconfigdirs="$noconfigdirs target-libgloss"
3686 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3694 hppa*-*-openbsd* | \
3698 noconfigdirs="$noconfigdirs ld"
3703 noconfigdirs="$noconfigdirs ld"
3706 noconfigdirs="$noconfigdirs gdb"
3709 # No gdb support yet.
3710 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
3717 # No ld support yet.
3718 noconfigdirs="$noconfigdirs libgui itcl ld"
3720 i[3456789]86-w64-mingw*)
3722 i[3456789]86-*-mingw*)
3723 target_configdirs="$target_configdirs target-winsup"
3726 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3727 noconfigdirs="$noconfigdirs target-libgloss"
3728 # always build newlib if winsup directory is present.
3729 if test -d "$srcdir/winsup/cygwin"; then
3730 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3731 elif test -d "$srcdir/newlib"; then
3732 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 i[3456789]86-*-sco3.2v5*)
3739 # The linker does not yet know about weak symbols in COFF,
3740 # and is not configured to handle mixed ELF and COFF.
3741 noconfigdirs="$noconfigdirs ld target-libgloss"
3743 i[3456789]86-*-sco*)
3744 noconfigdirs="$noconfigdirs gprof target-libgloss"
3746 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3749 i[3456789]86-*-sysv4*)
3750 noconfigdirs="$noconfigdirs target-libgloss"
3752 i[3456789]86-*-beos*)
3753 noconfigdirs="$noconfigdirs gdb"
3755 i[3456789]86-*-rdos*)
3756 noconfigdirs="$noconfigdirs gdb"
3759 noconfigdirs="$noconfigdirs gdb"
3762 noconfigdirs="$noconfigdirs sim"
3765 # copied from rs6000-*-* entry
3766 noconfigdirs="$noconfigdirs gprof"
3768 powerpc*-*-winnt* | powerpc*-*-pe*)
3769 target_configdirs="$target_configdirs target-winsup"
3770 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3771 # always build newlib.
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3774 # This is temporary until we can link against shared libraries
3775 powerpcle-*-solaris*)
3776 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3779 noconfigdirs="$noconfigdirs gdb"
3782 noconfigdirs="$noconfigdirs gprof"
3785 noconfigdirs="$noconfigdirs gprof"
3788 noconfigdirs="$noconfigdirs gprof"
3791 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3794 noconfigdirs="$noconfigdirs gprof"
3796 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3797 if test x$with_newlib = xyes; then
3798 noconfigdirs="$noconfigdirs gprof"
3802 noconfigdirs="$noconfigdirs gprof target-libgloss"
3805 noconfigdirs="$noconfigdirs gprof target-libgloss"
3808 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3812 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3813 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3814 noconfigdirs="$noconfigdirs ld gas gprof"
3817 noconfigdirs="$noconfigdirs gprof"
3820 noconfigdirs="$noconfigdirs gdb"
3823 noconfigdirs="$noconfigdirs gdb"
3830 noconfigdirs="$noconfigdirs target-libgloss" ;;
3834 if test x${is_cross_compiler} = xno ; then
3839 noconfigdirs="$noconfigdirs sim"
3841 tilepro*-*-* | tilegx*-*-*)
3842 noconfigdirs="$noconfigdirs sim"
3845 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3852 # If we aren't building newlib, then don't build libgloss, since libgloss
3853 # depends upon some newlib header files.
3854 case "${noconfigdirs}" in
3855 *target-libgloss*) ;;
3856 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3859 # Work in distributions that contain no compiler tools, like Autoconf.
3860 host_makefile_frag=/dev/null
3861 if test -d ${srcdir}/config ; then
3863 i[3456789]86-*-msdosdjgpp*)
3864 host_makefile_frag="config/mh-djgpp"
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3869 $as_echo_n "checking to see if cat works as expected... " >&6; }
3870 echo a >cygwin-cat-check
3871 if test `cat cygwin-cat-check` = a ; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 $as_echo "yes" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 as_fn_error "The cat command does not ignore carriage return characters.
3880 Please either mount the build directory in binary mode or run the following
3881 commands before running any configure script:
3887 host_makefile_frag="config/mh-cygwin"
3890 host_makefile_frag="config/mh-mingw"
3893 host_makefile_frag="config/mh-pa-hpux10"
3896 host_makefile_frag="config/mh-pa"
3899 host_makefile_frag="config/mh-pa"
3902 host_makefile_frag="config/mh-darwin"
3905 host_makefile_frag="config/mh-ppc-aix"
3908 host_makefile_frag="config/mh-ppc-aix"
3913 if test "${build}" != "${host}" ; then
3914 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3915 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3916 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3917 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3918 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3919 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3920 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3921 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3922 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3923 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3924 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3925 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3926 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3928 AR_FOR_BUILD="\$(AR)"
3929 AS_FOR_BUILD="\$(AS)"
3930 CC_FOR_BUILD="\$(CC)"
3931 CXX_FOR_BUILD="\$(CXX)"
3932 GCJ_FOR_BUILD="\$(GCJ)"
3933 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3934 GOC_FOR_BUILD="\$(GOC)"
3935 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3936 LD_FOR_BUILD="\$(LD)"
3937 NM_FOR_BUILD="\$(NM)"
3938 RANLIB_FOR_BUILD="\$(RANLIB)"
3939 WINDRES_FOR_BUILD="\$(WINDRES)"
3940 WINDMC_FOR_BUILD="\$(WINDMC)"
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_prog_CC+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 $as_echo "$CC" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3987 if test -z "$ac_cv_prog_CC"; then
3989 # Extract the first word of "gcc", so it can be a program name with args.
3990 set dummy gcc; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_CC="gcc"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 $as_echo "$ac_ct_CC" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4025 if test "x$ac_ct_CC" = x; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}cc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_CC+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 ac_cv_prog_CC="${ac_tool_prefix}cc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4081 if test -z "$CC"; then
4082 # Extract the first word of "cc", so it can be a program name with args.
4083 set dummy cc; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_CC+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4101 ac_prog_rejected=yes
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test $ac_prog_rejected = yes; then
4113 # We found a bogon in the path, so make sure we never use it.
4114 set dummy $ac_cv_prog_CC
4116 if test $# != 0; then
4117 # We chose a different compiler from the bogus one.
4118 # However, it has the same basename, so the bogon will be chosen
4119 # first if we set CC to just the basename; use the full file name.
4121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 for ac_prog in cl.exe
4141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4178 test -n "$CC" && break
4181 if test -z "$CC"; then
4183 for ac_prog in cl.exe
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4192 if test -n "$ac_ct_CC"; then
4193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_ac_ct_CC="$ac_prog"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4213 if test -n "$ac_ct_CC"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4215 $as_echo "$ac_ct_CC" >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4222 test -n "$ac_ct_CC" && break
4225 if test "x$ac_ct_CC" = x; then
4228 case $cross_compiling:$ac_tool_warned in
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 as_fn_error "no acceptable C compiler found in \$PATH
4244 See \`config.log' for more details." "$LINENO" 5; }
4246 # Provide some information about the compiler.
4247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4250 for ac_option in --version -v -V -qversion; do
4251 { { ac_try="$ac_compiler $ac_option >&5"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4260 if test -s conftest.err; then
4262 ... rest of stderr output deleted ...
4263 10q' conftest.err >conftest.er1
4264 cat conftest.er1 >&5
4265 rm -f conftest.er1 conftest.err
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4282 ac_clean_files_save=$ac_clean_files
4283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4284 # Try to create an executable without -o first, disregard a.out.
4285 # It will help us diagnose broken compilers, and finding out an intuition
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288 $as_echo_n "checking for C compiler default output file name... " >&6; }
4289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4291 # The possible output files:
4292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4295 for ac_file in $ac_files
4298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4304 if { { ac_try="$ac_link_default"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link_default") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; then :
4315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4318 # so that the user can short-circuit this test for compilers unknown to
4320 for ac_file in $ac_files ''
4322 test -f "$ac_file" || continue
4324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4327 # We found the default executable, but exeext='' is most
4331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4335 # We set ac_cv_exeext here because the later test for it is not
4336 # safe: cross compilers may not add the suffix if given an `-o'
4337 # argument, so we may need to know it at that point already.
4338 # Even if this section looks crufty: it has the advantage of
4345 test "$ac_cv_exeext" = no && ac_cv_exeext=
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4351 $as_echo "$ac_file" >&6; }
4352 if test -z "$ac_file"; then :
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358 { as_fn_set_status 77
4359 as_fn_error "C compiler cannot create executables
4360 See \`config.log' for more details." "$LINENO" 5; }; }
4362 ac_exeext=$ac_cv_exeext
4364 # Check that the compiler produces executables we can run. If not, either
4365 # the compiler is broken, or we cross compile.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 $as_echo_n "checking whether the C compiler works... " >&6; }
4368 # If not cross compiling, check that we can run a simple program.
4369 if test "$cross_compiling" != yes; then
4370 if { ac_try='./$ac_file'
4371 { { case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 $as_echo "$ac_try_echo"; } >&5
4377 (eval "$ac_try") 2>&5
4379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380 test $ac_status = 0; }; }; then
4383 if test "$cross_compiling" = maybe; then
4386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error "cannot run C compiled programs.
4389 If you meant to cross compile, use \`--host'.
4390 See \`config.log' for more details." "$LINENO" 5; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395 $as_echo "yes" >&6; }
4397 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4398 ac_clean_files=$ac_clean_files_save
4399 # Check that the compiler produces executables we can run. If not, either
4400 # the compiler is broken, or we cross compile.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4402 $as_echo_n "checking whether we are cross compiling... " >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404 $as_echo "$cross_compiling" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4407 $as_echo_n "checking for suffix of executables... " >&6; }
4408 if { { ac_try="$ac_link"
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4421 # work properly (i.e., refer to `conftest.exe'), while it won't with
4423 for ac_file in conftest.exe conftest conftest.*; do
4424 test -f "$ac_file" || continue
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error "cannot compute suffix of executables: cannot compile and link
4436 See \`config.log' for more details." "$LINENO" 5; }
4438 rm -f conftest$ac_cv_exeext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4440 $as_echo "$ac_cv_exeext" >&6; }
4442 rm -f conftest.$ac_ext
4443 EXEEXT=$ac_cv_exeext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4446 $as_echo_n "checking for suffix of object files... " >&6; }
4447 if test "${ac_cv_objext+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4461 rm -f conftest.o conftest.obj
4462 if { { ac_try="$ac_compile"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compile") 2>&5
4471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }; then :
4473 for ac_file in conftest.o conftest.obj conftest.*; do
4474 test -f "$ac_file" || continue;
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error "cannot compute suffix of object files: cannot compile
4488 See \`config.log' for more details." "$LINENO" 5; }
4490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4493 $as_echo "$ac_cv_objext" >&6; }
4494 OBJEXT=$ac_cv_objext
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4498 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4515 if ac_fn_c_try_compile "$LINENO"; then :
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4526 if test $ac_compiler_gnu = yes; then
4531 ac_test_CFLAGS=${CFLAGS+set}
4532 ac_save_CFLAGS=$CFLAGS
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4535 if test "${ac_cv_prog_cc_g+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4538 ac_save_c_werror_flag=$ac_c_werror_flag
4539 ac_c_werror_flag=yes
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4553 if ac_fn_c_try_compile "$LINENO"; then :
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_c_werror_flag=$ac_save_c_werror_flag
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_c_try_compile "$LINENO"; then :
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 ac_c_werror_flag=$ac_save_c_werror_flag
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4595 $as_echo "$ac_cv_prog_cc_g" >&6; }
4596 if test "$ac_test_CFLAGS" = set; then
4597 CFLAGS=$ac_save_CFLAGS
4598 elif test $ac_cv_prog_cc_g = yes; then
4599 if test "$GCC" = yes; then
4605 if test "$GCC" = yes; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4613 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_cv_prog_cc_c89=no
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4622 #include <sys/types.h>
4623 #include <sys/stat.h>
4624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625 struct buf { int x; };
4626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627 static char *e (p, i)
4633 static char *f (char * (*g) (char **, int), char **p, ...)
4638 s = g (p, va_arg (v,int));
4643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
4646 as 'x'. The following induces an error, until -std is added to get
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
4649 that's true only with -std. */
4650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4657 int test (int i, double x);
4658 struct s1 {int (*f) (int a);};
4659 struct s2 {int (*f) (double a);};
4660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4674 CC="$ac_save_CC $ac_arg"
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_c89=$ac_arg
4678 rm -f core conftest.err conftest.$ac_objext
4679 test "x$ac_cv_prog_cc_c89" != "xno" && break
4681 rm -f conftest.$ac_ext
4686 case "x$ac_cv_prog_cc_c89" in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 $as_echo "none needed" >&6; } ;;
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692 $as_echo "unsupported" >&6; } ;;
4694 CC="$CC $ac_cv_prog_cc_c89"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4698 if test "x$ac_cv_prog_cc_c89" != xno; then :
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709 ac_cpp='$CXXCPP $CPPFLAGS'
4710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4713 if test -z "$CXX"; then
4714 if test -n "$CCC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_CXX+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -n "$CXX"; then
4728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 if test -n "$CXX"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4750 $as_echo "$CXX" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4757 test -n "$CXX" && break
4760 if test -z "$CXX"; then
4762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$ac_ct_CXX"; then
4772 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_ac_ct_CXX="$ac_prog"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4792 if test -n "$ac_ct_CXX"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4794 $as_echo "$ac_ct_CXX" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 test -n "$ac_ct_CXX" && break
4804 if test "x$ac_ct_CXX" = x; then
4807 case $cross_compiling:$ac_tool_warned in
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4819 # Provide some information about the compiler.
4820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4823 for ac_option in --version -v -V -qversion; do
4824 { { ac_try="$ac_compiler $ac_option >&5"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830 $as_echo "$ac_try_echo"; } >&5
4831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833 if test -s conftest.err; then
4835 ... rest of stderr output deleted ...
4836 10q' conftest.err >conftest.er1
4837 cat conftest.er1 >&5
4838 rm -f conftest.er1 conftest.err
4840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4845 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4863 if ac_fn_cxx_try_compile "$LINENO"; then :
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4873 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4874 if test $ac_compiler_gnu = yes; then
4879 ac_test_CXXFLAGS=${CXXFLAGS+set}
4880 ac_save_CXXFLAGS=$CXXFLAGS
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4882 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4883 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4886 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4887 ac_cxx_werror_flag=yes
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4901 if ac_fn_cxx_try_compile "$LINENO"; then :
4902 ac_cv_prog_cxx_g=yes
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4916 if ac_fn_cxx_try_compile "$LINENO"; then :
4919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4932 if ac_fn_cxx_try_compile "$LINENO"; then :
4933 ac_cv_prog_cxx_g=yes
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4943 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4944 if test "$ac_test_CXXFLAGS" = set; then
4945 CXXFLAGS=$ac_save_CXXFLAGS
4946 elif test $ac_cv_prog_cxx_g = yes; then
4947 if test "$GXX" = yes; then
4953 if test "$GXX" = yes; then
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 # We must set the default linker to the linker used by gcc for the correct
4967 # operation of libtool. If LD is not defined and we are using gcc, try to
4968 # set the LD default to the ld used by gcc.
4969 if test -z "$LD"; then
4970 if test "$GCC" = yes; then
4973 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4975 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4977 case $gcc_prog_ld in
4978 # Accept absolute paths.
4979 [\\/]* | [A-Za-z]:[\\/]*)
4980 LD="$gcc_prog_ld" ;;
4985 # Check whether -static-libstdc++ -static-libgcc is supported.
4987 if test "$GCC" = yes; then
4988 saved_LDFLAGS="$LDFLAGS"
4990 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4992 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4994 ac_cpp='$CXXCPP $CPPFLAGS'
4995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5003 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5004 #error -static-libstdc++ not implemented
5008 if ac_fn_cxx_try_link "$LINENO"; then :
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }; have_static_libs=yes
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5015 rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 LDFLAGS="$saved_LDFLAGS"
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$GNATBIND"; then
5039 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 GNATBIND=$ac_cv_prog_GNATBIND
5059 if test -n "$GNATBIND"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5061 $as_echo "$GNATBIND" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5069 if test -z "$ac_cv_prog_GNATBIND"; then
5070 ac_ct_GNATBIND=$GNATBIND
5071 # Extract the first word of "gnatbind", so it can be a program name with args.
5072 set dummy gnatbind; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$ac_ct_GNATBIND"; then
5079 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5099 if test -n "$ac_ct_GNATBIND"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5101 $as_echo "$ac_ct_GNATBIND" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5107 if test "x$ac_ct_GNATBIND" = x; then
5110 case $cross_compiling:$ac_tool_warned in
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5116 GNATBIND=$ac_ct_GNATBIND
5119 GNATBIND="$ac_cv_prog_GNATBIND"
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -n "$GNATMAKE"; then
5131 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 GNATMAKE=$ac_cv_prog_GNATMAKE
5151 if test -n "$GNATMAKE"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5153 $as_echo "$GNATMAKE" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5161 if test -z "$ac_cv_prog_GNATMAKE"; then
5162 ac_ct_GNATMAKE=$GNATMAKE
5163 # Extract the first word of "gnatmake", so it can be a program name with args.
5164 set dummy gnatmake; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$ac_ct_GNATMAKE"; then
5171 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5191 if test -n "$ac_ct_GNATMAKE"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5193 $as_echo "$ac_ct_GNATMAKE" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5199 if test "x$ac_ct_GNATMAKE" = x; then
5202 case $cross_compiling:$ac_tool_warned in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5208 GNATMAKE=$ac_ct_GNATMAKE
5211 GNATMAKE="$ac_cv_prog_GNATMAKE"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5215 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5216 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5219 cat >conftest.adb <<EOF
5220 procedure conftest is begin null; end conftest;
5222 acx_cv_cc_gcc_supports_ada=no
5223 # There is a bug in old released versions of GCC which causes the
5224 # driver to exit successfully when the appropriate language module
5225 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5226 # Therefore we must check for the error message as well as an
5227 # unsuccessful exit.
5228 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5229 # given a .adb file, but produce no object file. So we must check
5230 # if an object file was really produced to guard against this.
5231 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5232 if test x"$errors" = x && test -f conftest.$ac_objext; then
5233 acx_cv_cc_gcc_supports_ada=yes
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5238 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5240 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5247 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5248 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5253 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5254 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5255 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5258 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5261 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5262 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5265 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5272 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5273 do_compare="$gcc_cv_prog_cmp_skip"
5277 # Check whether --enable-bootstrap was given.
5278 if test "${enable_bootstrap+set}" = set; then :
5279 enableval=$enable_bootstrap;
5281 enable_bootstrap=default
5285 # Issue errors and warnings for invalid/strange bootstrap combinations.
5286 if test -r $srcdir/gcc/configure; then
5292 case "$have_compiler:$host:$target:$enable_bootstrap" in
5295 # Default behavior. Enable bootstrap if we have a compiler
5296 # and we are in a native configuration.
5297 yes:$build:$build:default)
5298 enable_bootstrap=yes ;;
5301 enable_bootstrap=no ;;
5303 # We have a compiler and we are in a native configuration, bootstrap is ok
5304 yes:$build:$build:yes)
5307 # Other configurations, but we have a compiler. Assume the user knows
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5311 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5314 # No compiler: if they passed --enable-bootstrap explicitly, fail
5316 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5318 # Fail if wrong command line
5320 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5324 # Used for setting $lt_cv_objdir
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5326 $as_echo_n "checking for objdir... " >&6; }
5327 if test "${lt_cv_objdir+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5330 rm -f .libs 2>/dev/null
5331 mkdir .libs 2>/dev/null
5332 if test -d .libs; then
5335 # MS-DOS does not allow filenames that begin with a dot.
5338 rmdir .libs 2>/dev/null
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5341 $as_echo "$lt_cv_objdir" >&6; }
5342 objdir=$lt_cv_objdir
5348 cat >>confdefs.h <<_ACEOF
5349 #define LT_OBJDIR "$lt_cv_objdir/"
5354 # Check for GMP, MPFR and MPC
5355 gmplibs="-lmpc -lmpfr -lgmp"
5359 # Specify a location for mpc
5360 # check for this first so it ends up on the link line before mpfr.
5362 # Check whether --with-mpc was given.
5363 if test "${with_mpc+set}" = set; then :
5368 # Check whether --with-mpc-include was given.
5369 if test "${with_mpc_include+set}" = set; then :
5370 withval=$with_mpc_include;
5374 # Check whether --with-mpc-lib was given.
5375 if test "${with_mpc_lib+set}" = set; then :
5376 withval=$with_mpc_lib;
5380 if test "x$with_mpc" != x; then
5381 gmplibs="-L$with_mpc/lib $gmplibs"
5382 gmpinc="-I$with_mpc/include $gmpinc"
5384 if test "x$with_mpc_include" != x; then
5385 gmpinc="-I$with_mpc_include $gmpinc"
5387 if test "x$with_mpc_lib" != x; then
5388 gmplibs="-L$with_mpc_lib $gmplibs"
5390 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5391 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5392 gmpinc='-I$$s/mpc/src '"$gmpinc"
5393 # Do not test the mpc version. Assume that it is sufficient, since
5394 # it is in the source tree, and the library has not been built yet
5395 # but it would be included on the link line in the version check below
5396 # hence making the test fail.
5400 # Specify a location for mpfr
5401 # check for this first so it ends up on the link line before gmp.
5403 # Check whether --with-mpfr-dir was given.
5404 if test "${with_mpfr_dir+set}" = set; then :
5405 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5406 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5411 # Check whether --with-mpfr was given.
5412 if test "${with_mpfr+set}" = set; then :
5417 # Check whether --with-mpfr-include was given.
5418 if test "${with_mpfr_include+set}" = set; then :
5419 withval=$with_mpfr_include;
5423 # Check whether --with-mpfr-lib was given.
5424 if test "${with_mpfr_lib+set}" = set; then :
5425 withval=$with_mpfr_lib;
5429 if test "x$with_mpfr" != x; then
5430 gmplibs="-L$with_mpfr/lib $gmplibs"
5431 gmpinc="-I$with_mpfr/include $gmpinc"
5433 if test "x$with_mpfr_include" != x; then
5434 gmpinc="-I$with_mpfr_include $gmpinc"
5436 if test "x$with_mpfr_lib" != x; then
5437 gmplibs="-L$with_mpfr_lib $gmplibs"
5439 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5440 # MPFR v3.1.0 moved the sources into a src sub-directory.
5441 if test -d ${srcdir}/mpfr/src; then
5442 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5443 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5444 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5446 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5447 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5448 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5450 # Do not test the mpfr version. Assume that it is sufficient, since
5451 # it is in the source tree, and the library has not been built yet
5452 # but it would be included on the link line in the version check below
5453 # hence making the test fail.
5457 # Specify a location for gmp
5459 # Check whether --with-gmp-dir was given.
5460 if test "${with_gmp_dir+set}" = set; then :
5461 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5462 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5467 # Check whether --with-gmp was given.
5468 if test "${with_gmp+set}" = set; then :
5473 # Check whether --with-gmp-include was given.
5474 if test "${with_gmp_include+set}" = set; then :
5475 withval=$with_gmp_include;
5479 # Check whether --with-gmp-lib was given.
5480 if test "${with_gmp_lib+set}" = set; then :
5481 withval=$with_gmp_lib;
5486 if test "x$with_gmp" != x; then
5487 gmplibs="-L$with_gmp/lib $gmplibs"
5488 gmpinc="-I$with_gmp/include $gmpinc"
5490 if test "x$with_gmp_include" != x; then
5491 gmpinc="-I$with_gmp_include $gmpinc"
5493 if test "x$with_gmp_lib" != x; then
5494 gmplibs="-L$with_gmp_lib $gmplibs"
5496 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5497 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5498 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5499 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5500 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5501 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5502 # Do not test the gmp version. Assume that it is sufficient, since
5503 # it is in the source tree, and the library has not been built yet
5504 # but it would be included on the link line in the version check below
5505 # hence making the test fail.
5509 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5511 saved_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $gmpinc"
5513 # Check for the recommended and required versions of GMP.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5515 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5524 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5525 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5526 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5542 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5543 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5544 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5557 $as_echo "buggy but acceptable" >&6; }
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }; have_gmp=no
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 # If we have GMP, check the MPFR version.
5567 if test x"$have_gmp" = xyes; then
5568 # Check for the recommended and required versions of MPFR.
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5570 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5579 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5596 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5609 $as_echo "buggy but acceptable" >&6; }
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }; have_gmp=no
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 # Check for the MPC header version.
5620 if test x"$have_gmp" = xyes ; then
5621 # Check for the recommended and required versions of MPC.
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5623 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5631 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5647 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5660 $as_echo "buggy but acceptable" >&6; }
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }; have_gmp=no
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 # Now check the MPFR library.
5671 if test x"$have_gmp" = xyes; then
5673 LIBS="$LIBS $gmplibs"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5675 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5689 mpfr_atan2 (n, n, x, GMP_RNDN);
5690 mpfr_erfc (n, x, GMP_RNDN);
5691 mpfr_subnormalize (x, t, GMP_RNDN);
5695 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5696 mpc_cosh (c, c, MPC_RNDNN);
5697 mpc_pow (c, c, c, MPC_RNDNN);
5698 mpc_acosh (c, c, MPC_RNDNN);
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707 $as_echo "yes" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }; have_gmp=no
5712 rm -f core conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5717 CFLAGS="$saved_CFLAGS"
5719 # The library versions listed in the error message below should match
5720 # the HARD-minimums enforced above.
5721 if test x$have_gmp != xyes; then
5722 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5723 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5724 their locations. Source code for these libraries can be found at
5725 their respective hosting sites as well as at
5726 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5727 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5728 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5729 make sure that you have installed both the libraries and the header
5730 files. They may be located in separate packages." "$LINENO" 5
5734 # Flags needed for both GMP, MPFR and/or MPC.
5742 # Allow host libstdc++ to be specified for static linking with PPL.
5744 # Check whether --with-host-libstdcxx was given.
5745 if test "${with_host_libstdcxx+set}" = set; then :
5746 withval=$with_host_libstdcxx;
5750 case $with_host_libstdcxx in
5752 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5756 # Libraries to use for stage1 or when not bootstrapping.
5758 # Check whether --with-stage1-libs was given.
5759 if test "${with_stage1_libs+set}" = set; then :
5760 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5763 stage1_libs=$withval
5766 stage1_libs=$with_host_libstdcxx
5771 # Linker flags to use for stage1 or when not bootstrapping.
5773 # Check whether --with-stage1-ldflags was given.
5774 if test "${with_stage1_ldflags+set}" = set; then :
5775 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5778 stage1_ldflags=$withval
5782 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5783 # if supported. But if the user explicitly specified the libraries to use,
5784 # trust that they are doing what they want.
5785 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5786 stage1_ldflags="-static-libstdc++ -static-libgcc"
5792 # Libraries to use for stage2 and later builds. This defaults to the
5793 # argument passed to --with-host-libstdcxx.
5795 # Check whether --with-boot-libs was given.
5796 if test "${with_boot_libs+set}" = set; then :
5797 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5800 poststage1_libs=$withval
5803 poststage1_libs=$with_host_libstdcxx
5808 # Linker flags to use for stage2 and later builds.
5810 # Check whether --with-boot-ldflags was given.
5811 if test "${with_boot_ldflags+set}" = set; then :
5812 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5815 poststage1_ldflags=$withval
5819 # In stages 2 and 3, default to linking libstdc++ and libgcc
5820 # statically. But if the user explicitly specified the libraries to
5821 # use, trust that they are doing what they want.
5822 if test "$poststage1_libs" = ""; then
5823 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5829 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5830 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5834 # Check whether --with-cloog was given.
5835 if test "${with_cloog+set}" = set; then :
5836 withval=$with_cloog;
5840 # Check whether --with-isl was given.
5841 if test "${with_isl+set}" = set; then :
5846 # Treat either --without-cloog or --without-isl as a request to disable
5847 # GRAPHITE support and skip all following checks.
5848 if test "x$with_isl" != "xno" &&
5849 test "x$with_cloog" != "xno"; then
5853 # Check whether --with-isl-include was given.
5854 if test "${with_isl_include+set}" = set; then :
5855 withval=$with_isl_include;
5859 # Check whether --with-isl-lib was given.
5860 if test "${with_isl_lib+set}" = set; then :
5861 withval=$with_isl_lib;
5865 # Check whether --enable-isl-version-check was given.
5866 if test "${enable_isl_version_check+set}" = set; then :
5867 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5869 ENABLE_ISL_CHECK=yes
5873 # Initialize isllibs and islinc.
5882 isllibs="-L$with_isl/lib"
5883 islinc="-I$with_isl/include"
5886 if test "x${with_isl_include}" != x ; then
5887 islinc="-I$with_isl_include"
5889 if test "x${with_isl_lib}" != x; then
5890 isllibs="-L$with_isl_lib"
5892 if test "x${islinc}" = x && test "x${isllibs}" = x \
5893 && test -d ${srcdir}/isl; then
5894 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5895 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5898 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5903 if test "${ENABLE_ISL_CHECK}" = yes ; then
5904 _isl_saved_CFLAGS=$CFLAGS
5905 _isl_saved_LDFLAGS=$LDFLAGS
5906 _isl_saved_LIBS=$LIBS
5908 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5909 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5910 LIBS="${_isl_saved_LIBS} -lisl"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5913 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5914 if test "$cross_compiling" = yes; then :
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <isl/version.h>
5924 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5931 if ac_fn_c_try_run "$LINENO"; then :
5936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5937 conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5941 $as_echo "$gcc_cv_isl" >&6; }
5943 CFLAGS=$_isl_saved_CFLAGS
5944 LDFLAGS=$_isl_saved_LDFLAGS
5945 LIBS=$_isl_saved_LIBS
5949 if test "${gcc_cv_isl}" = no ; then
5951 if test "${ENABLE_ISL_CHECK}" = yes ; then
5952 _isl_saved_CFLAGS=$CFLAGS
5953 _isl_saved_LDFLAGS=$LDFLAGS
5954 _isl_saved_LIBS=$LIBS
5956 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5957 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5958 LIBS="${_isl_saved_LIBS} -lisl"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5961 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5962 if test "$cross_compiling" = yes; then :
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <isl/version.h>
5972 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5979 if ac_fn_c_try_run "$LINENO"; then :
5984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5985 conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5989 $as_echo "$gcc_cv_isl" >&6; }
5991 CFLAGS=$_isl_saved_CFLAGS
5992 LDFLAGS=$_isl_saved_LDFLAGS
5993 LIBS=$_isl_saved_LIBS
5997 if test "${gcc_cv_isl}" = no ; then
5999 if test "${ENABLE_ISL_CHECK}" = yes ; then
6000 _isl_saved_CFLAGS=$CFLAGS
6001 _isl_saved_LDFLAGS=$LDFLAGS
6002 _isl_saved_LIBS=$LIBS
6004 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6005 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6006 LIBS="${_isl_saved_LIBS} -lisl"
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6009 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6010 if test "$cross_compiling" = yes; then :
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <isl/version.h>
6020 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6027 if ac_fn_c_try_run "$LINENO"; then :
6032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6037 $as_echo "$gcc_cv_isl" >&6; }
6039 CFLAGS=$_isl_saved_CFLAGS
6040 LDFLAGS=$_isl_saved_LDFLAGS
6041 LIBS=$_isl_saved_LIBS
6051 if test "x${with_isl}" = xno; then
6052 graphite_requested=no
6053 elif test "x${with_isl}" != x \
6054 || test "x${with_isl_include}" != x \
6055 || test "x${with_isl_lib}" != x ; then
6056 graphite_requested=yes
6058 graphite_requested=no
6063 if test "${gcc_cv_isl}" = no ; then
6068 if test "${graphite_requested}" = yes \
6069 && test "x${isllibs}" = x \
6070 && test "x${islinc}" = x ; then
6072 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6077 if test "x$gcc_cv_isl" != "xno"; then
6081 # Check whether --with-cloog-include was given.
6082 if test "${with_cloog_include+set}" = set; then :
6083 withval=$with_cloog_include;
6087 # Check whether --with-cloog-lib was given.
6088 if test "${with_cloog_lib+set}" = set; then :
6089 withval=$with_cloog_lib;
6093 # Check whether --enable-cloog-version-check was given.
6094 if test "${enable_cloog_version_check+set}" = set; then :
6095 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6097 ENABLE_CLOOG_CHECK=yes
6101 # Initialize clooglibs and clooginc.
6110 clooglibs="-L$with_cloog/lib"
6111 clooginc="-I$with_cloog/include"
6114 if test "x${with_cloog_include}" != x ; then
6115 clooginc="-I$with_cloog_include"
6117 if test "x${with_cloog_lib}" != x; then
6118 clooglibs="-L$with_cloog_lib"
6120 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6121 && test -d ${srcdir}/cloog; then
6122 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6123 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6124 ENABLE_CLOOG_CHECK=no
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6126 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6129 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6130 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6136 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6137 _cloog_saved_CFLAGS=$CFLAGS
6138 _cloog_saved_LDFLAGS=$LDFLAGS
6140 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6141 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6144 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #include "cloog/version.h"
6151 #if CLOOG_VERSION_MAJOR != 0 \
6152 || CLOOG_VERSION_MINOR != 17 \
6153 || CLOOG_VERSION_REVISION < 0
6160 if ac_fn_c_try_compile "$LINENO"; then :
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6167 $as_echo "$gcc_cv_cloog" >&6; }
6169 CFLAGS=$_cloog_saved_CFLAGS
6170 LDFLAGS=$_cloog_saved_LDFLAGS
6174 if test "${gcc_cv_cloog}" = no ; then
6178 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6179 _cloog_saved_CFLAGS=$CFLAGS
6180 _cloog_saved_LDFLAGS=$LDFLAGS
6182 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6183 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6186 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 #include "cloog/version.h"
6193 #if CLOOG_VERSION_MAJOR != 0 \
6194 || CLOOG_VERSION_MINOR != 18 \
6195 || CLOOG_VERSION_REVISION < 0
6202 if ac_fn_c_try_compile "$LINENO"; then :
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6209 $as_echo "$gcc_cv_cloog" >&6; }
6211 CFLAGS=$_cloog_saved_CFLAGS
6212 LDFLAGS=$_cloog_saved_LDFLAGS
6222 if test "x${with_cloog}" = xno; then
6223 graphite_requested=no
6224 elif test "x${with_cloog}" != x \
6225 || test "x${with_cloog_include}" != x \
6226 || test "x${with_cloog_lib}" != x ; then
6227 graphite_requested=yes
6229 graphite_requested=no
6234 if test "${gcc_cv_cloog}" = no ; then
6239 if test "${graphite_requested}" = yes \
6240 && test "x${clooglibs}" = x \
6241 && test "x${clooginc}" = x ; then
6243 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6250 # If either the ISL or the CLooG check failed, disable builds of in-tree
6252 if test "x$with_isl" = xno ||
6253 test "x$with_cloog" = xno ||
6254 test "x$gcc_cv_cloog" = xno ||
6255 test "x$gcc_cv_isl" = xno; then
6256 noconfigdirs="$noconfigdirs cloog isl"
6267 # Check for LTO support.
6268 # Check whether --enable-lto was given.
6269 if test "${enable_lto+set}" = set; then :
6270 enableval=$enable_lto; enable_lto=$enableval
6272 enable_lto=yes; default_enable_lto=yes
6281 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6282 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6283 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6291 if test $target_elf = yes; then :
6292 # ELF platforms build the lto-plugin always.
6293 build_lto_plugin=yes
6296 if test x"$default_enable_lto" = x"yes" ; then
6298 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6299 # On other non-ELF platforms, LTO has yet to be validated.
6303 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6304 # It would also be nice to check the binutils support, but we don't
6305 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6306 # warn during gcc/ subconfigure; unless you're bootstrapping with
6307 # -flto it won't be needed until after installation anyway.
6309 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6310 *) if test x"$enable_lto" = x"yes"; then
6311 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6316 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6317 # Build it unless LTO was explicitly disabled.
6319 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6327 # By default, C and C++ are the only stage 1 languages.
6328 stage1_languages=,c,
6330 # Target libraries that we bootstrap.
6331 bootstrap_target_libs=,target-libgcc,
6333 # Figure out what language subdirectories are present.
6334 # Look if the user specified --enable-languages="..."; if not, use
6335 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6337 # NB: embedded tabs in this IF block -- do not untabify
6338 if test -d ${srcdir}/gcc; then
6339 if test x"${enable_languages+set}" != xset; then
6340 if test x"${LANGUAGES+set}" = xset; then
6341 enable_languages="${LANGUAGES}"
6342 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6344 enable_languages=all
6347 if test x"${enable_languages}" = x ||
6348 test x"${enable_languages}" = xyes;
6350 echo configure.in: --enable-languages needs at least one language argument 1>&2
6354 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6356 # 'f95' is the old name for the 'fortran' language. We issue a warning
6357 # and make the substitution.
6358 case ,${enable_languages}, in
6360 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6361 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6365 # If bootstrapping, C++ must be enabled.
6366 case ",$enable_languages,:$enable_bootstrap" in
6369 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6370 enable_languages="${enable_languages},c++"
6372 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6377 # First scan to see if an enabled language requires some other language.
6378 # We assume that a given config-lang.in will list all the language
6379 # front ends it requires, even if some are required indirectly.
6380 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6381 case ${lang_frag} in
6383 # The odd quoting in the next line works around
6384 # an apparent bug in bash 1.12 on linux.
6385 ${srcdir}/gcc/[*]/config-lang.in) ;;
6387 # From the config-lang.in, get $language, $lang_requires, and
6388 # $lang_requires_boot_languages.
6391 lang_requires_boot_languages=
6393 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6394 case ,${enable_languages}, in
6398 echo " \`$other' language required by \`$language'; enabling" 1>&2
6399 enable_languages="${enable_languages},${other}"
6403 for other in ${lang_requires_boot_languages} ; do
6404 if test "$other" != "c"; then
6405 case ,${enable_stage1_languages}, in
6409 case ,${enable_languages}, in
6411 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6412 enable_stage1_languages="$enable_stage1_languages,${other}"
6423 new_enable_languages=,c,
6425 # If LTO is enabled, add the LTO front end.
6426 extra_host_libiberty_configure_flags=
6427 if test "$enable_lto" = "yes" ; then
6428 case ,${enable_languages}, in
6430 *) enable_languages="${enable_languages},lto" ;;
6432 if test "${build_lto_plugin}" = "yes" ; then
6433 configdirs="$configdirs lto-plugin"
6434 extra_host_libiberty_configure_flags=--enable-shared
6439 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6440 potential_languages=,c,
6442 enabled_target_libs=
6443 disabled_target_libs=
6445 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6446 case ${lang_frag} in
6448 # The odd quoting in the next line works around
6449 # an apparent bug in bash 1.12 on linux.
6450 ${srcdir}/gcc/[*]/config-lang.in) ;;
6452 # From the config-lang.in, get $language, $target_libs,
6453 # $lang_dirs, $boot_language, and $build_by_default
6459 build_by_default=yes
6461 if test x${language} = x; then
6462 echo "${lang_frag} doesn't set \$language." 1>&2
6466 if test "$language" = "c++"; then
6471 case ,${enable_languages}, in
6473 # Language was explicitly selected; include it
6474 # unless it is C, which is enabled by default.
6475 if test "$language" != "c"; then
6480 # 'all' was selected, select it if it is a default language
6481 if test "$language" != "c"; then
6482 add_this_lang=${build_by_default}
6487 # Disable languages that need other directories if these aren't available.
6488 for i in $subdir_requires; do
6489 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6490 case ,${enable_languages}, in
6492 # Specifically requested language; tell them.
6493 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6497 add_this_lang=unsupported
6502 # Disable Ada if no preexisting GNAT is available.
6503 case ,${enable_languages},:${language}:${have_gnat} in
6504 *,${language},*:ada:no)
6505 # Specifically requested language; tell them.
6506 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6510 add_this_lang=unsupported
6514 # Disable a language that is unsupported by the target.
6515 case " $unsupported_languages " in
6517 add_this_lang=unsupported
6521 case $add_this_lang in
6523 # Remove language-dependent dirs.
6524 disabled_target_libs="$disabled_target_libs $target_libs"
6525 noconfigdirs="$noconfigdirs $lang_dirs"
6528 # Remove language-dependent dirs; still show language as supported.
6529 disabled_target_libs="$disabled_target_libs $target_libs"
6530 noconfigdirs="$noconfigdirs $lang_dirs"
6531 potential_languages="${potential_languages}${language},"
6534 new_enable_languages="${new_enable_languages}${language},"
6535 potential_languages="${potential_languages}${language},"
6536 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6537 enabled_target_libs="$enabled_target_libs $target_libs"
6538 case "${boot_language}:,$enable_stage1_languages," in
6539 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6540 # Add to (comma-separated) list of stage 1 languages.
6541 case ",$stage1_languages," in
6542 *,$language,* | ,yes, | ,all,) ;;
6543 *) stage1_languages="${stage1_languages}${language}," ;;
6545 # We need to bootstrap any supporting libraries.
6546 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6555 # Add target libraries which are only needed for disabled languages
6557 if test -n "$disabled_target_libs"; then
6558 for dir in $disabled_target_libs; do
6559 case " $enabled_target_libs " in
6561 *) noconfigdirs="$noconfigdirs $dir" ;;
6566 # Check whether --enable-stage1-languages was given.
6567 if test "${enable_stage1_languages+set}" = set; then :
6568 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6570 # Set it to something that will have no effect in the loop below
6571 enable_stage1_languages=c ;;
6573 enable_stage1_languages=`echo $new_enable_languages | \
6574 sed -e "s/^,//" -e "s/,$//" ` ;;
6576 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6577 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6580 # Add "good" languages from enable_stage1_languages to stage1_languages,
6581 # while "bad" languages go in missing_languages. Leave no duplicates.
6582 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6583 case $potential_languages in
6585 case $stage1_languages in
6587 *) stage1_languages="$stage1_languages$i," ;;
6590 case $missing_languages in
6592 *) missing_languages="$missing_languages$i," ;;
6599 # Remove leading/trailing commas that were added for simplicity
6600 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6601 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6602 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6603 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6605 if test "x$missing_languages" != x; then
6607 The following requested languages could not be built: ${missing_languages}
6608 Supported languages are: ${potential_languages}" "$LINENO" 5
6610 if test "x$new_enable_languages" != "x$enable_languages"; then
6611 echo The following languages will be built: ${new_enable_languages}
6612 enable_languages="$new_enable_languages"
6616 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6618 # Disable all target libraries if not building gcc.
6622 # Handle --disable-<component> generically.
6623 for dir in $configdirs $build_configdirs $target_configdirs ; do
6624 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6625 varname=`echo $dirname | sed -e s/+/_/g`
6626 if eval test x\${enable_${varname}} "=" xno ; then
6627 noconfigdirs="$noconfigdirs $dir"
6631 # Check for Boehm's garbage collector
6632 # Check whether --enable-objc-gc was given.
6633 if test "${enable_objc_gc+set}" = set; then :
6634 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6635 *,objc,*:*:yes:*target-boehm-gc*)
6636 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6642 # Make sure we only build Boehm's garbage collector if required.
6643 case ,${enable_languages},:${enable_objc_gc} in
6645 # Keep target-boehm-gc if requested for Objective-C.
6648 # Otherwise remove target-boehm-gc depending on target-libjava.
6649 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6650 noconfigdirs="$noconfigdirs target-boehm-gc"
6655 # Disable libitm, libsanitizer, libvtv if we're not building C++
6656 case ,${enable_languages}, in
6659 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6663 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6664 # $build_configdirs and $target_configdirs.
6665 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6668 for dir in . $skipdirs $noconfigdirs ; do
6669 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6670 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6671 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6672 if test -r $srcdir/$dirname/configure ; then
6673 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6676 notsupp="$notsupp $dir"
6680 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6681 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6682 if test -r $srcdir/$dirname/configure ; then
6683 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6686 notsupp="$notsupp $dir"
6690 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6691 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6692 if test -r $srcdir/$dirname/configure ; then
6693 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6696 notsupp="$notsupp $dir"
6702 # Quietly strip out all directories which aren't configurable in this tree.
6703 # This relies on all configurable subdirectories being autoconfiscated, which
6705 build_configdirs_all="$build_configdirs"
6707 for i in ${build_configdirs_all} ; do
6708 j=`echo $i | sed -e s/build-//g`
6709 if test -f ${srcdir}/$j/configure ; then
6710 build_configdirs="${build_configdirs} $i"
6714 configdirs_all="$configdirs"
6716 for i in ${configdirs_all} ; do
6717 if test -f ${srcdir}/$i/configure ; then
6718 configdirs="${configdirs} $i"
6722 target_configdirs_all="$target_configdirs"
6724 for i in ${target_configdirs_all} ; do
6725 j=`echo $i | sed -e s/target-//g`
6726 if test -f ${srcdir}/$j/configure ; then
6727 target_configdirs="${target_configdirs} $i"
6731 # Produce a warning message for the subdirs we can't configure.
6732 # This isn't especially interesting in the Cygnus tree, but in the individual
6733 # FSF releases, it's important to let people know when their machine isn't
6734 # supported by the one or two programs in a package.
6736 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6737 # If $appdirs is non-empty, at least one of those directories must still
6738 # be configured, or we error out. (E.g., if the gas release supports a
6739 # specified target in some subdirs but not the gas subdir, we shouldn't
6740 # pretend that all is well.)
6741 if test -n "$appdirs" ; then
6742 for dir in $appdirs ; do
6743 if test -r $dir/Makefile.in ; then
6744 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6748 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6754 if test -n "$appdirs" ; then
6755 echo "*** This configuration is not supported by this package." 1>&2
6759 # Okay, some application will build, or we don't care to check. Still
6760 # notify of subdirs not getting built.
6761 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6762 echo " ${notsupp}" 1>&2
6763 echo " (Any other directories should still work fine.)" 1>&2
6771 # To find our prefix, in gcc_cv_tool_prefix.
6773 # The user is always right.
6774 if test "${PATH_SEPARATOR+set}" != set; then
6775 echo "#! /bin/sh" >conf$$.sh
6776 echo "exit 0" >>conf$$.sh
6778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6788 if test "x$exec_prefix" = xNONE; then
6789 if test "x$prefix" = xNONE; then
6790 gcc_cv_tool_prefix=$ac_default_prefix
6792 gcc_cv_tool_prefix=$prefix
6795 gcc_cv_tool_prefix=$exec_prefix
6798 # If there is no compiler in the tree, use the PATH only. In any
6799 # case, if there is no compiler in the tree nobody should use
6800 # AS_FOR_TARGET and LD_FOR_TARGET.
6801 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6802 gcc_version=`cat $srcdir/gcc/BASE-VER`
6803 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6804 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6806 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6807 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6808 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6813 if test x$build = x$target && test -n "$md_exec_prefix"; then
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6822 # Check whether --with-build-sysroot was given.
6823 if test "${with_build_sysroot+set}" = set; then :
6824 withval=$with_build_sysroot; if test x"$withval" != x ; then
6825 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6828 SYSROOT_CFLAGS_FOR_TARGET=
6834 # Check whether --with-debug-prefix-map was given.
6835 if test "${with_debug_prefix_map+set}" = set; then :
6836 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6837 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6838 for debug_map in $withval; do
6839 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6843 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6848 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6849 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6850 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6851 # We want to ensure that TARGET libraries (which we know are built with
6852 # gcc) are built with "-O2 -g", so include those options when setting
6853 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6854 if test "x$CFLAGS_FOR_TARGET" = x; then
6855 CFLAGS_FOR_TARGET=$CFLAGS
6858 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6861 *" -g "* | *" -g3 "*) ;;
6862 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6867 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6868 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6869 case " $CXXFLAGS " in
6871 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6873 case " $CXXFLAGS " in
6874 *" -g "* | *" -g3 "*) ;;
6875 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6882 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6883 # the named directory are copied to $(tooldir)/sys-include.
6884 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-headers is only supported when cross compiling
6889 if test x"${with_headers}" != xyes ; then
6890 x=${gcc_cv_tool_prefix}
6891 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6895 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6896 # the name directories are copied to $(tooldir)/lib. Multiple directories
6898 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6899 if test x${is_cross_compiler} = xno ; then
6900 echo 1>&2 '***' --with-libs is only supported when cross compiling
6903 if test x"${with_libs}" != xyes ; then
6904 # Copy the libraries in reverse order, so that files in the first named
6905 # library override files in subsequent libraries.
6906 x=${gcc_cv_tool_prefix}
6907 for l in ${with_libs}; do
6908 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6913 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6915 # This is done by determining whether or not the appropriate directory
6916 # is available, and by checking whether or not specific configurations
6917 # have requested that this magic not happen.
6919 # The command line options always override the explicit settings in
6920 # configure.in, and the settings in configure.in override this magic.
6922 # If the default for a toolchain is to use GNU as and ld, and you don't
6923 # want to do that, then you should use the --without-gnu-as and
6924 # --without-gnu-ld options for the configure script. Similarly, if
6925 # the default is to use the included zlib and you don't want to do that,
6926 # you should use the --with-system-zlib option for the configure script.
6928 if test x${use_gnu_as} = x &&
6929 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6931 extra_host_args="$extra_host_args --with-gnu-as"
6934 if test x${use_gnu_ld} = x &&
6935 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6937 extra_host_args="$extra_host_args --with-gnu-ld"
6940 if test x${use_included_zlib} = x &&
6941 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6944 with_system_zlib=yes
6945 extra_host_args="$extra_host_args --with-system-zlib"
6948 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6949 # can detect this case.
6951 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6953 extra_host_args="$extra_host_args --with-newlib"
6956 # Handle ${copy_dirs}
6957 set fnord ${copy_dirs}
6959 while test $# != 0 ; do
6960 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6963 echo Copying $1 to $2
6965 # Use the install script to create the directory and all required
6966 # parent directories.
6967 if test -d $2 ; then
6971 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6974 # Copy the directory, assuming we have tar.
6975 # FIXME: Should we use B in the second tar? Not all systems support it.
6976 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6978 # It is the responsibility of the user to correctly adjust all
6979 # symlinks. If somebody can figure out how to handle them correctly
6980 # here, feel free to add the code.
6987 # Determine a target-dependent exec_prefix that the installed
6988 # gcc will search in. Keep this list sorted by triplet, with
6989 # the *-*-osname triplets last.
6992 i[34567]86-pc-msdosdjgpp*)
6993 md_exec_prefix=/dev/env/DJDIR/bin
6998 md_exec_prefix=/usr/ccs/bin
7002 extra_arflags_for_target=
7003 extra_nmflags_for_target=
7004 extra_ranlibflags_for_target=
7005 target_makefile_frag=/dev/null
7008 target_makefile_frag="config/mt-spu"
7010 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7011 target_makefile_frag="config/mt-sde"
7013 mipsisa*-*-elfoabi*)
7014 target_makefile_frag="config/mt-mips-elfoabi"
7016 mips*-*-*linux* | mips*-*-gnu*)
7017 target_makefile_frag="config/mt-mips-gnu"
7020 target_makefile_frag="config/mt-nios2-elf"
7022 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7023 target_makefile_frag="config/mt-gnu"
7025 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7026 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7027 # commands to handle both 32-bit and 64-bit objects. These flags are
7028 # harmless if we're using GNU nm or ar.
7029 extra_arflags_for_target=" -X32_64"
7030 extra_nmflags_for_target=" -B -X32_64"
7034 alphaieee_frag=/dev/null
7037 # This just makes sure to use the -mieee option to build target libs.
7038 # This should probably be set individually by each library.
7039 alphaieee_frag="config/mt-alphaieee"
7043 # If --enable-target-optspace always use -Os instead of -O2 to build
7044 # the target libraries, similarly if it is not specified, use -Os
7045 # on selected platforms.
7046 ospace_frag=/dev/null
7047 case "${enable_target_optspace}:${target}" in
7049 ospace_frag="config/mt-ospace"
7052 ospace_frag="config/mt-d30v"
7054 :m32r-* | :d10v-* | :fr30-*)
7055 ospace_frag="config/mt-ospace"
7060 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7064 # Some systems (e.g., one of the i386-aix systems the gas testers are
7065 # using) don't handle "\$" correctly, so don't use it here.
7066 tooldir='${exec_prefix}'/${target_noncanonical}
7067 build_tooldir=${tooldir}
7069 # Create a .gdbinit file which runs the one in srcdir
7070 # and tells GDB to look there for source files.
7072 if test -r ${srcdir}/.gdbinit ; then
7075 *) cat > ./.gdbinit <<EOF
7079 source ${srcdir}/.gdbinit
7085 # Make sure that the compiler is able to generate an executable. If it
7086 # can't, we are probably in trouble. We don't care whether we can run the
7087 # executable--we might be using a cross compiler--we only care whether it
7088 # can be created. At this point the main configure script has set CC.
7090 echo "int main () { return 0; }" > conftest.c
7091 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7092 if test $? = 0 ; then
7093 if test -s conftest || test -s conftest.exe ; then
7099 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7100 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7107 # Decide which environment variable is used to find dynamic libraries.
7109 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7110 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7111 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7112 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7115 # On systems where the dynamic library environment variable is PATH,
7116 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7117 # built executables to PATH.
7118 if test "$RPATH_ENVVAR" = PATH; then
7119 GCC_SHLIB_SUBDIR=/shlib
7124 # Adjust the toplevel makefile according to whether bootstrap was selected.
7125 case $enable_bootstrap in
7127 bootstrap_suffix=bootstrap
7128 BUILD_CONFIG=bootstrap-debug
7131 bootstrap_suffix=no-bootstrap
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7137 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7140 # Check whether --with-build-config was given.
7141 if test "${with_build_config+set}" = set; then :
7142 withval=$with_build_config; case $with_build_config in
7143 yes) with_build_config= ;;
7144 no) with_build_config= BUILD_CONFIG= ;;
7149 if test "x${with_build_config}" != x; then
7150 BUILD_CONFIG=$with_build_config
7152 case $BUILD_CONFIG in
7154 if echo "int f (void) { return 0; }" > conftest.c &&
7155 ${CC} -c conftest.c &&
7156 mv conftest.o conftest.o.g0 &&
7157 ${CC} -c -g conftest.c &&
7158 mv conftest.o conftest.o.g &&
7159 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7164 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7169 $as_echo "$BUILD_CONFIG" >&6; }
7172 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7174 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7175 # Check whether --enable-vtable-verify was given.
7176 if test "${enable_vtable_verify+set}" = set; then :
7177 enableval=$enable_vtable_verify; case "$enableval" in
7178 yes) enable_vtable_verify=yes ;;
7179 no) enable_vtable_verify=no ;;
7180 *) enable_vtable_verify=no;;
7183 enable_vtable_verify=no
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7187 $as_echo "$enable_vtable_verify" >&6; }
7189 # Record target_configdirs and the configure arguments for target and
7190 # build configuration in Makefile.
7191 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7192 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7193 bootstrap_fixincludes=no
7195 # If we are building libgomp, bootstrap it.
7196 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7197 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7200 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7201 # or bootstrap-ubsan, bootstrap it.
7202 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7203 case "$BUILD_CONFIG" in
7204 *bootstrap-asan* | *bootstrap-ubsan* )
7205 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7206 bootstrap_fixincludes=yes
7211 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7212 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7213 test "$enable_vtable_verify" != no; then
7214 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7217 # Determine whether gdb needs tk/tcl or not.
7218 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7219 # and in that case we want gdb to be built without tk. Ugh!
7220 # In fact I believe gdb is the *only* package directly dependent on tk,
7221 # so we should be able to put the 'maybe's in unconditionally and
7222 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7223 # 100% sure that that's safe though.
7225 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7226 case "$enable_gdbtk" in
7230 GDB_TK="${gdb_tk}" ;;
7232 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7233 # distro. Eventually someone will fix this and move Insight, nee
7234 # gdbtk to a separate directory.
7235 if test -d ${srcdir}/gdb/gdbtk ; then
7242 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7243 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7245 # Strip out unwanted targets.
7247 # While at that, we remove Makefiles if we were started for recursive
7248 # configuration, so that the top-level Makefile reconfigures them,
7249 # like we used to do when configure itself was recursive.
7251 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7252 # but now we're fixing up the Makefile ourselves with the additional
7253 # commands passed to AC_CONFIG_FILES. Use separate variables
7254 # extrasub-{build,host,target} not because there is any reason to split
7255 # the substitutions up that way, but only to remain below the limit of
7256 # 99 commands in a script, for HP-UX sed.
7257 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7259 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7260 yes:yes:*\ gold\ *:*,c++,*) ;;
7261 yes:yes:*\ gold\ *:*)
7262 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7267 for module in ${build_configdirs} ; do
7268 if test -z "${no_recursion}" \
7269 && test -f ${build_subdir}/${module}/Makefile; then
7270 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7271 rm -f ${build_subdir}/${module}/Makefile
7273 extrasub_build="$extrasub_build
7274 /^@if build-$module\$/d
7275 /^@endif build-$module\$/d
7276 /^@if build-$module-$bootstrap_suffix\$/d
7277 /^@endif build-$module-$bootstrap_suffix\$/d"
7280 for module in ${configdirs} ; do
7281 if test -z "${no_recursion}"; then
7282 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7283 if test -f ${file}; then
7284 echo 1>&2 "*** removing ${file} to force reconfigure"
7289 case ${module},${bootstrap_fixincludes} in
7290 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7291 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7293 extrasub_host="$extrasub_host
7295 /^@endif $module\$/d
7296 /^@if $module-$host_bootstrap_suffix\$/d
7297 /^@endif $module-$host_bootstrap_suffix\$/d"
7300 for module in ${target_configdirs} ; do
7301 if test -z "${no_recursion}" \
7302 && test -f ${target_subdir}/${module}/Makefile; then
7303 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7304 rm -f ${target_subdir}/${module}/Makefile
7307 # We only bootstrap target libraries listed in bootstrap_target_libs.
7308 case $bootstrap_target_libs in
7309 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7310 *) target_bootstrap_suffix=no-bootstrap ;;
7313 extrasub_target="$extrasub_target
7314 /^@if target-$module\$/d
7315 /^@endif target-$module\$/d
7316 /^@if target-$module-$target_bootstrap_suffix\$/d
7317 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7320 # Do the final fixup along with target modules.
7321 extrasub_target="$extrasub_target
7322 /^@if /,/^@endif /d"
7324 # Create the serialization dependencies. This uses a temporary file.
7326 # Check whether --enable-serial-configure was given.
7327 if test "${enable_serial_configure+set}" = set; then :
7328 enableval=$enable_serial_configure;
7332 case ${enable_serial_configure} in
7334 enable_serial_build_configure=yes
7335 enable_serial_host_configure=yes
7336 enable_serial_target_configure=yes
7340 # These force 'configure's to be done one at a time, to avoid problems
7341 # with contention over a shared config.cache.
7343 echo '# serdep.tmp' > serdep.tmp
7345 test "x${enable_serial_build_configure}" = xyes &&
7346 for item in ${build_configdirs} ; do
7349 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7354 test "x${enable_serial_host_configure}" = xyes &&
7355 for item in ${configdirs} ; do
7358 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7363 test "x${enable_serial_target_configure}" = xyes &&
7364 for item in ${target_configdirs} ; do
7367 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7371 serialization_dependencies=serdep.tmp
7374 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7375 # target, nonopt, and variable assignments. These are the ones we
7376 # might not want to pass down to subconfigures. The exception being
7377 # --cache-file=/dev/null, which is used to turn off the use of cache
7378 # files altogether, and which should be passed on to subconfigures.
7379 # Also strip program-prefix, program-suffix, and program-transform-name,
7380 # so that we can pass down a consistent program-transform-name.
7385 eval "set -- $ac_configure_args"
7388 if test X"$skip_next" = X"yes"; then
7392 if test X"$keep_next" = X"yes"; then
7395 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7397 baseargs="$baseargs '$ac_arg'"
7398 tbaseargs="$tbaseargs '$ac_arg'"
7403 # Handle separated arguments. Based on the logic generated by
7406 *=* | --config-cache | -C | -disable-* | --disable-* \
7407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7409 | -with-* | --with-* | -without-* | --without-* | --x)
7423 --with-* | --without-*)
7424 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7428 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7431 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7440 mpc | mpfr | gmp | cloog)
7441 # If we're processing --with-$lib, --with-$lib-include or
7442 # --with-$lib-lib, for one of the libs above, and target is
7443 # different from host, don't pass the current argument to any
7444 # target library's configure.
7445 if test x$is_cross_compiler = xyes; then
7454 --cache-file=/dev/null | \
7455 -cache-file=/dev/null )
7456 # Handled here to avoid the test to skip args below.
7457 baseargs="$baseargs '$ac_arg'"
7458 tbaseargs="$tbaseargs '$ac_arg'"
7459 # Assert: $separate_arg should always be no.
7460 keep_next=$separate_arg
7476 -program-prefix* | \
7477 -program-suffix* | \
7478 -program-transform-name* )
7479 skip_next=$separate_arg
7483 # An option. Add it.
7486 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7488 baseargs="$baseargs '$ac_arg'"
7489 if test X"$skip_targ" = Xno; then
7490 tbaseargs="$tbaseargs '$ac_arg'"
7492 keep_next=$separate_arg
7495 # Either a variable assignment, or a nonopt (triplet). Don't
7496 # pass it down; let the Makefile handle this.
7501 # Remove the initial space we just introduced and, as these will be
7502 # expanded by make, quote '$'.
7503 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7505 # Add in --program-transform-name, after --program-prefix and
7506 # --program-suffix have been applied to it. Autoconf has already
7507 # doubled dollar signs and backslashes in program_transform_name; we want
7508 # the backslashes un-doubled, and then the entire thing wrapped in single
7509 # quotes, because this will be expanded first by make and then by the shell.
7510 # Also, because we want to override the logic in subdir configure scripts to
7511 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7512 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7513 ${program_transform_name}
7515 gcc_transform_name=`cat conftestsed.out`
7516 rm -f conftestsed.out
7517 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7518 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7519 if test "$silent" = yes; then
7520 baseargs="$baseargs --silent"
7521 tbaseargs="$tbaseargs --silent"
7523 baseargs="$baseargs --disable-option-checking"
7524 tbaseargs="$tbaseargs --disable-option-checking"
7526 # Record and document user additions to sub configure arguments.
7531 # For the build-side libraries, we just need to pretend we're native,
7532 # and not use the same cache file. Multilibs are neither needed nor
7534 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7536 # For host modules, accept cache file option, or specification as blank.
7537 case "${cache_file}" in
7539 cache_file_option="" ;;
7540 /* | [A-Za-z]:[\\/]* ) # absolute path
7541 cache_file_option="--cache-file=${cache_file}" ;;
7543 cache_file_option="--cache-file=../${cache_file}" ;;
7546 # Host dirs don't like to share a cache file either, horribly enough.
7547 # This seems to be due to autoconf 2.5x stupidity.
7548 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7550 target_configargs="$target_configargs ${tbaseargs}"
7552 # Passing a --with-cross-host argument lets the target libraries know
7553 # whether they are being built with a cross-compiler or being built
7554 # native. However, it would be better to use other mechanisms to make the
7555 # sorts of decisions they want to make on this basis. Please consider
7556 # this option to be deprecated. FIXME.
7557 if test x${is_cross_compiler} = xyes ; then
7558 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7561 # Special user-friendly check for native x86_64-linux build, if
7562 # multilib is not explicitly enabled.
7563 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7564 x86_64-*linux*:yes:$build:$build:)
7565 # Make sure we have a developement environment that handles 32-bit
7567 echo "int main () { return 0; }" > conftest.c
7568 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7569 if test $? = 0 ; then
7570 if test -s conftest || test -s conftest.exe ; then
7575 if test x${dev64} != xyes ; then
7576 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7581 # Default to --enable-multilib.
7582 if test x${enable_multilib} = x ; then
7583 target_configargs="--enable-multilib ${target_configargs}"
7586 # Pass --with-newlib if appropriate. Note that target_configdirs has
7587 # changed from the earlier setting of with_newlib.
7588 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7589 target_configargs="--with-newlib ${target_configargs}"
7592 # Different target subdirs use different values of certain variables
7593 # (notably CXX). Worse, multilibs use *lots* of different values.
7594 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7595 # it doesn't automatically accept command-line overrides of them.
7596 # This means it's not safe for target subdirs to share a cache file,
7597 # which is disgusting, but there you have it. Hopefully this can be
7598 # fixed in future. It's still worthwhile to use a cache file for each
7599 # directory. I think.
7601 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7602 # We need to pass --target, as newer autoconf's requires consistency
7603 # for target_alias and gcc doesn't manage it consistently.
7604 target_configargs="--cache-file=./config.cache ${target_configargs}"
7607 case " $target_configdirs " in
7609 case " $target_configargs " in
7610 *" --with-newlib "*)
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7617 # If we're not building GCC, don't discard standard headers.
7618 if test -d ${srcdir}/gcc; then
7619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7621 if test "${build}" != "${host}"; then
7622 # On Canadian crosses, CC_FOR_TARGET will have already been set
7623 # by `configure', so we won't have an opportunity to add -Bgcc/
7624 # to it. This is right: we don't want to search that directory
7625 # for binaries, but we want the header files in there, so add
7627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7629 # Someone might think of using the pre-installed headers on
7630 # Canadian crosses, in case the installed compiler is not fully
7631 # compatible with the compiler being built. In this case, it
7632 # would be better to flag an error than risking having
7633 # incompatible object files being constructed. We can't
7634 # guarantee that an error will be flagged, but let's hope the
7635 # compiler will do it, when presented with incompatible header
7640 case "${target}-${is_cross_compiler}" in
7641 i[3456789]86-*-linux*-no)
7642 # Here host == target, so we don't need to build gcc,
7643 # so we don't want to discard standard headers.
7644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7647 # If we're building newlib, use its generic headers last, but search
7648 # for any libc-related directories first (so make it the last -B
7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7652 # If we're building libgloss, find the startup file, simulator library
7653 # and linker script.
7654 case " $target_configdirs " in
7656 # Look for startup file, simulator library and maybe linker script.
7657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7658 # Look for libnosys.a in case the target needs it.
7659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7660 # Most targets have the linker script in the source directory.
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7672 x86_64-*mingw* | *-w64-mingw*)
7673 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7674 # however, use a symlink named 'mingw' in ${prefix} .
7675 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7678 # MinGW can't be handled as Cygwin above since it does not use newlib.
7679 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'
7683 # Allow the user to override the flags for
7684 # our build compiler if desired.
7685 if test x"${build}" = x"${host}" ; then
7686 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7687 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7688 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7691 # On Canadian crosses, we'll be searching the right directories for
7692 # the previously-installed cross compiler, so don't bother to add
7693 # flags for directories within the install tree of the compiler
7694 # being built; programs in there won't even run.
7695 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7696 # Search for pre-installed headers if nothing else fits.
7697 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7700 if test "x${use_gnu_ld}" = x &&
7701 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7702 # Arrange for us to find uninstalled linker scripts.
7703 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7706 # Search for other target-specific linker scripts and such.
7709 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7713 # Makefile fragments.
7714 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7716 eval fragval=\$$frag
7717 if test $fragval != /dev/null; then
7718 eval $frag=${srcdir}/$fragval
7726 # Miscellanea: directories, flags, etc.
7735 # Build module lists & subconfigure args.
7739 # Host module lists & subconfigure args.
7744 # Target module lists & subconfigure args.
7766 # Generate default definitions for YACC, M4, LEX and other programs that run
7767 # on the build machine. These are used if the Makefile can't locate these
7768 # programs in objdir.
7769 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7771 for ac_prog in 'bison -y' byacc yacc
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if test "${ac_cv_prog_YACC+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_prog_YACC="$ac_prog"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 YACC=$ac_cv_prog_YACC
7801 if test -n "$YACC"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803 $as_echo "$YACC" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7810 test -n "$YACC" && break
7812 test -n "$YACC" || YACC="$MISSING bison -y"
7814 case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7818 for ac_prog in bison
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_BISON+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 BISON=$ac_cv_prog_BISON
7848 if test -n "$BISON"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850 $as_echo "$BISON" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7857 test -n "$BISON" && break
7859 test -n "$BISON" || BISON="$MISSING bison"
7861 case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7865 for ac_prog in gm4 gnum4 m4
7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
7868 set dummy $ac_prog; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_M4+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_prog_M4="$ac_prog"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 if test -n "$M4"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897 $as_echo "$M4" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7904 test -n "$M4" && break
7906 test -n "$M4" || M4="$MISSING m4"
7908 case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7912 for ac_prog in flex lex
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_LEX+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_LEX="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 if test -n "$LEX"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944 $as_echo "$LEX" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7951 test -n "$LEX" && break
7953 test -n "$LEX" || LEX="$MISSING flex"
7955 case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
7963 set dummy $ac_prog; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_FLEX+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_FLEX="$ac_prog"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 FLEX=$ac_cv_prog_FLEX
7990 if test -n "$FLEX"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992 $as_echo "$FLEX" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7999 test -n "$FLEX" && break
8001 test -n "$FLEX" || FLEX="$MISSING flex"
8003 case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8007 for ac_prog in makeinfo
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_MAKEINFO="$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 MAKEINFO=$ac_cv_prog_MAKEINFO
8037 if test -n "$MAKEINFO"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039 $as_echo "$MAKEINFO" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8046 test -n "$MAKEINFO" && break
8048 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8050 case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8060 MAKEINFO="$MISSING makeinfo"
8066 # FIXME: expect and dejagnu may become build tools?
8068 for ac_prog in expect
8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
8071 set dummy $ac_prog; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_EXPECT="$ac_prog"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 EXPECT=$ac_cv_prog_EXPECT
8098 if test -n "$EXPECT"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100 $as_echo "$EXPECT" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8107 test -n "$EXPECT" && break
8109 test -n "$EXPECT" || EXPECT="expect"
8111 case " $configdirs " in
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8117 for ac_prog in runtest
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120 set dummy $ac_prog; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_RUNTEST="$ac_prog"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 RUNTEST=$ac_cv_prog_RUNTEST
8147 if test -n "$RUNTEST"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149 $as_echo "$RUNTEST" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8156 test -n "$RUNTEST" && break
8158 test -n "$RUNTEST" || RUNTEST="runtest"
8160 case " $configdirs " in
8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8169 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170 ncn_target_tool_prefix=
8171 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8175 if test -n "$AR"; then
8177 elif test -n "$ac_cv_prog_AR"; then
8181 if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184 set dummy ${ncn_progname}; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if test "${ac_cv_prog_AR+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_prog_AR="${ncn_progname}"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 if test -n "$AR"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213 $as_echo "$AR" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8223 for ncn_progname in ar; do
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_prog_AR+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 if test -n "$AR"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255 $as_echo "$AR" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_progname}; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if test "${ac_cv_prog_AR+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_AR="${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 if test -n "$AR"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294 $as_echo "$AR" >&6; }
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 test -n "$ac_cv_prog_AR" && break
8305 if test -z "$ac_cv_prog_AR" ; then
8307 if test $build = $host ; then
8310 AR="${ncn_tool_prefix}$2"
8316 if test -n "$AS"; then
8318 elif test -n "$ac_cv_prog_AS"; then
8322 if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325 set dummy ${ncn_progname}; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if test "${ac_cv_prog_AS+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8341 ac_cv_prog_AS="${ncn_progname}"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 if test -n "$AS"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354 $as_echo "$AS" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8364 for ncn_progname in as; do
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_AS+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 if test -n "$AS"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396 $as_echo "$AS" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_progname}; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_AS+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_AS="${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 if test -n "$AS"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435 $as_echo "$AS" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 test -n "$ac_cv_prog_AS" && break
8446 if test -z "$ac_cv_prog_AS" ; then
8448 if test $build = $host ; then
8451 AS="${ncn_tool_prefix}$2"
8457 if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459 elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8463 if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466 set dummy ${ncn_progname}; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 DLLTOOL=$ac_cv_prog_DLLTOOL
8493 if test -n "$DLLTOOL"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495 $as_echo "$DLLTOOL" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8505 for ncn_progname in dlltool; do
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 DLLTOOL=$ac_cv_prog_DLLTOOL
8535 if test -n "$DLLTOOL"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537 $as_echo "$DLLTOOL" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547 set dummy ${ncn_progname}; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 DLLTOOL=$ac_cv_prog_DLLTOOL
8574 if test -n "$DLLTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576 $as_echo "$DLLTOOL" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8587 if test -z "$ac_cv_prog_DLLTOOL" ; then
8589 if test $build = $host ; then
8592 DLLTOOL="${ncn_tool_prefix}$2"
8598 if test -n "$LD"; then
8600 elif test -n "$ac_cv_prog_LD"; then
8604 if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607 set dummy ${ncn_progname}; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if test "${ac_cv_prog_LD+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8623 ac_cv_prog_LD="${ncn_progname}"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 if test -n "$LD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636 $as_echo "$LD" >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8646 for ncn_progname in ld; do
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_prog_LD+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 if test -n "$LD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678 $as_echo "$LD" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688 set dummy ${ncn_progname}; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_LD+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_prog_LD="${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 if test -n "$LD"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717 $as_echo "$LD" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 test -n "$ac_cv_prog_LD" && break
8728 if test -z "$ac_cv_prog_LD" ; then
8730 if test $build = $host ; then
8733 LD="${ncn_tool_prefix}$2"
8739 if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741 elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8745 if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748 set dummy ${ncn_progname}; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if test "${ac_cv_prog_LIPO+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_prog_LIPO="${ncn_progname}"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 LIPO=$ac_cv_prog_LIPO
8775 if test -n "$LIPO"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777 $as_echo "$LIPO" >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8787 for ncn_progname in lipo; do
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if test "${ac_cv_prog_LIPO+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 LIPO=$ac_cv_prog_LIPO
8817 if test -n "$LIPO"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819 $as_echo "$LIPO" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829 set dummy ${ncn_progname}; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if test "${ac_cv_prog_LIPO+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_prog_LIPO="${ncn_progname}"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 LIPO=$ac_cv_prog_LIPO
8856 if test -n "$LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858 $as_echo "$LIPO" >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8866 test -n "$ac_cv_prog_LIPO" && break
8869 if test -z "$ac_cv_prog_LIPO" ; then
8871 if test $build = $host ; then
8874 LIPO="${ncn_tool_prefix}$2"
8880 if test -n "$NM"; then
8882 elif test -n "$ac_cv_prog_NM"; then
8886 if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889 set dummy ${ncn_progname}; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if test "${ac_cv_prog_NM+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_prog_NM="${ncn_progname}"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 if test -n "$NM"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918 $as_echo "$NM" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8928 for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if test "${ac_cv_prog_NM+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 if test -n "$NM"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960 $as_echo "$NM" >&6; }
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970 set dummy ${ncn_progname}; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if test "${ac_cv_prog_NM+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_NM="${ncn_progname}"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 if test -n "$NM"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999 $as_echo "$NM" >&6; }
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9007 test -n "$ac_cv_prog_NM" && break
9010 if test -z "$ac_cv_prog_NM" ; then
9012 if test $build = $host ; then
9015 NM="${ncn_tool_prefix}$2"
9021 if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023 elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9027 if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030 set dummy ${ncn_progname}; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9046 ac_cv_prog_RANLIB="${ncn_progname}"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 RANLIB=$ac_cv_prog_RANLIB
9057 if test -n "$RANLIB"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059 $as_echo "$RANLIB" >&6; }
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9069 for ncn_progname in ranlib; do
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 RANLIB=$ac_cv_prog_RANLIB
9099 if test -n "$RANLIB"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101 $as_echo "$RANLIB" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111 set dummy ${ncn_progname}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_prog_RANLIB="${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 RANLIB=$ac_cv_prog_RANLIB
9138 if test -n "$RANLIB"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140 $as_echo "$RANLIB" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 test -n "$ac_cv_prog_RANLIB" && break
9151 if test -z "$ac_cv_prog_RANLIB" ; then
9157 if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159 elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9163 if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166 set dummy ${ncn_progname}; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if test "${ac_cv_prog_STRIP+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9182 ac_cv_prog_STRIP="${ncn_progname}"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 STRIP=$ac_cv_prog_STRIP
9193 if test -n "$STRIP"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195 $as_echo "$STRIP" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9205 for ncn_progname in strip; do
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if test "${ac_cv_prog_STRIP+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 STRIP=$ac_cv_prog_STRIP
9235 if test -n "$STRIP"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237 $as_echo "$STRIP" >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if test "${ac_cv_prog_STRIP+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_STRIP="${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 STRIP=$ac_cv_prog_STRIP
9274 if test -n "$STRIP"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276 $as_echo "$STRIP" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9284 test -n "$ac_cv_prog_STRIP" && break
9287 if test -z "$ac_cv_prog_STRIP" ; then
9293 if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295 elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9299 if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302 set dummy ${ncn_progname}; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9318 ac_cv_prog_WINDRES="${ncn_progname}"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 WINDRES=$ac_cv_prog_WINDRES
9329 if test -n "$WINDRES"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331 $as_echo "$WINDRES" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9341 for ncn_progname in windres; do
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 WINDRES=$ac_cv_prog_WINDRES
9371 if test -n "$WINDRES"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373 $as_echo "$WINDRES" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383 set dummy ${ncn_progname}; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_prog_WINDRES="${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 WINDRES=$ac_cv_prog_WINDRES
9410 if test -n "$WINDRES"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412 $as_echo "$WINDRES" >&6; }
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 test -n "$ac_cv_prog_WINDRES" && break
9423 if test -z "$ac_cv_prog_WINDRES" ; then
9425 if test $build = $host ; then
9428 WINDRES="${ncn_tool_prefix}$2"
9434 if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436 elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9440 if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_progname}; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459 ac_cv_prog_WINDMC="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 WINDMC=$ac_cv_prog_WINDMC
9470 if test -n "$WINDMC"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472 $as_echo "$WINDMC" >&6; }
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9482 for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487 $as_echo_n "checking for $ac_word... " >&6; }
9488 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9489 $as_echo_n "(cached) " >&6
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 WINDMC=$ac_cv_prog_WINDMC
9512 if test -n "$WINDMC"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514 $as_echo "$WINDMC" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_prog_WINDMC="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 WINDMC=$ac_cv_prog_WINDMC
9551 if test -n "$WINDMC"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553 $as_echo "$WINDMC" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 test -n "$ac_cv_prog_WINDMC" && break
9564 if test -z "$ac_cv_prog_WINDMC" ; then
9566 if test $build = $host ; then
9569 WINDMC="${ncn_tool_prefix}$2"
9575 if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577 elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9581 if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584 set dummy ${ncn_progname}; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 OBJCOPY=$ac_cv_prog_OBJCOPY
9611 if test -n "$OBJCOPY"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613 $as_echo "$OBJCOPY" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9623 for ncn_progname in objcopy; do
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 OBJCOPY=$ac_cv_prog_OBJCOPY
9653 if test -n "$OBJCOPY"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655 $as_echo "$OBJCOPY" >&6; }
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665 set dummy ${ncn_progname}; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9691 OBJCOPY=$ac_cv_prog_OBJCOPY
9692 if test -n "$OBJCOPY"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694 $as_echo "$OBJCOPY" >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9705 if test -z "$ac_cv_prog_OBJCOPY" ; then
9707 if test $build = $host ; then
9710 OBJCOPY="${ncn_tool_prefix}$2"
9716 if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718 elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9722 if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725 set dummy ${ncn_progname}; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 OBJDUMP=$ac_cv_prog_OBJDUMP
9752 if test -n "$OBJDUMP"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754 $as_echo "$OBJDUMP" >&6; }
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9764 for ncn_progname in objdump; do
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 OBJDUMP=$ac_cv_prog_OBJDUMP
9794 if test -n "$OBJDUMP"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796 $as_echo "$OBJDUMP" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806 set dummy ${ncn_progname}; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 OBJDUMP=$ac_cv_prog_OBJDUMP
9833 if test -n "$OBJDUMP"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835 $as_echo "$OBJDUMP" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9846 if test -z "$ac_cv_prog_OBJDUMP" ; then
9848 if test $build = $host ; then
9851 OBJDUMP="${ncn_tool_prefix}$2"
9857 if test -n "$READELF"; then
9858 ac_cv_prog_READELF=$READELF
9859 elif test -n "$ac_cv_prog_READELF"; then
9860 READELF=$ac_cv_prog_READELF
9863 if test -n "$ac_cv_prog_READELF"; then
9864 for ncn_progname in readelf; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866 set dummy ${ncn_progname}; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if test "${ac_cv_prog_READELF+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9872 if test -n "$READELF"; then
9873 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9882 ac_cv_prog_READELF="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 READELF=$ac_cv_prog_READELF
9893 if test -n "$READELF"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9895 $as_echo "$READELF" >&6; }
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9905 for ncn_progname in readelf; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if test "${ac_cv_prog_READELF+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9914 if test -n "$READELF"; then
9915 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 READELF=$ac_cv_prog_READELF
9935 if test -n "$READELF"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9937 $as_echo "$READELF" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9945 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947 set dummy ${ncn_progname}; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if test "${ac_cv_prog_READELF+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_prog_READELF="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 READELF=$ac_cv_prog_READELF
9974 if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976 $as_echo "$READELF" >&6; }
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9984 test -n "$ac_cv_prog_READELF" && break
9987 if test -z "$ac_cv_prog_READELF" ; then
9989 if test $build = $host ; then
9992 READELF="${ncn_tool_prefix}$2"
10003 # Check whether --with-build-time-tools was given.
10004 if test "${with_build_time_tools+set}" = set; then :
10005 withval=$with_build_time_tools; case x"$withval" in
10008 with_build_time_tools=
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10010 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10014 with_build_time_tools=
10020 if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10022 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10026 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10027 for ncn_progname in cc gcc; do
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; }
10068 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10069 for ncn_progname in cc gcc; do
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10071 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10072 if test -x $with_build_time_tools/${ncn_progname}; then
10073 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075 $as_echo "yes" >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10084 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10085 for ncn_progname in cc gcc; do
10086 if test -n "$ncn_target_tool_prefix"; then
10087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10088 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10094 if test -n "$CC_FOR_TARGET"; then
10095 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10115 if test -n "$CC_FOR_TARGET"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10117 $as_echo "$CC_FOR_TARGET" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10125 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127 set dummy ${ncn_progname}; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10131 $as_echo_n "(cached) " >&6
10133 if test -n "$CC_FOR_TARGET"; then
10134 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10143 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10154 if test -n "$CC_FOR_TARGET"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10156 $as_echo "$CC_FOR_TARGET" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10164 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10168 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10170 if test $build = $target ; then
10173 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10176 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10181 if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10183 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10187 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10188 for ncn_progname in c++ g++ cxx gxx; do
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; }
10229 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10230 for ncn_progname in c++ g++ cxx gxx; do
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10232 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10233 if test -x $with_build_time_tools/${ncn_progname}; then
10234 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10245 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10246 for ncn_progname in c++ g++ cxx gxx; do
10247 if test -n "$ncn_target_tool_prefix"; then
10248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10249 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10255 if test -n "$CXX_FOR_TARGET"; then
10256 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10265 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10276 if test -n "$CXX_FOR_TARGET"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10278 $as_echo "$CXX_FOR_TARGET" >&6; }
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10286 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10288 set dummy ${ncn_progname}; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10294 if test -n "$CXX_FOR_TARGET"; then
10295 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10315 if test -n "$CXX_FOR_TARGET"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10317 $as_echo "$CXX_FOR_TARGET" >&6; }
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10325 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10329 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10330 set dummy c++ g++ cxx gxx
10331 if test $build = $target ; then
10332 CXX_FOR_TARGET="$2"
10334 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10337 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10342 if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10344 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10348 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10349 for ncn_progname in gcc; do
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; }
10390 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10391 for ncn_progname in gcc; do
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; }
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10406 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10407 for ncn_progname in gcc; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10410 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
10416 if test -n "$GCC_FOR_TARGET"; then
10417 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10437 if test -n "$GCC_FOR_TARGET"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10439 $as_echo "$GCC_FOR_TARGET" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10447 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449 set dummy ${ncn_progname}; ac_word=$2
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451 $as_echo_n "checking for $ac_word... " >&6; }
10452 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10455 if test -n "$GCC_FOR_TARGET"; then
10456 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10465 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10476 if test -n "$GCC_FOR_TARGET"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10478 $as_echo "$GCC_FOR_TARGET" >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481 $as_echo "no" >&6; }
10486 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10490 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10491 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10493 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10498 if test -n "$GCJ_FOR_TARGET"; then
10499 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10500 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10501 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10504 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10505 for ncn_progname in gcj; do
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; }
10546 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10547 for ncn_progname in gcj; do
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10549 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10550 if test -x $with_build_time_tools/${ncn_progname}; then
10551 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10562 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10563 for ncn_progname in gcj; do
10564 if test -n "$ncn_target_tool_prefix"; then
10565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10566 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10572 if test -n "$GCJ_FOR_TARGET"; then
10573 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10593 if test -n "$GCJ_FOR_TARGET"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10595 $as_echo "$GCJ_FOR_TARGET" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10603 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10611 if test -n "$GCJ_FOR_TARGET"; then
10612 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10632 if test -n "$GCJ_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10634 $as_echo "$GCJ_FOR_TARGET" >&6; }
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10642 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10646 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10648 if test $build = $target ; then
10649 GCJ_FOR_TARGET="$2"
10651 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10654 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10659 if test -n "$GFORTRAN_FOR_TARGET"; then
10660 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10661 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10662 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10665 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10666 for ncn_progname in gfortran; do
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; }
10707 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10708 for ncn_progname in gfortran; do
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10710 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10711 if test -x $with_build_time_tools/${ncn_progname}; then
10712 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10714 $as_echo "yes" >&6; }
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10723 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10724 for ncn_progname in gfortran; do
10725 if test -n "$ncn_target_tool_prefix"; then
10726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10733 if test -n "$GFORTRAN_FOR_TARGET"; then
10734 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10754 if test -n "$GFORTRAN_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10756 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10764 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10766 set dummy ${ncn_progname}; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10772 if test -n "$GFORTRAN_FOR_TARGET"; then
10773 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10782 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10793 if test -n "$GFORTRAN_FOR_TARGET"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10795 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10803 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10807 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10809 if test $build = $target ; then
10810 GFORTRAN_FOR_TARGET="$2"
10812 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10815 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10820 if test -n "$GOC_FOR_TARGET"; then
10821 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10822 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10823 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10826 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10827 for ncn_progname in gccgo; do
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; }
10868 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10869 for ncn_progname in gccgo; do
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10871 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10872 if test -x $with_build_time_tools/${ncn_progname}; then
10873 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 $as_echo "yes" >&6; }
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10884 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10885 for ncn_progname in gccgo; do
10886 if test -n "$ncn_target_tool_prefix"; then
10887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10888 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 $as_echo_n "checking for $ac_word... " >&6; }
10891 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10894 if test -n "$GOC_FOR_TARGET"; then
10895 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10915 if test -n "$GOC_FOR_TARGET"; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10917 $as_echo "$GOC_FOR_TARGET" >&6; }
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10925 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10927 set dummy ${ncn_progname}; ac_word=$2
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929 $as_echo_n "checking for $ac_word... " >&6; }
10930 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10933 if test -n "$GOC_FOR_TARGET"; then
10934 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10954 if test -n "$GOC_FOR_TARGET"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10956 $as_echo "$GOC_FOR_TARGET" >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10964 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10968 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10970 if test $build = $target ; then
10971 GOC_FOR_TARGET="$2"
10973 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10976 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10981 cat > conftest.c << \EOF
10986 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10987 have_gcc_for_target=yes
10989 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10990 have_gcc_for_target=no
10997 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10998 if test -n "$with_build_time_tools"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11000 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11001 if test -x $with_build_time_tools/ar; then
11002 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11003 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11005 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11010 elif test $build != $host && test $have_gcc_for_target = yes; then
11011 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11012 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11013 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11016 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11017 # Extract the first word of "ar", so it can be a program name with args.
11018 set dummy ar; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11024 case $AR_FOR_TARGET in
11026 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $gcc_cv_tool_dirs
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11048 if test -n "$AR_FOR_TARGET"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11050 $as_echo "$AR_FOR_TARGET" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11058 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11061 if test -n "$AR_FOR_TARGET"; then
11062 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11063 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11064 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11067 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11068 for ncn_progname in ar; do
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; }
11109 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11110 for ncn_progname in ar; do
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11112 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11113 if test -x $with_build_time_tools/${ncn_progname}; then
11114 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116 $as_echo "yes" >&6; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11125 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11126 for ncn_progname in ar; do
11127 if test -n "$ncn_target_tool_prefix"; then
11128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11129 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131 $as_echo_n "checking for $ac_word... " >&6; }
11132 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 if test -n "$AR_FOR_TARGET"; then
11136 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11156 if test -n "$AR_FOR_TARGET"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11158 $as_echo "$AR_FOR_TARGET" >&6; }
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11166 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11168 set dummy ${ncn_progname}; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11174 if test -n "$AR_FOR_TARGET"; then
11175 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11195 if test -n "$AR_FOR_TARGET"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11197 $as_echo "$AR_FOR_TARGET" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11205 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11209 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11211 if test $build = $target ; then
11214 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11217 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11221 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11227 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11228 if test -n "$with_build_time_tools"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11230 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11231 if test -x $with_build_time_tools/as; then
11232 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11233 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11235 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11240 elif test $build != $host && test $have_gcc_for_target = yes; then
11241 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11242 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11243 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11246 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11247 # Extract the first word of "as", so it can be a program name with args.
11248 set dummy as; ac_word=$2
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 $as_echo_n "checking for $ac_word... " >&6; }
11251 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 case $AS_FOR_TARGET in
11256 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $gcc_cv_tool_dirs
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11278 if test -n "$AS_FOR_TARGET"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11280 $as_echo "$AS_FOR_TARGET" >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11288 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11291 if test -n "$AS_FOR_TARGET"; then
11292 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11293 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11294 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11297 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11298 for ncn_progname in as; do
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; }
11339 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11340 for ncn_progname in as; do
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11342 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11343 if test -x $with_build_time_tools/${ncn_progname}; then
11344 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346 $as_echo "yes" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11355 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11356 for ncn_progname in as; do
11357 if test -n "$ncn_target_tool_prefix"; then
11358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11359 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11365 if test -n "$AS_FOR_TARGET"; then
11366 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11386 if test -n "$AS_FOR_TARGET"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11388 $as_echo "$AS_FOR_TARGET" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11396 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398 set dummy ${ncn_progname}; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11404 if test -n "$AS_FOR_TARGET"; then
11405 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11425 if test -n "$AS_FOR_TARGET"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11427 $as_echo "$AS_FOR_TARGET" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11435 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11439 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11441 if test $build = $target ; then
11444 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11447 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11451 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11457 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11458 if test -n "$with_build_time_tools"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11460 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11461 if test -x $with_build_time_tools/dlltool; then
11462 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11463 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11465 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11470 elif test $build != $host && test $have_gcc_for_target = yes; then
11471 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11472 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11473 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11476 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11477 # Extract the first word of "dlltool", so it can be a program name with args.
11478 set dummy dlltool; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
11484 case $DLLTOOL_FOR_TARGET in
11486 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $gcc_cv_tool_dirs
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11508 if test -n "$DLLTOOL_FOR_TARGET"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11510 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11521 if test -n "$DLLTOOL_FOR_TARGET"; then
11522 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11523 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11524 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11527 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11528 for ncn_progname in dlltool; do
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; }
11569 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11570 for ncn_progname in dlltool; do
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11573 if test -x $with_build_time_tools/${ncn_progname}; then
11574 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11585 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11586 for ncn_progname in dlltool; do
11587 if test -n "$ncn_target_tool_prefix"; then
11588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11595 if test -n "$DLLTOOL_FOR_TARGET"; then
11596 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11605 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11616 if test -n "$DLLTOOL_FOR_TARGET"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11618 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11626 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11628 set dummy ${ncn_progname}; ac_word=$2
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630 $as_echo_n "checking for $ac_word... " >&6; }
11631 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11634 if test -n "$DLLTOOL_FOR_TARGET"; then
11635 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11655 if test -n "$DLLTOOL_FOR_TARGET"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11657 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11665 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11669 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11671 if test $build = $target ; then
11672 DLLTOOL_FOR_TARGET="$2"
11674 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11677 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11681 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11687 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11688 if test -n "$with_build_time_tools"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11690 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11691 if test -x $with_build_time_tools/ld; then
11692 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11693 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11695 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11700 elif test $build != $host && test $have_gcc_for_target = yes; then
11701 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11702 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11703 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11706 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11707 # Extract the first word of "ld", so it can be a program name with args.
11708 set dummy ld; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11714 case $LD_FOR_TARGET in
11716 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $gcc_cv_tool_dirs
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11738 if test -n "$LD_FOR_TARGET"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11740 $as_echo "$LD_FOR_TARGET" >&6; }
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11748 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11751 if test -n "$LD_FOR_TARGET"; then
11752 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11753 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11754 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11757 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11758 for ncn_progname in ld; do
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; }
11799 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11800 for ncn_progname in ld; do
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11802 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11803 if test -x $with_build_time_tools/${ncn_progname}; then
11804 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11815 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11816 for ncn_progname in ld; do
11817 if test -n "$ncn_target_tool_prefix"; then
11818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11825 if test -n "$LD_FOR_TARGET"; then
11826 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11846 if test -n "$LD_FOR_TARGET"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11848 $as_echo "$LD_FOR_TARGET" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11856 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11858 set dummy ${ncn_progname}; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 if test -n "$LD_FOR_TARGET"; then
11865 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11885 if test -n "$LD_FOR_TARGET"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11887 $as_echo "$LD_FOR_TARGET" >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11895 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11899 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11901 if test $build = $target ; then
11904 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11907 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11911 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11917 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11918 if test -n "$with_build_time_tools"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11920 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11921 if test -x $with_build_time_tools/lipo; then
11922 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11923 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11925 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11930 elif test $build != $host && test $have_gcc_for_target = yes; then
11931 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11932 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11933 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11936 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11937 # Extract the first word of "lipo", so it can be a program name with args.
11938 set dummy lipo; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11944 case $LIPO_FOR_TARGET in
11946 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $gcc_cv_tool_dirs
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11968 if test -n "$LIPO_FOR_TARGET"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11970 $as_echo "$LIPO_FOR_TARGET" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11978 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11981 if test -n "$LIPO_FOR_TARGET"; then
11982 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11983 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11984 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11987 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11988 for ncn_progname in lipo; do
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; }
12029 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12030 for ncn_progname in lipo; do
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12032 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12033 if test -x $with_build_time_tools/${ncn_progname}; then
12034 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12045 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12046 for ncn_progname in lipo; do
12047 if test -n "$ncn_target_tool_prefix"; then
12048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12055 if test -n "$LIPO_FOR_TARGET"; then
12056 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12076 if test -n "$LIPO_FOR_TARGET"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12078 $as_echo "$LIPO_FOR_TARGET" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12086 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12088 set dummy ${ncn_progname}; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12092 $as_echo_n "(cached) " >&6
12094 if test -n "$LIPO_FOR_TARGET"; then
12095 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12115 if test -n "$LIPO_FOR_TARGET"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12117 $as_echo "$LIPO_FOR_TARGET" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12125 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12129 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12131 if test $build = $target ; then
12132 LIPO_FOR_TARGET="$2"
12134 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12137 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12141 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12147 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12148 if test -n "$with_build_time_tools"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12150 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12151 if test -x $with_build_time_tools/nm; then
12152 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12153 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12155 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12160 elif test $build != $host && test $have_gcc_for_target = yes; then
12161 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12162 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12163 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12166 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12167 # Extract the first word of "nm", so it can be a program name with args.
12168 set dummy nm; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12174 case $NM_FOR_TARGET in
12176 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $gcc_cv_tool_dirs
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12198 if test -n "$NM_FOR_TARGET"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12200 $as_echo "$NM_FOR_TARGET" >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12208 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12211 if test -n "$NM_FOR_TARGET"; then
12212 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12213 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12214 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12217 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12218 for ncn_progname in nm; do
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; }
12259 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12260 for ncn_progname in nm; do
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12263 if test -x $with_build_time_tools/${ncn_progname}; then
12264 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12276 for ncn_progname in nm; do
12277 if test -n "$ncn_target_tool_prefix"; then
12278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12285 if test -n "$NM_FOR_TARGET"; then
12286 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12306 if test -n "$NM_FOR_TARGET"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12308 $as_echo "$NM_FOR_TARGET" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12316 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12318 set dummy ${ncn_progname}; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12324 if test -n "$NM_FOR_TARGET"; then
12325 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12345 if test -n "$NM_FOR_TARGET"; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12347 $as_echo "$NM_FOR_TARGET" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12355 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12359 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12361 if test $build = $target ; then
12364 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12367 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12371 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12377 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12378 if test -n "$with_build_time_tools"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12380 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12381 if test -x $with_build_time_tools/objcopy; then
12382 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12383 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12385 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12390 elif test $build != $host && test $have_gcc_for_target = yes; then
12391 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12392 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12393 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12396 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12397 # Extract the first word of "objcopy", so it can be a program name with args.
12398 set dummy objcopy; ac_word=$2
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400 $as_echo_n "checking for $ac_word... " >&6; }
12401 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 case $OBJCOPY_FOR_TARGET in
12406 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $gcc_cv_tool_dirs
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12428 if test -n "$OBJCOPY_FOR_TARGET"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12430 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12438 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12441 if test -n "$OBJCOPY_FOR_TARGET"; then
12442 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12443 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12444 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12447 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12448 for ncn_progname in objcopy; do
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_OBJCOPY_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12456 if test -n "$OBJCOPY_FOR_TARGET"; then
12457 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_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_OBJCOPY_FOR_TARGET="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12477 if test -n "$OBJCOPY_FOR_TARGET"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12479 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12489 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12490 for ncn_progname in objcopy; do
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12492 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12493 if test -x $with_build_time_tools/${ncn_progname}; then
12494 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496 $as_echo "yes" >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12505 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12506 for ncn_progname in objcopy; do
12507 if test -n "$ncn_target_tool_prefix"; then
12508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12509 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12515 if test -n "$OBJCOPY_FOR_TARGET"; then
12516 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12525 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12536 if test -n "$OBJCOPY_FOR_TARGET"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12538 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12546 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12548 set dummy ${ncn_progname}; ac_word=$2
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 $as_echo_n "checking for $ac_word... " >&6; }
12551 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12554 if test -n "$OBJCOPY_FOR_TARGET"; then
12555 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12575 if test -n "$OBJCOPY_FOR_TARGET"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12577 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12585 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12589 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12591 if test $build = $target ; then
12592 OBJCOPY_FOR_TARGET="$2"
12594 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12597 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12601 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12607 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12608 if test -n "$with_build_time_tools"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12610 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12611 if test -x $with_build_time_tools/objdump; then
12612 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12613 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12615 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12620 elif test $build != $host && test $have_gcc_for_target = yes; then
12621 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12622 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12623 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12626 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12627 # Extract the first word of "objdump", so it can be a program name with args.
12628 set dummy objdump; ac_word=$2
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12632 $as_echo_n "(cached) " >&6
12634 case $OBJDUMP_FOR_TARGET in
12636 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $gcc_cv_tool_dirs
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12658 if test -n "$OBJDUMP_FOR_TARGET"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12660 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12668 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12671 if test -n "$OBJDUMP_FOR_TARGET"; then
12672 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12673 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12674 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12677 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12678 for ncn_progname in objdump; do
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_OBJDUMP_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12686 if test -n "$OBJDUMP_FOR_TARGET"; then
12687 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_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_OBJDUMP_FOR_TARGET="${ncn_progname}"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12707 if test -n "$OBJDUMP_FOR_TARGET"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12709 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12719 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12720 for ncn_progname in objdump; do
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12722 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12723 if test -x $with_build_time_tools/${ncn_progname}; then
12724 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12726 $as_echo "yes" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12735 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12736 for ncn_progname in objdump; do
12737 if test -n "$ncn_target_tool_prefix"; then
12738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12739 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12745 if test -n "$OBJDUMP_FOR_TARGET"; then
12746 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12766 if test -n "$OBJDUMP_FOR_TARGET"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12768 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12776 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12778 set dummy ${ncn_progname}; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12784 if test -n "$OBJDUMP_FOR_TARGET"; then
12785 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12805 if test -n "$OBJDUMP_FOR_TARGET"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12807 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12815 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12819 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12821 if test $build = $target ; then
12822 OBJDUMP_FOR_TARGET="$2"
12824 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12827 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12831 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12837 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12838 if test -n "$with_build_time_tools"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12840 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12841 if test -x $with_build_time_tools/ranlib; then
12842 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12843 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12845 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12850 elif test $build != $host && test $have_gcc_for_target = yes; then
12851 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12852 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12853 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12856 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12857 # Extract the first word of "ranlib", so it can be a program name with args.
12858 set dummy ranlib; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12864 case $RANLIB_FOR_TARGET in
12866 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $gcc_cv_tool_dirs
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12888 if test -n "$RANLIB_FOR_TARGET"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12890 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12898 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12901 if test -n "$RANLIB_FOR_TARGET"; then
12902 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12903 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12904 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12907 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12908 for ncn_progname in ranlib; do
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_RANLIB_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 if test -n "$RANLIB_FOR_TARGET"; then
12917 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_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_RANLIB_FOR_TARGET="${ncn_progname}"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12937 if test -n "$RANLIB_FOR_TARGET"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12939 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12949 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12950 for ncn_progname in ranlib; do
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12952 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12953 if test -x $with_build_time_tools/${ncn_progname}; then
12954 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956 $as_echo "yes" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12965 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12966 for ncn_progname in ranlib; do
12967 if test -n "$ncn_target_tool_prefix"; then
12968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12975 if test -n "$RANLIB_FOR_TARGET"; then
12976 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12985 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12996 if test -n "$RANLIB_FOR_TARGET"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12998 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13006 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13008 set dummy ${ncn_progname}; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13014 if test -n "$RANLIB_FOR_TARGET"; then
13015 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13035 if test -n "$RANLIB_FOR_TARGET"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13037 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13045 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13049 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13051 if test $build = $target ; then
13052 RANLIB_FOR_TARGET="$2"
13054 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13057 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13061 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13067 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13068 if test -n "$with_build_time_tools"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13070 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13071 if test -x $with_build_time_tools/readelf; then
13072 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13073 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13075 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13080 elif test $build != $host && test $have_gcc_for_target = yes; then
13081 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13082 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13083 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13086 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13087 # Extract the first word of "readelf", so it can be a program name with args.
13088 set dummy readelf; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13094 case $READELF_FOR_TARGET in
13096 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $gcc_cv_tool_dirs
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13118 if test -n "$READELF_FOR_TARGET"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13120 $as_echo "$READELF_FOR_TARGET" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13128 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13131 if test -n "$READELF_FOR_TARGET"; then
13132 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13133 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13134 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13137 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13138 for ncn_progname in readelf; do
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_READELF_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13146 if test -n "$READELF_FOR_TARGET"; then
13147 ac_cv_prog_READELF_FOR_TARGET="$READELF_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_READELF_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13167 if test -n "$READELF_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13169 $as_echo "$READELF_FOR_TARGET" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13179 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13180 for ncn_progname in readelf; do
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13182 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13195 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13196 for ncn_progname in readelf; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13205 if test -n "$READELF_FOR_TARGET"; then
13206 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13226 if test -n "$READELF_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13228 $as_echo "$READELF_FOR_TARGET" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13236 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13238 set dummy ${ncn_progname}; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240 $as_echo_n "checking for $ac_word... " >&6; }
13241 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
13244 if test -n "$READELF_FOR_TARGET"; then
13245 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13254 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13265 if test -n "$READELF_FOR_TARGET"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13267 $as_echo "$READELF_FOR_TARGET" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13275 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13279 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13281 if test $build = $target ; then
13282 READELF_FOR_TARGET="$2"
13284 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13287 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13291 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13297 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13298 if test -n "$with_build_time_tools"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13300 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13301 if test -x $with_build_time_tools/strip; then
13302 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13303 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13305 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13310 elif test $build != $host && test $have_gcc_for_target = yes; then
13311 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13312 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13313 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13316 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13317 # Extract the first word of "strip", so it can be a program name with args.
13318 set dummy strip; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13324 case $STRIP_FOR_TARGET in
13326 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $gcc_cv_tool_dirs
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13336 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13348 if test -n "$STRIP_FOR_TARGET"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13350 $as_echo "$STRIP_FOR_TARGET" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13358 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13361 if test -n "$STRIP_FOR_TARGET"; then
13362 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13363 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13364 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13367 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13368 for ncn_progname in strip; do
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_STRIP_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 if test -n "$STRIP_FOR_TARGET"; then
13377 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_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_STRIP_FOR_TARGET="${ncn_progname}"
13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13397 if test -n "$STRIP_FOR_TARGET"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13399 $as_echo "$STRIP_FOR_TARGET" >&6; }
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13410 for ncn_progname in strip; do
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13412 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13413 if test -x $with_build_time_tools/${ncn_progname}; then
13414 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 $as_echo "yes" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13425 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13426 for ncn_progname in strip; do
13427 if test -n "$ncn_target_tool_prefix"; then
13428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13429 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13435 if test -n "$STRIP_FOR_TARGET"; then
13436 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439 for as_dir in $PATH
13442 test -z "$as_dir" && as_dir=.
13443 for ac_exec_ext in '' $ac_executable_extensions; do
13444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13445 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13456 if test -n "$STRIP_FOR_TARGET"; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13458 $as_echo "$STRIP_FOR_TARGET" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13466 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13468 set dummy ${ncn_progname}; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13474 if test -n "$STRIP_FOR_TARGET"; then
13475 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13495 if test -n "$STRIP_FOR_TARGET"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13497 $as_echo "$STRIP_FOR_TARGET" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13505 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13509 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13511 if test $build = $target ; then
13512 STRIP_FOR_TARGET="$2"
13514 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13517 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13521 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13527 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13528 if test -n "$with_build_time_tools"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13530 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13531 if test -x $with_build_time_tools/windres; then
13532 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13533 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13535 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13540 elif test $build != $host && test $have_gcc_for_target = yes; then
13541 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13542 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13543 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13546 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13547 # Extract the first word of "windres", so it can be a program name with args.
13548 set dummy windres; ac_word=$2
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550 $as_echo_n "checking for $ac_word... " >&6; }
13551 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13554 case $WINDRES_FOR_TARGET in
13556 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $gcc_cv_tool_dirs
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13578 if test -n "$WINDRES_FOR_TARGET"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13580 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13588 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13591 if test -n "$WINDRES_FOR_TARGET"; then
13592 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13593 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13594 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13597 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13598 for ncn_progname in windres; do
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_WINDRES_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13606 if test -n "$WINDRES_FOR_TARGET"; then
13607 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_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_WINDRES_FOR_TARGET="${ncn_progname}"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13627 if test -n "$WINDRES_FOR_TARGET"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13629 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13639 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13640 for ncn_progname in windres; do
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13642 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13643 if test -x $with_build_time_tools/${ncn_progname}; then
13644 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646 $as_echo "yes" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13655 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13656 for ncn_progname in windres; do
13657 if test -n "$ncn_target_tool_prefix"; then
13658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13659 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13663 $as_echo_n "(cached) " >&6
13665 if test -n "$WINDRES_FOR_TARGET"; then
13666 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13686 if test -n "$WINDRES_FOR_TARGET"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13688 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13696 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13698 set dummy ${ncn_progname}; ac_word=$2
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 $as_echo_n "checking for $ac_word... " >&6; }
13701 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
13704 if test -n "$WINDRES_FOR_TARGET"; then
13705 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13711 test -z "$as_dir" && as_dir=.
13712 for ac_exec_ext in '' $ac_executable_extensions; do
13713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13714 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13725 if test -n "$WINDRES_FOR_TARGET"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13727 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13735 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13739 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13741 if test $build = $target ; then
13742 WINDRES_FOR_TARGET="$2"
13744 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13747 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13751 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13757 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13758 if test -n "$with_build_time_tools"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13760 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13761 if test -x $with_build_time_tools/windmc; then
13762 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13763 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13765 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13770 elif test $build != $host && test $have_gcc_for_target = yes; then
13771 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13772 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13773 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13776 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13777 # Extract the first word of "windmc", so it can be a program name with args.
13778 set dummy windmc; ac_word=$2
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780 $as_echo_n "checking for $ac_word... " >&6; }
13781 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13784 case $WINDMC_FOR_TARGET in
13786 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $gcc_cv_tool_dirs
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13796 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13808 if test -n "$WINDMC_FOR_TARGET"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13810 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13818 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13821 if test -n "$WINDMC_FOR_TARGET"; then
13822 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13823 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13824 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13827 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13828 for ncn_progname in windmc; do
13829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13830 set dummy ${ncn_progname}; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13834 $as_echo_n "(cached) " >&6
13836 if test -n "$WINDMC_FOR_TARGET"; then
13837 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13846 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13857 if test -n "$WINDMC_FOR_TARGET"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13859 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13869 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13870 for ncn_progname in windmc; do
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13872 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13873 if test -x $with_build_time_tools/${ncn_progname}; then
13874 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13876 $as_echo "yes" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13885 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13886 for ncn_progname in windmc; do
13887 if test -n "$ncn_target_tool_prefix"; then
13888 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13889 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891 $as_echo_n "checking for $ac_word... " >&6; }
13892 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13895 if test -n "$WINDMC_FOR_TARGET"; then
13896 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13916 if test -n "$WINDMC_FOR_TARGET"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13918 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13926 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13928 set dummy ${ncn_progname}; ac_word=$2
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13930 $as_echo_n "checking for $ac_word... " >&6; }
13931 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13934 if test -n "$WINDMC_FOR_TARGET"; then
13935 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13941 test -z "$as_dir" && as_dir=.
13942 for ac_exec_ext in '' $ac_executable_extensions; do
13943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13944 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13955 if test -n "$WINDMC_FOR_TARGET"; then
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13957 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960 $as_echo "no" >&6; }
13965 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13969 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13971 if test $build = $target ; then
13972 WINDMC_FOR_TARGET="$2"
13974 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13977 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13981 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13985 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13988 $as_echo_n "checking where to find the target ar... " >&6; }
13989 if test "x${build}" != "x${host}" ; then
13990 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13991 # We already found the complete path
13992 ac_dir=`dirname $AR_FOR_TARGET`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994 $as_echo "pre-installed in $ac_dir" >&6; }
13996 # Canadian cross, just use what we found
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13998 $as_echo "pre-installed" >&6; }
14002 case " ${configdirs} " in
14007 if test $ok = yes; then
14008 # An in-tree tool is available and we can use it
14009 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14011 $as_echo "just compiled" >&6; }
14012 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
14014 ac_dir=`dirname $AR_FOR_TARGET`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016 $as_echo "pre-installed in $ac_dir" >&6; }
14017 elif test "x$target" = "x$host"; then
14018 # We can use an host tool
14019 AR_FOR_TARGET='$(AR)'
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14021 $as_echo "host tool" >&6; }
14023 # We need a cross tool
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14025 $as_echo "pre-installed" >&6; }
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14030 $as_echo_n "checking where to find the target as... " >&6; }
14031 if test "x${build}" != "x${host}" ; then
14032 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
14034 ac_dir=`dirname $AS_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; }
14038 # Canadian cross, just use what we found
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14040 $as_echo "pre-installed" >&6; }
14044 case " ${configdirs} " in
14049 if test $ok = yes; then
14050 # An in-tree tool is available and we can use it
14051 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14053 $as_echo "just compiled" >&6; }
14054 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $AS_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14059 elif test "x$target" = "x$host"; then
14060 # We can use an host tool
14061 AS_FOR_TARGET='$(AS)'
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14063 $as_echo "host tool" >&6; }
14065 # We need a cross tool
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14067 $as_echo "pre-installed" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14072 $as_echo_n "checking where to find the target cc... " >&6; }
14073 if test "x${build}" != "x${host}" ; then
14074 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14075 # We already found the complete path
14076 ac_dir=`dirname $CC_FOR_TARGET`
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14078 $as_echo "pre-installed in $ac_dir" >&6; }
14080 # Canadian cross, just use what we found
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14082 $as_echo "pre-installed" >&6; }
14086 case " ${configdirs} " in
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095 $as_echo "just compiled" >&6; }
14096 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $CC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 CC_FOR_TARGET='$(CC)'
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105 $as_echo "host tool" >&6; }
14107 # We need a cross tool
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14114 $as_echo_n "checking where to find the target c++... " >&6; }
14115 if test "x${build}" != "x${host}" ; then
14116 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $CXX_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14122 # Canadian cross, just use what we found
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14128 case " ${configdirs} " in
14132 case ,${enable_languages}, in
14136 if test $ok = yes; then
14137 # An in-tree tool is available and we can use it
14138 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'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14140 $as_echo "just compiled" >&6; }
14141 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
14143 ac_dir=`dirname $CXX_FOR_TARGET`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145 $as_echo "pre-installed in $ac_dir" >&6; }
14146 elif test "x$target" = "x$host"; then
14147 # We can use an host tool
14148 CXX_FOR_TARGET='$(CXX)'
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14150 $as_echo "host tool" >&6; }
14152 # We need a cross tool
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154 $as_echo "pre-installed" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14159 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14160 if test "x${build}" != "x${host}" ; then
14161 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14167 # Canadian cross, just use what we found
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14169 $as_echo "pre-installed" >&6; }
14173 case " ${configdirs} " in
14177 case ,${enable_languages}, in
14181 if test $ok = yes; then
14182 # An in-tree tool is available and we can use it
14183 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'
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14185 $as_echo "just compiled" >&6; }
14186 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14187 # We already found the complete path
14188 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14190 $as_echo "pre-installed in $ac_dir" >&6; }
14191 elif test "x$target" = "x$host"; then
14192 # We can use an host tool
14193 RAW_CXX_FOR_TARGET='$(CXX)'
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14195 $as_echo "host tool" >&6; }
14197 # We need a cross tool
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199 $as_echo "pre-installed" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14204 $as_echo_n "checking where to find the target dlltool... " >&6; }
14205 if test "x${build}" != "x${host}" ; then
14206 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14207 # We already found the complete path
14208 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14210 $as_echo "pre-installed in $ac_dir" >&6; }
14212 # Canadian cross, just use what we found
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14214 $as_echo "pre-installed" >&6; }
14218 case " ${configdirs} " in
14223 if test $ok = yes; then
14224 # An in-tree tool is available and we can use it
14225 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14227 $as_echo "just compiled" >&6; }
14228 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
14230 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232 $as_echo "pre-installed in $ac_dir" >&6; }
14233 elif test "x$target" = "x$host"; then
14234 # We can use an host tool
14235 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14237 $as_echo "host tool" >&6; }
14239 # We need a cross tool
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241 $as_echo "pre-installed" >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14246 $as_echo_n "checking where to find the target gcc... " >&6; }
14247 if test "x${build}" != "x${host}" ; then
14248 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14249 # We already found the complete path
14250 ac_dir=`dirname $GCC_FOR_TARGET`
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14252 $as_echo "pre-installed in $ac_dir" >&6; }
14254 # Canadian cross, just use what we found
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14256 $as_echo "pre-installed" >&6; }
14260 case " ${configdirs} " in
14265 if test $ok = yes; then
14266 # An in-tree tool is available and we can use it
14267 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14269 $as_echo "just compiled" >&6; }
14270 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
14272 ac_dir=`dirname $GCC_FOR_TARGET`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274 $as_echo "pre-installed in $ac_dir" >&6; }
14275 elif test "x$target" = "x$host"; then
14276 # We can use an host tool
14277 GCC_FOR_TARGET='$()'
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14279 $as_echo "host tool" >&6; }
14281 # We need a cross tool
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283 $as_echo "pre-installed" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14288 $as_echo_n "checking where to find the target gcj... " >&6; }
14289 if test "x${build}" != "x${host}" ; then
14290 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14291 # We already found the complete path
14292 ac_dir=`dirname $GCJ_FOR_TARGET`
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14294 $as_echo "pre-installed in $ac_dir" >&6; }
14296 # Canadian cross, just use what we found
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298 $as_echo "pre-installed" >&6; }
14302 case " ${configdirs} " in
14306 case ,${enable_languages}, in
14310 if test $ok = yes; then
14311 # An in-tree tool is available and we can use it
14312 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14314 $as_echo "just compiled" >&6; }
14315 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14316 # We already found the complete path
14317 ac_dir=`dirname $GCJ_FOR_TARGET`
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319 $as_echo "pre-installed in $ac_dir" >&6; }
14320 elif test "x$target" = "x$host"; then
14321 # We can use an host tool
14322 GCJ_FOR_TARGET='$(GCJ)'
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14324 $as_echo "host tool" >&6; }
14326 # We need a cross tool
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14328 $as_echo "pre-installed" >&6; }
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14333 $as_echo_n "checking where to find the target gfortran... " >&6; }
14334 if test "x${build}" != "x${host}" ; then
14335 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
14337 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339 $as_echo "pre-installed in $ac_dir" >&6; }
14341 # Canadian cross, just use what we found
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14343 $as_echo "pre-installed" >&6; }
14347 case " ${configdirs} " in
14351 case ,${enable_languages}, in
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359 $as_echo "just compiled" >&6; }
14360 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo" >&5
14378 $as_echo_n "checking where to find the target gccgo... " >&6; }
14379 if test "x${build}" != "x${host}" ; then
14380 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $GOC_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
14396 case ,${enable_languages}, in
14400 if test $ok = yes; then
14401 # An in-tree tool is available and we can use it
14402 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14404 $as_echo "just compiled" >&6; }
14405 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $GOC_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409 $as_echo "pre-installed in $ac_dir" >&6; }
14410 elif test "x$target" = "x$host"; then
14411 # We can use an host tool
14412 GOC_FOR_TARGET='$(GOC)'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14414 $as_echo "host tool" >&6; }
14416 # We need a cross tool
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14423 $as_echo_n "checking where to find the target ld... " >&6; }
14424 if test "x${build}" != "x${host}" ; then
14425 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
14427 ac_dir=`dirname $LD_FOR_TARGET`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429 $as_echo "pre-installed in $ac_dir" >&6; }
14431 # Canadian cross, just use what we found
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14437 case " ${configdirs} " in
14442 if test $ok = yes; then
14443 # An in-tree tool is available and we can use it
14444 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14446 $as_echo "just compiled" >&6; }
14447 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14448 # We already found the complete path
14449 ac_dir=`dirname $LD_FOR_TARGET`
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14451 $as_echo "pre-installed in $ac_dir" >&6; }
14452 elif test "x$target" = "x$host"; then
14453 # We can use an host tool
14454 LD_FOR_TARGET='$(LD)'
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14456 $as_echo "host tool" >&6; }
14458 # We need a cross tool
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460 $as_echo "pre-installed" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14465 $as_echo_n "checking where to find the target lipo... " >&6; }
14466 if test "x${build}" != "x${host}" ; then
14467 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
14469 ac_dir=`dirname $LIPO_FOR_TARGET`
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471 $as_echo "pre-installed in $ac_dir" >&6; }
14473 # Canadian cross, just use what we found
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475 $as_echo "pre-installed" >&6; }
14478 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14479 # We already found the complete path
14480 ac_dir=`dirname $LIPO_FOR_TARGET`
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14482 $as_echo "pre-installed in $ac_dir" >&6; }
14483 elif test "x$target" = "x$host"; then
14484 # We can use an host tool
14485 LIPO_FOR_TARGET='$(LIPO)'
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14487 $as_echo "host tool" >&6; }
14489 # We need a cross tool
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491 $as_echo "pre-installed" >&6; }
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14496 $as_echo_n "checking where to find the target nm... " >&6; }
14497 if test "x${build}" != "x${host}" ; then
14498 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
14500 ac_dir=`dirname $NM_FOR_TARGET`
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502 $as_echo "pre-installed in $ac_dir" >&6; }
14504 # Canadian cross, just use what we found
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14506 $as_echo "pre-installed" >&6; }
14510 case " ${configdirs} " in
14515 if test $ok = yes; then
14516 # An in-tree tool is available and we can use it
14517 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14519 $as_echo "just compiled" >&6; }
14520 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14521 # We already found the complete path
14522 ac_dir=`dirname $NM_FOR_TARGET`
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14524 $as_echo "pre-installed in $ac_dir" >&6; }
14525 elif test "x$target" = "x$host"; then
14526 # We can use an host tool
14527 NM_FOR_TARGET='$(NM)'
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14529 $as_echo "host tool" >&6; }
14531 # We need a cross tool
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14533 $as_echo "pre-installed" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14538 $as_echo_n "checking where to find the target objcopy... " >&6; }
14539 if test "x${build}" != "x${host}" ; then
14540 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
14542 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544 $as_echo "pre-installed in $ac_dir" >&6; }
14546 # Canadian cross, just use what we found
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14548 $as_echo "pre-installed" >&6; }
14552 case " ${configdirs} " in
14557 if test $ok = yes; then
14558 # An in-tree tool is available and we can use it
14559 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14561 $as_echo "just compiled" >&6; }
14562 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14563 # We already found the complete path
14564 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14566 $as_echo "pre-installed in $ac_dir" >&6; }
14567 elif test "x$target" = "x$host"; then
14568 # We can use an host tool
14569 OBJCOPY_FOR_TARGET='$(OBJDUMP)'
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14571 $as_echo "host tool" >&6; }
14573 # We need a cross tool
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575 $as_echo "pre-installed" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14580 $as_echo_n "checking where to find the target objdump... " >&6; }
14581 if test "x${build}" != "x${host}" ; then
14582 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586 $as_echo "pre-installed in $ac_dir" >&6; }
14588 # Canadian cross, just use what we found
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590 $as_echo "pre-installed" >&6; }
14594 case " ${configdirs} " in
14599 if test $ok = yes; then
14600 # An in-tree tool is available and we can use it
14601 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14603 $as_echo "just compiled" >&6; }
14604 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
14606 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608 $as_echo "pre-installed in $ac_dir" >&6; }
14609 elif test "x$target" = "x$host"; then
14610 # We can use an host tool
14611 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14613 $as_echo "host tool" >&6; }
14615 # We need a cross tool
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14617 $as_echo "pre-installed" >&6; }
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14622 $as_echo_n "checking where to find the target ranlib... " >&6; }
14623 if test "x${build}" != "x${host}" ; then
14624 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
14626 ac_dir=`dirname $RANLIB_FOR_TARGET`
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628 $as_echo "pre-installed in $ac_dir" >&6; }
14630 # Canadian cross, just use what we found
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14632 $as_echo "pre-installed" >&6; }
14636 case " ${configdirs} " in
14641 if test $ok = yes; then
14642 # An in-tree tool is available and we can use it
14643 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14645 $as_echo "just compiled" >&6; }
14646 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
14648 ac_dir=`dirname $RANLIB_FOR_TARGET`
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650 $as_echo "pre-installed in $ac_dir" >&6; }
14651 elif test "x$target" = "x$host"; then
14652 # We can use an host tool
14653 RANLIB_FOR_TARGET='$(RANLIB)'
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14655 $as_echo "host tool" >&6; }
14657 # We need a cross tool
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659 $as_echo "pre-installed" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14664 $as_echo_n "checking where to find the target readelf... " >&6; }
14665 if test "x${build}" != "x${host}" ; then
14666 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
14668 ac_dir=`dirname $READELF_FOR_TARGET`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670 $as_echo "pre-installed in $ac_dir" >&6; }
14672 # Canadian cross, just use what we found
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674 $as_echo "pre-installed" >&6; }
14678 case " ${configdirs} " in
14683 if test $ok = yes; then
14684 # An in-tree tool is available and we can use it
14685 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14687 $as_echo "just compiled" >&6; }
14688 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14689 # We already found the complete path
14690 ac_dir=`dirname $READELF_FOR_TARGET`
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14692 $as_echo "pre-installed in $ac_dir" >&6; }
14693 elif test "x$target" = "x$host"; then
14694 # We can use an host tool
14695 READELF_FOR_TARGET='$(READELF)'
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14697 $as_echo "host tool" >&6; }
14699 # We need a cross tool
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14701 $as_echo "pre-installed" >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14706 $as_echo_n "checking where to find the target strip... " >&6; }
14707 if test "x${build}" != "x${host}" ; then
14708 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
14710 ac_dir=`dirname $STRIP_FOR_TARGET`
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712 $as_echo "pre-installed in $ac_dir" >&6; }
14714 # Canadian cross, just use what we found
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14716 $as_echo "pre-installed" >&6; }
14720 case " ${configdirs} " in
14725 if test $ok = yes; then
14726 # An in-tree tool is available and we can use it
14727 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14729 $as_echo "just compiled" >&6; }
14730 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
14732 ac_dir=`dirname $STRIP_FOR_TARGET`
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734 $as_echo "pre-installed in $ac_dir" >&6; }
14735 elif test "x$target" = "x$host"; then
14736 # We can use an host tool
14737 STRIP_FOR_TARGET='$(STRIP)'
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14739 $as_echo "host tool" >&6; }
14741 # We need a cross tool
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743 $as_echo "pre-installed" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14748 $as_echo_n "checking where to find the target windres... " >&6; }
14749 if test "x${build}" != "x${host}" ; then
14750 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14751 # We already found the complete path
14752 ac_dir=`dirname $WINDRES_FOR_TARGET`
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14754 $as_echo "pre-installed in $ac_dir" >&6; }
14756 # Canadian cross, just use what we found
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14758 $as_echo "pre-installed" >&6; }
14762 case " ${configdirs} " in
14767 if test $ok = yes; then
14768 # An in-tree tool is available and we can use it
14769 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14771 $as_echo "just compiled" >&6; }
14772 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14773 # We already found the complete path
14774 ac_dir=`dirname $WINDRES_FOR_TARGET`
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14776 $as_echo "pre-installed in $ac_dir" >&6; }
14777 elif test "x$target" = "x$host"; then
14778 # We can use an host tool
14779 WINDRES_FOR_TARGET='$(WINDRES)'
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14781 $as_echo "host tool" >&6; }
14783 # We need a cross tool
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14785 $as_echo "pre-installed" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14790 $as_echo_n "checking where to find the target windmc... " >&6; }
14791 if test "x${build}" != "x${host}" ; then
14792 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14793 # We already found the complete path
14794 ac_dir=`dirname $WINDMC_FOR_TARGET`
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14796 $as_echo "pre-installed in $ac_dir" >&6; }
14798 # Canadian cross, just use what we found
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14800 $as_echo "pre-installed" >&6; }
14804 case " ${configdirs} " in
14809 if test $ok = yes; then
14810 # An in-tree tool is available and we can use it
14811 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14813 $as_echo "just compiled" >&6; }
14814 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14815 # We already found the complete path
14816 ac_dir=`dirname $WINDMC_FOR_TARGET`
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14818 $as_echo "pre-installed in $ac_dir" >&6; }
14819 elif test "x$target" = "x$host"; then
14820 # We can use an host tool
14821 WINDMC_FOR_TARGET='$(WINDMC)'
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14823 $as_echo "host tool" >&6; }
14825 # We need a cross tool
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14827 $as_echo "pre-installed" >&6; }
14835 # Certain tools may need extra flags.
14836 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14837 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14838 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14840 # When building target libraries, except in a Canadian cross, we use
14841 # the same toolchain as the compiler we just built.
14842 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14843 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14844 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14845 if test $host = $build; then
14846 case " $configdirs " in
14848 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14849 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14850 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14860 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14861 # Check whether --enable-maintainer-mode was given.
14862 if test "${enable_maintainer_mode+set}" = set; then :
14863 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14865 USE_MAINTAINER_MODE=no
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14869 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14872 if test "$USE_MAINTAINER_MODE" = yes; then
14873 MAINTAINER_MODE_TRUE=
14874 MAINTAINER_MODE_FALSE='#'
14876 MAINTAINER_MODE_TRUE='#'
14877 MAINTAINER_MODE_FALSE=
14879 MAINT=$MAINTAINER_MODE_TRUE
14881 # ---------------------
14882 # GCC bootstrap support
14883 # ---------------------
14885 # Stage specific cflags for build.
14890 yes) stage1_cflags="-g -Wa,-J" ;;
14891 *) stage1_cflags="-g -J" ;;
14897 # Enable --enable-checking in stage1 of the compiler.
14898 # Check whether --enable-stage1-checking was given.
14899 if test "${enable_stage1_checking+set}" = set; then :
14900 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14902 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14903 stage1_checking=--enable-checking=yes,types
14905 stage1_checking=--enable-checking=$enable_checking,types
14911 # Enable -Werror in bootstrap stage2 and later.
14912 # Check whether --enable-werror was given.
14913 if test "${enable_werror+set}" = set; then :
14914 enableval=$enable_werror;
14916 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14923 case ${enable_werror} in
14924 yes) stage2_werror_flag="--enable-werror-always" ;;
14925 *) stage2_werror_flag="" ;;
14929 # Enable --enable-host-shared.
14930 # Check whether --enable-host-shared was given.
14931 if test "${enable_host_shared+set}" = set; then :
14932 enableval=$enable_host_shared; host_shared=$enableval
14939 # Specify what files to not compare during bootstrap.
14941 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14943 hppa*64*-*-hpux*) ;;
14944 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14945 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14949 ac_config_files="$ac_config_files Makefile"
14951 cat >confcache <<\_ACEOF
14952 # This file is a shell script that caches the results of configure
14953 # tests run on this system so they can be shared between configure
14954 # scripts and configure runs, see configure's option --config-cache.
14955 # It is not useful on other systems. If it contains results you don't
14956 # want to keep, you may remove or edit it.
14958 # config.status only pays attention to the cache file if you give it
14959 # the --recheck option to rerun configure.
14961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14963 # following values.
14967 # The following way of writing the cache mishandles newlines in values,
14968 # but we know of no workaround that is simple, portable, and efficient.
14969 # So, we kill variables containing newlines.
14970 # Ultrix sh set writes to stderr and can't be redirected directly,
14971 # and sets the high bit in the cache file unless we assign to the vars.
14973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974 eval ac_val=\$$ac_var
14978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14982 _ | IFS | as_nl) ;; #(
14983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984 *) { eval $ac_var=; unset $ac_var;} ;;
14990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991 *${as_nl}ac_space=\ *)
14992 # `set' does not quote correctly, so add quotes: double-quote
14993 # substitution turns \\\\ into \\, and sed turns \\ into \.
14996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14999 # `set' quotes correctly as required by POSIX, so do not add quotes.
15000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014 if test -w "$cache_file"; then
15015 test "x$cache_file" != "x/dev/null" &&
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017 $as_echo "$as_me: updating cache $cache_file" >&6;}
15018 cat confcache >$cache_file
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15027 # Let make expand exec_prefix.
15028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15030 # Transform confdefs.h into DEFS.
15031 # Protect against shell expansion while executing Makefile rules.
15032 # Protect against Makefile macro expansion.
15034 # If the first sed substitution is executed (which looks for macros that
15035 # take arguments), then branch to the quote section. Otherwise,
15036 # look for a macro that doesn't take arguments.
15046 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15048 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15052 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15065 DEFS=`sed -n "$ac_script" confdefs.h`
15070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15071 # 1. Remove the extension, and $U if already installed.
15072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15075 # will be set to the directory where LIBOBJS objects are built.
15076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15079 LIBOBJS=$ac_libobjs
15081 LTLIBOBJS=$ac_ltlibobjs
15085 : ${CONFIG_STATUS=./config.status}
15087 ac_clean_files_save=$ac_clean_files
15088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15094 # Generated by $as_me.
15095 # Run this file to recreate the current configuration.
15096 # Compiler output produced by configure, useful for debugging
15097 # configure, is in config.log if it exists.
15100 ac_cs_recheck=false
15103 SHELL=\${CONFIG_SHELL-$SHELL}
15106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15107 ## -------------------- ##
15108 ## M4sh Initialization. ##
15109 ## -------------------- ##
15111 # Be more Bourne compatible
15112 DUALCASE=1; export DUALCASE # for MKS sh
15113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15117 # is contrary to our usage. Disable this feature.
15118 alias -g '${1+"$@"}'='"$@"'
15119 setopt NO_GLOB_SUBST
15121 case `(set -o) 2>/dev/null` in #(
15133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15137 # Prefer a ksh shell builtin over an external printf program on Solaris,
15138 # but without wasting forks for bash or zsh.
15139 if test -z "$BASH_VERSION$ZSH_VERSION" \
15140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15141 as_echo='print -r --'
15142 as_echo_n='print -rn --'
15143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15144 as_echo='printf %s\n'
15145 as_echo_n='printf %s'
15147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15149 as_echo_n='/usr/ucb/echo -n'
15151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15152 as_echo_n_body='eval
15156 expr "X$arg" : "X\\(.*\\)$as_nl";
15157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15161 export as_echo_n_body
15162 as_echo_n='sh -c $as_echo_n_body as_echo'
15164 export as_echo_body
15165 as_echo='sh -c $as_echo_body as_echo'
15168 # The user is always right.
15169 if test "${PATH_SEPARATOR+set}" != set; then
15171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15179 # We need space, tab and new line, in precisely that order. Quoting is
15180 # there to prevent editors from complaining about space-tab.
15181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15182 # splitting by setting IFS to empty value.)
15185 # Find who we are. Look in the path if we contain no directory separator.
15187 *[\\/]* ) as_myself=$0 ;;
15188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15192 test -z "$as_dir" && as_dir=.
15193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15199 # We did not find ourselves, most probably we were run as `sh COMMAND'
15200 # in which case we are not to be found in the path.
15201 if test "x$as_myself" = x; then
15204 if test ! -f "$as_myself"; then
15205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15209 # Unset variables that we do not need and which cause bugs (e.g. in
15210 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15211 # suppresses any "Segmentation fault" message there. '((' could
15212 # trigger a bug in pdksh 5.2.14.
15213 for as_var in BASH_ENV ENV MAIL MAILPATH
15214 do eval test x\${$as_var+set} = xset \
15215 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15228 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15231 # as_fn_error ERROR [LINENO LOG_FD]
15232 # ---------------------------------
15233 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15234 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15235 # script with status $?, using 1 if that was 0.
15238 as_status=$?; test $as_status -eq 0 && as_status=1
15240 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15241 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15243 $as_echo "$as_me: error: $1" >&2
15244 as_fn_exit $as_status
15248 # as_fn_set_status STATUS
15249 # -----------------------
15250 # Set $? to STATUS, without forking.
15251 as_fn_set_status ()
15254 } # as_fn_set_status
15256 # as_fn_exit STATUS
15257 # -----------------
15258 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15262 as_fn_set_status $1
15268 # Portably unset VAR.
15271 { eval $1=; unset $1;}
15273 as_unset=as_fn_unset
15274 # as_fn_append VAR VALUE
15275 # ----------------------
15276 # Append the text in VALUE to the end of the definition contained in VAR. Take
15277 # advantage of any shell optimizations that allow amortized linear growth over
15278 # repeated appends, instead of the typical quadratic growth present in naive
15280 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15281 eval 'as_fn_append ()
15292 # as_fn_arith ARG...
15293 # ------------------
15294 # Perform arithmetic evaluation on the ARGs, and store the result in the
15295 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15296 # must be portable across $(()) and expr.
15297 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15298 eval 'as_fn_arith ()
15305 as_val=`expr "$@" || test $? -eq 1`
15310 if expr a : '\(a\)' >/dev/null 2>&1 &&
15311 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15317 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15318 as_basename=basename
15323 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15329 as_me=`$as_basename -- "$0" ||
15330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15331 X"$0" : 'X\(//\)$' \| \
15332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15334 sed '/^.*\/\([^/][^/]*\)\/*$/{
15348 # Avoid depending upon Character Ranges.
15349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15352 as_cr_digits='0123456789'
15353 as_cr_alnum=$as_cr_Letters$as_cr_digits
15355 ECHO_C= ECHO_N= ECHO_T=
15356 case `echo -n x` in #(((((
15358 case `echo 'xy\c'` in
15359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15368 rm -f conf$$ conf$$.exe conf$$.file
15369 if test -d conf$$.dir; then
15370 rm -f conf$$.dir/conf$$.file
15373 mkdir conf$$.dir 2>/dev/null
15375 if (echo >conf$$.file) 2>/dev/null; then
15376 if ln -s conf$$.file conf$$ 2>/dev/null; then
15378 # ... but there are two gotchas:
15379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15381 # In both cases, we have to default to `cp -p'.
15382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15384 elif ln conf$$.file conf$$ 2>/dev/null; then
15392 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15393 rmdir conf$$.dir 2>/dev/null
15398 # Create "$as_dir" as a directory, including parents if necessary.
15403 -*) as_dir=./$as_dir;;
15405 test -d "$as_dir" || eval $as_mkdir_p || {
15409 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15410 *) as_qdir=$as_dir;;
15412 as_dirs="'$as_qdir' $as_dirs"
15413 as_dir=`$as_dirname -- "$as_dir" ||
15414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15415 X"$as_dir" : 'X\(//\)[^/]' \| \
15416 X"$as_dir" : 'X\(//\)$' \| \
15417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15418 $as_echo X"$as_dir" |
15419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15423 /^X\(\/\/\)[^/].*/{
15436 test -d "$as_dir" && break
15438 test -z "$as_dirs" || eval "mkdir $as_dirs"
15439 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15443 if mkdir -p . 2>/dev/null; then
15444 as_mkdir_p='mkdir -p "$as_dir"'
15446 test -d ./-p && rmdir ./-p
15450 if test -x / >/dev/null 2>&1; then
15451 as_test_x='test -x'
15453 if ls -dL / >/dev/null 2>&1; then
15460 if test -d "$1"; then
15466 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15467 ???[sx]*):;;*)false;;esac;fi
15471 as_executable_p=$as_test_x
15473 # Sed expression to map a string onto a valid CPP name.
15474 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15476 # Sed expression to map a string onto a valid variable name.
15477 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15481 ## ----------------------------------- ##
15482 ## Main body of $CONFIG_STATUS script. ##
15483 ## ----------------------------------- ##
15485 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15488 # Save the log message, to keep $0 and so on meaningful, and to
15489 # report actual input values of CONFIG_FILES etc. instead of their
15490 # values after options handling.
15492 This file was extended by $as_me, which was
15493 generated by GNU Autoconf 2.64. Invocation command line was
15495 CONFIG_FILES = $CONFIG_FILES
15496 CONFIG_HEADERS = $CONFIG_HEADERS
15497 CONFIG_LINKS = $CONFIG_LINKS
15498 CONFIG_COMMANDS = $CONFIG_COMMANDS
15501 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15506 case $ac_config_files in *"
15507 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513 # Files that config.status was made for.
15514 config_files="$ac_config_files"
15518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 \`$as_me' instantiates files and other configuration actions
15521 from templates according to the current configuration. Unless the files
15522 and actions are specified as TAGs, all are instantiated by default.
15524 Usage: $0 [OPTION]... [TAG]...
15526 -h, --help print this help, then exit
15527 -V, --version print version number and configuration settings, then exit
15528 -q, --quiet, --silent
15529 do not print progress messages
15530 -d, --debug don't remove temporary files
15531 --recheck update $as_me by reconfiguring in the same conditions
15532 --file=FILE[:TEMPLATE]
15533 instantiate the configuration file FILE
15535 Configuration files:
15538 Report bugs to the package provider."
15541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 configured by $0, generated by GNU Autoconf 2.64,
15545 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15547 Copyright (C) 2009 Free Software Foundation, Inc.
15548 This config.status script is free software; the Free Software Foundation
15549 gives unlimited permission to copy, distribute and modify it."
15555 test -n "\$AWK" || AWK=awk
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 # The default lists apply if the user does not specify any file.
15565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15577 # Handling of the options.
15578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15581 $as_echo "$ac_cs_version"; exit ;;
15582 --debug | --debu | --deb | --de | --d | -d )
15584 --file | --fil | --fi | --f )
15587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15589 as_fn_append CONFIG_FILES " '$ac_optarg'"
15590 ac_need_defaults=false;;
15591 --he | --h | --help | --hel | -h )
15592 $as_echo "$ac_cs_usage"; exit ;;
15593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15597 # This is an error.
15598 -*) as_fn_error "unrecognized option: \`$1'
15599 Try \`$0 --help' for more information." ;;
15601 *) as_fn_append ac_config_targets " $1"
15602 ac_need_defaults=false ;;
15608 ac_configure_extra_args=
15610 if $ac_cs_silent; then
15612 ac_configure_extra_args="$ac_configure_extra_args --silent"
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 if \$ac_cs_recheck; then
15618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15621 CONFIG_SHELL='$SHELL'
15622 export CONFIG_SHELL
15627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15632 ## Running $as_me. ##
15638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15642 extrasub_build="$extrasub_build"
15643 extrasub_host="$extrasub_host"
15644 extrasub_target="$extrasub_target"
15648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 # Handling of arguments.
15651 for ac_config_target in $ac_config_targets
15653 case $ac_config_target in
15654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15656 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15661 # If the user did not use the arguments to specify the items to instantiate,
15662 # then the envvar interface is used. Set only those that are not.
15663 # We use the long form for the default assignment because of an extremely
15664 # bizarre bug on SunOS 4.1.3.
15665 if $ac_need_defaults; then
15666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15669 # Have a temporary directory for convenience. Make it in the build tree
15670 # simply because there is no reason against having it here, and in addition,
15671 # creating and moving files from /tmp can sometimes cause problems.
15672 # Hook for its removal unless debugging.
15673 # Note that there is a small window in which the directory will not be cleaned:
15674 # after its creation but before its name has been assigned to `$tmp'.
15678 trap 'exit_status=$?
15679 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15681 trap 'as_fn_exit 1' 1 2 13 15
15683 # Create a (secure) tmp directory for tmp files.
15686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15687 test -n "$tmp" && test -d "$tmp"
15690 tmp=./conf$$-$RANDOM
15691 (umask 077 && mkdir "$tmp")
15692 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15694 # Set up the scripts for CONFIG_FILES section.
15695 # No need to generate them if there are no CONFIG_FILES.
15696 # This happens for instance with `./config.status config.h'.
15697 if test -n "$CONFIG_FILES"; then
15699 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15700 ac_cs_awk_getline=:
15701 ac_cs_awk_pipe_init=
15702 ac_cs_awk_read_file='
15703 while ((getline aline < (F[key])) > 0)
15706 ac_cs_awk_pipe_fini=
15708 ac_cs_awk_getline=false
15709 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15710 ac_cs_awk_read_file='
15712 print "cat " F[key] " &&"
15713 '$ac_cs_awk_pipe_init
15714 # The final `:' finishes the AND list.
15715 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15717 ac_cr=`echo X | tr X '\015'`
15718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15719 # But we know of no other shell where ac_cr would be empty at this
15720 # point, so we can use a bashism as a fallback.
15721 if test "x$ac_cr" = x; then
15722 eval ac_cr=\$\'\\r\'
15724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15728 ac_cs_awk_cr=$ac_cr
15731 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15734 # Create commands to substitute file output variables.
15736 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15737 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15738 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15741 } >conf$$files.sh &&
15742 . ./conf$$files.sh ||
15743 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15744 rm -f conf$$files.sh
15747 echo "cat >conf$$subs.awk <<_ACEOF" &&
15748 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15750 } >conf$$subs.sh ||
15751 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15752 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15754 for ac_last_try in false false false false false :; do
15755 . ./conf$$subs.sh ||
15756 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15758 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15759 if test $ac_delim_n = $ac_delim_num; then
15761 elif $ac_last_try; then
15762 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15767 rm -f conf$$subs.sh
15769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15770 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15774 s/^/S["/; s/!.*/"]=/
15784 s/\(.\{148\}\).*/\1/
15786 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15791 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15798 s/\(.\{148\}\).*/\1/
15800 s/["\\]/\\&/g; s/^/"/; s/$/"/
15804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15809 ' <conf$$subs.awk | sed '
15814 ' >>$CONFIG_STATUS || ac_write_fail=1
15815 rm -f conf$$subs.awk
15816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15819 for (key in S) S_is_set[key] = 1
15821 \$ac_cs_awk_pipe_init
15825 nfields = split(line, field, "@")
15827 len = length(field[1])
15828 for (i = 2; i < nfields; i++) {
15830 keylen = length(key)
15831 if (S_is_set[key]) {
15833 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15834 len += length(value) + length(field[++i])
15839 if (nfields == 3 && !substed) {
15841 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15842 \$ac_cs_awk_read_file
15848 \$ac_cs_awk_pipe_fini
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15853 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15856 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15857 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15862 # trailing colons and then remove the whole line if VPATH becomes empty
15863 # (actually we leave an empty line to preserve line numbers).
15864 if test "x$srcdir" = x.; then
15865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15866 s/:*\$(srcdir):*/:/
15867 s/:*\${srcdir}:*/:/
15869 s/^\([^=]*=[ ]*\):*/\1/
15875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15876 fi # test -n "$CONFIG_FILES"
15879 eval set X " :F $CONFIG_FILES "
15884 :[FHLC]) ac_mode=$ac_tag; continue;;
15886 case $ac_mode$ac_tag in
15888 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15889 :[FH]-) ac_tag=-:-;;
15890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15907 -) ac_f="$tmp/stdin";;
15908 *) # Look for the file first in the build tree, then in the source tree
15909 # (if the path is not absolute). The absolute path cannot be DOS-style,
15910 # because $ac_f cannot contain `:'.
15914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15916 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15919 as_fn_append ac_file_inputs " '$ac_f'"
15922 # Let's still pretend it is `configure' which instantiates (i.e., don't
15923 # use $as_me), people would be surprised to read:
15924 # /* config.h. Generated by config.status. */
15925 configure_input='Generated from '`
15926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15928 if test x"$ac_file" != x-; then
15929 configure_input="$ac_file. $configure_input"
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15931 $as_echo "$as_me: creating $ac_file" >&6;}
15933 # Neutralize special characters interpreted by sed in replacement strings.
15934 case $configure_input in #(
15935 *\&* | *\|* | *\\* )
15936 ac_sed_conf_input=`$as_echo "$configure_input" |
15937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15938 *) ac_sed_conf_input=$configure_input;;
15942 *:-:* | *:-) cat >"$tmp/stdin" \
15943 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15948 ac_dir=`$as_dirname -- "$ac_file" ||
15949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15950 X"$ac_file" : 'X\(//\)[^/]' \| \
15951 X"$ac_file" : 'X\(//\)$' \| \
15952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15953 $as_echo X"$ac_file" |
15954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15958 /^X\(\/\/\)[^/].*/{
15971 as_dir="$ac_dir"; as_fn_mkdir_p
15975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15978 # A ".." for each directory in $ac_dir_suffix.
15979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15980 case $ac_top_builddir_sub in
15981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15985 ac_abs_top_builddir=$ac_pwd
15986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15987 # for backward compatibility:
15988 ac_top_builddir=$ac_top_build_prefix
15991 .) # We are building in place.
15993 ac_top_srcdir=$ac_top_builddir_sub
15994 ac_abs_top_srcdir=$ac_pwd ;;
15995 [\\/]* | ?:[\\/]* ) # Absolute name.
15996 ac_srcdir=$srcdir$ac_dir_suffix;
15997 ac_top_srcdir=$srcdir
15998 ac_abs_top_srcdir=$srcdir ;;
15999 *) # Relative name.
16000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16001 ac_top_srcdir=$ac_top_build_prefix$srcdir
16002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # If the template does not know about datarootdir, expand it.
16021 # FIXME: This hack should be removed a few years after 2.60.
16022 ac_datarootdir_hack=; ac_datarootdir_seen=
16033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16034 *datarootdir*) ac_datarootdir_seen=yes;;
16035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 ac_datarootdir_hack='
16041 s&@datadir@&$datadir&g
16042 s&@docdir@&$docdir&g
16043 s&@infodir@&$infodir&g
16044 s&@localedir@&$localedir&g
16045 s&@mandir@&$mandir&g
16046 s&\\\${datarootdir}&$datarootdir&g' ;;
16050 # Neutralize VPATH when `$srcdir' = `.'.
16051 # Shell code in configure.ac might set extrasub.
16052 # FIXME: do we really want to maintain this feature?
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 ac_sed_extra="$ac_vpsub
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16060 s|@configure_input@|$ac_sed_conf_input|;t t
16061 s&@top_builddir@&$ac_top_builddir_sub&;t t
16062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16063 s&@srcdir@&$ac_srcdir&;t t
16064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16065 s&@top_srcdir@&$ac_top_srcdir&;t t
16066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16067 s&@builddir@&$ac_builddir&;t t
16068 s&@abs_builddir@&$ac_abs_builddir&;t t
16069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16070 s&@INSTALL@&$ac_INSTALL&;t t
16071 $ac_datarootdir_hack
16073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16074 if $ac_cs_awk_getline; then
16075 $AWK -f "$tmp/subs.awk"
16077 $AWK -f "$tmp/subs.awk" | $SHELL
16079 || as_fn_error "could not create $ac_file" "$LINENO" 5
16081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16085 which seems to be undefined. Please make sure it is defined." >&5
16086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16087 which seems to be undefined. Please make sure it is defined." >&2;}
16091 -) cat "$tmp/out" && rm -f "$tmp/out";;
16092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16094 || as_fn_error "could not create $ac_file" "$LINENO" 5
16102 case $ac_file$ac_mode in
16103 "Makefile":F) sed "$extrasub_build" Makefile |
16104 sed "$extrasub_host" |
16105 sed "$extrasub_target" > mf$$
16106 mv -f mf$$ Makefile ;;
16114 ac_clean_files=$ac_clean_files_save
16116 test $ac_write_fail = 0 ||
16117 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16120 # configure is writing to config.log, and then calls config.status.
16121 # config.status does its own redirection, appending to config.log.
16122 # Unfortunately, on DOS this fails, as config.log is still kept open
16123 # by configure, so config.status won't be able to write to it; its
16124 # output is simply discarded. So we exec the FD to /dev/null,
16125 # effectively closing config.log, so it can be properly (re)opened and
16126 # appended to by config.status. When coming back to configure, we
16127 # need to make the FD available again.
16128 if test "$no_create" != yes; then
16130 ac_config_status_args=
16131 test "$silent" = yes &&
16132 ac_config_status_args="$ac_config_status_args --quiet"
16134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16137 # would make configure fail if this is the last instruction.
16138 $ac_cs_success || as_fn_exit $?
16140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}