2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
564 MAINTAINER_MODE_FALSE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
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}"
3420 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
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}"
3451 # Disable libgo for some systems where it is known to not work.
3452 # For testing, you can easily override this with --enable-libgo.
3453 if test x$enable_libgo = x; then
3457 noconfigdirs="$noconfigdirs target-libgo"
3459 *-*-cygwin* | *-*-mingw*)
3460 noconfigdirs="$noconfigdirs target-libgo"
3463 noconfigdirs="$noconfigdirs target-libgo"
3468 # Default libgloss CPU subdirectory.
3469 libgloss_dir="$target_cpu"
3472 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3476 libgloss_dir=aarch64
3481 cris-*-* | crisv32-*-*)
3490 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3491 libgloss_dir=m68hc11
3493 m68*-*-* | fido-*-*)
3507 # Disable newlib and libgloss for various target OSes.
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 i[3456789]86-*-linux*)
3513 # This section makes it possible to build newlib natively on linux.
3514 # If we are using a cross compiler then don't configure newlib.
3515 if test x${is_cross_compiler} != xno ; then
3516 noconfigdirs="$noconfigdirs target-newlib"
3518 noconfigdirs="$noconfigdirs target-libgloss"
3519 # If we are not using a cross compiler, do configure newlib.
3520 # Note however, that newlib will only be configured in this situation
3521 # if the --with-newlib option has been given, because otherwise
3522 # 'target-newlib' will appear in skipdirs.
3524 i[3456789]86-*-rdos*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
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"
3578 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3579 noconfigdirs="$noconfigdirs sim target-rda"
3581 i[3456789]86-*-darwin*)
3582 noconfigdirs="$noconfigdirs ld gprof"
3583 noconfigdirs="$noconfigdirs sim target-rda"
3585 x86_64-*-darwin[912]*)
3586 noconfigdirs="$noconfigdirs ld gas gprof"
3587 noconfigdirs="$noconfigdirs sim target-rda"
3590 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3591 noconfigdirs="$noconfigdirs sim target-rda"
3596 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3597 && test -f /usr/local/include/gmp.h; then
3602 # Remove unsupported stuff on all kaOS configurations.
3603 noconfigdirs="$noconfigdirs target-libgloss"
3610 noconfigdirs="$noconfigdirs target-libgloss"
3611 # this is not caught below because this stanza matches earlier
3613 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3616 # The tpf target doesn't support gdb yet.
3618 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3621 noconfigdirs="$noconfigdirs target-rda"
3626 # ld works, but does not support shared libraries.
3627 # gas doesn't generate exception information.
3628 noconfigdirs="$noconfigdirs gas ld"
3631 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3634 # newlib is not 64 bit ready
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3638 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3641 noconfigdirs="$noconfigdirs target-libgloss"
3644 noconfigdirs="$noconfigdirs target-libgloss"
3647 noconfigdirs="$noconfigdirs ld target-libgloss"
3652 if test x${with_avrlibc} != xno; then
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 c4x-*-* | tic4x-*-*)
3657 noconfigdirs="$noconfigdirs target-libgloss"
3660 noconfigdirs="$noconfigdirs target-libgloss gdb"
3663 noconfigdirs="$noconfigdirs target-libgloss"
3666 noconfigdirs="$noconfigdirs gdb"
3669 noconfigdirs="$noconfigdirs gdb"
3672 noconfigdirs="$noconfigdirs gprof"
3675 noconfigdirs="$noconfigdirs target-libgloss"
3678 noconfigdirs="$noconfigdirs target-libgloss"
3680 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3688 hppa*-*-openbsd* | \
3692 noconfigdirs="$noconfigdirs ld"
3697 noconfigdirs="$noconfigdirs ld"
3700 noconfigdirs="$noconfigdirs gdb"
3703 # No gdb support yet.
3704 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3707 # No ld support yet.
3708 noconfigdirs="$noconfigdirs libgui itcl ld"
3711 # No ld support yet.
3712 noconfigdirs="$noconfigdirs libgui itcl ld"
3714 i[3456789]86-w64-mingw*)
3716 i[3456789]86-*-mingw*)
3717 target_configdirs="$target_configdirs target-winsup"
3720 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3721 noconfigdirs="$noconfigdirs target-libgloss"
3722 # always build newlib if winsup directory is present.
3723 if test -d "$srcdir/winsup/cygwin"; then
3724 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3725 elif test -d "$srcdir/newlib"; then
3726 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3730 noconfigdirs="$noconfigdirs target-libgloss"
3732 i[3456789]86-*-sco3.2v5*)
3733 # The linker does not yet know about weak symbols in COFF,
3734 # and is not configured to handle mixed ELF and COFF.
3735 noconfigdirs="$noconfigdirs ld target-libgloss"
3737 i[3456789]86-*-sco*)
3738 noconfigdirs="$noconfigdirs gprof target-libgloss"
3740 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3741 noconfigdirs="$noconfigdirs target-libgloss"
3743 i[3456789]86-*-sysv4*)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3746 i[3456789]86-*-beos*)
3747 noconfigdirs="$noconfigdirs gdb"
3749 i[3456789]86-*-rdos*)
3750 noconfigdirs="$noconfigdirs gdb"
3753 noconfigdirs="$noconfigdirs gdb"
3756 noconfigdirs="$noconfigdirs sim"
3759 # copied from rs6000-*-* entry
3760 noconfigdirs="$noconfigdirs gprof"
3762 powerpc*-*-winnt* | powerpc*-*-pe*)
3763 target_configdirs="$target_configdirs target-winsup"
3764 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3765 # always build newlib.
3766 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3768 # This is temporary until we can link against shared libraries
3769 powerpcle-*-solaris*)
3770 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3773 noconfigdirs="$noconfigdirs gdb"
3776 noconfigdirs="$noconfigdirs gprof"
3779 noconfigdirs="$noconfigdirs gprof"
3782 noconfigdirs="$noconfigdirs gprof"
3785 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3788 noconfigdirs="$noconfigdirs gprof"
3790 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3791 if test x$with_newlib = xyes; then
3792 noconfigdirs="$noconfigdirs gprof"
3796 noconfigdirs="$noconfigdirs gprof target-libgloss"
3799 noconfigdirs="$noconfigdirs gprof target-libgloss"
3802 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3806 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3807 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3808 noconfigdirs="$noconfigdirs ld gas gprof"
3811 noconfigdirs="$noconfigdirs gprof"
3814 noconfigdirs="$noconfigdirs gdb"
3817 noconfigdirs="$noconfigdirs gdb"
3824 noconfigdirs="$noconfigdirs target-libgloss" ;;
3828 if test x${is_cross_compiler} = xno ; then
3833 noconfigdirs="$noconfigdirs sim"
3835 tilepro*-*-* | tilegx*-*-*)
3836 noconfigdirs="$noconfigdirs sim"
3839 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3842 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3846 # If we aren't building newlib, then don't build libgloss, since libgloss
3847 # depends upon some newlib header files.
3848 case "${noconfigdirs}" in
3849 *target-libgloss*) ;;
3850 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3853 # Work in distributions that contain no compiler tools, like Autoconf.
3854 host_makefile_frag=/dev/null
3855 if test -d ${srcdir}/config ; then
3857 i[3456789]86-*-msdosdjgpp*)
3858 host_makefile_frag="config/mh-djgpp"
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3863 $as_echo_n "checking to see if cat works as expected... " >&6; }
3864 echo a >cygwin-cat-check
3865 if test `cat cygwin-cat-check` = a ; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868 $as_echo "yes" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 as_fn_error "The cat command does not ignore carriage return characters.
3874 Please either mount the build directory in binary mode or run the following
3875 commands before running any configure script:
3881 host_makefile_frag="config/mh-cygwin"
3884 host_makefile_frag="config/mh-mingw"
3887 host_makefile_frag="config/mh-pa-hpux10"
3890 host_makefile_frag="config/mh-pa"
3893 host_makefile_frag="config/mh-pa"
3896 host_makefile_frag="config/mh-darwin"
3899 host_makefile_frag="config/mh-ppc-aix"
3902 host_makefile_frag="config/mh-ppc-aix"
3907 if test "${build}" != "${host}" ; then
3908 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3909 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3910 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3911 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3912 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3913 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3914 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3915 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3916 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3917 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3918 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3919 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3920 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3922 AR_FOR_BUILD="\$(AR)"
3923 AS_FOR_BUILD="\$(AS)"
3924 CC_FOR_BUILD="\$(CC)"
3925 CXX_FOR_BUILD="\$(CXX)"
3926 GCJ_FOR_BUILD="\$(GCJ)"
3927 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3928 GOC_FOR_BUILD="\$(GOC)"
3929 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3930 LD_FOR_BUILD="\$(LD)"
3931 NM_FOR_BUILD="\$(NM)"
3932 RANLIB_FOR_BUILD="\$(RANLIB)"
3933 WINDRES_FOR_BUILD="\$(WINDRES)"
3934 WINDMC_FOR_BUILD="\$(WINDMC)"
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_prog_CC+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test -n "$CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973 $as_echo "$CC" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 if test -z "$ac_cv_prog_CC"; then
3983 # Extract the first word of "gcc", so it can be a program name with args.
3984 set dummy gcc; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="gcc"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4019 if test "x$ac_ct_CC" = x; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4034 if test -z "$CC"; then
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}cc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_CC="${ac_tool_prefix}cc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 if test -n "$CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 $as_echo "$CC" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4075 if test -z "$CC"; then
4076 # Extract the first word of "cc", so it can be a program name with args.
4077 set dummy cc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4095 ac_prog_rejected=yes
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 if test $ac_prog_rejected = yes; then
4107 # We found a bogon in the path, so make sure we never use it.
4108 set dummy $ac_cv_prog_CC
4110 if test $# != 0; then
4111 # We chose a different compiler from the bogus one.
4112 # However, it has the same basename, so the bogon will be chosen
4113 # first if we set CC to just the basename; use the full file name.
4115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4131 if test -z "$CC"; then
4132 if test -n "$ac_tool_prefix"; then
4133 for ac_prog in cl.exe
4135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if test "${ac_cv_prog_CC+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 if test -n "$CC"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4165 $as_echo "$CC" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4172 test -n "$CC" && break
4175 if test -z "$CC"; then
4177 for ac_prog in cl.exe
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CC="$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207 if test -n "$ac_ct_CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209 $as_echo "$ac_ct_CC" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$ac_ct_CC" && break
4219 if test "x$ac_ct_CC" = x; then
4222 case $cross_compiling:$ac_tool_warned in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4235 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4237 as_fn_error "no acceptable C compiler found in \$PATH
4238 See \`config.log' for more details." "$LINENO" 5; }
4240 # Provide some information about the compiler.
4241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4244 for ac_option in --version -v -V -qversion; do
4245 { { ac_try="$ac_compiler $ac_option >&5"
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4254 if test -s conftest.err; then
4256 ... rest of stderr output deleted ...
4257 10q' conftest.err >conftest.er1
4258 cat conftest.er1 >&5
4259 rm -f conftest.er1 conftest.err
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 ac_clean_files_save=$ac_clean_files
4277 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4278 # Try to create an executable without -o first, disregard a.out.
4279 # It will help us diagnose broken compilers, and finding out an intuition
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4282 $as_echo_n "checking for C compiler default output file name... " >&6; }
4283 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4285 # The possible output files:
4286 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4289 for ac_file in $ac_files
4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4293 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4298 if { { ac_try="$ac_link_default"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_link_default") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; then :
4309 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4310 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4311 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4312 # so that the user can short-circuit this test for compilers unknown to
4314 for ac_file in $ac_files ''
4316 test -f "$ac_file" || continue
4318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4321 # We found the default executable, but exeext='' is most
4325 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4329 # We set ac_cv_exeext here because the later test for it is not
4330 # safe: cross compilers may not add the suffix if given an `-o'
4331 # argument, so we may need to know it at that point already.
4332 # Even if this section looks crufty: it has the advantage of
4339 test "$ac_cv_exeext" = no && ac_cv_exeext=
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4345 $as_echo "$ac_file" >&6; }
4346 if test -z "$ac_file"; then :
4347 $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 { as_fn_set_status 77
4353 as_fn_error "C compiler cannot create executables
4354 See \`config.log' for more details." "$LINENO" 5; }; }
4356 ac_exeext=$ac_cv_exeext
4358 # Check that the compiler produces executables we can run. If not, either
4359 # the compiler is broken, or we cross compile.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361 $as_echo_n "checking whether the C compiler works... " >&6; }
4362 # If not cross compiling, check that we can run a simple program.
4363 if test "$cross_compiling" != yes; then
4364 if { ac_try='./$ac_file'
4365 { { case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_try") 2>&5
4373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }; }; then
4377 if test "$cross_compiling" = maybe; then
4380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4382 as_fn_error "cannot run C compiled programs.
4383 If you meant to cross compile, use \`--host'.
4384 See \`config.log' for more details." "$LINENO" 5; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389 $as_echo "yes" >&6; }
4391 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4392 ac_clean_files=$ac_clean_files_save
4393 # Check that the compiler produces executables we can run. If not, either
4394 # the compiler is broken, or we cross compile.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4396 $as_echo_n "checking whether we are cross compiling... " >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4398 $as_echo "$cross_compiling" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4401 $as_echo_n "checking for suffix of executables... " >&6; }
4402 if { { ac_try="$ac_link"
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
4413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4415 # work properly (i.e., refer to `conftest.exe'), while it won't with
4417 for ac_file in conftest.exe conftest conftest.*; do
4418 test -f "$ac_file" || continue
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error "cannot compute suffix of executables: cannot compile and link
4430 See \`config.log' for more details." "$LINENO" 5; }
4432 rm -f conftest$ac_cv_exeext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4434 $as_echo "$ac_cv_exeext" >&6; }
4436 rm -f conftest.$ac_ext
4437 EXEEXT=$ac_cv_exeext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4440 $as_echo_n "checking for suffix of object files... " >&6; }
4441 if test "${ac_cv_objext+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4455 rm -f conftest.o conftest.obj
4456 if { { ac_try="$ac_compile"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compile") 2>&5
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }; then :
4467 for ac_file in conftest.o conftest.obj conftest.*; do
4468 test -f "$ac_file" || continue;
4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4476 $as_echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4481 as_fn_error "cannot compute suffix of object files: cannot compile
4482 See \`config.log' for more details." "$LINENO" 5; }
4484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4487 $as_echo "$ac_cv_objext" >&6; }
4488 OBJEXT=$ac_cv_objext
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4491 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4492 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4509 if ac_fn_c_try_compile "$LINENO"; then :
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4519 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4520 if test $ac_compiler_gnu = yes; then
4525 ac_test_CFLAGS=${CFLAGS+set}
4526 ac_save_CFLAGS=$CFLAGS
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4528 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4529 if test "${ac_cv_prog_cc_g+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 ac_save_c_werror_flag=$ac_c_werror_flag
4533 ac_c_werror_flag=yes
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4547 if ac_fn_c_try_compile "$LINENO"; then :
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4562 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_c_werror_flag=$ac_save_c_werror_flag
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4578 if ac_fn_c_try_compile "$LINENO"; then :
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4589 $as_echo "$ac_cv_prog_cc_g" >&6; }
4590 if test "$ac_test_CFLAGS" = set; then
4591 CFLAGS=$ac_save_CFLAGS
4592 elif test $ac_cv_prog_cc_g = yes; then
4593 if test "$GCC" = yes; then
4599 if test "$GCC" = yes; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4606 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4607 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4610 ac_cv_prog_cc_c89=no
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 #include <sys/types.h>
4617 #include <sys/stat.h>
4618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4619 struct buf { int x; };
4620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4621 static char *e (p, i)
4627 static char *f (char * (*g) (char **, int), char **p, ...)
4632 s = g (p, va_arg (v,int));
4637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4638 function prototypes and stuff, but not '\xHH' hex character constants.
4639 These don't provoke an error unfortunately, instead are silently treated
4640 as 'x'. The following induces an error, until -std is added to get
4641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4642 array size at least. It's necessary to write '\x00'==0 to get something
4643 that's true only with -std. */
4644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4647 inside strings and character constants. */
4649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4651 int test (int i, double x);
4652 struct s1 {int (*f) (int a);};
4653 struct s2 {int (*f) (double a);};
4654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4668 CC="$ac_save_CC $ac_arg"
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_prog_cc_c89=$ac_arg
4672 rm -f core conftest.err conftest.$ac_objext
4673 test "x$ac_cv_prog_cc_c89" != "xno" && break
4675 rm -f conftest.$ac_ext
4680 case "x$ac_cv_prog_cc_c89" in
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683 $as_echo "none needed" >&6; } ;;
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686 $as_echo "unsupported" >&6; } ;;
4688 CC="$CC $ac_cv_prog_cc_c89"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4690 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4692 if test "x$ac_cv_prog_cc_c89" != xno; then :
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703 ac_cpp='$CXXCPP $CPPFLAGS'
4704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4707 if test -z "$CXX"; then
4708 if test -n "$CCC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_CXX+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -n "$CXX"; then
4722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 if test -n "$CXX"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4744 $as_echo "$CXX" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4751 test -n "$CXX" && break
4754 if test -z "$CXX"; then
4756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$ac_ct_CXX"; then
4766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_ac_ct_CXX="$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4786 if test -n "$ac_ct_CXX"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4788 $as_echo "$ac_ct_CXX" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 test -n "$ac_ct_CXX" && break
4798 if test "x$ac_ct_CXX" = x; then
4801 case $cross_compiling:$ac_tool_warned in
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4813 # Provide some information about the compiler.
4814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4817 for ac_option in --version -v -V -qversion; do
4818 { { ac_try="$ac_compiler $ac_option >&5"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4824 $as_echo "$ac_try_echo"; } >&5
4825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4827 if test -s conftest.err; then
4829 ... rest of stderr output deleted ...
4830 10q' conftest.err >conftest.er1
4831 cat conftest.er1 >&5
4832 rm -f conftest.er1 conftest.err
4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4839 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4840 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4857 if ac_fn_cxx_try_compile "$LINENO"; then :
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4867 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4868 if test $ac_compiler_gnu = yes; then
4873 ac_test_CXXFLAGS=${CXXFLAGS+set}
4874 ac_save_CXXFLAGS=$CXXFLAGS
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4876 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4877 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4880 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4881 ac_cxx_werror_flag=yes
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4895 if ac_fn_cxx_try_compile "$LINENO"; then :
4896 ac_cv_prog_cxx_g=yes
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4910 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4926 if ac_fn_cxx_try_compile "$LINENO"; then :
4927 ac_cv_prog_cxx_g=yes
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4937 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4938 if test "$ac_test_CXXFLAGS" = set; then
4939 CXXFLAGS=$ac_save_CXXFLAGS
4940 elif test $ac_cv_prog_cxx_g = yes; then
4941 if test "$GXX" = yes; then
4947 if test "$GXX" = yes; then
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960 # We must set the default linker to the linker used by gcc for the correct
4961 # operation of libtool. If LD is not defined and we are using gcc, try to
4962 # set the LD default to the ld used by gcc.
4963 if test -z "$LD"; then
4964 if test "$GCC" = yes; then
4967 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4969 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4971 case $gcc_prog_ld in
4972 # Accept absolute paths.
4973 [\\/]* | [A-Za-z]:[\\/]*)
4974 LD="$gcc_prog_ld" ;;
4979 # Check whether -static-libstdc++ -static-libgcc is supported.
4981 if test "$GCC" = yes; then
4982 saved_LDFLAGS="$LDFLAGS"
4984 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4986 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4997 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4998 #error -static-libstdc++ not implemented
5002 if ac_fn_cxx_try_link "$LINENO"; then :
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004 $as_echo "yes" >&6; }; have_static_libs=yes
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5009 rm -f core conftest.err conftest.$ac_objext \
5010 conftest$ac_exeext conftest.$ac_ext
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 LDFLAGS="$saved_LDFLAGS"
5024 if test -n "$ac_tool_prefix"; then
5025 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5026 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5032 if test -n "$GNATBIND"; then
5033 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 GNATBIND=$ac_cv_prog_GNATBIND
5053 if test -n "$GNATBIND"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5055 $as_echo "$GNATBIND" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5063 if test -z "$ac_cv_prog_GNATBIND"; then
5064 ac_ct_GNATBIND=$GNATBIND
5065 # Extract the first word of "gnatbind", so it can be a program name with args.
5066 set dummy gnatbind; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5072 if test -n "$ac_ct_GNATBIND"; then
5073 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5093 if test -n "$ac_ct_GNATBIND"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5095 $as_echo "$ac_ct_GNATBIND" >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5101 if test "x$ac_ct_GNATBIND" = x; then
5104 case $cross_compiling:$ac_tool_warned in
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5108 ac_tool_warned=yes ;;
5110 GNATBIND=$ac_ct_GNATBIND
5113 GNATBIND="$ac_cv_prog_GNATBIND"
5116 if test -n "$ac_tool_prefix"; then
5117 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5118 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$GNATMAKE"; then
5125 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 GNATMAKE=$ac_cv_prog_GNATMAKE
5145 if test -n "$GNATMAKE"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5147 $as_echo "$GNATMAKE" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5155 if test -z "$ac_cv_prog_GNATMAKE"; then
5156 ac_ct_GNATMAKE=$GNATMAKE
5157 # Extract the first word of "gnatmake", so it can be a program name with args.
5158 set dummy gnatmake; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$ac_ct_GNATMAKE"; then
5165 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5187 $as_echo "$ac_ct_GNATMAKE" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5193 if test "x$ac_ct_GNATMAKE" = x; then
5196 case $cross_compiling:$ac_tool_warned in
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5202 GNATMAKE=$ac_ct_GNATMAKE
5205 GNATMAKE="$ac_cv_prog_GNATMAKE"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5209 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5210 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 cat >conftest.adb <<EOF
5214 procedure conftest is begin null; end conftest;
5216 acx_cv_cc_gcc_supports_ada=no
5217 # There is a bug in old released versions of GCC which causes the
5218 # driver to exit successfully when the appropriate language module
5219 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5220 # Therefore we must check for the error message as well as an
5221 # unsuccessful exit.
5222 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5223 # given a .adb file, but produce no object file. So we must check
5224 # if an object file was really produced to guard against this.
5225 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5226 if test x"$errors" = x && test -f conftest.$ac_objext; then
5227 acx_cv_cc_gcc_supports_ada=yes
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5232 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5234 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5241 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5242 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5247 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5248 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5249 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5252 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5255 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5256 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5259 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5266 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5267 do_compare="$gcc_cv_prog_cmp_skip"
5271 # Check whether --enable-bootstrap was given.
5272 if test "${enable_bootstrap+set}" = set; then :
5273 enableval=$enable_bootstrap;
5275 enable_bootstrap=default
5279 # Issue errors and warnings for invalid/strange bootstrap combinations.
5280 if test -r $srcdir/gcc/configure; then
5286 case "$have_compiler:$host:$target:$enable_bootstrap" in
5289 # Default behavior. Enable bootstrap if we have a compiler
5290 # and we are in a native configuration.
5291 yes:$build:$build:default)
5292 enable_bootstrap=yes ;;
5295 enable_bootstrap=no ;;
5297 # We have a compiler and we are in a native configuration, bootstrap is ok
5298 yes:$build:$build:yes)
5301 # Other configurations, but we have a compiler. Assume the user knows
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5305 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5308 # No compiler: if they passed --enable-bootstrap explicitly, fail
5310 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5312 # Fail if wrong command line
5314 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5318 # Used for setting $lt_cv_objdir
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5320 $as_echo_n "checking for objdir... " >&6; }
5321 if test "${lt_cv_objdir+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5324 rm -f .libs 2>/dev/null
5325 mkdir .libs 2>/dev/null
5326 if test -d .libs; then
5329 # MS-DOS does not allow filenames that begin with a dot.
5332 rmdir .libs 2>/dev/null
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5335 $as_echo "$lt_cv_objdir" >&6; }
5336 objdir=$lt_cv_objdir
5342 cat >>confdefs.h <<_ACEOF
5343 #define LT_OBJDIR "$lt_cv_objdir/"
5348 # Check for GMP, MPFR and MPC
5349 gmplibs="-lmpc -lmpfr -lgmp"
5353 # Specify a location for mpc
5354 # check for this first so it ends up on the link line before mpfr.
5356 # Check whether --with-mpc was given.
5357 if test "${with_mpc+set}" = set; then :
5362 # Check whether --with-mpc-include was given.
5363 if test "${with_mpc_include+set}" = set; then :
5364 withval=$with_mpc_include;
5368 # Check whether --with-mpc-lib was given.
5369 if test "${with_mpc_lib+set}" = set; then :
5370 withval=$with_mpc_lib;
5374 if test "x$with_mpc" != x; then
5375 gmplibs="-L$with_mpc/lib $gmplibs"
5376 gmpinc="-I$with_mpc/include $gmpinc"
5378 if test "x$with_mpc_include" != x; then
5379 gmpinc="-I$with_mpc_include $gmpinc"
5381 if test "x$with_mpc_lib" != x; then
5382 gmplibs="-L$with_mpc_lib $gmplibs"
5384 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5385 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5386 gmpinc='-I$$s/mpc/src '"$gmpinc"
5387 # Do not test the mpc version. Assume that it is sufficient, since
5388 # it is in the source tree, and the library has not been built yet
5389 # but it would be included on the link line in the version check below
5390 # hence making the test fail.
5394 # Specify a location for mpfr
5395 # check for this first so it ends up on the link line before gmp.
5397 # Check whether --with-mpfr-dir was given.
5398 if test "${with_mpfr_dir+set}" = set; then :
5399 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5400 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5405 # Check whether --with-mpfr was given.
5406 if test "${with_mpfr+set}" = set; then :
5411 # Check whether --with-mpfr-include was given.
5412 if test "${with_mpfr_include+set}" = set; then :
5413 withval=$with_mpfr_include;
5417 # Check whether --with-mpfr-lib was given.
5418 if test "${with_mpfr_lib+set}" = set; then :
5419 withval=$with_mpfr_lib;
5423 if test "x$with_mpfr" != x; then
5424 gmplibs="-L$with_mpfr/lib $gmplibs"
5425 gmpinc="-I$with_mpfr/include $gmpinc"
5427 if test "x$with_mpfr_include" != x; then
5428 gmpinc="-I$with_mpfr_include $gmpinc"
5430 if test "x$with_mpfr_lib" != x; then
5431 gmplibs="-L$with_mpfr_lib $gmplibs"
5433 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5434 # MPFR v3.1.0 moved the sources into a src sub-directory.
5435 if test -d ${srcdir}/mpfr/src; then
5436 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5437 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5438 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5440 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5441 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5442 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5444 # Do not test the mpfr version. Assume that it is sufficient, since
5445 # it is in the source tree, and the library has not been built yet
5446 # but it would be included on the link line in the version check below
5447 # hence making the test fail.
5451 # Specify a location for gmp
5453 # Check whether --with-gmp-dir was given.
5454 if test "${with_gmp_dir+set}" = set; then :
5455 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5456 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5461 # Check whether --with-gmp was given.
5462 if test "${with_gmp+set}" = set; then :
5467 # Check whether --with-gmp-include was given.
5468 if test "${with_gmp_include+set}" = set; then :
5469 withval=$with_gmp_include;
5473 # Check whether --with-gmp-lib was given.
5474 if test "${with_gmp_lib+set}" = set; then :
5475 withval=$with_gmp_lib;
5480 if test "x$with_gmp" != x; then
5481 gmplibs="-L$with_gmp/lib $gmplibs"
5482 gmpinc="-I$with_gmp/include $gmpinc"
5484 if test "x$with_gmp_include" != x; then
5485 gmpinc="-I$with_gmp_include $gmpinc"
5487 if test "x$with_gmp_lib" != x; then
5488 gmplibs="-L$with_gmp_lib $gmplibs"
5490 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5491 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5492 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5493 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5494 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5495 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5496 # Do not test the gmp version. Assume that it is sufficient, since
5497 # it is in the source tree, and the library has not been built yet
5498 # but it would be included on the link line in the version check below
5499 # hence making the test fail.
5503 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5505 saved_CFLAGS="$CFLAGS"
5506 CFLAGS="$CFLAGS $gmpinc"
5507 # Check for the recommended and required versions of GMP.
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5509 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5518 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5519 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5520 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5536 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5537 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5538 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548 $as_echo "yes" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5551 $as_echo "buggy but acceptable" >&6; }
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }; have_gmp=no
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 # If we have GMP, check the MPFR version.
5561 if test x"$have_gmp" = xyes; then
5562 # Check for the recommended and required versions of MPFR.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5564 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5590 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600 $as_echo "yes" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5603 $as_echo "buggy but acceptable" >&6; }
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }; have_gmp=no
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 # Check for the MPC header version.
5614 if test x"$have_gmp" = xyes ; then
5615 # Check for the recommended and required versions of MPC.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5617 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5625 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5641 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 $as_echo "yes" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5654 $as_echo "buggy but acceptable" >&6; }
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }; have_gmp=no
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 # Now check the MPFR library.
5665 if test x"$have_gmp" = xyes; then
5667 LIBS="$LIBS $gmplibs"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5669 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5683 mpfr_atan2 (n, n, x, GMP_RNDN);
5684 mpfr_erfc (n, x, GMP_RNDN);
5685 mpfr_subnormalize (x, t, GMP_RNDN);
5689 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5690 mpc_cosh (c, c, MPC_RNDNN);
5691 mpc_pow (c, c, c, MPC_RNDNN);
5692 mpc_acosh (c, c, MPC_RNDNN);
5699 if ac_fn_c_try_link "$LINENO"; then :
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }; have_gmp=no
5706 rm -f core conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
5711 CFLAGS="$saved_CFLAGS"
5713 # The library versions listed in the error message below should match
5714 # the HARD-minimums enforced above.
5715 if test x$have_gmp != xyes; then
5716 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5717 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5718 their locations. Source code for these libraries can be found at
5719 their respective hosting sites as well as at
5720 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5721 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5722 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5723 make sure that you have installed both the libraries and the header
5724 files. They may be located in separate packages." "$LINENO" 5
5728 # Flags needed for both GMP, MPFR and/or MPC.
5736 # Allow host libstdc++ to be specified for static linking with PPL.
5738 # Check whether --with-host-libstdcxx was given.
5739 if test "${with_host_libstdcxx+set}" = set; then :
5740 withval=$with_host_libstdcxx;
5744 case $with_host_libstdcxx in
5746 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5750 # Libraries to use for stage1 or when not bootstrapping.
5752 # Check whether --with-stage1-libs was given.
5753 if test "${with_stage1_libs+set}" = set; then :
5754 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5757 stage1_libs=$withval
5760 stage1_libs=$with_host_libstdcxx
5765 # Linker flags to use for stage1 or when not bootstrapping.
5767 # Check whether --with-stage1-ldflags was given.
5768 if test "${with_stage1_ldflags+set}" = set; then :
5769 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5772 stage1_ldflags=$withval
5776 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5777 # if supported. But if the user explicitly specified the libraries to use,
5778 # trust that they are doing what they want.
5779 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5780 stage1_ldflags="-static-libstdc++ -static-libgcc"
5786 # Libraries to use for stage2 and later builds. This defaults to the
5787 # argument passed to --with-host-libstdcxx.
5789 # Check whether --with-boot-libs was given.
5790 if test "${with_boot_libs+set}" = set; then :
5791 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5794 poststage1_libs=$withval
5797 poststage1_libs=$with_host_libstdcxx
5802 # Linker flags to use for stage2 and later builds.
5804 # Check whether --with-boot-ldflags was given.
5805 if test "${with_boot_ldflags+set}" = set; then :
5806 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5809 poststage1_ldflags=$withval
5813 # In stages 2 and 3, default to linking libstdc++ and libgcc
5814 # statically. But if the user explicitly specified the libraries to
5815 # use, trust that they are doing what they want.
5816 if test "$poststage1_libs" = ""; then
5817 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5823 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5824 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5828 # Check whether --with-cloog was given.
5829 if test "${with_cloog+set}" = set; then :
5830 withval=$with_cloog;
5834 # Check whether --with-isl was given.
5835 if test "${with_isl+set}" = set; then :
5840 # Treat either --without-cloog or --without-isl as a request to disable
5841 # GRAPHITE support and skip all following checks.
5842 if test "x$with_isl" != "xno" &&
5843 test "x$with_cloog" != "xno"; then
5847 # Check whether --with-isl-include was given.
5848 if test "${with_isl_include+set}" = set; then :
5849 withval=$with_isl_include;
5853 # Check whether --with-isl-lib was given.
5854 if test "${with_isl_lib+set}" = set; then :
5855 withval=$with_isl_lib;
5859 # Check whether --enable-isl-version-check was given.
5860 if test "${enable_isl_version_check+set}" = set; then :
5861 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5863 ENABLE_ISL_CHECK=yes
5867 # Initialize isllibs and islinc.
5876 isllibs="-L$with_isl/lib"
5877 islinc="-I$with_isl/include"
5880 if test "x${with_isl_include}" != x ; then
5881 islinc="-I$with_isl_include"
5883 if test "x${with_isl_lib}" != x; then
5884 isllibs="-L$with_isl_lib"
5886 if test "x${islinc}" = x && test "x${isllibs}" = x \
5887 && test -d ${srcdir}/isl; then
5888 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5889 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5892 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5897 if test "${ENABLE_ISL_CHECK}" = yes ; then
5898 _isl_saved_CFLAGS=$CFLAGS
5899 _isl_saved_LDFLAGS=$LDFLAGS
5900 _isl_saved_LIBS=$LIBS
5902 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5903 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5904 LIBS="${_isl_saved_LIBS} -lisl"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5907 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5908 if test "$cross_compiling" = yes; then :
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #include <isl/version.h>
5918 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5925 if ac_fn_c_try_run "$LINENO"; then :
5930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5931 conftest.$ac_objext conftest.beam conftest.$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5935 $as_echo "$gcc_cv_isl" >&6; }
5937 CFLAGS=$_isl_saved_CFLAGS
5938 LDFLAGS=$_isl_saved_LDFLAGS
5939 LIBS=$_isl_saved_LIBS
5943 if test "${gcc_cv_isl}" = no ; then
5945 if test "${ENABLE_ISL_CHECK}" = yes ; then
5946 _isl_saved_CFLAGS=$CFLAGS
5947 _isl_saved_LDFLAGS=$LDFLAGS
5948 _isl_saved_LIBS=$LIBS
5950 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5951 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5952 LIBS="${_isl_saved_LIBS} -lisl"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5955 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5956 if test "$cross_compiling" = yes; then :
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <isl/version.h>
5966 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5973 if ac_fn_c_try_run "$LINENO"; then :
5978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5979 conftest.$ac_objext conftest.beam conftest.$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5983 $as_echo "$gcc_cv_isl" >&6; }
5985 CFLAGS=$_isl_saved_CFLAGS
5986 LDFLAGS=$_isl_saved_LDFLAGS
5987 LIBS=$_isl_saved_LIBS
5991 if test "${gcc_cv_isl}" = no ; then
5993 if test "${ENABLE_ISL_CHECK}" = yes ; then
5994 _isl_saved_CFLAGS=$CFLAGS
5995 _isl_saved_LDFLAGS=$LDFLAGS
5996 _isl_saved_LIBS=$LIBS
5998 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5999 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6000 LIBS="${_isl_saved_LIBS} -lisl"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6003 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6004 if test "$cross_compiling" = yes; then :
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <isl/version.h>
6014 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6021 if ac_fn_c_try_run "$LINENO"; then :
6026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6031 $as_echo "$gcc_cv_isl" >&6; }
6033 CFLAGS=$_isl_saved_CFLAGS
6034 LDFLAGS=$_isl_saved_LDFLAGS
6035 LIBS=$_isl_saved_LIBS
6045 if test "x${with_isl}" = xno; then
6046 graphite_requested=no
6047 elif test "x${with_isl}" != x \
6048 || test "x${with_isl_include}" != x \
6049 || test "x${with_isl_lib}" != x ; then
6050 graphite_requested=yes
6052 graphite_requested=no
6057 if test "${gcc_cv_isl}" = no ; then
6062 if test "${graphite_requested}" = yes \
6063 && test "x${isllibs}" = x \
6064 && test "x${islinc}" = x ; then
6066 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6071 if test "x$gcc_cv_isl" != "xno"; then
6075 # Check whether --with-cloog-include was given.
6076 if test "${with_cloog_include+set}" = set; then :
6077 withval=$with_cloog_include;
6081 # Check whether --with-cloog-lib was given.
6082 if test "${with_cloog_lib+set}" = set; then :
6083 withval=$with_cloog_lib;
6087 # Check whether --enable-cloog-version-check was given.
6088 if test "${enable_cloog_version_check+set}" = set; then :
6089 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6091 ENABLE_CLOOG_CHECK=yes
6095 # Initialize clooglibs and clooginc.
6104 clooglibs="-L$with_cloog/lib"
6105 clooginc="-I$with_cloog/include"
6108 if test "x${with_cloog_include}" != x ; then
6109 clooginc="-I$with_cloog_include"
6111 if test "x${with_cloog_lib}" != x; then
6112 clooglibs="-L$with_cloog_lib"
6114 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6115 && test -d ${srcdir}/cloog; then
6116 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6117 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6118 ENABLE_CLOOG_CHECK=no
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6120 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6123 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6124 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6130 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6131 _cloog_saved_CFLAGS=$CFLAGS
6132 _cloog_saved_LDFLAGS=$LDFLAGS
6134 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6135 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6138 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 #include "cloog/version.h"
6145 #if CLOOG_VERSION_MAJOR != 0 \
6146 || CLOOG_VERSION_MINOR != 17 \
6147 || CLOOG_VERSION_REVISION < 0
6154 if ac_fn_c_try_compile "$LINENO"; then :
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6161 $as_echo "$gcc_cv_cloog" >&6; }
6163 CFLAGS=$_cloog_saved_CFLAGS
6164 LDFLAGS=$_cloog_saved_LDFLAGS
6168 if test "${gcc_cv_cloog}" = no ; then
6172 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6173 _cloog_saved_CFLAGS=$CFLAGS
6174 _cloog_saved_LDFLAGS=$LDFLAGS
6176 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6177 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6180 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 #include "cloog/version.h"
6187 #if CLOOG_VERSION_MAJOR != 0 \
6188 || CLOOG_VERSION_MINOR != 18 \
6189 || CLOOG_VERSION_REVISION < 0
6196 if ac_fn_c_try_compile "$LINENO"; then :
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6203 $as_echo "$gcc_cv_cloog" >&6; }
6205 CFLAGS=$_cloog_saved_CFLAGS
6206 LDFLAGS=$_cloog_saved_LDFLAGS
6216 if test "x${with_cloog}" = xno; then
6217 graphite_requested=no
6218 elif test "x${with_cloog}" != x \
6219 || test "x${with_cloog_include}" != x \
6220 || test "x${with_cloog_lib}" != x ; then
6221 graphite_requested=yes
6223 graphite_requested=no
6228 if test "${gcc_cv_cloog}" = no ; then
6233 if test "${graphite_requested}" = yes \
6234 && test "x${clooglibs}" = x \
6235 && test "x${clooginc}" = x ; then
6237 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6244 # If either the ISL or the CLooG check failed, disable builds of in-tree
6246 if test "x$with_isl" = xno ||
6247 test "x$with_cloog" = xno ||
6248 test "x$gcc_cv_cloog" = xno ||
6249 test "x$gcc_cv_isl" = xno; then
6250 noconfigdirs="$noconfigdirs cloog isl"
6261 # Check for LTO support.
6262 # Check whether --enable-lto was given.
6263 if test "${enable_lto+set}" = set; then :
6264 enableval=$enable_lto; enable_lto=$enableval
6266 enable_lto=yes; default_enable_lto=yes
6275 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6276 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6277 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6285 if test $target_elf = yes; then :
6286 # ELF platforms build the lto-plugin always.
6287 build_lto_plugin=yes
6290 if test x"$default_enable_lto" = x"yes" ; then
6292 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6293 # On other non-ELF platforms, LTO has yet to be validated.
6297 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6298 # It would also be nice to check the binutils support, but we don't
6299 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6300 # warn during gcc/ subconfigure; unless you're bootstrapping with
6301 # -flto it won't be needed until after installation anyway.
6303 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6304 *) if test x"$enable_lto" = x"yes"; then
6305 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6310 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6311 # Build it unless LTO was explicitly disabled.
6313 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6321 # By default, C and C++ are the only stage 1 languages.
6322 stage1_languages=,c,
6324 # Target libraries that we bootstrap.
6325 bootstrap_target_libs=,target-libgcc,
6327 # Figure out what language subdirectories are present.
6328 # Look if the user specified --enable-languages="..."; if not, use
6329 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6331 # NB: embedded tabs in this IF block -- do not untabify
6332 if test -d ${srcdir}/gcc; then
6333 if test x"${enable_languages+set}" != xset; then
6334 if test x"${LANGUAGES+set}" = xset; then
6335 enable_languages="${LANGUAGES}"
6336 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6338 enable_languages=all
6341 if test x"${enable_languages}" = x ||
6342 test x"${enable_languages}" = xyes;
6344 echo configure.in: --enable-languages needs at least one language argument 1>&2
6348 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6350 # 'f95' is the old name for the 'fortran' language. We issue a warning
6351 # and make the substitution.
6352 case ,${enable_languages}, in
6354 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6355 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6359 # If bootstrapping, C++ must be enabled.
6360 case ",$enable_languages,:$enable_bootstrap" in
6363 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6364 enable_languages="${enable_languages},c++"
6366 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6371 # First scan to see if an enabled language requires some other language.
6372 # We assume that a given config-lang.in will list all the language
6373 # front ends it requires, even if some are required indirectly.
6374 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6375 case ${lang_frag} in
6377 # The odd quoting in the next line works around
6378 # an apparent bug in bash 1.12 on linux.
6379 ${srcdir}/gcc/[*]/config-lang.in) ;;
6381 # From the config-lang.in, get $language, $lang_requires, and
6382 # $lang_requires_boot_languages.
6385 lang_requires_boot_languages=
6387 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6388 case ,${enable_languages}, in
6392 echo " \`$other' language required by \`$language'; enabling" 1>&2
6393 enable_languages="${enable_languages},${other}"
6397 for other in ${lang_requires_boot_languages} ; do
6398 if test "$other" != "c"; then
6399 case ,${enable_stage1_languages}, in
6403 case ,${enable_languages}, in
6405 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6406 enable_stage1_languages="$enable_stage1_languages,${other}"
6417 new_enable_languages=,c,
6419 # If LTO is enabled, add the LTO front end.
6420 extra_host_libiberty_configure_flags=
6421 if test "$enable_lto" = "yes" ; then
6422 case ,${enable_languages}, in
6424 *) enable_languages="${enable_languages},lto" ;;
6426 if test "${build_lto_plugin}" = "yes" ; then
6427 configdirs="$configdirs lto-plugin"
6428 extra_host_libiberty_configure_flags=--enable-shared
6433 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6434 potential_languages=,c,
6436 enabled_target_libs=
6437 disabled_target_libs=
6439 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6440 case ${lang_frag} in
6442 # The odd quoting in the next line works around
6443 # an apparent bug in bash 1.12 on linux.
6444 ${srcdir}/gcc/[*]/config-lang.in) ;;
6446 # From the config-lang.in, get $language, $target_libs,
6447 # $lang_dirs, $boot_language, and $build_by_default
6453 build_by_default=yes
6455 if test x${language} = x; then
6456 echo "${lang_frag} doesn't set \$language." 1>&2
6460 if test "$language" = "c++"; then
6465 case ,${enable_languages}, in
6467 # Language was explicitly selected; include it
6468 # unless it is C, which is enabled by default.
6469 if test "$language" != "c"; then
6474 # 'all' was selected, select it if it is a default language
6475 if test "$language" != "c"; then
6476 add_this_lang=${build_by_default}
6481 # Disable languages that need other directories if these aren't available.
6482 for i in $subdir_requires; do
6483 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6484 case ,${enable_languages}, in
6486 # Specifically requested language; tell them.
6487 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6491 add_this_lang=unsupported
6496 # Disable Ada if no preexisting GNAT is available.
6497 case ,${enable_languages},:${language}:${have_gnat} in
6498 *,${language},*:ada:no)
6499 # Specifically requested language; tell them.
6500 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6504 add_this_lang=unsupported
6508 # Disable a language that is unsupported by the target.
6509 case " $unsupported_languages " in
6511 add_this_lang=unsupported
6515 case $add_this_lang in
6517 # Remove language-dependent dirs.
6518 disabled_target_libs="$disabled_target_libs $target_libs"
6519 noconfigdirs="$noconfigdirs $lang_dirs"
6522 # Remove language-dependent dirs; still show language as supported.
6523 disabled_target_libs="$disabled_target_libs $target_libs"
6524 noconfigdirs="$noconfigdirs $lang_dirs"
6525 potential_languages="${potential_languages}${language},"
6528 new_enable_languages="${new_enable_languages}${language},"
6529 potential_languages="${potential_languages}${language},"
6530 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6531 enabled_target_libs="$enabled_target_libs $target_libs"
6532 case "${boot_language}:,$enable_stage1_languages," in
6533 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6534 # Add to (comma-separated) list of stage 1 languages.
6535 case ",$stage1_languages," in
6536 *,$language,* | ,yes, | ,all,) ;;
6537 *) stage1_languages="${stage1_languages}${language}," ;;
6539 # We need to bootstrap any supporting libraries.
6540 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6549 # Add target libraries which are only needed for disabled languages
6551 if test -n "$disabled_target_libs"; then
6552 for dir in $disabled_target_libs; do
6553 case " $enabled_target_libs " in
6555 *) noconfigdirs="$noconfigdirs $dir" ;;
6560 # Check whether --enable-stage1-languages was given.
6561 if test "${enable_stage1_languages+set}" = set; then :
6562 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6564 # Set it to something that will have no effect in the loop below
6565 enable_stage1_languages=c ;;
6567 enable_stage1_languages=`echo $new_enable_languages | \
6568 sed -e "s/^,//" -e "s/,$//" ` ;;
6570 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6571 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6574 # Add "good" languages from enable_stage1_languages to stage1_languages,
6575 # while "bad" languages go in missing_languages. Leave no duplicates.
6576 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6577 case $potential_languages in
6579 case $stage1_languages in
6581 *) stage1_languages="$stage1_languages$i," ;;
6584 case $missing_languages in
6586 *) missing_languages="$missing_languages$i," ;;
6593 # Remove leading/trailing commas that were added for simplicity
6594 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6595 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6596 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6597 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6599 if test "x$missing_languages" != x; then
6601 The following requested languages could not be built: ${missing_languages}
6602 Supported languages are: ${potential_languages}" "$LINENO" 5
6604 if test "x$new_enable_languages" != "x$enable_languages"; then
6605 echo The following languages will be built: ${new_enable_languages}
6606 enable_languages="$new_enable_languages"
6610 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6613 # Handle --disable-<component> generically.
6614 for dir in $configdirs $build_configdirs $target_configdirs ; do
6615 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6616 varname=`echo $dirname | sed -e s/+/_/g`
6617 if eval test x\${enable_${varname}} "=" xno ; then
6618 noconfigdirs="$noconfigdirs $dir"
6622 # Check for Boehm's garbage collector
6623 # Check whether --enable-objc-gc was given.
6624 if test "${enable_objc_gc+set}" = set; then :
6625 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6626 *,objc,*:*:yes:*target-boehm-gc*)
6627 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6633 # Make sure we only build Boehm's garbage collector if required.
6634 case ,${enable_languages},:${enable_objc_gc} in
6636 # Keep target-boehm-gc if requested for Objective-C.
6639 # Otherwise remove target-boehm-gc depending on target-libjava.
6640 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6641 noconfigdirs="$noconfigdirs target-boehm-gc"
6646 # Disable libitm, libsanitizer, libvtv if we're not building C++
6647 case ,${enable_languages}, in
6650 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6654 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6655 # $build_configdirs and $target_configdirs.
6656 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6659 for dir in . $skipdirs $noconfigdirs ; do
6660 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6661 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6662 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6663 if test -r $srcdir/$dirname/configure ; then
6664 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6667 notsupp="$notsupp $dir"
6671 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6672 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6673 if test -r $srcdir/$dirname/configure ; then
6674 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 notsupp="$notsupp $dir"
6681 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6682 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6683 if test -r $srcdir/$dirname/configure ; then
6684 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6687 notsupp="$notsupp $dir"
6693 # Quietly strip out all directories which aren't configurable in this tree.
6694 # This relies on all configurable subdirectories being autoconfiscated, which
6696 build_configdirs_all="$build_configdirs"
6698 for i in ${build_configdirs_all} ; do
6699 j=`echo $i | sed -e s/build-//g`
6700 if test -f ${srcdir}/$j/configure ; then
6701 build_configdirs="${build_configdirs} $i"
6705 configdirs_all="$configdirs"
6707 for i in ${configdirs_all} ; do
6708 if test -f ${srcdir}/$i/configure ; then
6709 configdirs="${configdirs} $i"
6713 target_configdirs_all="$target_configdirs"
6715 for i in ${target_configdirs_all} ; do
6716 j=`echo $i | sed -e s/target-//g`
6717 if test -f ${srcdir}/$j/configure ; then
6718 target_configdirs="${target_configdirs} $i"
6722 # Produce a warning message for the subdirs we can't configure.
6723 # This isn't especially interesting in the Cygnus tree, but in the individual
6724 # FSF releases, it's important to let people know when their machine isn't
6725 # supported by the one or two programs in a package.
6727 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6728 # If $appdirs is non-empty, at least one of those directories must still
6729 # be configured, or we error out. (E.g., if the gas release supports a
6730 # specified target in some subdirs but not the gas subdir, we shouldn't
6731 # pretend that all is well.)
6732 if test -n "$appdirs" ; then
6733 for dir in $appdirs ; do
6734 if test -r $dir/Makefile.in ; then
6735 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6739 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6745 if test -n "$appdirs" ; then
6746 echo "*** This configuration is not supported by this package." 1>&2
6750 # Okay, some application will build, or we don't care to check. Still
6751 # notify of subdirs not getting built.
6752 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6753 echo " ${notsupp}" 1>&2
6754 echo " (Any other directories should still work fine.)" 1>&2
6762 # To find our prefix, in gcc_cv_tool_prefix.
6764 # The user is always right.
6765 if test "${PATH_SEPARATOR+set}" != set; then
6766 echo "#! /bin/sh" >conf$$.sh
6767 echo "exit 0" >>conf$$.sh
6769 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6779 if test "x$exec_prefix" = xNONE; then
6780 if test "x$prefix" = xNONE; then
6781 gcc_cv_tool_prefix=$ac_default_prefix
6783 gcc_cv_tool_prefix=$prefix
6786 gcc_cv_tool_prefix=$exec_prefix
6789 # If there is no compiler in the tree, use the PATH only. In any
6790 # case, if there is no compiler in the tree nobody should use
6791 # AS_FOR_TARGET and LD_FOR_TARGET.
6792 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6793 gcc_version=`cat $srcdir/gcc/BASE-VER`
6794 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6795 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6796 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6797 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6798 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6799 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6804 if test x$build = x$target && test -n "$md_exec_prefix"; then
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6813 # Check whether --with-build-sysroot was given.
6814 if test "${with_build_sysroot+set}" = set; then :
6815 withval=$with_build_sysroot; if test x"$withval" != x ; then
6816 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6819 SYSROOT_CFLAGS_FOR_TARGET=
6825 # Check whether --with-debug-prefix-map was given.
6826 if test "${with_debug_prefix_map+set}" = set; then :
6827 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6828 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6829 for debug_map in $withval; do
6830 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6834 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6839 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6840 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6841 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6842 # We want to ensure that TARGET libraries (which we know are built with
6843 # gcc) are built with "-O2 -g", so include those options when setting
6844 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6845 if test "x$CFLAGS_FOR_TARGET" = x; then
6846 CFLAGS_FOR_TARGET=$CFLAGS
6849 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6852 *" -g "* | *" -g3 "*) ;;
6853 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6858 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6859 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6860 case " $CXXFLAGS " in
6862 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6864 case " $CXXFLAGS " in
6865 *" -g "* | *" -g3 "*) ;;
6866 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6873 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6874 # the named directory are copied to $(tooldir)/sys-include.
6875 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6876 if test x${is_cross_compiler} = xno ; then
6877 echo 1>&2 '***' --with-headers is only supported when cross compiling
6880 if test x"${with_headers}" != xyes ; then
6881 x=${gcc_cv_tool_prefix}
6882 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6886 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6887 # the name directories are copied to $(tooldir)/lib. Multiple directories
6889 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6890 if test x${is_cross_compiler} = xno ; then
6891 echo 1>&2 '***' --with-libs is only supported when cross compiling
6894 if test x"${with_libs}" != xyes ; then
6895 # Copy the libraries in reverse order, so that files in the first named
6896 # library override files in subsequent libraries.
6897 x=${gcc_cv_tool_prefix}
6898 for l in ${with_libs}; do
6899 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6904 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6906 # This is done by determining whether or not the appropriate directory
6907 # is available, and by checking whether or not specific configurations
6908 # have requested that this magic not happen.
6910 # The command line options always override the explicit settings in
6911 # configure.in, and the settings in configure.in override this magic.
6913 # If the default for a toolchain is to use GNU as and ld, and you don't
6914 # want to do that, then you should use the --without-gnu-as and
6915 # --without-gnu-ld options for the configure script. Similarly, if
6916 # the default is to use the included zlib and you don't want to do that,
6917 # you should use the --with-system-zlib option for the configure script.
6919 if test x${use_gnu_as} = x &&
6920 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6922 extra_host_args="$extra_host_args --with-gnu-as"
6925 if test x${use_gnu_ld} = x &&
6926 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6928 extra_host_args="$extra_host_args --with-gnu-ld"
6931 if test x${use_included_zlib} = x &&
6932 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6935 with_system_zlib=yes
6936 extra_host_args="$extra_host_args --with-system-zlib"
6939 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6940 # can detect this case.
6942 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6944 extra_host_args="$extra_host_args --with-newlib"
6947 # Handle ${copy_dirs}
6948 set fnord ${copy_dirs}
6950 while test $# != 0 ; do
6951 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6954 echo Copying $1 to $2
6956 # Use the install script to create the directory and all required
6957 # parent directories.
6958 if test -d $2 ; then
6962 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6965 # Copy the directory, assuming we have tar.
6966 # FIXME: Should we use B in the second tar? Not all systems support it.
6967 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6969 # It is the responsibility of the user to correctly adjust all
6970 # symlinks. If somebody can figure out how to handle them correctly
6971 # here, feel free to add the code.
6978 # Determine a target-dependent exec_prefix that the installed
6979 # gcc will search in. Keep this list sorted by triplet, with
6980 # the *-*-osname triplets last.
6983 i[34567]86-pc-msdosdjgpp*)
6984 md_exec_prefix=/dev/env/DJDIR/bin
6989 md_exec_prefix=/usr/ccs/bin
6993 extra_arflags_for_target=
6994 extra_nmflags_for_target=
6995 extra_ranlibflags_for_target=
6996 target_makefile_frag=/dev/null
6999 target_makefile_frag="config/mt-spu"
7001 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7002 target_makefile_frag="config/mt-sde"
7004 mipsisa*-*-elfoabi*)
7005 target_makefile_frag="config/mt-mips-elfoabi"
7007 mips*-*-*linux* | mips*-*-gnu*)
7008 target_makefile_frag="config/mt-mips-gnu"
7011 target_makefile_frag="config/mt-nios2-elf"
7013 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7014 target_makefile_frag="config/mt-gnu"
7016 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7017 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7018 # commands to handle both 32-bit and 64-bit objects. These flags are
7019 # harmless if we're using GNU nm or ar.
7020 extra_arflags_for_target=" -X32_64"
7021 extra_nmflags_for_target=" -B -X32_64"
7025 alphaieee_frag=/dev/null
7028 # This just makes sure to use the -mieee option to build target libs.
7029 # This should probably be set individually by each library.
7030 alphaieee_frag="config/mt-alphaieee"
7034 # If --enable-target-optspace always use -Os instead of -O2 to build
7035 # the target libraries, similarly if it is not specified, use -Os
7036 # on selected platforms.
7037 ospace_frag=/dev/null
7038 case "${enable_target_optspace}:${target}" in
7040 ospace_frag="config/mt-ospace"
7043 ospace_frag="config/mt-d30v"
7045 :m32r-* | :d10v-* | :fr30-*)
7046 ospace_frag="config/mt-ospace"
7051 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7055 # Some systems (e.g., one of the i386-aix systems the gas testers are
7056 # using) don't handle "\$" correctly, so don't use it here.
7057 tooldir='${exec_prefix}'/${target_noncanonical}
7058 build_tooldir=${tooldir}
7060 # Create a .gdbinit file which runs the one in srcdir
7061 # and tells GDB to look there for source files.
7063 if test -r ${srcdir}/.gdbinit ; then
7066 *) cat > ./.gdbinit <<EOF
7070 source ${srcdir}/.gdbinit
7076 # Make sure that the compiler is able to generate an executable. If it
7077 # can't, we are probably in trouble. We don't care whether we can run the
7078 # executable--we might be using a cross compiler--we only care whether it
7079 # can be created. At this point the main configure script has set CC.
7081 echo "int main () { return 0; }" > conftest.c
7082 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7083 if test $? = 0 ; then
7084 if test -s conftest || test -s conftest.exe ; then
7090 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7091 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7098 # Decide which environment variable is used to find dynamic libraries.
7100 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7101 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7102 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7103 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7106 # On systems where the dynamic library environment variable is PATH,
7107 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7108 # built executables to PATH.
7109 if test "$RPATH_ENVVAR" = PATH; then
7110 GCC_SHLIB_SUBDIR=/shlib
7115 # Adjust the toplevel makefile according to whether bootstrap was selected.
7116 case $enable_bootstrap in
7118 bootstrap_suffix=bootstrap
7119 BUILD_CONFIG=bootstrap-debug
7122 bootstrap_suffix=no-bootstrap
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7128 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7131 # Check whether --with-build-config was given.
7132 if test "${with_build_config+set}" = set; then :
7133 withval=$with_build_config; case $with_build_config in
7134 yes) with_build_config= ;;
7135 no) with_build_config= BUILD_CONFIG= ;;
7140 if test "x${with_build_config}" != x; then
7141 BUILD_CONFIG=$with_build_config
7143 case $BUILD_CONFIG in
7145 if echo "int f (void) { return 0; }" > conftest.c &&
7146 ${CC} -c conftest.c &&
7147 mv conftest.o conftest.o.g0 &&
7148 ${CC} -c -g conftest.c &&
7149 mv conftest.o conftest.o.g &&
7150 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7155 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7160 $as_echo "$BUILD_CONFIG" >&6; }
7163 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7165 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7166 # Check whether --enable-vtable-verify was given.
7167 if test "${enable_vtable_verify+set}" = set; then :
7168 enableval=$enable_vtable_verify; case "$enableval" in
7169 yes) enable_vtable_verify=yes ;;
7170 no) enable_vtable_verify=no ;;
7171 *) enable_vtable_verify=no;;
7174 enable_vtable_verify=no
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7178 $as_echo "$enable_vtable_verify" >&6; }
7180 # Record target_configdirs and the configure arguments for target and
7181 # build configuration in Makefile.
7182 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7183 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7184 bootstrap_fixincludes=no
7186 # If we are building libgomp, bootstrap it.
7187 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7188 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7191 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7192 # or bootstrap-ubsan, bootstrap it.
7193 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7194 case "$BUILD_CONFIG" in
7195 *bootstrap-asan* | *bootstrap-ubsan* )
7196 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7197 bootstrap_fixincludes=yes
7202 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7203 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7204 test "$enable_vtable_verify" != no; then
7205 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7208 # Determine whether gdb needs tk/tcl or not.
7209 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7210 # and in that case we want gdb to be built without tk. Ugh!
7211 # In fact I believe gdb is the *only* package directly dependent on tk,
7212 # so we should be able to put the 'maybe's in unconditionally and
7213 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7214 # 100% sure that that's safe though.
7216 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7217 case "$enable_gdbtk" in
7221 GDB_TK="${gdb_tk}" ;;
7223 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7224 # distro. Eventually someone will fix this and move Insight, nee
7225 # gdbtk to a separate directory.
7226 if test -d ${srcdir}/gdb/gdbtk ; then
7233 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7234 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7236 # Strip out unwanted targets.
7238 # While at that, we remove Makefiles if we were started for recursive
7239 # configuration, so that the top-level Makefile reconfigures them,
7240 # like we used to do when configure itself was recursive.
7242 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7243 # but now we're fixing up the Makefile ourselves with the additional
7244 # commands passed to AC_CONFIG_FILES. Use separate variables
7245 # extrasub-{build,host,target} not because there is any reason to split
7246 # the substitutions up that way, but only to remain below the limit of
7247 # 99 commands in a script, for HP-UX sed.
7248 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7250 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
7253 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7258 for module in ${build_configdirs} ; do
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7264 extrasub_build="$extrasub_build
7265 /^@if build-$module\$/d
7266 /^@endif build-$module\$/d
7267 /^@if build-$module-$bootstrap_suffix\$/d
7268 /^@endif build-$module-$bootstrap_suffix\$/d"
7271 for module in ${configdirs} ; do
7272 if test -z "${no_recursion}"; then
7273 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7274 if test -f ${file}; then
7275 echo 1>&2 "*** removing ${file} to force reconfigure"
7280 case ${module},${bootstrap_fixincludes} in
7281 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7282 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7284 extrasub_host="$extrasub_host
7286 /^@endif $module\$/d
7287 /^@if $module-$host_bootstrap_suffix\$/d
7288 /^@endif $module-$host_bootstrap_suffix\$/d"
7291 for module in ${target_configdirs} ; do
7292 if test -z "${no_recursion}" \
7293 && test -f ${target_subdir}/${module}/Makefile; then
7294 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7295 rm -f ${target_subdir}/${module}/Makefile
7298 # We only bootstrap target libraries listed in bootstrap_target_libs.
7299 case $bootstrap_target_libs in
7300 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7301 *) target_bootstrap_suffix=no-bootstrap ;;
7304 extrasub_target="$extrasub_target
7305 /^@if target-$module\$/d
7306 /^@endif target-$module\$/d
7307 /^@if target-$module-$target_bootstrap_suffix\$/d
7308 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7311 # Do the final fixup along with target modules.
7312 extrasub_target="$extrasub_target
7313 /^@if /,/^@endif /d"
7315 # Create the serialization dependencies. This uses a temporary file.
7317 # Check whether --enable-serial-configure was given.
7318 if test "${enable_serial_configure+set}" = set; then :
7319 enableval=$enable_serial_configure;
7323 case ${enable_serial_configure} in
7325 enable_serial_build_configure=yes
7326 enable_serial_host_configure=yes
7327 enable_serial_target_configure=yes
7331 # These force 'configure's to be done one at a time, to avoid problems
7332 # with contention over a shared config.cache.
7334 echo '# serdep.tmp' > serdep.tmp
7336 test "x${enable_serial_build_configure}" = xyes &&
7337 for item in ${build_configdirs} ; do
7340 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7345 test "x${enable_serial_host_configure}" = xyes &&
7346 for item in ${configdirs} ; do
7349 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7354 test "x${enable_serial_target_configure}" = xyes &&
7355 for item in ${target_configdirs} ; do
7358 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7362 serialization_dependencies=serdep.tmp
7365 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7366 # target, nonopt, and variable assignments. These are the ones we
7367 # might not want to pass down to subconfigures. The exception being
7368 # --cache-file=/dev/null, which is used to turn off the use of cache
7369 # files altogether, and which should be passed on to subconfigures.
7370 # Also strip program-prefix, program-suffix, and program-transform-name,
7371 # so that we can pass down a consistent program-transform-name.
7376 eval "set -- $ac_configure_args"
7379 if test X"$skip_next" = X"yes"; then
7383 if test X"$keep_next" = X"yes"; then
7386 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7388 baseargs="$baseargs '$ac_arg'"
7389 tbaseargs="$tbaseargs '$ac_arg'"
7394 # Handle separated arguments. Based on the logic generated by
7397 *=* | --config-cache | -C | -disable-* | --disable-* \
7398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7400 | -with-* | --with-* | -without-* | --without-* | --x)
7414 --with-* | --without-*)
7415 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7419 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7422 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 mpc | mpfr | gmp | cloog)
7432 # If we're processing --with-$lib, --with-$lib-include or
7433 # --with-$lib-lib, for one of the libs above, and target is
7434 # different from host, don't pass the current argument to any
7435 # target library's configure.
7436 if test x$is_cross_compiler = xyes; then
7445 --cache-file=/dev/null | \
7446 -cache-file=/dev/null )
7447 # Handled here to avoid the test to skip args below.
7448 baseargs="$baseargs '$ac_arg'"
7449 tbaseargs="$tbaseargs '$ac_arg'"
7450 # Assert: $separate_arg should always be no.
7451 keep_next=$separate_arg
7467 -program-prefix* | \
7468 -program-suffix* | \
7469 -program-transform-name* )
7470 skip_next=$separate_arg
7474 # An option. Add it.
7477 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7479 baseargs="$baseargs '$ac_arg'"
7480 if test X"$skip_targ" = Xno; then
7481 tbaseargs="$tbaseargs '$ac_arg'"
7483 keep_next=$separate_arg
7486 # Either a variable assignment, or a nonopt (triplet). Don't
7487 # pass it down; let the Makefile handle this.
7492 # Remove the initial space we just introduced and, as these will be
7493 # expanded by make, quote '$'.
7494 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7496 # Add in --program-transform-name, after --program-prefix and
7497 # --program-suffix have been applied to it. Autoconf has already
7498 # doubled dollar signs and backslashes in program_transform_name; we want
7499 # the backslashes un-doubled, and then the entire thing wrapped in single
7500 # quotes, because this will be expanded first by make and then by the shell.
7501 # Also, because we want to override the logic in subdir configure scripts to
7502 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7503 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7504 ${program_transform_name}
7506 gcc_transform_name=`cat conftestsed.out`
7507 rm -f conftestsed.out
7508 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7509 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7510 if test "$silent" = yes; then
7511 baseargs="$baseargs --silent"
7512 tbaseargs="$tbaseargs --silent"
7514 baseargs="$baseargs --disable-option-checking"
7515 tbaseargs="$tbaseargs --disable-option-checking"
7517 # Record and document user additions to sub configure arguments.
7522 # For the build-side libraries, we just need to pretend we're native,
7523 # and not use the same cache file. Multilibs are neither needed nor
7525 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7527 # For host modules, accept cache file option, or specification as blank.
7528 case "${cache_file}" in
7530 cache_file_option="" ;;
7531 /* | [A-Za-z]:[\\/]* ) # absolute path
7532 cache_file_option="--cache-file=${cache_file}" ;;
7534 cache_file_option="--cache-file=../${cache_file}" ;;
7537 # Host dirs don't like to share a cache file either, horribly enough.
7538 # This seems to be due to autoconf 2.5x stupidity.
7539 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7541 target_configargs="$target_configargs ${tbaseargs}"
7543 # Passing a --with-cross-host argument lets the target libraries know
7544 # whether they are being built with a cross-compiler or being built
7545 # native. However, it would be better to use other mechanisms to make the
7546 # sorts of decisions they want to make on this basis. Please consider
7547 # this option to be deprecated. FIXME.
7548 if test x${is_cross_compiler} = xyes ; then
7549 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7552 # Special user-friendly check for native x86_64-linux build, if
7553 # multilib is not explicitly enabled.
7554 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7555 x86_64-*linux*:yes:$build:$build:)
7556 # Make sure we have a developement environment that handles 32-bit
7558 echo "int main () { return 0; }" > conftest.c
7559 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7560 if test $? = 0 ; then
7561 if test -s conftest || test -s conftest.exe ; then
7566 if test x${dev64} != xyes ; then
7567 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
7572 # Default to --enable-multilib.
7573 if test x${enable_multilib} = x ; then
7574 target_configargs="--enable-multilib ${target_configargs}"
7577 # Pass --with-newlib if appropriate. Note that target_configdirs has
7578 # changed from the earlier setting of with_newlib.
7579 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7580 target_configargs="--with-newlib ${target_configargs}"
7583 # Different target subdirs use different values of certain variables
7584 # (notably CXX). Worse, multilibs use *lots* of different values.
7585 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7586 # it doesn't automatically accept command-line overrides of them.
7587 # This means it's not safe for target subdirs to share a cache file,
7588 # which is disgusting, but there you have it. Hopefully this can be
7589 # fixed in future. It's still worthwhile to use a cache file for each
7590 # directory. I think.
7592 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7593 # We need to pass --target, as newer autoconf's requires consistency
7594 # for target_alias and gcc doesn't manage it consistently.
7595 target_configargs="--cache-file=./config.cache ${target_configargs}"
7598 case " $target_configdirs " in
7600 case " $target_configargs " in
7601 *" --with-newlib "*)
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7608 # If we're not building GCC, don't discard standard headers.
7609 if test -d ${srcdir}/gcc; then
7610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7612 if test "${build}" != "${host}"; then
7613 # On Canadian crosses, CC_FOR_TARGET will have already been set
7614 # by `configure', so we won't have an opportunity to add -Bgcc/
7615 # to it. This is right: we don't want to search that directory
7616 # for binaries, but we want the header files in there, so add
7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7620 # Someone might think of using the pre-installed headers on
7621 # Canadian crosses, in case the installed compiler is not fully
7622 # compatible with the compiler being built. In this case, it
7623 # would be better to flag an error than risking having
7624 # incompatible object files being constructed. We can't
7625 # guarantee that an error will be flagged, but let's hope the
7626 # compiler will do it, when presented with incompatible header
7631 case "${target}-${is_cross_compiler}" in
7632 i[3456789]86-*-linux*-no)
7633 # Here host == target, so we don't need to build gcc,
7634 # so we don't want to discard standard headers.
7635 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7638 # If we're building newlib, use its generic headers last, but search
7639 # for any libc-related directories first (so make it the last -B
7641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7643 # If we're building libgloss, find the startup file, simulator library
7644 # and linker script.
7645 case " $target_configdirs " in
7647 # Look for startup file, simulator library and maybe linker script.
7648 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7649 # Look for libnosys.a in case the target needs it.
7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7651 # Most targets have the linker script in the source directory.
7652 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7663 x86_64-*mingw* | *-w64-mingw*)
7664 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7665 # however, use a symlink named 'mingw' in ${prefix} .
7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7669 # MinGW can't be handled as Cygwin above since it does not use newlib.
7670 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'
7674 # Allow the user to override the flags for
7675 # our build compiler if desired.
7676 if test x"${build}" = x"${host}" ; then
7677 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7678 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7679 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7682 # On Canadian crosses, we'll be searching the right directories for
7683 # the previously-installed cross compiler, so don't bother to add
7684 # flags for directories within the install tree of the compiler
7685 # being built; programs in there won't even run.
7686 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7687 # Search for pre-installed headers if nothing else fits.
7688 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7691 if test "x${use_gnu_ld}" = x &&
7692 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7693 # Arrange for us to find uninstalled linker scripts.
7694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7697 # Search for other target-specific linker scripts and such.
7700 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7704 # Makefile fragments.
7705 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7707 eval fragval=\$$frag
7708 if test $fragval != /dev/null; then
7709 eval $frag=${srcdir}/$fragval
7717 # Miscellanea: directories, flags, etc.
7726 # Build module lists & subconfigure args.
7730 # Host module lists & subconfigure args.
7735 # Target module lists & subconfigure args.
7757 # Generate default definitions for YACC, M4, LEX and other programs that run
7758 # on the build machine. These are used if the Makefile can't locate these
7759 # programs in objdir.
7760 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7762 for ac_prog in 'bison -y' byacc yacc
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_YACC+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7771 if test -n "$YACC"; then
7772 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_YACC="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 YACC=$ac_cv_prog_YACC
7792 if test -n "$YACC"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7794 $as_echo "$YACC" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 test -n "$YACC" && break
7803 test -n "$YACC" || YACC="$MISSING bison -y"
7805 case " $build_configdirs " in
7806 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7809 for ac_prog in bison
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_BISON+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7818 if test -n "$BISON"; then
7819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_BISON="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 BISON=$ac_cv_prog_BISON
7839 if test -n "$BISON"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7841 $as_echo "$BISON" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$BISON" && break
7850 test -n "$BISON" || BISON="$MISSING bison"
7852 case " $build_configdirs " in
7853 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7856 for ac_prog in gm4 gnum4 m4
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_M4+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7865 if test -n "$M4"; then
7866 ac_cv_prog_M4="$M4" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_M4="$ac_prog"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 if test -n "$M4"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7888 $as_echo "$M4" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 test -n "$M4" && break
7897 test -n "$M4" || M4="$MISSING m4"
7899 case " $build_configdirs " in
7900 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7903 for ac_prog in flex lex
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906 set dummy $ac_prog; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if test "${ac_cv_prog_LEX+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7912 if test -n "$LEX"; then
7913 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_prog_LEX="$ac_prog"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 if test -n "$LEX"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7935 $as_echo "$LEX" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7942 test -n "$LEX" && break
7944 test -n "$LEX" || LEX="$MISSING flex"
7946 case " $build_configdirs " in
7947 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7948 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_FLEX+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7960 if test -n "$FLEX"; then
7961 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_FLEX="$ac_prog"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 FLEX=$ac_cv_prog_FLEX
7981 if test -n "$FLEX"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7983 $as_echo "$FLEX" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7990 test -n "$FLEX" && break
7992 test -n "$FLEX" || FLEX="$MISSING flex"
7994 case " $build_configdirs " in
7995 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7998 for ac_prog in makeinfo
8000 # Extract the first word of "$ac_prog", so it can be a program name with args.
8001 set dummy $ac_prog; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8007 if test -n "$MAKEINFO"; then
8008 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_prog_MAKEINFO="$ac_prog"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 MAKEINFO=$ac_cv_prog_MAKEINFO
8028 if test -n "$MAKEINFO"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8030 $as_echo "$MAKEINFO" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8037 test -n "$MAKEINFO" && break
8039 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8041 case " $build_configdirs " in
8042 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8045 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8046 # higher, else we use the "missing" dummy.
8047 if ${MAKEINFO} --version \
8048 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8051 MAKEINFO="$MISSING makeinfo"
8057 # FIXME: expect and dejagnu may become build tools?
8059 for ac_prog in expect
8061 # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$EXPECT"; then
8069 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_EXPECT="$ac_prog"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 EXPECT=$ac_cv_prog_EXPECT
8089 if test -n "$EXPECT"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8091 $as_echo "$EXPECT" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8098 test -n "$EXPECT" && break
8100 test -n "$EXPECT" || EXPECT="expect"
8102 case " $configdirs " in
8104 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8108 for ac_prog in runtest
8110 # Extract the first word of "$ac_prog", so it can be a program name with args.
8111 set dummy $ac_prog; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$RUNTEST"; then
8118 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_RUNTEST="$ac_prog"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 RUNTEST=$ac_cv_prog_RUNTEST
8138 if test -n "$RUNTEST"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8140 $as_echo "$RUNTEST" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8147 test -n "$RUNTEST" && break
8149 test -n "$RUNTEST" || RUNTEST="runtest"
8151 case " $configdirs " in
8153 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8160 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8161 ncn_target_tool_prefix=
8162 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8166 if test -n "$AR"; then
8168 elif test -n "$ac_cv_prog_AR"; then
8172 if test -n "$ac_cv_prog_AR"; then
8173 for ncn_progname in ar; do
8174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8175 set dummy ${ncn_progname}; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if test "${ac_cv_prog_AR+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8181 if test -n "$AR"; then
8182 ac_cv_prog_AR="$AR" # Let the user override the test.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_prog_AR="${ncn_progname}"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 if test -n "$AR"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8204 $as_echo "$AR" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8214 for ncn_progname in ar; do
8215 if test -n "$ncn_tool_prefix"; then
8216 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8217 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_AR+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$AR"; then
8224 ac_cv_prog_AR="$AR" # Let the user override the test.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 if test -n "$AR"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8246 $as_echo "$AR" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8256 set dummy ${ncn_progname}; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if test "${ac_cv_prog_AR+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8262 if test -n "$AR"; then
8263 ac_cv_prog_AR="$AR" # Let the user override the test.
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_prog_AR="${ncn_progname}"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 if test -n "$AR"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8285 $as_echo "$AR" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8293 test -n "$ac_cv_prog_AR" && break
8296 if test -z "$ac_cv_prog_AR" ; then
8298 if test $build = $host ; then
8301 AR="${ncn_tool_prefix}$2"
8307 if test -n "$AS"; then
8309 elif test -n "$ac_cv_prog_AS"; then
8313 if test -n "$ac_cv_prog_AS"; then
8314 for ncn_progname in as; do
8315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8316 set dummy ${ncn_progname}; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_AS+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 if test -n "$AS"; then
8323 ac_cv_prog_AS="$AS" # Let the user override the test.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_AS="${ncn_progname}"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 if test -n "$AS"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8345 $as_echo "$AS" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8355 for ncn_progname in as; do
8356 if test -n "$ncn_tool_prefix"; then
8357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8358 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_AS+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8364 if test -n "$AS"; then
8365 ac_cv_prog_AS="$AS" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 if test -n "$AS"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8387 $as_echo "$AS" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8395 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8397 set dummy ${ncn_progname}; ac_word=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if test "${ac_cv_prog_AS+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8403 if test -n "$AS"; then
8404 ac_cv_prog_AS="$AS" # Let the user override the test.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_prog_AS="${ncn_progname}"
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 if test -n "$AS"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8426 $as_echo "$AS" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8434 test -n "$ac_cv_prog_AS" && break
8437 if test -z "$ac_cv_prog_AS" ; then
8439 if test $build = $host ; then
8442 AS="${ncn_tool_prefix}$2"
8448 if test -n "$DLLTOOL"; then
8449 ac_cv_prog_DLLTOOL=$DLLTOOL
8450 elif test -n "$ac_cv_prog_DLLTOOL"; then
8451 DLLTOOL=$ac_cv_prog_DLLTOOL
8454 if test -n "$ac_cv_prog_DLLTOOL"; then
8455 for ncn_progname in dlltool; do
8456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8457 set dummy ${ncn_progname}; ac_word=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8463 if test -n "$DLLTOOL"; then
8464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_prog_DLLTOOL="${ncn_progname}"
8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 DLLTOOL=$ac_cv_prog_DLLTOOL
8484 if test -n "$DLLTOOL"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8486 $as_echo "$DLLTOOL" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8496 for ncn_progname in dlltool; do
8497 if test -n "$ncn_tool_prefix"; then
8498 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8499 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8505 if test -n "$DLLTOOL"; then
8506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 DLLTOOL=$ac_cv_prog_DLLTOOL
8526 if test -n "$DLLTOOL"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8528 $as_echo "$DLLTOOL" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8538 set dummy ${ncn_progname}; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8544 if test -n "$DLLTOOL"; then
8545 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_prog_DLLTOOL="${ncn_progname}"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 DLLTOOL=$ac_cv_prog_DLLTOOL
8565 if test -n "$DLLTOOL"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8567 $as_echo "$DLLTOOL" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8575 test -n "$ac_cv_prog_DLLTOOL" && break
8578 if test -z "$ac_cv_prog_DLLTOOL" ; then
8580 if test $build = $host ; then
8583 DLLTOOL="${ncn_tool_prefix}$2"
8589 if test -n "$LD"; then
8591 elif test -n "$ac_cv_prog_LD"; then
8595 if test -n "$ac_cv_prog_LD"; then
8596 for ncn_progname in ld; do
8597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8598 set dummy ${ncn_progname}; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_prog_LD+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8604 if test -n "$LD"; then
8605 ac_cv_prog_LD="$LD" # Let the user override the test.
8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 test -z "$as_dir" && as_dir=.
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8614 ac_cv_prog_LD="${ncn_progname}"
8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 if test -n "$LD"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8627 $as_echo "$LD" >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8637 for ncn_progname in ld; do
8638 if test -n "$ncn_tool_prefix"; then
8639 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8640 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if test "${ac_cv_prog_LD+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8646 if test -n "$LD"; then
8647 ac_cv_prog_LD="$LD" # Let the user override the test.
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 if test -n "$LD"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8669 $as_echo "$LD" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8677 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8679 set dummy ${ncn_progname}; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if test "${ac_cv_prog_LD+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 if test -n "$LD"; then
8686 ac_cv_prog_LD="$LD" # Let the user override the test.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8695 ac_cv_prog_LD="${ncn_progname}"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 if test -n "$LD"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8708 $as_echo "$LD" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8716 test -n "$ac_cv_prog_LD" && break
8719 if test -z "$ac_cv_prog_LD" ; then
8721 if test $build = $host ; then
8724 LD="${ncn_tool_prefix}$2"
8730 if test -n "$LIPO"; then
8731 ac_cv_prog_LIPO=$LIPO
8732 elif test -n "$ac_cv_prog_LIPO"; then
8733 LIPO=$ac_cv_prog_LIPO
8736 if test -n "$ac_cv_prog_LIPO"; then
8737 for ncn_progname in lipo; do
8738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8739 set dummy ${ncn_progname}; ac_word=$2
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741 $as_echo_n "checking for $ac_word... " >&6; }
8742 if test "${ac_cv_prog_LIPO+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8745 if test -n "$LIPO"; then
8746 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_prog_LIPO="${ncn_progname}"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 LIPO=$ac_cv_prog_LIPO
8766 if test -n "$LIPO"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8768 $as_echo "$LIPO" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8778 for ncn_progname in lipo; do
8779 if test -n "$ncn_tool_prefix"; then
8780 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8781 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_LIPO+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$LIPO"; then
8788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 LIPO=$ac_cv_prog_LIPO
8808 if test -n "$LIPO"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8810 $as_echo "$LIPO" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8818 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8820 set dummy ${ncn_progname}; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_LIPO+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$LIPO"; then
8827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_prog_LIPO="${ncn_progname}"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 LIPO=$ac_cv_prog_LIPO
8847 if test -n "$LIPO"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8849 $as_echo "$LIPO" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8857 test -n "$ac_cv_prog_LIPO" && break
8860 if test -z "$ac_cv_prog_LIPO" ; then
8862 if test $build = $host ; then
8865 LIPO="${ncn_tool_prefix}$2"
8871 if test -n "$NM"; then
8873 elif test -n "$ac_cv_prog_NM"; then
8877 if test -n "$ac_cv_prog_NM"; then
8878 for ncn_progname in nm; do
8879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8880 set dummy ${ncn_progname}; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_prog_NM+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8886 if test -n "$NM"; then
8887 ac_cv_prog_NM="$NM" # Let the user override the test.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_prog_NM="${ncn_progname}"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 if test -n "$NM"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8909 $as_echo "$NM" >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8919 for ncn_progname in nm; do
8920 if test -n "$ncn_tool_prefix"; then
8921 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8922 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if test "${ac_cv_prog_NM+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8928 if test -n "$NM"; then
8929 ac_cv_prog_NM="$NM" # Let the user override the test.
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 if test -n "$NM"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8951 $as_echo "$NM" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8959 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8961 set dummy ${ncn_progname}; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if test "${ac_cv_prog_NM+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8967 if test -n "$NM"; then
8968 ac_cv_prog_NM="$NM" # Let the user override the test.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977 ac_cv_prog_NM="${ncn_progname}"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 if test -n "$NM"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8990 $as_echo "$NM" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8998 test -n "$ac_cv_prog_NM" && break
9001 if test -z "$ac_cv_prog_NM" ; then
9003 if test $build = $host ; then
9006 NM="${ncn_tool_prefix}$2"
9012 if test -n "$RANLIB"; then
9013 ac_cv_prog_RANLIB=$RANLIB
9014 elif test -n "$ac_cv_prog_RANLIB"; then
9015 RANLIB=$ac_cv_prog_RANLIB
9018 if test -n "$ac_cv_prog_RANLIB"; then
9019 for ncn_progname in ranlib; do
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021 set dummy ${ncn_progname}; ac_word=$2
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 $as_echo_n "checking for $ac_word... " >&6; }
9024 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 if test -n "$RANLIB"; then
9028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_prog_RANLIB="${ncn_progname}"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 RANLIB=$ac_cv_prog_RANLIB
9048 if test -n "$RANLIB"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9050 $as_echo "$RANLIB" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9060 for ncn_progname in ranlib; do
9061 if test -n "$ncn_tool_prefix"; then
9062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9063 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9069 if test -n "$RANLIB"; then
9070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 RANLIB=$ac_cv_prog_RANLIB
9090 if test -n "$RANLIB"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9092 $as_echo "$RANLIB" >&6; }
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9100 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9102 set dummy ${ncn_progname}; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 if test -n "$RANLIB"; then
9109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_prog_RANLIB="${ncn_progname}"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 RANLIB=$ac_cv_prog_RANLIB
9129 if test -n "$RANLIB"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9131 $as_echo "$RANLIB" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9139 test -n "$ac_cv_prog_RANLIB" && break
9142 if test -z "$ac_cv_prog_RANLIB" ; then
9148 if test -n "$STRIP"; then
9149 ac_cv_prog_STRIP=$STRIP
9150 elif test -n "$ac_cv_prog_STRIP"; then
9151 STRIP=$ac_cv_prog_STRIP
9154 if test -n "$ac_cv_prog_STRIP"; then
9155 for ncn_progname in strip; do
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9157 set dummy ${ncn_progname}; ac_word=$2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159 $as_echo_n "checking for $ac_word... " >&6; }
9160 if test "${ac_cv_prog_STRIP+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9163 if test -n "$STRIP"; then
9164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_prog_STRIP="${ncn_progname}"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 STRIP=$ac_cv_prog_STRIP
9184 if test -n "$STRIP"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9186 $as_echo "$STRIP" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9196 for ncn_progname in strip; do
9197 if test -n "$ncn_tool_prefix"; then
9198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_STRIP+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9205 if test -n "$STRIP"; then
9206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 STRIP=$ac_cv_prog_STRIP
9226 if test -n "$STRIP"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9228 $as_echo "$STRIP" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238 set dummy ${ncn_progname}; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_prog_STRIP+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9244 if test -n "$STRIP"; then
9245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_prog_STRIP="${ncn_progname}"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 STRIP=$ac_cv_prog_STRIP
9265 if test -n "$STRIP"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9267 $as_echo "$STRIP" >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9275 test -n "$ac_cv_prog_STRIP" && break
9278 if test -z "$ac_cv_prog_STRIP" ; then
9284 if test -n "$WINDRES"; then
9285 ac_cv_prog_WINDRES=$WINDRES
9286 elif test -n "$ac_cv_prog_WINDRES"; then
9287 WINDRES=$ac_cv_prog_WINDRES
9290 if test -n "$ac_cv_prog_WINDRES"; then
9291 for ncn_progname in windres; do
9292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9293 set dummy ${ncn_progname}; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9299 if test -n "$WINDRES"; then
9300 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_prog_WINDRES="${ncn_progname}"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 WINDRES=$ac_cv_prog_WINDRES
9320 if test -n "$WINDRES"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9322 $as_echo "$WINDRES" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9332 for ncn_progname in windres; do
9333 if test -n "$ncn_tool_prefix"; then
9334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9341 if test -n "$WINDRES"; then
9342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 WINDRES=$ac_cv_prog_WINDRES
9362 if test -n "$WINDRES"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9364 $as_echo "$WINDRES" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9374 set dummy ${ncn_progname}; ac_word=$2
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9378 $as_echo_n "(cached) " >&6
9380 if test -n "$WINDRES"; then
9381 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_prog_WINDRES="${ncn_progname}"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 WINDRES=$ac_cv_prog_WINDRES
9401 if test -n "$WINDRES"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9403 $as_echo "$WINDRES" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9411 test -n "$ac_cv_prog_WINDRES" && break
9414 if test -z "$ac_cv_prog_WINDRES" ; then
9416 if test $build = $host ; then
9419 WINDRES="${ncn_tool_prefix}$2"
9425 if test -n "$WINDMC"; then
9426 ac_cv_prog_WINDMC=$WINDMC
9427 elif test -n "$ac_cv_prog_WINDMC"; then
9428 WINDMC=$ac_cv_prog_WINDMC
9431 if test -n "$ac_cv_prog_WINDMC"; then
9432 for ncn_progname in windmc; do
9433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9434 set dummy ${ncn_progname}; ac_word=$2
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436 $as_echo_n "checking for $ac_word... " >&6; }
9437 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9440 if test -n "$WINDMC"; then
9441 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_prog_WINDMC="${ncn_progname}"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 WINDMC=$ac_cv_prog_WINDMC
9461 if test -n "$WINDMC"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9463 $as_echo "$WINDMC" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9473 for ncn_progname in windmc; do
9474 if test -n "$ncn_tool_prefix"; then
9475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9476 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
9482 if test -n "$WINDMC"; then
9483 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9492 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 WINDMC=$ac_cv_prog_WINDMC
9503 if test -n "$WINDMC"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9505 $as_echo "$WINDMC" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9513 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9515 set dummy ${ncn_progname}; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9521 if test -n "$WINDMC"; then
9522 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9531 ac_cv_prog_WINDMC="${ncn_progname}"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 WINDMC=$ac_cv_prog_WINDMC
9542 if test -n "$WINDMC"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9544 $as_echo "$WINDMC" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9552 test -n "$ac_cv_prog_WINDMC" && break
9555 if test -z "$ac_cv_prog_WINDMC" ; then
9557 if test $build = $host ; then
9560 WINDMC="${ncn_tool_prefix}$2"
9566 if test -n "$OBJCOPY"; then
9567 ac_cv_prog_OBJCOPY=$OBJCOPY
9568 elif test -n "$ac_cv_prog_OBJCOPY"; then
9569 OBJCOPY=$ac_cv_prog_OBJCOPY
9572 if test -n "$ac_cv_prog_OBJCOPY"; then
9573 for ncn_progname in objcopy; do
9574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9575 set dummy ${ncn_progname}; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9581 if test -n "$OBJCOPY"; then
9582 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_prog_OBJCOPY="${ncn_progname}"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 OBJCOPY=$ac_cv_prog_OBJCOPY
9602 if test -n "$OBJCOPY"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9604 $as_echo "$OBJCOPY" >&6; }
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9614 for ncn_progname in objcopy; do
9615 if test -n "$ncn_tool_prefix"; then
9616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9617 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9623 if test -n "$OBJCOPY"; then
9624 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 OBJCOPY=$ac_cv_prog_OBJCOPY
9644 if test -n "$OBJCOPY"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9646 $as_echo "$OBJCOPY" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9654 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9656 set dummy ${ncn_progname}; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9662 if test -n "$OBJCOPY"; then
9663 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_prog_OBJCOPY="${ncn_progname}"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 OBJCOPY=$ac_cv_prog_OBJCOPY
9683 if test -n "$OBJCOPY"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9685 $as_echo "$OBJCOPY" >&6; }
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9693 test -n "$ac_cv_prog_OBJCOPY" && break
9696 if test -z "$ac_cv_prog_OBJCOPY" ; then
9698 if test $build = $host ; then
9701 OBJCOPY="${ncn_tool_prefix}$2"
9707 if test -n "$OBJDUMP"; then
9708 ac_cv_prog_OBJDUMP=$OBJDUMP
9709 elif test -n "$ac_cv_prog_OBJDUMP"; then
9710 OBJDUMP=$ac_cv_prog_OBJDUMP
9713 if test -n "$ac_cv_prog_OBJDUMP"; then
9714 for ncn_progname in objdump; do
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716 set dummy ${ncn_progname}; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
9722 if test -n "$OBJDUMP"; then
9723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9732 ac_cv_prog_OBJDUMP="${ncn_progname}"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 OBJDUMP=$ac_cv_prog_OBJDUMP
9743 if test -n "$OBJDUMP"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9745 $as_echo "$OBJDUMP" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9755 for ncn_progname in objdump; do
9756 if test -n "$ncn_tool_prefix"; then
9757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9758 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9764 if test -n "$OBJDUMP"; then
9765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 OBJDUMP=$ac_cv_prog_OBJDUMP
9785 if test -n "$OBJDUMP"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9787 $as_echo "$OBJDUMP" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9795 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9797 set dummy ${ncn_progname}; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9803 if test -n "$OBJDUMP"; then
9804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_prog_OBJDUMP="${ncn_progname}"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 OBJDUMP=$ac_cv_prog_OBJDUMP
9824 if test -n "$OBJDUMP"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9826 $as_echo "$OBJDUMP" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9834 test -n "$ac_cv_prog_OBJDUMP" && break
9837 if test -z "$ac_cv_prog_OBJDUMP" ; then
9839 if test $build = $host ; then
9842 OBJDUMP="${ncn_tool_prefix}$2"
9848 if test -n "$READELF"; then
9849 ac_cv_prog_READELF=$READELF
9850 elif test -n "$ac_cv_prog_READELF"; then
9851 READELF=$ac_cv_prog_READELF
9854 if test -n "$ac_cv_prog_READELF"; then
9855 for ncn_progname in readelf; do
9856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9857 set dummy ${ncn_progname}; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if test "${ac_cv_prog_READELF+set}" = set; then :
9861 $as_echo_n "(cached) " >&6
9863 if test -n "$READELF"; then
9864 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873 ac_cv_prog_READELF="${ncn_progname}"
9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 READELF=$ac_cv_prog_READELF
9884 if test -n "$READELF"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9886 $as_echo "$READELF" >&6; }
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9896 for ncn_progname in readelf; do
9897 if test -n "$ncn_tool_prefix"; then
9898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9899 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if test "${ac_cv_prog_READELF+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9905 if test -n "$READELF"; then
9906 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 READELF=$ac_cv_prog_READELF
9926 if test -n "$READELF"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9928 $as_echo "$READELF" >&6; }
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9936 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9938 set dummy ${ncn_progname}; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if test "${ac_cv_prog_READELF+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9944 if test -n "$READELF"; then
9945 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_prog_READELF="${ncn_progname}"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 READELF=$ac_cv_prog_READELF
9965 if test -n "$READELF"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9967 $as_echo "$READELF" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 test -n "$ac_cv_prog_READELF" && break
9978 if test -z "$ac_cv_prog_READELF" ; then
9980 if test $build = $host ; then
9983 READELF="${ncn_tool_prefix}$2"
9994 # Check whether --with-build-time-tools was given.
9995 if test "${with_build_time_tools+set}" = set; then :
9996 withval=$with_build_time_tools; case x"$withval" in
9999 with_build_time_tools=
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10001 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10005 with_build_time_tools=
10011 if test -n "$CC_FOR_TARGET"; then
10012 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10013 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10014 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10017 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10018 for ncn_progname in cc gcc; do
10019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10020 set dummy ${ncn_progname}; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10026 if test -n "$CC_FOR_TARGET"; then
10027 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10047 if test -n "$CC_FOR_TARGET"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10049 $as_echo "$CC_FOR_TARGET" >&6; }
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10059 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10060 for ncn_progname in cc gcc; do
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10062 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10063 if test -x $with_build_time_tools/${ncn_progname}; then
10064 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10066 $as_echo "yes" >&6; }
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10075 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10076 for ncn_progname in cc gcc; do
10077 if test -n "$ncn_target_tool_prefix"; then
10078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10079 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10085 if test -n "$CC_FOR_TARGET"; then
10086 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10106 if test -n "$CC_FOR_TARGET"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10108 $as_echo "$CC_FOR_TARGET" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10118 set dummy ${ncn_progname}; ac_word=$2
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120 $as_echo_n "checking for $ac_word... " >&6; }
10121 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10124 if test -n "$CC_FOR_TARGET"; then
10125 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10145 if test -n "$CC_FOR_TARGET"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10147 $as_echo "$CC_FOR_TARGET" >&6; }
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10155 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10159 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10161 if test $build = $target ; then
10164 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10167 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10172 if test -n "$CXX_FOR_TARGET"; then
10173 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10174 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10175 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10178 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10179 for ncn_progname in c++ g++ cxx gxx; do
10180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10181 set dummy ${ncn_progname}; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10187 if test -n "$CXX_FOR_TARGET"; then
10188 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10197 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10208 if test -n "$CXX_FOR_TARGET"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10210 $as_echo "$CXX_FOR_TARGET" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10220 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10221 for ncn_progname in c++ g++ cxx gxx; do
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10223 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10224 if test -x $with_build_time_tools/${ncn_progname}; then
10225 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10227 $as_echo "yes" >&6; }
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10236 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10237 for ncn_progname in c++ g++ cxx gxx; do
10238 if test -n "$ncn_target_tool_prefix"; then
10239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10246 if test -n "$CXX_FOR_TARGET"; then
10247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10256 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10267 if test -n "$CXX_FOR_TARGET"; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10269 $as_echo "$CXX_FOR_TARGET" >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10277 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10279 set dummy ${ncn_progname}; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10285 if test -n "$CXX_FOR_TARGET"; then
10286 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10306 if test -n "$CXX_FOR_TARGET"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10308 $as_echo "$CXX_FOR_TARGET" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10316 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10320 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10321 set dummy c++ g++ cxx gxx
10322 if test $build = $target ; then
10323 CXX_FOR_TARGET="$2"
10325 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10328 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10333 if test -n "$GCC_FOR_TARGET"; then
10334 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10335 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10336 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10339 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10340 for ncn_progname in gcc; do
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10342 set dummy ${ncn_progname}; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$GCC_FOR_TARGET"; then
10349 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10369 if test -n "$GCC_FOR_TARGET"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10371 $as_echo "$GCC_FOR_TARGET" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10381 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10382 for ncn_progname in gcc; do
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10384 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10385 if test -x $with_build_time_tools/${ncn_progname}; then
10386 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388 $as_echo "yes" >&6; }
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10397 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10398 for ncn_progname in gcc; do
10399 if test -n "$ncn_target_tool_prefix"; then
10400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10401 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10407 if test -n "$GCC_FOR_TARGET"; then
10408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10428 if test -n "$GCC_FOR_TARGET"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10430 $as_echo "$GCC_FOR_TARGET" >&6; }
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10438 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10440 set dummy ${ncn_progname}; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10446 if test -n "$GCC_FOR_TARGET"; then
10447 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10467 if test -n "$GCC_FOR_TARGET"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10469 $as_echo "$GCC_FOR_TARGET" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10477 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10481 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10482 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10484 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10489 if test -n "$GCJ_FOR_TARGET"; then
10490 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10491 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10492 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10496 for ncn_progname in gcj; do
10497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10498 set dummy ${ncn_progname}; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10504 if test -n "$GCJ_FOR_TARGET"; then
10505 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10514 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10525 if test -n "$GCJ_FOR_TARGET"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10527 $as_echo "$GCJ_FOR_TARGET" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10537 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10538 for ncn_progname in gcj; do
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10540 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10541 if test -x $with_build_time_tools/${ncn_progname}; then
10542 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544 $as_echo "yes" >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10553 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10554 for ncn_progname in gcj; do
10555 if test -n "$ncn_target_tool_prefix"; then
10556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10557 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10563 if test -n "$GCJ_FOR_TARGET"; then
10564 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10584 if test -n "$GCJ_FOR_TARGET"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10586 $as_echo "$GCJ_FOR_TARGET" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10594 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10596 set dummy ${ncn_progname}; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10602 if test -n "$GCJ_FOR_TARGET"; then
10603 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $PATH
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10623 if test -n "$GCJ_FOR_TARGET"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10625 $as_echo "$GCJ_FOR_TARGET" >&6; }
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10633 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10637 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10639 if test $build = $target ; then
10640 GCJ_FOR_TARGET="$2"
10642 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10645 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10650 if test -n "$GFORTRAN_FOR_TARGET"; then
10651 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10652 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10653 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10656 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10657 for ncn_progname in gfortran; do
10658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10659 set dummy ${ncn_progname}; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
10665 if test -n "$GFORTRAN_FOR_TARGET"; then
10666 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in $PATH
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10686 if test -n "$GFORTRAN_FOR_TARGET"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10688 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10698 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10699 for ncn_progname in gfortran; do
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10701 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10702 if test -x $with_build_time_tools/${ncn_progname}; then
10703 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10705 $as_echo "yes" >&6; }
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10714 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10715 for ncn_progname in gfortran; do
10716 if test -n "$ncn_target_tool_prefix"; then
10717 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10718 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10724 if test -n "$GFORTRAN_FOR_TARGET"; then
10725 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10745 if test -n "$GFORTRAN_FOR_TARGET"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10747 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757 set dummy ${ncn_progname}; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10763 if test -n "$GFORTRAN_FOR_TARGET"; then
10764 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10784 if test -n "$GFORTRAN_FOR_TARGET"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10786 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10794 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10798 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10800 if test $build = $target ; then
10801 GFORTRAN_FOR_TARGET="$2"
10803 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10806 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10811 if test -n "$GOC_FOR_TARGET"; then
10812 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10813 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10814 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10818 for ncn_progname in gccgo; do
10819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10820 set dummy ${ncn_progname}; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 if test -n "$GOC_FOR_TARGET"; then
10827 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10847 if test -n "$GOC_FOR_TARGET"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10849 $as_echo "$GOC_FOR_TARGET" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10859 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10860 for ncn_progname in gccgo; do
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10862 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10863 if test -x $with_build_time_tools/${ncn_progname}; then
10864 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10866 $as_echo "yes" >&6; }
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870 $as_echo "no" >&6; }
10875 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10876 for ncn_progname in gccgo; do
10877 if test -n "$ncn_target_tool_prefix"; then
10878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10879 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10885 if test -n "$GOC_FOR_TARGET"; then
10886 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10906 if test -n "$GOC_FOR_TARGET"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10908 $as_echo "$GOC_FOR_TARGET" >&6; }
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10916 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10924 if test -n "$GOC_FOR_TARGET"; then
10925 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10945 if test -n "$GOC_FOR_TARGET"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10947 $as_echo "$GOC_FOR_TARGET" >&6; }
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10955 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10959 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10961 if test $build = $target ; then
10962 GOC_FOR_TARGET="$2"
10964 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10967 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10972 cat > conftest.c << \EOF
10977 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10978 have_gcc_for_target=yes
10980 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10981 have_gcc_for_target=no
10988 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10989 if test -n "$with_build_time_tools"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10991 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10992 if test -x $with_build_time_tools/ar; then
10993 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10994 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10996 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11001 elif test $build != $host && test $have_gcc_for_target = yes; then
11002 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11003 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11004 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11007 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11008 # Extract the first word of "ar", so it can be a program name with args.
11009 set dummy ar; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
11015 case $AR_FOR_TARGET in
11017 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $gcc_cv_tool_dirs
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11039 if test -n "$AR_FOR_TARGET"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11041 $as_echo "$AR_FOR_TARGET" >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11049 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11052 if test -n "$AR_FOR_TARGET"; then
11053 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11054 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11055 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11058 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11059 for ncn_progname in ar; do
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 if test -n "$AR_FOR_TARGET"; then
11068 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11088 if test -n "$AR_FOR_TARGET"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11090 $as_echo "$AR_FOR_TARGET" >&6; }
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11100 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11101 for ncn_progname in ar; do
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11104 if test -x $with_build_time_tools/${ncn_progname}; then
11105 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11107 $as_echo "yes" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11116 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11117 for ncn_progname in ar; do
11118 if test -n "$ncn_target_tool_prefix"; then
11119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11126 if test -n "$AR_FOR_TARGET"; then
11127 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11136 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11147 if test -n "$AR_FOR_TARGET"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11149 $as_echo "$AR_FOR_TARGET" >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11157 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11159 set dummy ${ncn_progname}; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 if test -n "$AR_FOR_TARGET"; then
11166 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11186 if test -n "$AR_FOR_TARGET"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11188 $as_echo "$AR_FOR_TARGET" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11196 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11200 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11202 if test $build = $target ; then
11205 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11208 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11212 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11218 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11219 if test -n "$with_build_time_tools"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11221 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11222 if test -x $with_build_time_tools/as; then
11223 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11224 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11226 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11231 elif test $build != $host && test $have_gcc_for_target = yes; then
11232 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11233 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11234 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11237 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11238 # Extract the first word of "as", so it can be a program name with args.
11239 set dummy as; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11245 case $AS_FOR_TARGET in
11247 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $gcc_cv_tool_dirs
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11269 if test -n "$AS_FOR_TARGET"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11271 $as_echo "$AS_FOR_TARGET" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11279 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11282 if test -n "$AS_FOR_TARGET"; then
11283 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11284 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11285 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11288 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11289 for ncn_progname in as; do
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_progname}; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11297 if test -n "$AS_FOR_TARGET"; then
11298 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11307 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11318 if test -n "$AS_FOR_TARGET"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11320 $as_echo "$AS_FOR_TARGET" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11330 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11331 for ncn_progname in as; do
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11333 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11334 if test -x $with_build_time_tools/${ncn_progname}; then
11335 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11337 $as_echo "yes" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11346 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11347 for ncn_progname in as; do
11348 if test -n "$ncn_target_tool_prefix"; then
11349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11350 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11356 if test -n "$AS_FOR_TARGET"; then
11357 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11366 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11377 if test -n "$AS_FOR_TARGET"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11379 $as_echo "$AS_FOR_TARGET" >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11387 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11389 set dummy ${ncn_progname}; ac_word=$2
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391 $as_echo_n "checking for $ac_word... " >&6; }
11392 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 if test -n "$AS_FOR_TARGET"; then
11396 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11405 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11416 if test -n "$AS_FOR_TARGET"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11418 $as_echo "$AS_FOR_TARGET" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11426 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11430 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11432 if test $build = $target ; then
11435 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11438 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11442 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11448 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11449 if test -n "$with_build_time_tools"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11451 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11452 if test -x $with_build_time_tools/dlltool; then
11453 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11454 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11456 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11461 elif test $build != $host && test $have_gcc_for_target = yes; then
11462 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11463 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11464 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11467 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11468 # Extract the first word of "dlltool", so it can be a program name with args.
11469 set dummy dlltool; ac_word=$2
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471 $as_echo_n "checking for $ac_word... " >&6; }
11472 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11475 case $DLLTOOL_FOR_TARGET in
11477 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $gcc_cv_tool_dirs
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11499 if test -n "$DLLTOOL_FOR_TARGET"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11501 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11509 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11512 if test -n "$DLLTOOL_FOR_TARGET"; then
11513 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11514 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11515 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11518 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11519 for ncn_progname in dlltool; do
11520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11521 set dummy ${ncn_progname}; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11527 if test -n "$DLLTOOL_FOR_TARGET"; then
11528 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11548 if test -n "$DLLTOOL_FOR_TARGET"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11550 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11560 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11561 for ncn_progname in dlltool; do
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11564 if test -x $with_build_time_tools/${ncn_progname}; then
11565 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11576 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11577 for ncn_progname in dlltool; do
11578 if test -n "$ncn_target_tool_prefix"; then
11579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11586 if test -n "$DLLTOOL_FOR_TARGET"; then
11587 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11607 if test -n "$DLLTOOL_FOR_TARGET"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11609 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11619 set dummy ${ncn_progname}; ac_word=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11625 if test -n "$DLLTOOL_FOR_TARGET"; then
11626 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11646 if test -n "$DLLTOOL_FOR_TARGET"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11648 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11656 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11660 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11662 if test $build = $target ; then
11663 DLLTOOL_FOR_TARGET="$2"
11665 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11668 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11672 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11678 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11679 if test -n "$with_build_time_tools"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11681 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11682 if test -x $with_build_time_tools/ld; then
11683 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11684 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11686 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11691 elif test $build != $host && test $have_gcc_for_target = yes; then
11692 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11693 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11694 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11697 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11698 # Extract the first word of "ld", so it can be a program name with args.
11699 set dummy ld; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 case $LD_FOR_TARGET in
11707 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in $gcc_cv_tool_dirs
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11717 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11729 if test -n "$LD_FOR_TARGET"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11731 $as_echo "$LD_FOR_TARGET" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11742 if test -n "$LD_FOR_TARGET"; then
11743 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11744 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11745 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11748 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11749 for ncn_progname in ld; do
11750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11751 set dummy ${ncn_progname}; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
11757 if test -n "$LD_FOR_TARGET"; then
11758 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11778 if test -n "$LD_FOR_TARGET"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11780 $as_echo "$LD_FOR_TARGET" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11790 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11791 for ncn_progname in ld; do
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11794 if test -x $with_build_time_tools/${ncn_progname}; then
11795 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11806 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11807 for ncn_progname in ld; do
11808 if test -n "$ncn_target_tool_prefix"; then
11809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11816 if test -n "$LD_FOR_TARGET"; then
11817 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11837 if test -n "$LD_FOR_TARGET"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11839 $as_echo "$LD_FOR_TARGET" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849 set dummy ${ncn_progname}; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11855 if test -n "$LD_FOR_TARGET"; then
11856 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11876 if test -n "$LD_FOR_TARGET"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11878 $as_echo "$LD_FOR_TARGET" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11886 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11890 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11892 if test $build = $target ; then
11895 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11898 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11902 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11908 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11909 if test -n "$with_build_time_tools"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11911 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11912 if test -x $with_build_time_tools/lipo; then
11913 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11914 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11916 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11921 elif test $build != $host && test $have_gcc_for_target = yes; then
11922 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11923 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11924 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11927 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11928 # Extract the first word of "lipo", so it can be a program name with args.
11929 set dummy lipo; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11935 case $LIPO_FOR_TARGET in
11937 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $gcc_cv_tool_dirs
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11947 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11959 if test -n "$LIPO_FOR_TARGET"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11961 $as_echo "$LIPO_FOR_TARGET" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11969 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11972 if test -n "$LIPO_FOR_TARGET"; then
11973 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11974 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11975 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11978 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11979 for ncn_progname in lipo; do
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11987 if test -n "$LIPO_FOR_TARGET"; then
11988 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11997 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12008 if test -n "$LIPO_FOR_TARGET"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12010 $as_echo "$LIPO_FOR_TARGET" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12020 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12021 for ncn_progname in lipo; do
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12024 if test -x $with_build_time_tools/${ncn_progname}; then
12025 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12036 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12037 for ncn_progname in lipo; do
12038 if test -n "$ncn_target_tool_prefix"; then
12039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 if test -n "$LIPO_FOR_TARGET"; then
12047 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12067 if test -n "$LIPO_FOR_TARGET"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12069 $as_echo "$LIPO_FOR_TARGET" >&6; }
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12077 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12079 set dummy ${ncn_progname}; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12085 if test -n "$LIPO_FOR_TARGET"; then
12086 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12106 if test -n "$LIPO_FOR_TARGET"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12108 $as_echo "$LIPO_FOR_TARGET" >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12116 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12120 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12122 if test $build = $target ; then
12123 LIPO_FOR_TARGET="$2"
12125 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12128 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12132 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12138 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12139 if test -n "$with_build_time_tools"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12141 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12142 if test -x $with_build_time_tools/nm; then
12143 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12144 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12146 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12151 elif test $build != $host && test $have_gcc_for_target = yes; then
12152 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12153 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12154 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12157 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12158 # Extract the first word of "nm", so it can be a program name with args.
12159 set dummy nm; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 case $NM_FOR_TARGET in
12167 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $gcc_cv_tool_dirs
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12177 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12189 if test -n "$NM_FOR_TARGET"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12191 $as_echo "$NM_FOR_TARGET" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12199 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12202 if test -n "$NM_FOR_TARGET"; then
12203 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12204 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12205 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12208 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12209 for ncn_progname in nm; do
12210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12211 set dummy ${ncn_progname}; ac_word=$2
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213 $as_echo_n "checking for $ac_word... " >&6; }
12214 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
12217 if test -n "$NM_FOR_TARGET"; then
12218 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12227 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12238 if test -n "$NM_FOR_TARGET"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12240 $as_echo "$NM_FOR_TARGET" >&6; }
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12250 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12251 for ncn_progname in nm; do
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12253 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12254 if test -x $with_build_time_tools/${ncn_progname}; then
12255 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12267 for ncn_progname in nm; do
12268 if test -n "$ncn_target_tool_prefix"; then
12269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12276 if test -n "$NM_FOR_TARGET"; then
12277 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12297 if test -n "$NM_FOR_TARGET"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12299 $as_echo "$NM_FOR_TARGET" >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12307 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12309 set dummy ${ncn_progname}; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12315 if test -n "$NM_FOR_TARGET"; then
12316 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12336 if test -n "$NM_FOR_TARGET"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12338 $as_echo "$NM_FOR_TARGET" >&6; }
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12346 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12350 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12352 if test $build = $target ; then
12355 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12358 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12362 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12368 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12369 if test -n "$with_build_time_tools"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12371 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12372 if test -x $with_build_time_tools/objcopy; then
12373 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12374 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12376 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12381 elif test $build != $host && test $have_gcc_for_target = yes; then
12382 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12383 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12384 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12387 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12388 # Extract the first word of "objcopy", so it can be a program name with args.
12389 set dummy objcopy; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12395 case $OBJCOPY_FOR_TARGET in
12397 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $gcc_cv_tool_dirs
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12419 if test -n "$OBJCOPY_FOR_TARGET"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12421 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12429 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12432 if test -n "$OBJCOPY_FOR_TARGET"; then
12433 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12434 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12435 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12438 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12439 for ncn_progname in objcopy; do
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12441 set dummy ${ncn_progname}; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12447 if test -n "$OBJCOPY_FOR_TARGET"; then
12448 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12457 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12468 if test -n "$OBJCOPY_FOR_TARGET"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12470 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12480 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12481 for ncn_progname in objcopy; do
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12483 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12484 if test -x $with_build_time_tools/${ncn_progname}; then
12485 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12487 $as_echo "yes" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12496 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12497 for ncn_progname in objcopy; do
12498 if test -n "$ncn_target_tool_prefix"; then
12499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12506 if test -n "$OBJCOPY_FOR_TARGET"; then
12507 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12527 if test -n "$OBJCOPY_FOR_TARGET"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12529 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12537 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12539 set dummy ${ncn_progname}; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12545 if test -n "$OBJCOPY_FOR_TARGET"; then
12546 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12555 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12566 if test -n "$OBJCOPY_FOR_TARGET"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12568 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12576 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12580 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12582 if test $build = $target ; then
12583 OBJCOPY_FOR_TARGET="$2"
12585 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12588 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12592 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12598 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12599 if test -n "$with_build_time_tools"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12601 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12602 if test -x $with_build_time_tools/objdump; then
12603 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12604 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12606 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12611 elif test $build != $host && test $have_gcc_for_target = yes; then
12612 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12613 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12614 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12617 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12618 # Extract the first word of "objdump", so it can be a program name with args.
12619 set dummy objdump; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12625 case $OBJDUMP_FOR_TARGET in
12627 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $gcc_cv_tool_dirs
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12649 if test -n "$OBJDUMP_FOR_TARGET"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12651 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12659 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12662 if test -n "$OBJDUMP_FOR_TARGET"; then
12663 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12664 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12665 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12668 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12669 for ncn_progname in objdump; do
12670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671 set dummy ${ncn_progname}; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12677 if test -n "$OBJDUMP_FOR_TARGET"; then
12678 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12698 if test -n "$OBJDUMP_FOR_TARGET"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12700 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12710 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12711 for ncn_progname in objdump; do
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12713 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12714 if test -x $with_build_time_tools/${ncn_progname}; then
12715 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12717 $as_echo "yes" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12726 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12727 for ncn_progname in objdump; do
12728 if test -n "$ncn_target_tool_prefix"; then
12729 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12730 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12736 if test -n "$OBJDUMP_FOR_TARGET"; then
12737 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12757 if test -n "$OBJDUMP_FOR_TARGET"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12759 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12767 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12769 set dummy ${ncn_progname}; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12775 if test -n "$OBJDUMP_FOR_TARGET"; then
12776 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12796 if test -n "$OBJDUMP_FOR_TARGET"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12798 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12806 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12810 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12812 if test $build = $target ; then
12813 OBJDUMP_FOR_TARGET="$2"
12815 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12818 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12822 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12828 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12829 if test -n "$with_build_time_tools"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12831 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12832 if test -x $with_build_time_tools/ranlib; then
12833 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12834 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12836 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12841 elif test $build != $host && test $have_gcc_for_target = yes; then
12842 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12843 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12844 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12847 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12848 # Extract the first word of "ranlib", so it can be a program name with args.
12849 set dummy ranlib; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12855 case $RANLIB_FOR_TARGET in
12857 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $gcc_cv_tool_dirs
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12879 if test -n "$RANLIB_FOR_TARGET"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12881 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12889 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12892 if test -n "$RANLIB_FOR_TARGET"; then
12893 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12894 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12895 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12898 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12899 for ncn_progname in ranlib; do
12900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12901 set dummy ${ncn_progname}; ac_word=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12907 if test -n "$RANLIB_FOR_TARGET"; then
12908 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12914 test -z "$as_dir" && as_dir=.
12915 for ac_exec_ext in '' $ac_executable_extensions; do
12916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12917 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12928 if test -n "$RANLIB_FOR_TARGET"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12930 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933 $as_echo "no" >&6; }
12940 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12941 for ncn_progname in ranlib; do
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12943 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12944 if test -x $with_build_time_tools/${ncn_progname}; then
12945 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12947 $as_echo "yes" >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12956 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12957 for ncn_progname in ranlib; do
12958 if test -n "$ncn_target_tool_prefix"; then
12959 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12960 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962 $as_echo_n "checking for $ac_word... " >&6; }
12963 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12966 if test -n "$RANLIB_FOR_TARGET"; then
12967 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12987 if test -n "$RANLIB_FOR_TARGET"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12989 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12997 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12999 set dummy ${ncn_progname}; ac_word=$2
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001 $as_echo_n "checking for $ac_word... " >&6; }
13002 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
13005 if test -n "$RANLIB_FOR_TARGET"; then
13006 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13026 if test -n "$RANLIB_FOR_TARGET"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13028 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13036 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13040 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13042 if test $build = $target ; then
13043 RANLIB_FOR_TARGET="$2"
13045 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13048 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13052 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13058 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13059 if test -n "$with_build_time_tools"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13061 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13062 if test -x $with_build_time_tools/readelf; then
13063 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13064 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13066 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13071 elif test $build != $host && test $have_gcc_for_target = yes; then
13072 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13073 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13074 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13077 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13078 # Extract the first word of "readelf", so it can be a program name with args.
13079 set dummy readelf; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13085 case $READELF_FOR_TARGET in
13087 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $gcc_cv_tool_dirs
13094 test -z "$as_dir" && as_dir=.
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13109 if test -n "$READELF_FOR_TARGET"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13111 $as_echo "$READELF_FOR_TARGET" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13119 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13122 if test -n "$READELF_FOR_TARGET"; then
13123 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13124 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13125 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13128 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13129 for ncn_progname in readelf; do
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13137 if test -n "$READELF_FOR_TARGET"; then
13138 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13158 if test -n "$READELF_FOR_TARGET"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13160 $as_echo "$READELF_FOR_TARGET" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13170 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13171 for ncn_progname in readelf; do
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13173 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13174 if test -x $with_build_time_tools/${ncn_progname}; then
13175 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177 $as_echo "yes" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13186 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13187 for ncn_progname in readelf; do
13188 if test -n "$ncn_target_tool_prefix"; then
13189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13196 if test -n "$READELF_FOR_TARGET"; then
13197 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13217 if test -n "$READELF_FOR_TARGET"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13219 $as_echo "$READELF_FOR_TARGET" >&6; }
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13227 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13229 set dummy ${ncn_progname}; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13235 if test -n "$READELF_FOR_TARGET"; then
13236 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13256 if test -n "$READELF_FOR_TARGET"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13258 $as_echo "$READELF_FOR_TARGET" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13266 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13270 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13272 if test $build = $target ; then
13273 READELF_FOR_TARGET="$2"
13275 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13278 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13282 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13288 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13289 if test -n "$with_build_time_tools"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13291 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13292 if test -x $with_build_time_tools/strip; then
13293 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13294 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13296 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13301 elif test $build != $host && test $have_gcc_for_target = yes; then
13302 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13303 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13304 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13307 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13308 # Extract the first word of "strip", so it can be a program name with args.
13309 set dummy strip; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311 $as_echo_n "checking for $ac_word... " >&6; }
13312 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13315 case $STRIP_FOR_TARGET in
13317 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $gcc_cv_tool_dirs
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13339 if test -n "$STRIP_FOR_TARGET"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13341 $as_echo "$STRIP_FOR_TARGET" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13349 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13352 if test -n "$STRIP_FOR_TARGET"; then
13353 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13354 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13355 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13358 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13359 for ncn_progname in strip; do
13360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13361 set dummy ${ncn_progname}; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13367 if test -n "$STRIP_FOR_TARGET"; then
13368 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13388 if test -n "$STRIP_FOR_TARGET"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13390 $as_echo "$STRIP_FOR_TARGET" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13400 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13401 for ncn_progname in strip; do
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13403 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13404 if test -x $with_build_time_tools/${ncn_progname}; then
13405 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13416 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13417 for ncn_progname in strip; do
13418 if test -n "$ncn_target_tool_prefix"; then
13419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13420 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13426 if test -n "$STRIP_FOR_TARGET"; then
13427 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13436 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13447 if test -n "$STRIP_FOR_TARGET"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13449 $as_echo "$STRIP_FOR_TARGET" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13459 set dummy ${ncn_progname}; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13465 if test -n "$STRIP_FOR_TARGET"; then
13466 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13486 if test -n "$STRIP_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13488 $as_echo "$STRIP_FOR_TARGET" >&6; }
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13496 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13500 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13502 if test $build = $target ; then
13503 STRIP_FOR_TARGET="$2"
13505 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13508 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13512 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13518 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13519 if test -n "$with_build_time_tools"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13521 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13522 if test -x $with_build_time_tools/windres; then
13523 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13524 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13526 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13531 elif test $build != $host && test $have_gcc_for_target = yes; then
13532 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13533 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13534 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13537 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13538 # Extract the first word of "windres", so it can be a program name with args.
13539 set dummy windres; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13545 case $WINDRES_FOR_TARGET in
13547 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $gcc_cv_tool_dirs
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13557 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13569 if test -n "$WINDRES_FOR_TARGET"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13571 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13579 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13582 if test -n "$WINDRES_FOR_TARGET"; then
13583 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13584 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13585 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13588 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13589 for ncn_progname in windres; do
13590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13591 set dummy ${ncn_progname}; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13597 if test -n "$WINDRES_FOR_TARGET"; then
13598 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13607 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13618 if test -n "$WINDRES_FOR_TARGET"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13620 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13630 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13631 for ncn_progname in windres; do
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13633 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13634 if test -x $with_build_time_tools/${ncn_progname}; then
13635 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13637 $as_echo "yes" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13646 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13647 for ncn_progname in windres; do
13648 if test -n "$ncn_target_tool_prefix"; then
13649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13650 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13656 if test -n "$WINDRES_FOR_TARGET"; then
13657 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13677 if test -n "$WINDRES_FOR_TARGET"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13679 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13687 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13689 set dummy ${ncn_progname}; ac_word=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691 $as_echo_n "checking for $ac_word... " >&6; }
13692 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13695 if test -n "$WINDRES_FOR_TARGET"; then
13696 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699 for as_dir in $PATH
13702 test -z "$as_dir" && as_dir=.
13703 for ac_exec_ext in '' $ac_executable_extensions; do
13704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13705 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13716 if test -n "$WINDRES_FOR_TARGET"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13718 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 $as_echo "no" >&6; }
13726 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13730 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13732 if test $build = $target ; then
13733 WINDRES_FOR_TARGET="$2"
13735 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13738 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13742 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13748 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13749 if test -n "$with_build_time_tools"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13751 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13752 if test -x $with_build_time_tools/windmc; then
13753 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13754 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13756 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13761 elif test $build != $host && test $have_gcc_for_target = yes; then
13762 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13763 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13764 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13767 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13768 # Extract the first word of "windmc", so it can be a program name with args.
13769 set dummy windmc; ac_word=$2
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771 $as_echo_n "checking for $ac_word... " >&6; }
13772 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 case $WINDMC_FOR_TARGET in
13777 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $gcc_cv_tool_dirs
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13787 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13799 if test -n "$WINDMC_FOR_TARGET"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13801 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13809 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13812 if test -n "$WINDMC_FOR_TARGET"; then
13813 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13814 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13815 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13818 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13819 for ncn_progname in windmc; do
13820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13821 set dummy ${ncn_progname}; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13827 if test -n "$WINDMC_FOR_TARGET"; then
13828 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13837 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13848 if test -n "$WINDMC_FOR_TARGET"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13850 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13860 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13861 for ncn_progname in windmc; do
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13863 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13864 if test -x $with_build_time_tools/${ncn_progname}; then
13865 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867 $as_echo "yes" >&6; }
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13876 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13877 for ncn_progname in windmc; do
13878 if test -n "$ncn_target_tool_prefix"; then
13879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13880 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13886 if test -n "$WINDMC_FOR_TARGET"; then
13887 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13896 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13907 if test -n "$WINDMC_FOR_TARGET"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13909 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13917 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13919 set dummy ${ncn_progname}; ac_word=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13925 if test -n "$WINDMC_FOR_TARGET"; then
13926 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in $PATH
13932 test -z "$as_dir" && as_dir=.
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13935 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13945 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13946 if test -n "$WINDMC_FOR_TARGET"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13948 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13956 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13960 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13962 if test $build = $target ; then
13963 WINDMC_FOR_TARGET="$2"
13965 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13968 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13972 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13976 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13979 $as_echo_n "checking where to find the target ar... " >&6; }
13980 if test "x${build}" != "x${host}" ; then
13981 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
13983 ac_dir=`dirname $AR_FOR_TARGET`
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985 $as_echo "pre-installed in $ac_dir" >&6; }
13987 # Canadian cross, just use what we found
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13989 $as_echo "pre-installed" >&6; }
13993 case " ${configdirs} " in
13998 if test $ok = yes; then
13999 # An in-tree tool is available and we can use it
14000 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14002 $as_echo "just compiled" >&6; }
14003 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $AR_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 AR_FOR_TARGET='$(AR)'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012 $as_echo "host tool" >&6; }
14014 # We need a cross tool
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016 $as_echo "pre-installed" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14021 $as_echo_n "checking where to find the target as... " >&6; }
14022 if test "x${build}" != "x${host}" ; then
14023 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $AS_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14029 # Canadian cross, just use what we found
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031 $as_echo "pre-installed" >&6; }
14035 case " ${configdirs} " in
14040 if test $ok = yes; then
14041 # An in-tree tool is available and we can use it
14042 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14044 $as_echo "just compiled" >&6; }
14045 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
14047 ac_dir=`dirname $AS_FOR_TARGET`
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049 $as_echo "pre-installed in $ac_dir" >&6; }
14050 elif test "x$target" = "x$host"; then
14051 # We can use an host tool
14052 AS_FOR_TARGET='$(AS)'
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14054 $as_echo "host tool" >&6; }
14056 # We need a cross tool
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058 $as_echo "pre-installed" >&6; }
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14063 $as_echo_n "checking where to find the target cc... " >&6; }
14064 if test "x${build}" != "x${host}" ; then
14065 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
14067 ac_dir=`dirname $CC_FOR_TARGET`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069 $as_echo "pre-installed in $ac_dir" >&6; }
14071 # Canadian cross, just use what we found
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14073 $as_echo "pre-installed" >&6; }
14077 case " ${configdirs} " in
14082 if test $ok = yes; then
14083 # An in-tree tool is available and we can use it
14084 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14086 $as_echo "just compiled" >&6; }
14087 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $CC_FOR_TARGET`
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091 $as_echo "pre-installed in $ac_dir" >&6; }
14092 elif test "x$target" = "x$host"; then
14093 # We can use an host tool
14094 CC_FOR_TARGET='$(CC)'
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14096 $as_echo "host tool" >&6; }
14098 # We need a cross tool
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100 $as_echo "pre-installed" >&6; }
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14105 $as_echo_n "checking where to find the target c++... " >&6; }
14106 if test "x${build}" != "x${host}" ; then
14107 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
14109 ac_dir=`dirname $CXX_FOR_TARGET`
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111 $as_echo "pre-installed in $ac_dir" >&6; }
14113 # Canadian cross, just use what we found
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115 $as_echo "pre-installed" >&6; }
14119 case " ${configdirs} " in
14123 case ,${enable_languages}, in
14127 if test $ok = yes; then
14128 # An in-tree tool is available and we can use it
14129 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'
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14131 $as_echo "just compiled" >&6; }
14132 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14133 # We already found the complete path
14134 ac_dir=`dirname $CXX_FOR_TARGET`
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14136 $as_echo "pre-installed in $ac_dir" >&6; }
14137 elif test "x$target" = "x$host"; then
14138 # We can use an host tool
14139 CXX_FOR_TARGET='$(CXX)'
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14141 $as_echo "host tool" >&6; }
14143 # We need a cross tool
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145 $as_echo "pre-installed" >&6; }
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14150 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14151 if test "x${build}" != "x${host}" ; then
14152 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14153 # We already found the complete path
14154 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14156 $as_echo "pre-installed in $ac_dir" >&6; }
14158 # Canadian cross, just use what we found
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14160 $as_echo "pre-installed" >&6; }
14164 case " ${configdirs} " in
14168 case ,${enable_languages}, in
14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
14174 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'
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176 $as_echo "just compiled" >&6; }
14177 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
14179 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181 $as_echo "pre-installed in $ac_dir" >&6; }
14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 RAW_CXX_FOR_TARGET='$(CXX)'
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186 $as_echo "host tool" >&6; }
14188 # We need a cross tool
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14195 $as_echo_n "checking where to find the target dlltool... " >&6; }
14196 if test "x${build}" != "x${host}" ; then
14197 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
14199 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201 $as_echo "pre-installed in $ac_dir" >&6; }
14203 # Canadian cross, just use what we found
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14209 case " ${configdirs} " in
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
14216 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218 $as_echo "just compiled" >&6; }
14219 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223 $as_echo "pre-installed in $ac_dir" >&6; }
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228 $as_echo "host tool" >&6; }
14230 # We need a cross tool
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232 $as_echo "pre-installed" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14237 $as_echo_n "checking where to find the target gcc... " >&6; }
14238 if test "x${build}" != "x${host}" ; then
14239 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
14241 ac_dir=`dirname $GCC_FOR_TARGET`
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243 $as_echo "pre-installed in $ac_dir" >&6; }
14245 # Canadian cross, just use what we found
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14251 case " ${configdirs} " in
14256 if test $ok = yes; then
14257 # An in-tree tool is available and we can use it
14258 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260 $as_echo "just compiled" >&6; }
14261 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $GCC_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 GCC_FOR_TARGET='$()'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270 $as_echo "host tool" >&6; }
14272 # We need a cross tool
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14279 $as_echo_n "checking where to find the target gcj... " >&6; }
14280 if test "x${build}" != "x${host}" ; then
14281 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
14283 ac_dir=`dirname $GCJ_FOR_TARGET`
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285 $as_echo "pre-installed in $ac_dir" >&6; }
14287 # Canadian cross, just use what we found
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14293 case " ${configdirs} " in
14297 case ,${enable_languages}, in
14301 if test $ok = yes; then
14302 # An in-tree tool is available and we can use it
14303 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305 $as_echo "just compiled" >&6; }
14306 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
14308 ac_dir=`dirname $GCJ_FOR_TARGET`
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310 $as_echo "pre-installed in $ac_dir" >&6; }
14311 elif test "x$target" = "x$host"; then
14312 # We can use an host tool
14313 GCJ_FOR_TARGET='$(GCJ)'
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315 $as_echo "host tool" >&6; }
14317 # We need a cross tool
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14324 $as_echo_n "checking where to find the target gfortran... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14332 # Canadian cross, just use what we found
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14338 case " ${configdirs} " in
14342 case ,${enable_languages}, in
14346 if test $ok = yes; then
14347 # An in-tree tool is available and we can use it
14348 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14350 $as_echo "just compiled" >&6; }
14351 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
14353 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355 $as_echo "pre-installed in $ac_dir" >&6; }
14356 elif test "x$target" = "x$host"; then
14357 # We can use an host tool
14358 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14360 $as_echo "host tool" >&6; }
14362 # We need a cross tool
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364 $as_echo "pre-installed" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14369 $as_echo_n "checking where to find the target gccgo... " >&6; }
14370 if test "x${build}" != "x${host}" ; then
14371 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
14373 ac_dir=`dirname $GOC_FOR_TARGET`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375 $as_echo "pre-installed in $ac_dir" >&6; }
14377 # Canadian cross, just use what we found
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14379 $as_echo "pre-installed" >&6; }
14383 case " ${configdirs} " in
14387 case ,${enable_languages}, in
14391 if test $ok = yes; then
14392 # An in-tree tool is available and we can use it
14393 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14395 $as_echo "just compiled" >&6; }
14396 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14397 # We already found the complete path
14398 ac_dir=`dirname $GOC_FOR_TARGET`
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14400 $as_echo "pre-installed in $ac_dir" >&6; }
14401 elif test "x$target" = "x$host"; then
14402 # We can use an host tool
14403 GOC_FOR_TARGET='$(GOC)'
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14405 $as_echo "host tool" >&6; }
14407 # We need a cross tool
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409 $as_echo "pre-installed" >&6; }
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14414 $as_echo_n "checking where to find the target ld... " >&6; }
14415 if test "x${build}" != "x${host}" ; then
14416 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14417 # We already found the complete path
14418 ac_dir=`dirname $LD_FOR_TARGET`
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14420 $as_echo "pre-installed in $ac_dir" >&6; }
14422 # Canadian cross, just use what we found
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14428 case " ${configdirs} " in
14433 if test $ok = yes; then
14434 # An in-tree tool is available and we can use it
14435 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14437 $as_echo "just compiled" >&6; }
14438 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
14440 ac_dir=`dirname $LD_FOR_TARGET`
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442 $as_echo "pre-installed in $ac_dir" >&6; }
14443 elif test "x$target" = "x$host"; then
14444 # We can use an host tool
14445 LD_FOR_TARGET='$(LD)'
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14447 $as_echo "host tool" >&6; }
14449 # We need a cross tool
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451 $as_echo "pre-installed" >&6; }
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14456 $as_echo_n "checking where to find the target lipo... " >&6; }
14457 if test "x${build}" != "x${host}" ; then
14458 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14459 # We already found the complete path
14460 ac_dir=`dirname $LIPO_FOR_TARGET`
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14462 $as_echo "pre-installed in $ac_dir" >&6; }
14464 # Canadian cross, just use what we found
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
14471 ac_dir=`dirname $LIPO_FOR_TARGET`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473 $as_echo "pre-installed in $ac_dir" >&6; }
14474 elif test "x$target" = "x$host"; then
14475 # We can use an host tool
14476 LIPO_FOR_TARGET='$(LIPO)'
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14478 $as_echo "host tool" >&6; }
14480 # We need a cross tool
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14482 $as_echo "pre-installed" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14487 $as_echo_n "checking where to find the target nm... " >&6; }
14488 if test "x${build}" != "x${host}" ; then
14489 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14490 # We already found the complete path
14491 ac_dir=`dirname $NM_FOR_TARGET`
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14493 $as_echo "pre-installed in $ac_dir" >&6; }
14495 # Canadian cross, just use what we found
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497 $as_echo "pre-installed" >&6; }
14501 case " ${configdirs} " in
14506 if test $ok = yes; then
14507 # An in-tree tool is available and we can use it
14508 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14510 $as_echo "just compiled" >&6; }
14511 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14512 # We already found the complete path
14513 ac_dir=`dirname $NM_FOR_TARGET`
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14515 $as_echo "pre-installed in $ac_dir" >&6; }
14516 elif test "x$target" = "x$host"; then
14517 # We can use an host tool
14518 NM_FOR_TARGET='$(NM)'
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14520 $as_echo "host tool" >&6; }
14522 # We need a cross tool
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14524 $as_echo "pre-installed" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14529 $as_echo_n "checking where to find the target objcopy... " >&6; }
14530 if test "x${build}" != "x${host}" ; then
14531 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14532 # We already found the complete path
14533 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14535 $as_echo "pre-installed in $ac_dir" >&6; }
14537 # Canadian cross, just use what we found
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14539 $as_echo "pre-installed" >&6; }
14543 case " ${configdirs} " in
14548 if test $ok = yes; then
14549 # An in-tree tool is available and we can use it
14550 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14552 $as_echo "just compiled" >&6; }
14553 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14554 # We already found the complete path
14555 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14557 $as_echo "pre-installed in $ac_dir" >&6; }
14558 elif test "x$target" = "x$host"; then
14559 # We can use an host tool
14560 OBJCOPY_FOR_TARGET='$(OBJDUMP)'
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14562 $as_echo "host tool" >&6; }
14564 # We need a cross tool
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14566 $as_echo "pre-installed" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14571 $as_echo_n "checking where to find the target objdump... " >&6; }
14572 if test "x${build}" != "x${host}" ; then
14573 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14574 # We already found the complete path
14575 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14577 $as_echo "pre-installed in $ac_dir" >&6; }
14579 # Canadian cross, just use what we found
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14581 $as_echo "pre-installed" >&6; }
14585 case " ${configdirs} " in
14590 if test $ok = yes; then
14591 # An in-tree tool is available and we can use it
14592 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14594 $as_echo "just compiled" >&6; }
14595 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14596 # We already found the complete path
14597 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14599 $as_echo "pre-installed in $ac_dir" >&6; }
14600 elif test "x$target" = "x$host"; then
14601 # We can use an host tool
14602 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14604 $as_echo "host tool" >&6; }
14606 # We need a cross tool
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14608 $as_echo "pre-installed" >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14613 $as_echo_n "checking where to find the target ranlib... " >&6; }
14614 if test "x${build}" != "x${host}" ; then
14615 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14616 # We already found the complete path
14617 ac_dir=`dirname $RANLIB_FOR_TARGET`
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14619 $as_echo "pre-installed in $ac_dir" >&6; }
14621 # Canadian cross, just use what we found
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14623 $as_echo "pre-installed" >&6; }
14627 case " ${configdirs} " in
14632 if test $ok = yes; then
14633 # An in-tree tool is available and we can use it
14634 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14636 $as_echo "just compiled" >&6; }
14637 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14638 # We already found the complete path
14639 ac_dir=`dirname $RANLIB_FOR_TARGET`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14641 $as_echo "pre-installed in $ac_dir" >&6; }
14642 elif test "x$target" = "x$host"; then
14643 # We can use an host tool
14644 RANLIB_FOR_TARGET='$(RANLIB)'
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14646 $as_echo "host tool" >&6; }
14648 # We need a cross tool
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14650 $as_echo "pre-installed" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14655 $as_echo_n "checking where to find the target readelf... " >&6; }
14656 if test "x${build}" != "x${host}" ; then
14657 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14658 # We already found the complete path
14659 ac_dir=`dirname $READELF_FOR_TARGET`
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14661 $as_echo "pre-installed in $ac_dir" >&6; }
14663 # Canadian cross, just use what we found
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665 $as_echo "pre-installed" >&6; }
14669 case " ${configdirs} " in
14674 if test $ok = yes; then
14675 # An in-tree tool is available and we can use it
14676 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14678 $as_echo "just compiled" >&6; }
14679 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14680 # We already found the complete path
14681 ac_dir=`dirname $READELF_FOR_TARGET`
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14683 $as_echo "pre-installed in $ac_dir" >&6; }
14684 elif test "x$target" = "x$host"; then
14685 # We can use an host tool
14686 READELF_FOR_TARGET='$(READELF)'
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14688 $as_echo "host tool" >&6; }
14690 # We need a cross tool
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14692 $as_echo "pre-installed" >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14697 $as_echo_n "checking where to find the target strip... " >&6; }
14698 if test "x${build}" != "x${host}" ; then
14699 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14700 # We already found the complete path
14701 ac_dir=`dirname $STRIP_FOR_TARGET`
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14703 $as_echo "pre-installed in $ac_dir" >&6; }
14705 # Canadian cross, just use what we found
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14707 $as_echo "pre-installed" >&6; }
14711 case " ${configdirs} " in
14716 if test $ok = yes; then
14717 # An in-tree tool is available and we can use it
14718 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14720 $as_echo "just compiled" >&6; }
14721 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14722 # We already found the complete path
14723 ac_dir=`dirname $STRIP_FOR_TARGET`
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14725 $as_echo "pre-installed in $ac_dir" >&6; }
14726 elif test "x$target" = "x$host"; then
14727 # We can use an host tool
14728 STRIP_FOR_TARGET='$(STRIP)'
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14730 $as_echo "host tool" >&6; }
14732 # We need a cross tool
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14734 $as_echo "pre-installed" >&6; }
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14739 $as_echo_n "checking where to find the target windres... " >&6; }
14740 if test "x${build}" != "x${host}" ; then
14741 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14742 # We already found the complete path
14743 ac_dir=`dirname $WINDRES_FOR_TARGET`
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14745 $as_echo "pre-installed in $ac_dir" >&6; }
14747 # Canadian cross, just use what we found
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14749 $as_echo "pre-installed" >&6; }
14753 case " ${configdirs} " in
14758 if test $ok = yes; then
14759 # An in-tree tool is available and we can use it
14760 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14762 $as_echo "just compiled" >&6; }
14763 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14764 # We already found the complete path
14765 ac_dir=`dirname $WINDRES_FOR_TARGET`
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14767 $as_echo "pre-installed in $ac_dir" >&6; }
14768 elif test "x$target" = "x$host"; then
14769 # We can use an host tool
14770 WINDRES_FOR_TARGET='$(WINDRES)'
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14772 $as_echo "host tool" >&6; }
14774 # We need a cross tool
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14776 $as_echo "pre-installed" >&6; }
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14781 $as_echo_n "checking where to find the target windmc... " >&6; }
14782 if test "x${build}" != "x${host}" ; then
14783 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14784 # We already found the complete path
14785 ac_dir=`dirname $WINDMC_FOR_TARGET`
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14787 $as_echo "pre-installed in $ac_dir" >&6; }
14789 # Canadian cross, just use what we found
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14791 $as_echo "pre-installed" >&6; }
14795 case " ${configdirs} " in
14800 if test $ok = yes; then
14801 # An in-tree tool is available and we can use it
14802 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14804 $as_echo "just compiled" >&6; }
14805 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14806 # We already found the complete path
14807 ac_dir=`dirname $WINDMC_FOR_TARGET`
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14809 $as_echo "pre-installed in $ac_dir" >&6; }
14810 elif test "x$target" = "x$host"; then
14811 # We can use an host tool
14812 WINDMC_FOR_TARGET='$(WINDMC)'
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14814 $as_echo "host tool" >&6; }
14816 # We need a cross tool
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14818 $as_echo "pre-installed" >&6; }
14826 # Certain tools may need extra flags.
14827 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14828 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14829 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14831 # When building target libraries, except in a Canadian cross, we use
14832 # the same toolchain as the compiler we just built.
14833 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14834 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14835 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14836 if test $host = $build; then
14837 case " $configdirs " in
14839 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14840 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14841 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14851 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14852 # Check whether --enable-maintainer-mode was given.
14853 if test "${enable_maintainer_mode+set}" = set; then :
14854 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14856 USE_MAINTAINER_MODE=no
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14860 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14863 if test "$USE_MAINTAINER_MODE" = yes; then
14864 MAINTAINER_MODE_TRUE=
14865 MAINTAINER_MODE_FALSE='#'
14867 MAINTAINER_MODE_TRUE='#'
14868 MAINTAINER_MODE_FALSE=
14870 MAINT=$MAINTAINER_MODE_TRUE
14872 # ---------------------
14873 # GCC bootstrap support
14874 # ---------------------
14876 # Stage specific cflags for build.
14881 yes) stage1_cflags="-g -Wa,-J" ;;
14882 *) stage1_cflags="-g -J" ;;
14888 # Enable --enable-checking in stage1 of the compiler.
14889 # Check whether --enable-stage1-checking was given.
14890 if test "${enable_stage1_checking+set}" = set; then :
14891 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14893 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14894 stage1_checking=--enable-checking=yes,types
14896 stage1_checking=--enable-checking=$enable_checking,types
14902 # Enable -Werror in bootstrap stage2 and later.
14903 # Check whether --enable-werror was given.
14904 if test "${enable_werror+set}" = set; then :
14905 enableval=$enable_werror;
14907 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14914 case ${enable_werror} in
14915 yes) stage2_werror_flag="--enable-werror-always" ;;
14916 *) stage2_werror_flag="" ;;
14920 # Enable --enable-host-shared.
14921 # Check whether --enable-host-shared was given.
14922 if test "${enable_host_shared+set}" = set; then :
14923 enableval=$enable_host_shared; host_shared=$enableval
14930 # Specify what files to not compare during bootstrap.
14932 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14934 hppa*64*-*-hpux*) ;;
14935 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14936 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14940 ac_config_files="$ac_config_files Makefile"
14942 cat >confcache <<\_ACEOF
14943 # This file is a shell script that caches the results of configure
14944 # tests run on this system so they can be shared between configure
14945 # scripts and configure runs, see configure's option --config-cache.
14946 # It is not useful on other systems. If it contains results you don't
14947 # want to keep, you may remove or edit it.
14949 # config.status only pays attention to the cache file if you give it
14950 # the --recheck option to rerun configure.
14952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14954 # following values.
14958 # The following way of writing the cache mishandles newlines in values,
14959 # but we know of no workaround that is simple, portable, and efficient.
14960 # So, we kill variables containing newlines.
14961 # Ultrix sh set writes to stderr and can't be redirected directly,
14962 # and sets the high bit in the cache file unless we assign to the vars.
14964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14965 eval ac_val=\$$ac_var
14969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14973 _ | IFS | as_nl) ;; #(
14974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14975 *) { eval $ac_var=; unset $ac_var;} ;;
14981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14982 *${as_nl}ac_space=\ *)
14983 # `set' does not quote correctly, so add quotes: double-quote
14984 # substitution turns \\\\ into \\, and sed turns \\ into \.
14987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14990 # `set' quotes correctly as required by POSIX, so do not add quotes.
14991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15005 if test -w "$cache_file"; then
15006 test "x$cache_file" != "x/dev/null" &&
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15008 $as_echo "$as_me: updating cache $cache_file" >&6;}
15009 cat confcache >$cache_file
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15018 # Let make expand exec_prefix.
15019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15021 # Transform confdefs.h into DEFS.
15022 # Protect against shell expansion while executing Makefile rules.
15023 # Protect against Makefile macro expansion.
15025 # If the first sed substitution is executed (which looks for macros that
15026 # take arguments), then branch to the quote section. Otherwise,
15027 # look for a macro that doesn't take arguments.
15037 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15039 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15043 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15056 DEFS=`sed -n "$ac_script" confdefs.h`
15061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15062 # 1. Remove the extension, and $U if already installed.
15063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15064 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15066 # will be set to the directory where LIBOBJS objects are built.
15067 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15068 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15070 LIBOBJS=$ac_libobjs
15072 LTLIBOBJS=$ac_ltlibobjs
15076 : ${CONFIG_STATUS=./config.status}
15078 ac_clean_files_save=$ac_clean_files
15079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15081 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15085 # Generated by $as_me.
15086 # Run this file to recreate the current configuration.
15087 # Compiler output produced by configure, useful for debugging
15088 # configure, is in config.log if it exists.
15091 ac_cs_recheck=false
15094 SHELL=\${CONFIG_SHELL-$SHELL}
15097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15098 ## -------------------- ##
15099 ## M4sh Initialization. ##
15100 ## -------------------- ##
15102 # Be more Bourne compatible
15103 DUALCASE=1; export DUALCASE # for MKS sh
15104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15108 # is contrary to our usage. Disable this feature.
15109 alias -g '${1+"$@"}'='"$@"'
15110 setopt NO_GLOB_SUBST
15112 case `(set -o) 2>/dev/null` in #(
15124 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15125 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15126 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15128 # Prefer a ksh shell builtin over an external printf program on Solaris,
15129 # but without wasting forks for bash or zsh.
15130 if test -z "$BASH_VERSION$ZSH_VERSION" \
15131 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15132 as_echo='print -r --'
15133 as_echo_n='print -rn --'
15134 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15135 as_echo='printf %s\n'
15136 as_echo_n='printf %s'
15138 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15139 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15140 as_echo_n='/usr/ucb/echo -n'
15142 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15143 as_echo_n_body='eval
15147 expr "X$arg" : "X\\(.*\\)$as_nl";
15148 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15150 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15152 export as_echo_n_body
15153 as_echo_n='sh -c $as_echo_n_body as_echo'
15155 export as_echo_body
15156 as_echo='sh -c $as_echo_body as_echo'
15159 # The user is always right.
15160 if test "${PATH_SEPARATOR+set}" != set; then
15162 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15163 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15170 # We need space, tab and new line, in precisely that order. Quoting is
15171 # there to prevent editors from complaining about space-tab.
15172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15173 # splitting by setting IFS to empty value.)
15176 # Find who we are. Look in the path if we contain no directory separator.
15178 *[\\/]* ) as_myself=$0 ;;
15179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180 for as_dir in $PATH
15183 test -z "$as_dir" && as_dir=.
15184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15190 # We did not find ourselves, most probably we were run as `sh COMMAND'
15191 # in which case we are not to be found in the path.
15192 if test "x$as_myself" = x; then
15195 if test ! -f "$as_myself"; then
15196 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15200 # Unset variables that we do not need and which cause bugs (e.g. in
15201 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15202 # suppresses any "Segmentation fault" message there. '((' could
15203 # trigger a bug in pdksh 5.2.14.
15204 for as_var in BASH_ENV ENV MAIL MAILPATH
15205 do eval test x\${$as_var+set} = xset \
15206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15222 # as_fn_error ERROR [LINENO LOG_FD]
15223 # ---------------------------------
15224 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15225 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15226 # script with status $?, using 1 if that was 0.
15229 as_status=$?; test $as_status -eq 0 && as_status=1
15231 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15232 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15234 $as_echo "$as_me: error: $1" >&2
15235 as_fn_exit $as_status
15239 # as_fn_set_status STATUS
15240 # -----------------------
15241 # Set $? to STATUS, without forking.
15242 as_fn_set_status ()
15245 } # as_fn_set_status
15247 # as_fn_exit STATUS
15248 # -----------------
15249 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15253 as_fn_set_status $1
15259 # Portably unset VAR.
15262 { eval $1=; unset $1;}
15264 as_unset=as_fn_unset
15265 # as_fn_append VAR VALUE
15266 # ----------------------
15267 # Append the text in VALUE to the end of the definition contained in VAR. Take
15268 # advantage of any shell optimizations that allow amortized linear growth over
15269 # repeated appends, instead of the typical quadratic growth present in naive
15271 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15272 eval 'as_fn_append ()
15283 # as_fn_arith ARG...
15284 # ------------------
15285 # Perform arithmetic evaluation on the ARGs, and store the result in the
15286 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15287 # must be portable across $(()) and expr.
15288 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15289 eval 'as_fn_arith ()
15296 as_val=`expr "$@" || test $? -eq 1`
15301 if expr a : '\(a\)' >/dev/null 2>&1 &&
15302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15308 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15309 as_basename=basename
15314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15320 as_me=`$as_basename -- "$0" ||
15321 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15322 X"$0" : 'X\(//\)$' \| \
15323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15325 sed '/^.*\/\([^/][^/]*\)\/*$/{
15339 # Avoid depending upon Character Ranges.
15340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15343 as_cr_digits='0123456789'
15344 as_cr_alnum=$as_cr_Letters$as_cr_digits
15346 ECHO_C= ECHO_N= ECHO_T=
15347 case `echo -n x` in #(((((
15349 case `echo 'xy\c'` in
15350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15352 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15359 rm -f conf$$ conf$$.exe conf$$.file
15360 if test -d conf$$.dir; then
15361 rm -f conf$$.dir/conf$$.file
15364 mkdir conf$$.dir 2>/dev/null
15366 if (echo >conf$$.file) 2>/dev/null; then
15367 if ln -s conf$$.file conf$$ 2>/dev/null; then
15369 # ... but there are two gotchas:
15370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15372 # In both cases, we have to default to `cp -p'.
15373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15375 elif ln conf$$.file conf$$ 2>/dev/null; then
15383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15384 rmdir conf$$.dir 2>/dev/null
15389 # Create "$as_dir" as a directory, including parents if necessary.
15394 -*) as_dir=./$as_dir;;
15396 test -d "$as_dir" || eval $as_mkdir_p || {
15400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15401 *) as_qdir=$as_dir;;
15403 as_dirs="'$as_qdir' $as_dirs"
15404 as_dir=`$as_dirname -- "$as_dir" ||
15405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15406 X"$as_dir" : 'X\(//\)[^/]' \| \
15407 X"$as_dir" : 'X\(//\)$' \| \
15408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15409 $as_echo X"$as_dir" |
15410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15414 /^X\(\/\/\)[^/].*/{
15427 test -d "$as_dir" && break
15429 test -z "$as_dirs" || eval "mkdir $as_dirs"
15430 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15434 if mkdir -p . 2>/dev/null; then
15435 as_mkdir_p='mkdir -p "$as_dir"'
15437 test -d ./-p && rmdir ./-p
15441 if test -x / >/dev/null 2>&1; then
15442 as_test_x='test -x'
15444 if ls -dL / >/dev/null 2>&1; then
15451 if test -d "$1"; then
15457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15458 ???[sx]*):;;*)false;;esac;fi
15462 as_executable_p=$as_test_x
15464 # Sed expression to map a string onto a valid CPP name.
15465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15467 # Sed expression to map a string onto a valid variable name.
15468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15472 ## ----------------------------------- ##
15473 ## Main body of $CONFIG_STATUS script. ##
15474 ## ----------------------------------- ##
15476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15479 # Save the log message, to keep $0 and so on meaningful, and to
15480 # report actual input values of CONFIG_FILES etc. instead of their
15481 # values after options handling.
15483 This file was extended by $as_me, which was
15484 generated by GNU Autoconf 2.64. Invocation command line was
15486 CONFIG_FILES = $CONFIG_FILES
15487 CONFIG_HEADERS = $CONFIG_HEADERS
15488 CONFIG_LINKS = $CONFIG_LINKS
15489 CONFIG_COMMANDS = $CONFIG_COMMANDS
15492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15497 case $ac_config_files in *"
15498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15504 # Files that config.status was made for.
15505 config_files="$ac_config_files"
15509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15511 \`$as_me' instantiates files and other configuration actions
15512 from templates according to the current configuration. Unless the files
15513 and actions are specified as TAGs, all are instantiated by default.
15515 Usage: $0 [OPTION]... [TAG]...
15517 -h, --help print this help, then exit
15518 -V, --version print version number and configuration settings, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15526 Configuration files:
15529 Report bugs to the package provider."
15532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 configured by $0, generated by GNU Autoconf 2.64,
15536 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15538 Copyright (C) 2009 Free Software Foundation, Inc.
15539 This config.status script is free software; the Free Software Foundation
15540 gives unlimited permission to copy, distribute and modify it."
15546 test -n "\$AWK" || AWK=awk
15549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550 # The default lists apply if the user does not specify any file.
15556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15568 # Handling of the options.
15569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15572 $as_echo "$ac_cs_version"; exit ;;
15573 --debug | --debu | --deb | --de | --d | -d )
15575 --file | --fil | --fi | --f )
15578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15580 as_fn_append CONFIG_FILES " '$ac_optarg'"
15581 ac_need_defaults=false;;
15582 --he | --h | --help | --hel | -h )
15583 $as_echo "$ac_cs_usage"; exit ;;
15584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15588 # This is an error.
15589 -*) as_fn_error "unrecognized option: \`$1'
15590 Try \`$0 --help' for more information." ;;
15592 *) as_fn_append ac_config_targets " $1"
15593 ac_need_defaults=false ;;
15599 ac_configure_extra_args=
15601 if $ac_cs_silent; then
15603 ac_configure_extra_args="$ac_configure_extra_args --silent"
15607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15608 if \$ac_cs_recheck; then
15609 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15612 CONFIG_SHELL='$SHELL'
15613 export CONFIG_SHELL
15618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15623 ## Running $as_me. ##
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 extrasub_build="$extrasub_build"
15634 extrasub_host="$extrasub_host"
15635 extrasub_target="$extrasub_target"
15639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15641 # Handling of arguments.
15642 for ac_config_target in $ac_config_targets
15644 case $ac_config_target in
15645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15647 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15652 # If the user did not use the arguments to specify the items to instantiate,
15653 # then the envvar interface is used. Set only those that are not.
15654 # We use the long form for the default assignment because of an extremely
15655 # bizarre bug on SunOS 4.1.3.
15656 if $ac_need_defaults; then
15657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15660 # Have a temporary directory for convenience. Make it in the build tree
15661 # simply because there is no reason against having it here, and in addition,
15662 # creating and moving files from /tmp can sometimes cause problems.
15663 # Hook for its removal unless debugging.
15664 # Note that there is a small window in which the directory will not be cleaned:
15665 # after its creation but before its name has been assigned to `$tmp'.
15669 trap 'exit_status=$?
15670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15672 trap 'as_fn_exit 1' 1 2 13 15
15674 # Create a (secure) tmp directory for tmp files.
15677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15678 test -n "$tmp" && test -d "$tmp"
15681 tmp=./conf$$-$RANDOM
15682 (umask 077 && mkdir "$tmp")
15683 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15685 # Set up the scripts for CONFIG_FILES section.
15686 # No need to generate them if there are no CONFIG_FILES.
15687 # This happens for instance with `./config.status config.h'.
15688 if test -n "$CONFIG_FILES"; then
15690 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15691 ac_cs_awk_getline=:
15692 ac_cs_awk_pipe_init=
15693 ac_cs_awk_read_file='
15694 while ((getline aline < (F[key])) > 0)
15697 ac_cs_awk_pipe_fini=
15699 ac_cs_awk_getline=false
15700 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15701 ac_cs_awk_read_file='
15703 print "cat " F[key] " &&"
15704 '$ac_cs_awk_pipe_init
15705 # The final `:' finishes the AND list.
15706 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15708 ac_cr=`echo X | tr X '\015'`
15709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15710 # But we know of no other shell where ac_cr would be empty at this
15711 # point, so we can use a bashism as a fallback.
15712 if test "x$ac_cr" = x; then
15713 eval ac_cr=\$\'\\r\'
15715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15719 ac_cs_awk_cr=$ac_cr
15722 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15725 # Create commands to substitute file output variables.
15727 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15728 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15729 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15732 } >conf$$files.sh &&
15733 . ./conf$$files.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735 rm -f conf$$files.sh
15738 echo "cat >conf$$subs.awk <<_ACEOF" &&
15739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15741 } >conf$$subs.sh ||
15742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15743 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15745 for ac_last_try in false false false false false :; do
15746 . ./conf$$subs.sh ||
15747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15750 if test $ac_delim_n = $ac_delim_num; then
15752 elif $ac_last_try; then
15753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15758 rm -f conf$$subs.sh
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15765 s/^/S["/; s/!.*/"]=/
15775 s/\(.\{148\}\).*/\1/
15777 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15789 s/\(.\{148\}\).*/\1/
15791 s/["\\]/\\&/g; s/^/"/; s/$/"/
15795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15800 ' <conf$$subs.awk | sed '
15805 ' >>$CONFIG_STATUS || ac_write_fail=1
15806 rm -f conf$$subs.awk
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15809 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15810 for (key in S) S_is_set[key] = 1
15812 \$ac_cs_awk_pipe_init
15816 nfields = split(line, field, "@")
15818 len = length(field[1])
15819 for (i = 2; i < nfields; i++) {
15821 keylen = length(key)
15822 if (S_is_set[key]) {
15824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15825 len += length(value) + length(field[++i])
15830 if (nfields == 3 && !substed) {
15832 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15833 \$ac_cs_awk_read_file
15839 \$ac_cs_awk_pipe_fini
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15847 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15848 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15853 # trailing colons and then remove the whole line if VPATH becomes empty
15854 # (actually we leave an empty line to preserve line numbers).
15855 if test "x$srcdir" = x.; then
15856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15857 s/:*\$(srcdir):*/:/
15858 s/:*\${srcdir}:*/:/
15860 s/^\([^=]*=[ ]*\):*/\1/
15866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15867 fi # test -n "$CONFIG_FILES"
15870 eval set X " :F $CONFIG_FILES "
15875 :[FHLC]) ac_mode=$ac_tag; continue;;
15877 case $ac_mode$ac_tag in
15879 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15880 :[FH]-) ac_tag=-:-;;
15881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15898 -) ac_f="$tmp/stdin";;
15899 *) # Look for the file first in the build tree, then in the source tree
15900 # (if the path is not absolute). The absolute path cannot be DOS-style,
15901 # because $ac_f cannot contain `:'.
15905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15907 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15910 as_fn_append ac_file_inputs " '$ac_f'"
15913 # Let's still pretend it is `configure' which instantiates (i.e., don't
15914 # use $as_me), people would be surprised to read:
15915 # /* config.h. Generated by config.status. */
15916 configure_input='Generated from '`
15917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15919 if test x"$ac_file" != x-; then
15920 configure_input="$ac_file. $configure_input"
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15922 $as_echo "$as_me: creating $ac_file" >&6;}
15924 # Neutralize special characters interpreted by sed in replacement strings.
15925 case $configure_input in #(
15926 *\&* | *\|* | *\\* )
15927 ac_sed_conf_input=`$as_echo "$configure_input" |
15928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15929 *) ac_sed_conf_input=$configure_input;;
15933 *:-:* | *:-) cat >"$tmp/stdin" \
15934 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15939 ac_dir=`$as_dirname -- "$ac_file" ||
15940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15941 X"$ac_file" : 'X\(//\)[^/]' \| \
15942 X"$ac_file" : 'X\(//\)$' \| \
15943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15944 $as_echo X"$ac_file" |
15945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15949 /^X\(\/\/\)[^/].*/{
15962 as_dir="$ac_dir"; as_fn_mkdir_p
15966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15969 # A ".." for each directory in $ac_dir_suffix.
15970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15971 case $ac_top_builddir_sub in
15972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15976 ac_abs_top_builddir=$ac_pwd
15977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15978 # for backward compatibility:
15979 ac_top_builddir=$ac_top_build_prefix
15982 .) # We are building in place.
15984 ac_top_srcdir=$ac_top_builddir_sub
15985 ac_abs_top_srcdir=$ac_pwd ;;
15986 [\\/]* | ?:[\\/]* ) # Absolute name.
15987 ac_srcdir=$srcdir$ac_dir_suffix;
15988 ac_top_srcdir=$srcdir
15989 ac_abs_top_srcdir=$srcdir ;;
15990 *) # Relative name.
15991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15992 ac_top_srcdir=$ac_top_build_prefix$srcdir
15993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011 # If the template does not know about datarootdir, expand it.
16012 # FIXME: This hack should be removed a few years after 2.60.
16013 ac_datarootdir_hack=; ac_datarootdir_seen=
16024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16025 *datarootdir*) ac_datarootdir_seen=yes;;
16026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16031 ac_datarootdir_hack='
16032 s&@datadir@&$datadir&g
16033 s&@docdir@&$docdir&g
16034 s&@infodir@&$infodir&g
16035 s&@localedir@&$localedir&g
16036 s&@mandir@&$mandir&g
16037 s&\\\${datarootdir}&$datarootdir&g' ;;
16041 # Neutralize VPATH when `$srcdir' = `.'.
16042 # Shell code in configure.ac might set extrasub.
16043 # FIXME: do we really want to maintain this feature?
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 ac_sed_extra="$ac_vpsub
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16051 s|@configure_input@|$ac_sed_conf_input|;t t
16052 s&@top_builddir@&$ac_top_builddir_sub&;t t
16053 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16054 s&@srcdir@&$ac_srcdir&;t t
16055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16056 s&@top_srcdir@&$ac_top_srcdir&;t t
16057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16058 s&@builddir@&$ac_builddir&;t t
16059 s&@abs_builddir@&$ac_abs_builddir&;t t
16060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16061 s&@INSTALL@&$ac_INSTALL&;t t
16062 $ac_datarootdir_hack
16064 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16065 if $ac_cs_awk_getline; then
16066 $AWK -f "$tmp/subs.awk"
16068 $AWK -f "$tmp/subs.awk" | $SHELL
16070 || as_fn_error "could not create $ac_file" "$LINENO" 5
16072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16073 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16076 which seems to be undefined. Please make sure it is defined." >&5
16077 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16078 which seems to be undefined. Please make sure it is defined." >&2;}
16082 -) cat "$tmp/out" && rm -f "$tmp/out";;
16083 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16085 || as_fn_error "could not create $ac_file" "$LINENO" 5
16093 case $ac_file$ac_mode in
16094 "Makefile":F) sed "$extrasub_build" Makefile |
16095 sed "$extrasub_host" |
16096 sed "$extrasub_target" > mf$$
16097 mv -f mf$$ Makefile ;;
16105 ac_clean_files=$ac_clean_files_save
16107 test $ac_write_fail = 0 ||
16108 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16111 # configure is writing to config.log, and then calls config.status.
16112 # config.status does its own redirection, appending to config.log.
16113 # Unfortunately, on DOS this fails, as config.log is still kept open
16114 # by configure, so config.status won't be able to write to it; its
16115 # output is simply discarded. So we exec the FD to /dev/null,
16116 # effectively closing config.log, so it can be properly (re)opened and
16117 # appended to by config.status. When coming back to configure, we
16118 # need to make the FD available again.
16119 if test "$no_create" != yes; then
16121 ac_config_status_args=
16122 test "$silent" = yes &&
16123 ac_config_status_args="$ac_config_status_args --quiet"
16125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128 # would make configure fail if this is the last instruction.
16129 $ac_cs_success || as_fn_exit $?
16131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}