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
563 MAINTAINER_MODE_FALSE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
641 extra_host_libiberty_configure_flags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
694 TOPLEVEL_CONFIGURE_ARGUMENTS
722 program_transform_name
733 ac_subst_files='serialization_dependencies
739 enable_option_checking
744 enable_build_with_cxx
764 enable_ppl_version_check
768 enable_cloog_version_check
770 enable_stage1_languages
773 with_debug_prefix_map
776 enable_serial_configure
777 with_build_time_tools
778 enable_maintainer_mode
779 enable_stage1_checking
782 ac_precious_vars='build_alias
826 # Initialize some variables set by options.
828 ac_init_version=false
829 ac_unrecognized_opts=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
840 program_transform_name=s,x,x,
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE}'
865 infodir='${datarootdir}/info'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 as_fn_error "path to source, $srcdir, contains spaces"
1356 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1441 if test -n "$ac_init_help"; then
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1450 --enable-libada build libada directory
1451 --enable-libssp build libssp directory
1452 --enable-build-with-cxx build with C++ compiler instead of C compiler
1453 --disable-ppl-version-check disable check for PPL version
1454 --disable-cloog-version-check
1455 disable check for CLooG version
1456 --enable-lto enable link time optimization support
1457 --enable-stage1-languages[=all] choose additional languages to build during
1458 stage1. Mostly useful for compiler development.
1459 --enable-objc-gc enable use of Boehm's garbage collector with the
1460 GNU Objective-C runtime
1461 --enable-bootstrap enable bootstrapping [yes if native build]
1462 --enable-serial-[{host,target,build}-]configure
1463 force sequential configuration of
1464 sub-packages for the host, target or build
1465 machine, or all sub-packages
1466 --enable-maintainer-mode enable make rules and dependencies not useful
1467 (and sometimes confusing) to the casual installer
1468 --enable-stage1-checking[=all] choose additional checking for stage1
1470 --enable-werror enable -Werror in bootstrap stage2 and later
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-build-libsubdir=DIR Directory where to find libraries for build system
1476 --with-mpc=PATH specify prefix directory for installed MPC package.
1477 Equivalent to --with-mpc-include=PATH/include
1478 plus --with-mpc-lib=PATH/lib
1479 --with-mpc-include=PATH
1480 specify directory for installed MPC include files
1481 --with-mpc-lib=PATH specify directory for the installed MPC library
1482 --with-mpfr-dir=PATH this option has been REMOVED
1483 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1484 Equivalent to --with-mpfr-include=PATH/include
1485 plus --with-mpfr-lib=PATH/lib
1486 --with-mpfr-include=PATH
1487 specify directory for installed MPFR include files
1488 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1489 --with-gmp-dir=PATH this option has been REMOVED
1490 --with-gmp=PATH specify prefix directory for the installed GMP package.
1491 Equivalent to --with-gmp-include=PATH/include
1492 plus --with-gmp-lib=PATH/lib
1493 --with-gmp-include=PATH specify directory for installed GMP include files
1494 --with-gmp-lib=PATH specify directory for the installed GMP library
1495 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1496 when linking with PPL
1497 --with-stage1-ldflags=FLAGS Linker flags for stage1
1498 -with-stage1-libs=LIBS Libraries for stage1
1499 --with-boot-libs=LIBS Libraries for stage2 and later
1500 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1501 --with-ppl=PATH Specify prefix directory for the installed PPL package
1502 Equivalent to --with-ppl-include=PATH/include
1503 plus --with-ppl-lib=PATH/lib
1504 --with-ppl-include=PATH Specify directory for installed PPL include files
1505 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1506 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1507 package. Equivalent to
1508 --with-cloog-include=PATH/include plus
1509 --with-cloog-lib=PATH/lib
1510 --with-cloog-include=PATH
1511 Specify directory for installed CLooG include files
1512 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1514 --with-build-sysroot=SYSROOT
1515 use sysroot as the system root during the build
1516 --with-debug-prefix-map='A=B C=D ...'
1517 map A to B, C to D ... in debug information
1518 --with-build-config='NAME NAME2...'
1519 Use config/NAME.mk build configuration
1520 --with-build-time-tools=PATH
1521 use given path to find target tools during the build
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1534 additional configure arguments for build directories
1536 additional configure arguments for host directories
1538 additional configure arguments for target directories
1541 DLLTOOL DLLTOOL for the host
1543 LIPO LIPO for the host
1545 RANLIB RANLIB for the host
1546 STRIP STRIP for the host
1547 WINDRES WINDRES for the host
1548 WINDMC WINDMC for the host
1549 OBJCOPY OBJCOPY for the host
1550 OBJDUMP OBJDUMP for the host
1560 GFORTRAN for the target
1566 DLLTOOL for the target
1574 OBJDUMP for the target
1576 RANLIB for the target
1578 STRIP for the target
1580 WINDRES for the target
1582 WINDMC for the target
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1587 Report bugs to the package provider.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1617 .) # We are building in place.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1651 generated by GNU Autoconf 2.64
1653 Copyright (C) 2009 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 } # ac_fn_c_try_compile
1702 # ac_fn_cxx_try_compile LINENO
1703 # ----------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_cxx_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_cxx_try_compile
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 } # ac_fn_c_try_link
1785 cat >config.log <<_ACEOF
1786 This file contains any messages produced by compilers while
1787 running configure, to aid debugging if configure makes a mistake.
1789 It was created by $as_me, which was
1790 generated by GNU Autoconf 2.64. Invocation command line was
1802 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1811 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1812 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1813 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1815 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1816 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1817 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 $as_echo "PATH: $as_dir"
1842 # Keep a trace of the command line.
1843 # Strip out --no-create and --no-recursion so they do not pile up.
1844 # Strip out --silent because we don't want to record it for future runs.
1845 # Also quote any args containing shell meta-characters.
1846 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_must_keep_next=false
1856 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858 | -silent | --silent | --silen | --sile | --sil)
1861 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866 as_fn_append ac_configure_args1 " '$ac_arg'"
1867 if test $ac_must_keep_next = true; then
1868 ac_must_keep_next=false # Got value, back to normal.
1871 *=* | --config-cache | -C | -disable-* | --disable-* \
1872 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874 | -with-* | --with-* | -without-* | --without-* | --x)
1875 case "$ac_configure_args0 " in
1876 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1879 -* ) ac_must_keep_next=true ;;
1882 as_fn_append ac_configure_args " '$ac_arg'"
1887 { ac_configure_args0=; unset ac_configure_args0;}
1888 { ac_configure_args1=; unset ac_configure_args1;}
1890 # When interrupted or exit'd, cleanup temporary files, and complete
1891 # config.log. We remove comments because anyway the quotes in there
1892 # would cause problems or look ugly.
1893 # WARNING: Use '\'' to represent an apostrophe within the trap.
1894 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895 trap 'exit_status=$?
1896 # Save into config.log some information that might help in debugging.
1901 ## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##
1906 # The following way of writing the cache mishandles newlines in values,
1908 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909 eval ac_val=\$$ac_var
1913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1917 _ | IFS | as_nl) ;; #(
1918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919 *) { eval $ac_var=; unset $ac_var;} ;;
1924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925 *${as_nl}ac_space=\ *)
1927 "s/'\''/'\''\\\\'\'''\''/g;
1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939 ## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##
1944 for ac_var in $ac_subst_vars
1946 eval ac_val=\$$ac_var
1948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 $as_echo "$ac_var='\''$ac_val'\''"
1954 if test -n "$ac_subst_files"; then
1956 ## ------------------- ##
1957 ## File substitutions. ##
1958 ## ------------------- ##
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 $as_echo "$ac_var='\''$ac_val'\''"
1972 if test -s confdefs.h; then
1982 test "$ac_signal" != 0 &&
1983 $as_echo "$as_me: caught signal $ac_signal"
1984 $as_echo "$as_me: exit $exit_status"
1986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1990 for ac_signal in 1 2 13 15; do
1991 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1998 $as_echo "/* confdefs.h */" > confdefs.h
2000 # Predefined preprocessor variables.
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_NAME "$PACKAGE_NAME"
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_STRING "$PACKAGE_STRING"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_URL "$PACKAGE_URL"
2027 # Let the site file select an alternate cache file if it wants to.
2028 # Prefer an explicitly selected file to automatically selected ones.
2031 if test -n "$CONFIG_SITE"; then
2032 ac_site_file1=$CONFIG_SITE
2033 elif test "x$prefix" != xNONE; then
2034 ac_site_file1=$prefix/share/config.site
2035 ac_site_file2=$prefix/etc/config.site
2037 ac_site_file1=$ac_default_prefix/share/config.site
2038 ac_site_file2=$ac_default_prefix/etc/config.site
2040 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042 test "x$ac_site_file" = xNONE && continue
2043 if test -r "$ac_site_file"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046 sed 's/^/| /' "$ac_site_file" >&5
2051 if test -r "$cache_file"; then
2052 # Some versions of bash will fail to source /dev/null (special
2053 # files actually), so we avoid doing that.
2054 if test -f "$cache_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 $as_echo "$as_me: loading cache $cache_file" >&6;}
2058 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059 *) . "./$cache_file";;
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 $as_echo "$as_me: creating cache $cache_file" >&6;}
2068 # Check that the precious variables saved in the cache have kept the same
2070 ac_cache_corrupted=false
2071 for ac_var in $ac_precious_vars; do
2072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073 eval ac_new_set=\$ac_env_${ac_var}_set
2074 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075 eval ac_new_val=\$ac_env_${ac_var}_value
2076 case $ac_old_set,$ac_new_set in
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080 ac_cache_corrupted=: ;;
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2087 if test "x$ac_old_val" != "x$ac_new_val"; then
2088 # differences in whitespace do not lead to failure.
2089 ac_old_val_w=`echo x $ac_old_val`
2090 ac_new_val_w=`echo x $ac_new_val`
2091 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094 ac_cache_corrupted=:
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098 eval $ac_var=\$ac_old_val
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2101 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2103 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2106 # Pass precious variables to config.status.
2107 if test "$ac_new_set" = set; then
2109 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 *) ac_arg=$ac_var=$ac_new_val ;;
2112 case " $ac_configure_args " in
2113 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2114 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2118 if $ac_cache_corrupted; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2125 ## -------------------- ##
2126 ## Main body of script. ##
2127 ## -------------------- ##
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 # if PWD already has a value, it is probably wrong.
2145 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2147 # Export original configure arguments for use by sub-configures.
2148 # Quote arguments with shell meta charatcers.
2149 TOPLEVEL_CONFIGURE_ARGUMENTS=
2150 set -- "$progname" "$@"
2154 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2155 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2156 # if the argument is of the form -foo=baz, quote the baz part only
2157 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2160 # Add the quoted argument to the list.
2161 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2163 if test "$silent" = yes; then
2164 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2166 # Remove the initial space we just introduced and, as these will be
2167 # expanded by make, quote '$'.
2168 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2171 # Find the build, host, and target systems.
2173 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2174 for ac_t in install-sh install.sh shtool; do
2175 if test -f "$ac_dir/$ac_t"; then
2177 ac_install_sh="$ac_aux_dir/$ac_t -c"
2182 if test -z "$ac_aux_dir"; then
2183 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2186 # These three variables are undocumented and unsupported,
2187 # and are intended to be withdrawn in a future Autoconf release.
2188 # They can cause serious problems if a builder's source tree is in a directory
2189 # whose full name contains unusual characters.
2190 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2191 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2192 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2195 # Make sure we can run config.sub.
2196 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2197 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2200 $as_echo_n "checking build system type... " >&6; }
2201 if test "${ac_cv_build+set}" = set; then :
2202 $as_echo_n "(cached) " >&6
2204 ac_build_alias=$build_alias
2205 test "x$ac_build_alias" = x &&
2206 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2207 test "x$ac_build_alias" = x &&
2208 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2210 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2214 $as_echo "$ac_cv_build" >&6; }
2215 case $ac_cv_build in
2217 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2220 ac_save_IFS=$IFS; IFS='-'
2226 # Remember, the first character of IFS is used to create $*,
2227 # except with old shells:
2230 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2233 case ${build_alias} in
2234 "") build_noncanonical=${build} ;;
2235 *) build_noncanonical=${build_alias} ;;
2240 case ${host_alias} in
2241 "") host_noncanonical=${build_noncanonical} ;;
2242 *) host_noncanonical=${host_alias} ;;
2247 case ${target_alias} in
2248 "") target_noncanonical=${host_noncanonical} ;;
2249 *) target_noncanonical=${target_alias} ;;
2255 test "$host_noncanonical" = "$target_noncanonical" &&
2256 test "$program_prefix$program_suffix$program_transform_name" = \
2258 program_transform_name=s,y,y,
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2261 $as_echo_n "checking host system type... " >&6; }
2262 if test "${ac_cv_host+set}" = set; then :
2263 $as_echo_n "(cached) " >&6
2265 if test "x$host_alias" = x; then
2266 ac_cv_host=$ac_cv_build
2268 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2269 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2274 $as_echo "$ac_cv_host" >&6; }
2277 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2280 ac_save_IFS=$IFS; IFS='-'
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2294 $as_echo_n "checking target system type... " >&6; }
2295 if test "${ac_cv_target+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2298 if test "x$target_alias" = x; then
2299 ac_cv_target=$ac_cv_host
2301 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2302 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2307 $as_echo "$ac_cv_target" >&6; }
2308 case $ac_cv_target in
2310 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2312 target=$ac_cv_target
2313 ac_save_IFS=$IFS; IFS='-'
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2323 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2326 # The aliases save the names the user supplied, while $host etc.
2327 # will get canonicalized.
2328 test -n "$target_alias" &&
2329 test "$program_prefix$program_suffix$program_transform_name" = \
2331 program_prefix=${target_alias}-
2333 test "$program_prefix" != NONE &&
2334 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2335 # Use a double $ so make ignores it.
2336 test "$program_suffix" != NONE &&
2337 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2338 # Double any \ or $.
2339 # By default was `s,x,x', remove it if useless.
2340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2345 # Get 'install' or 'install-sh' and its variants.
2346 # Find a good install program. We prefer a C program (faster),
2347 # so one script is as good as another. But avoid the broken or
2348 # incompatible versions:
2349 # SysV /etc/install, /usr/sbin/install
2350 # SunOS /usr/etc/install
2351 # IRIX /sbin/install
2353 # AmigaOS /C/install, which installs bootblocks on floppy discs
2354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2357 # OS/2's system install, which has a completely different semantic
2358 # ./install, which can be erroneously created by make from ./install.sh.
2359 # Reject install programs that cannot install multiple files.
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2362 if test -z "$INSTALL"; then
2363 if test "${ac_cv_path_install+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 # Account for people who put trailing slashes in PATH elements.
2372 case $as_dir/ in #((
2373 ./ | .// | /[cC]/* | \
2374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378 # OSF1 and SCO ODT 3.0 have their own names for install.
2379 # Don't use installbsd from OSF since it installs stuff as root
2381 for ac_prog in ginstall scoinst install; do
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2384 if test $ac_prog = install &&
2385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # AIX install. It has an incompatible calling convention.
2388 elif test $ac_prog = install &&
2389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390 # program-specific install script used by HP pwplus--don't use.
2393 rm -rf conftest.one conftest.two conftest.dir
2394 echo one > conftest.one
2395 echo two > conftest.two
2397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2398 test -s conftest.one && test -s conftest.two &&
2399 test -s conftest.dir/conftest.one &&
2400 test -s conftest.dir/conftest.two
2402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415 rm -rf conftest.one conftest.two conftest.dir
2418 if test "${ac_cv_path_install+set}" = set; then
2419 INSTALL=$ac_cv_path_install
2421 # As a last resort, use the slow shell script. Don't cache a
2422 # value for INSTALL within a source directory, because that will
2423 # break other packages using the cache if that directory is
2424 # removed, or if the value is a relative name.
2425 INSTALL=$ac_install_sh
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2429 $as_echo "$INSTALL" >&6; }
2431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2432 # It thinks the first close brace ends the variable substitution.
2433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2440 $as_echo_n "checking whether ln works... " >&6; }
2441 if test "${acx_cv_prog_LN+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2444 rm -f conftestdata_t
2445 echo >conftestdata_f
2446 if ln conftestdata_f conftestdata_t 2>/dev/null
2452 rm -f conftestdata_f conftestdata_t
2455 if test $acx_cv_prog_LN = no; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2458 $as_echo "no, using $LN" >&6; }
2460 LN="$acx_cv_prog_LN"
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462 $as_echo "yes" >&6; }
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2466 $as_echo_n "checking whether ln -s works... " >&6; }
2468 if test "$LN_S" = "ln -s"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2473 $as_echo "no, using $LN_S" >&6; }
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2478 if test "${ac_cv_path_SED+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2482 for ac_i in 1 2 3 4 5 6 7; do
2483 ac_script="$ac_script$as_nl$ac_script"
2485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2486 { ac_script=; unset ac_script;}
2487 if test -z "$SED"; then
2488 ac_path_SED_found=false
2489 # Loop through the user's path and test for each of PROGNAME-LIST
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_prog in sed gsed; do
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2498 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2499 # Check for GNU ac_path_SED and select it if it is found.
2500 # Check for GNU $ac_path_SED
2501 case `"$ac_path_SED" --version 2>&1` in
2503 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2506 $as_echo_n 0123456789 >"conftest.in"
2509 cat "conftest.in" "conftest.in" >"conftest.tmp"
2510 mv "conftest.tmp" "conftest.in"
2511 cp "conftest.in" "conftest.nl"
2512 $as_echo '' >> "conftest.nl"
2513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2515 as_fn_arith $ac_count + 1 && ac_count=$as_val
2516 if test $ac_count -gt ${ac_path_SED_max-0}; then
2517 # Best one so far, save it but keep looking for a better one
2518 ac_cv_path_SED="$ac_path_SED"
2519 ac_path_SED_max=$ac_count
2521 # 10*(2^10) chars as input seems more than enough
2522 test $ac_count -gt 10 && break
2524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2527 $ac_path_SED_found && break 3
2532 if test -z "$ac_cv_path_SED"; then
2533 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2541 $as_echo "$ac_cv_path_SED" >&6; }
2542 SED="$ac_cv_path_SED"
2545 for ac_prog in gawk mawk nawk awk
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_AWK+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2554 if test -n "$AWK"; then
2555 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_AWK="$ac_prog"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 if test -n "$AWK"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2577 $as_echo "$AWK" >&6; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2584 test -n "$AWK" && break
2588 ### we might need to use some other shell than /bin/sh for running subshells
2589 ### If we are on Windows, search for the shell. This will permit people
2590 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2591 ### without also having to set CONFIG_SHELL. This code will work when
2592 ### using bash, which sets OSTYPE.
2595 if test x${CONFIG_SHELL} = x ; then
2596 if test ! -f /bin/sh ; then
2597 if test x${SHELL} != x && test -f ${SHELL} ; then
2598 CONFIG_SHELL=${SHELL}
2601 for prog in sh sh.exe bash bash.exe; do
2602 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2603 for dir in $PATH; do
2604 test -z "$dir" && dir=.
2605 if test -f $dir/$prog; then
2606 CONFIG_SHELL=$dir/$prog
2612 test -n "${CONFIG_SHELL}" && break
2620 config_shell=${CONFIG_SHELL-/bin/sh}
2622 moveifchange=${srcdir}/move-if-change
2624 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2626 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2628 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2629 INSTALL="${srcpwd}/install-sh -c"
2632 # Set srcdir to "." if that's what it is.
2633 # This is important for multilib support.
2635 if test "${pwd}" = "${srcpwd}" ; then
2643 ### To add a new directory to the tree, first choose whether it is a target
2644 ### or a host dependent tool. Then put it into the appropriate list
2645 ### (library or tools, host or target), doing a dependency sort.
2647 # Subdirs will be configured in the order listed in build_configdirs,
2648 # configdirs, or target_configdirs; see the serialization section below.
2650 # Dependency sorting is only needed when *configuration* must be done in
2651 # a particular order. In all cases a dependency should be specified in
2652 # the Makefile, whether or not it's implicitly specified here.
2654 # Double entries in build_configdirs, configdirs, or target_configdirs may
2655 # cause circular dependencies and break everything horribly.
2657 # these library is used by various programs built for the build
2660 build_libs="build-libiberty"
2662 # these tools are built for the build environment
2663 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2665 # these libraries are used by various programs built for the host environment
2667 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2669 # these tools are built for the host environment
2670 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2671 # know that we are building the simulator.
2672 # binutils, gas and ld appear in that order because it makes sense to run
2673 # "make check" in that particular order.
2674 # If --enable-gold is used, "gold" may replace "ld".
2675 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2677 # libgcj represents the runtime libraries only used by gcj.
2678 libgcj="target-libffi \
2683 # these libraries are built for the target environment, and are built after
2684 # the host libraries and the host tools (which may be a cross compiler)
2686 target_libraries="target-libgcc \
2691 target-libstdc++-v3 \
2694 target-libgfortran \
2700 # these tools are built using the target libraries, and are intended to
2701 # run only in the target environment
2703 # note: any program that *uses* libraries that are in the "target_libraries"
2704 # list belongs in this list. those programs are also very likely
2705 # candidates for the "native_only" list which follows
2707 target_tools="target-examples target-groff target-gperf target-rda"
2709 ################################################################################
2711 ## All tools belong in one of the four categories, and are assigned above
2712 ## We assign ${configdirs} this way to remove all embedded newlines. This
2713 ## is important because configure will choke if they ever get through.
2714 ## ${configdirs} is directories we build using the host tools.
2715 ## ${target_configdirs} is directories we build using the target tools.
2716 configdirs=`echo ${host_libs} ${host_tools}`
2717 target_configdirs=`echo ${target_libraries} ${target_tools}`
2718 build_configdirs=`echo ${build_libs} ${build_tools}`
2722 ################################################################################
2724 srcname="gnu development package"
2726 # This gets set non-empty for some net releases of packages.
2729 # Define is_cross_compiler to save on calls to 'test'.
2731 if test x"${host}" = x"${target}" ; then
2732 is_cross_compiler=no
2734 is_cross_compiler=yes
2737 # Find the build and target subdir names.
2739 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2740 # have matching libraries, they should use host libraries: Makefile.tpl
2741 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2742 # However, they still use the build modules, because the corresponding
2743 # host modules (e.g. bison) are only built for the host when bootstrap
2745 # - build_subdir is where we find build modules, and never changes.
2746 # - build_libsubdir is where we find build libraries, and can be overridden.
2748 # Prefix 'build-' so this never conflicts with target_subdir.
2749 build_subdir="build-${build_noncanonical}"
2751 # Check whether --with-build-libsubdir was given.
2752 if test "${with_build_libsubdir+set}" = set; then :
2753 withval=$with_build_libsubdir; build_libsubdir="$withval"
2755 build_libsubdir="$build_subdir"
2758 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2759 if ( test $srcdir = . && test -d gcc ) \
2760 || test -d $srcdir/../host-${host_noncanonical}; then
2761 host_subdir="host-${host_noncanonical}"
2766 target_subdir=${target_noncanonical}
2768 # Be sure to cover against remnants of an in-tree build.
2769 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2770 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2771 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2774 # Skipdirs are removed silently.
2776 # Noconfigdirs are removed loudly.
2780 # Make sure we don't let GNU ld be added if we didn't want it.
2781 if test x$with_gnu_ld = xno ; then
2783 noconfigdirs="$noconfigdirs ld gold"
2787 # Make sure we don't let GNU as be added if we didn't want it.
2788 if test x$with_gnu_as = xno ; then
2790 noconfigdirs="$noconfigdirs gas"
2794 # Make sure we don't let ZLIB be added if we didn't want it.
2795 if test x$with_system_zlib = xyes ; then
2796 use_included_zlib=no
2797 noconfigdirs="$noconfigdirs zlib"
2800 # some tools are so dependent upon X11 that if we're not building with X,
2801 # it's not even worth trying to configure, much less build, that tool.
2804 yes | "") ;; # the default value for this tree is that X11 is available
2806 skipdirs="${skipdirs} tk itcl libgui"
2807 # We won't be able to build gdbtk without X.
2810 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2813 # Some tools are only suitable for building in a "native" situation.
2814 # Remove these if host!=target.
2815 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2817 # Similarly, some are only suitable for cross toolchains.
2818 # Remove these if host=target.
2819 cross_only="target-libgloss target-newlib target-opcodes"
2821 case $is_cross_compiler in
2822 no) skipdirs="${skipdirs} ${cross_only}" ;;
2823 yes) skipdirs="${skipdirs} ${native_only}" ;;
2826 # If both --with-headers and --with-libs are specified, default to
2828 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2829 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2830 if test x"${with_newlib}" = x ; then
2835 # Recognize --with-newlib/--without-newlib.
2836 case ${with_newlib} in
2837 no) skipdirs="${skipdirs} target-newlib" ;;
2838 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2841 # Handle --enable-gold.
2842 # --enable-gold Build only gold
2843 # --disable-gold [default] Build only ld
2844 # --enable-gold=both Build both gold and ld, ld is default
2845 # --enable-gold=both/ld Same
2846 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2848 # Check whether --enable-gold was given.
2849 if test "${enable_gold+set}" = set; then :
2850 enableval=$enable_gold; ENABLE_GOLD=$enableval
2855 case "${ENABLE_GOLD}" in
2856 yes|both|both/gold|both/ld)
2857 # Check for ELF target.
2860 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2861 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2862 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2864 *-*-linux*aout* | *-*-linux*oldld*)
2872 if test "$is_elf" = "yes"; then
2873 # Check for target supported by gold.
2875 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2876 case "${ENABLE_GOLD}" in
2878 configdirs="$configdirs gold"
2881 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2892 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2896 # Configure extra directories which are host specific
2900 configdirs="$configdirs libtermcap" ;;
2903 # A target can indicate whether a language isn't supported for some reason.
2904 # Only spaces may be used in this macro; not newlines or tabs.
2905 unsupported_languages=
2907 # Remove more programs from consideration, based on the host or
2908 # target this usually means that a port of the program doesn't
2913 noconfigdirs="$noconfigdirs byacc"
2915 i[3456789]86-*-vsta)
2916 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2918 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2919 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2922 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2924 i[3456789]86-*-mingw32*)
2925 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2926 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2928 i[3456789]86-*-beos*)
2929 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2932 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2935 noconfigdirs="$noconfigdirs rcs"
2938 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2941 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2946 # Check whether --enable-libada was given.
2947 if test "${enable_libada+set}" = set; then :
2948 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2953 if test "${ENABLE_LIBADA}" != "yes" ; then
2954 noconfigdirs="$noconfigdirs gnattools"
2957 # Check whether --enable-libssp was given.
2958 if test "${enable_libssp+set}" = set; then :
2959 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2965 # Save it here so that, even in case of --enable-libgcj, if the Java
2966 # front-end isn't enabled, we still get libgcj disabled.
2967 libgcj_saved=$libgcj
2968 case $enable_libgcj in
2970 # If we reset it here, it won't get added to noconfigdirs in the
2971 # target-specific build rules, so it will be forcibly enabled
2972 # (unless the Java language itself isn't enabled).
2976 # Make sure we get it printed in the list of not supported target libs.
2977 noconfigdirs="$noconfigdirs ${libgcj}"
2982 # Disable libmudflap on some systems.
2983 if test x$enable_libmudflap = x ; then
2985 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2986 # Enable libmudflap by default in GNU and friends.
2989 # Enable libmudflap by default in FreeBSD.
2992 # Disable it by default everywhere else.
2993 noconfigdirs="$noconfigdirs target-libmudflap"
2998 # Disable libgomp on non POSIX hosted systems.
2999 if test x$enable_libgomp = x ; then
3000 # Enable libgomp by default on hosted POSIX systems.
3002 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3004 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3006 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3008 *-*-darwin* | *-*-aix*)
3011 noconfigdirs="$noconfigdirs target-libgomp"
3016 # Default libgloss CPU subdirectory.
3017 libgloss_dir="$target_cpu"
3021 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3024 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3025 noconfigdirs="$noconfigdirs sim target-rda"
3027 i[3456789]86-*-darwin*)
3028 noconfigdirs="$noconfigdirs ld gprof"
3029 noconfigdirs="$noconfigdirs sim target-rda"
3031 x86_64-*-darwin[912]*)
3032 noconfigdirs="$noconfigdirs ld gas gprof"
3033 noconfigdirs="$noconfigdirs sim target-rda"
3036 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3037 noconfigdirs="$noconfigdirs sim target-rda"
3038 noconfigdirs="$noconfigdirs ${libgcj}"
3040 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3041 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3044 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3045 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3046 && test -f /usr/local/include/gmp.h; then
3050 # Skip some stuff that's unsupported on some FreeBSD configurations.
3056 noconfigdirs="$noconfigdirs ${libgcj}"
3061 # Remove unsupported stuff on all kaOS configurations.
3062 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3063 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3064 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3065 noconfigdirs="$noconfigdirs target-libgloss"
3068 # Skip some stuff on all NetBSD configurations.
3069 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3071 # Skip some stuff that's unsupported on some NetBSD configurations.
3073 i*86-*-netbsdelf*) ;;
3074 arm*-*-netbsdelf*) ;;
3076 noconfigdirs="$noconfigdirs ${libgcj}"
3081 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3084 skipdirs="${skipdirs} target-libiberty"
3085 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3087 # The tpf target doesn't support gdb yet.
3089 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3092 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3095 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3098 # ld works, but does not support shared libraries.
3099 # newlib is not 64 bit ready. I'm not sure about fileutils.
3100 # gas doesn't generate exception information.
3101 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3104 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3107 # newlib is not 64 bit ready
3108 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3111 # newlib is not 64 bit ready
3112 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3115 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3118 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3120 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3121 noconfigdirs="$noconfigdirs ${libgcj}"
3122 noconfigdirs="$noconfigdirs target-examples"
3123 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3124 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3125 noconfigdirs="$noconfigdirs expect dejagnu"
3126 # the C++ libraries don't build on top of CE's C libraries
3127 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3128 noconfigdirs="$noconfigdirs target-newlib"
3130 *-*-cygwin*) ;; # keep gdb and readline
3131 *) noconfigdirs="$noconfigdirs gdb readline"
3137 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3141 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3142 noconfigdirs="$noconfigdirs ${libgcj}"
3145 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3146 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3149 arm*-*-linux-gnueabi)
3150 noconfigdirs="$noconfigdirs target-qthreads"
3151 case ${with_newlib} in
3152 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3157 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3161 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3164 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3167 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3170 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3173 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3176 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3179 unsupported_languages="$unsupported_languages java"
3180 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3181 if test x${is_cross_compiler} != xno ; then
3182 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3185 c4x-*-* | tic4x-*-*)
3186 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3188 c54x*-*-* | tic54x-*-*)
3189 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3192 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3194 cris-*-* | crisv32-*-*)
3195 unsupported_languages="$unsupported_languages java"
3198 unsupported_languages="$unsupported_languages fortran"
3199 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3201 noconfigdirs="$noconfigdirs target-boehm-gc";;
3203 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3205 unsupported_languages="$unsupported_languages fortran"
3206 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3211 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3214 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3217 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3219 ep9312-*-elf | ep9312-*-coff)
3223 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3226 noconfigdirs="$noconfigdirs ${libgcj}"
3229 noconfigdirs="$noconfigdirs ${libgcj}"
3230 noconfigdirs="$noconfigdirs gprof"
3233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3238 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3240 hppa*64*-*-linux* | parisc*64*-*-linux*)
3241 # In this case, it's because the hppa64-linux target is for
3242 # the kernel only at this point and has no libc, and thus no
3243 # headers, crt*.o, etc., all of which are needed by these.
3244 noconfigdirs="$noconfigdirs target-zlib"
3246 parisc*-*-linux* | hppa*-*-linux*)
3250 hppa*-*-openbsd* | \
3252 noconfigdirs="$noconfigdirs ${libgcj}"
3255 noconfigdirs="$noconfigdirs ld shellutils"
3261 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3262 # build on HP-UX 10.20.
3263 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3266 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3269 # No gdb support yet.
3270 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3273 # No gdb or ld support yet.
3274 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3277 # No gdb or ld support yet.
3278 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3282 i[3456789]86-*-coff | i[3456789]86-*-elf)
3283 noconfigdirs="$noconfigdirs ${libgcj}"
3286 i[3456789]86-*-linux*)
3287 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3288 # not build java stuff by default.
3291 noconfigdirs="$noconfigdirs ${libgcj}";;
3294 # This section makes it possible to build newlib natively on linux.
3295 # If we are using a cross compiler then don't configure newlib.
3296 if test x${is_cross_compiler} != xno ; then
3297 noconfigdirs="$noconfigdirs target-newlib"
3299 noconfigdirs="$noconfigdirs target-libgloss"
3300 # If we are not using a cross compiler, do configure newlib.
3301 # Note however, that newlib will only be configured in this situation
3302 # if the --with-newlib option has been given, because otherwise
3303 # 'target-newlib' will appear in skipdirs.
3305 i[3456789]86-w64-mingw*)
3306 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3308 i[3456789]86-*-mingw*)
3309 target_configdirs="$target_configdirs target-winsup"
3310 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3313 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3316 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3317 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3318 # always build newlib if winsup directory is present.
3319 if test -d "$srcdir/winsup/cygwin"; then
3320 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3321 elif test -d "$srcdir/newlib"; then
3322 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3325 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3326 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3331 i[3456789]86-*-sco3.2v5*)
3332 # The linker does not yet know about weak symbols in COFF,
3333 # and is not configured to handle mixed ELF and COFF.
3334 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3336 i[3456789]86-*-sco*)
3337 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3339 i[3456789]86-*-solaris2*)
3340 noconfigdirs="$noconfigdirs target-libgloss"
3342 i[3456789]86-*-sysv4*)
3343 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3345 i[3456789]86-*-beos*)
3346 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3348 i[3456789]86-*-rdos*)
3349 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3354 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3355 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3356 libgloss_dir=m68hc11
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3362 noconfigdirs="$noconfigdirs ${libgcj}"
3364 m68*-*-* | fido-*-*)
3368 # The EPOC C++ environment does not support exceptions or rtti,
3369 # and so building libstdc++-v3 tends not to always work.
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3374 unsupported_languages="$unsupported_languages fortran java"
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3383 noconfigdirs="$noconfigdirs sim"
3386 # copied from rs6000-*-* entry
3387 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3389 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3390 target_configdirs="$target_configdirs target-winsup"
3391 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3392 # always build newlib.
3393 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3395 # This is temporary until we can link against shared libraries
3396 powerpcle-*-solaris*)
3397 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3401 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3407 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3411 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3414 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3417 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3420 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3423 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3426 skipdirs="$skipdirs target-libiberty"
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3428 if test x$with_newlib = xyes; then
3429 noconfigdirs="$noconfigdirs gprof"
3434 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3437 # Linking libjava exceeds command-line length limits on at least
3438 # IRIX 6.2, but not on IRIX 6.5.
3439 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3440 # <oldham@codesourcery.com>
3441 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3444 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3450 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3454 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3458 i[3456789]86-*-vsta) ;; # don't add gprof back in
3459 i[3456789]86-*-go32*) ;; # don't add gprof back in
3460 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3461 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3465 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3467 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3470 sparclet-*-aout* | sparc86x-*-*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 if test x${is_cross_compiler} != xno ; then
3487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3492 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3495 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3498 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3501 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3504 noconfigdirs="$noconfigdirs ${libgcj}"
3507 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3513 noconfigdirs="$noconfigdirs ${libgcj}"
3516 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3518 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3529 # If we aren't building newlib, then don't build libgloss, since libgloss
3530 # depends upon some newlib header files.
3531 case "${noconfigdirs}" in
3532 *target-libgloss*) ;;
3533 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3536 # Work in distributions that contain no compiler tools, like Autoconf.
3538 host_makefile_frag=/dev/null
3539 if test -d ${srcdir}/config ; then
3542 # Avoid "too much defining" errors from HPUX compiler.
3543 tentative_cc="cc -Wp,-H256000"
3544 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3545 # If it's HP/UX ar, this should be harmless.
3549 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3552 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3553 # chokes on bfd, the compiler won't let you assign integers to enums, and
3554 # other problems. Defining CC to gcc is a questionable way to say "don't use
3555 # the apollo compiler" (the preferred version of GCC could be called cc,
3556 # or whatever), but I'm not sure leaving CC as cc is any better...
3557 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3558 # Used to have BISON=yacc.
3562 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3565 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3566 tentative_cc="cc -Xa"
3567 host_makefile_frag="config/mh-cxux"
3569 m88k-motorola-sysv*)
3572 tentative_cc="cc -Wf,-XNg1000"
3573 host_makefile_frag="config/mh-decstation"
3576 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3577 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3578 host_makefile_frag="config/mh-necv4"
3581 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3582 # environment. Also bump switch table size so that cp-parse will
3583 # compile. Bump string length limit so linker builds.
3584 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3587 host_makefile_frag="config/mh-sysv4"
3590 # This is for a MIPS running RISC/os 4.52C.
3592 # This is needed for GDB, but needs to be in the top-level make because
3593 # if a library is compiled with the bsd headers and gets linked with the
3594 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3595 # a different size).
3596 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3597 # known except to select the sysv environment. Could we use /proc instead?
3598 # These "sysv environments" and "bsd environments" often end up being a pain.
3600 # This is not part of CFLAGS because perhaps not all C compilers have this
3602 tentative_cc="cc -systype sysv"
3607 i[3456789]86-*-sysv5*)
3608 host_makefile_frag="config/mh-sysv5"
3610 i[3456789]86-*-dgux*)
3611 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3612 host_makefile_frag="config/mh-dgux386"
3614 i[3456789]86-ncr-sysv4.3*)
3615 # The MetaWare compiler will generate a copyright message unless you
3616 # turn it off by adding the -Hnocopyr flag.
3617 tentative_cc="cc -Hnocopyr"
3619 i[3456789]86-ncr-sysv4*)
3620 # for an NCR 3000 (i486/SVR4) system.
3621 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3622 # This compiler not only emits obnoxious copyright messages every time
3623 # you run it, but it chokes and dies on a whole bunch of GNU source
3624 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3625 tentative_cc="/usr/ccs/ATT/cc"
3626 host_makefile_frag="config/mh-ncr3000"
3628 i[3456789]86-*-sco3.2v5*)
3630 i[3456789]86-*-sco*)
3631 # The native C compiler botches some simple uses of const. Unfortunately,
3632 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3633 tentative_cc="cc -Dconst="
3634 host_makefile_frag="config/mh-sco"
3636 i[3456789]86-*-udk*)
3637 host_makefile_frag="config/mh-sysv5"
3639 i[3456789]86-*-solaris2*)
3640 host_makefile_frag="config/mh-sysv4"
3642 i[3456789]86-*-msdosdjgpp*)
3643 host_makefile_frag="config/mh-djgpp"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3648 $as_echo_n "checking to see if cat works as expected... " >&6; }
3649 echo a >cygwin-cat-check
3650 if test `cat cygwin-cat-check` = a ; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 as_fn_error "The cat command does not ignore carriage return characters.
3659 Please either mount the build directory in binary mode or run the following
3660 commands before running any configure script:
3666 host_makefile_frag="config/mh-cygwin"
3669 host_makefile_frag="config/mh-mingw"
3672 host_makefile_frag="config/mh-interix"
3675 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3679 host_makefile_frag="config/mh-solaris"
3682 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3683 # without overflowing the jump tables (-J says to use a 32 bit table)
3684 tentative_cc="cc -J"
3687 tentative_cc="cc -Wp,-H256000"
3688 host_makefile_frag="config/mh-pa-hpux10"
3690 hppa*-hp-hpux* | hppa*-*-hiux*)
3691 tentative_cc="cc -Wp,-H256000"
3692 host_makefile_frag="config/mh-pa"
3695 host_makefile_frag="config/mh-pa"
3697 *-hp-hpux* | *-*-hiux*)
3698 tentative_cc="cc -Wp,-H256000"
3701 # /bin/cc is less than useful for our purposes. Always use GCC
3702 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3703 host_makefile_frag="config/mh-lynxrs6k"
3706 host_makefile_frag="config/mh-darwin"
3709 host_makefile_frag="config/mh-ppc-aix"
3712 host_makefile_frag="config/mh-ppc-aix"
3715 # /bin/cc is less than useful for our purposes. Always use GCC
3716 tentative_cc="/bin/gcc"
3719 host_makefile_frag="config/mh-sysv4"
3721 # This is placed last to prevent interfering with the cases above.
3723 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3724 host_makefile_frag="config/mh-x86omitfp"
3729 # If we aren't going to be using gcc, see if we can extract a definition
3730 # of CC from the fragment.
3731 # Actually, use the 'pre-extracted' version above.
3732 if test -z "${CC}" && test "${build}" = "${host}" ; then
3733 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3735 for dir in $PATH; do
3736 test -z "$dir" && dir=.
3737 if test -f $dir/gcc; then
3743 if test -z "${found}" && test -n "${tentative_cc}" ; then
3748 if test "${build}" != "${host}" ; then
3749 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3750 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3751 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3752 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3753 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3754 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3755 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3756 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3757 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3758 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3759 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3760 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3762 AR_FOR_BUILD="\$(AR)"
3763 AS_FOR_BUILD="\$(AS)"
3764 CC_FOR_BUILD="\$(CC)"
3765 CXX_FOR_BUILD="\$(CXX)"
3766 GCJ_FOR_BUILD="\$(GCJ)"
3767 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3768 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3769 LD_FOR_BUILD="\$(LD)"
3770 NM_FOR_BUILD="\$(NM)"
3771 RANLIB_FOR_BUILD="\$(RANLIB)"
3772 WINDRES_FOR_BUILD="\$(WINDRES)"
3773 WINDMC_FOR_BUILD="\$(WINDMC)"
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3820 if test -z "$ac_cv_prog_CC"; then
3822 # Extract the first word of "gcc", so it can be a program name with args.
3823 set dummy gcc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_ac_ct_CC="gcc"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3858 if test "x$ac_ct_CC" = x; then
3861 case $cross_compiling:$ac_tool_warned in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3873 if test -z "$CC"; then
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CC="${ac_tool_prefix}cc"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905 $as_echo "$CC" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3914 if test -z "$CC"; then
3915 # Extract the first word of "cc", so it can be a program name with args.
3916 set dummy cc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934 ac_prog_rejected=yes
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test $ac_prog_rejected = yes; then
3946 # We found a bogon in the path, so make sure we never use it.
3947 set dummy $ac_cv_prog_CC
3949 if test $# != 0; then
3950 # We chose a different compiler from the bogus one.
3951 # However, it has the same basename, so the bogon will be chosen
3952 # first if we set CC to just the basename; use the full file name.
3954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 for ac_prog in cl.exe
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 if test -n "$CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4011 test -n "$CC" && break
4014 if test -z "$CC"; then
4016 for ac_prog in cl.exe
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_CC="$ac_prog"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048 $as_echo "$ac_ct_CC" >&6; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4055 test -n "$ac_ct_CC" && break
4058 if test "x$ac_ct_CC" = x; then
4061 case $cross_compiling:$ac_tool_warned in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error "no acceptable C compiler found in \$PATH
4077 See \`config.log' for more details." "$LINENO" 5; }
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4083 for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4093 if test -s conftest.err; then
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 rm -f conftest.er1 conftest.err
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 ac_clean_files_save=$ac_clean_files
4116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4117 # Try to create an executable without -o first, disregard a.out.
4118 # It will help us diagnose broken compilers, and finding out an intuition
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121 $as_echo_n "checking for C compiler default output file name... " >&6; }
4122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4124 # The possible output files:
4125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4128 for ac_file in $ac_files
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4137 if { { ac_try="$ac_link_default"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_link_default") 2>&5
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4151 # so that the user can short-circuit this test for compilers unknown to
4153 for ac_file in $ac_files ''
4155 test -f "$ac_file" || continue
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4160 # We found the default executable, but exeext='' is most
4164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168 # We set ac_cv_exeext here because the later test for it is not
4169 # safe: cross compilers may not add the suffix if given an `-o'
4170 # argument, so we may need to know it at that point already.
4171 # Even if this section looks crufty: it has the advantage of
4178 test "$ac_cv_exeext" = no && ac_cv_exeext=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4184 $as_echo "$ac_file" >&6; }
4185 if test -z "$ac_file"; then :
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 { as_fn_set_status 77
4192 as_fn_error "C compiler cannot create executables
4193 See \`config.log' for more details." "$LINENO" 5; }; }
4195 ac_exeext=$ac_cv_exeext
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200 $as_echo_n "checking whether the C compiler works... " >&6; }
4201 # If not cross compiling, check that we can run a simple program.
4202 if test "$cross_compiling" != yes; then
4203 if { ac_try='./$ac_file'
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
4216 if test "$cross_compiling" = maybe; then
4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error "cannot run C compiled programs.
4222 If you meant to cross compile, use \`--host'.
4223 See \`config.log' for more details." "$LINENO" 5; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4231 ac_clean_files=$ac_clean_files_save
4232 # Check that the compiler produces executables we can run. If not, either
4233 # the compiler is broken, or we cross compile.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235 $as_echo_n "checking whether we are cross compiling... " >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4237 $as_echo "$cross_compiling" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240 $as_echo_n "checking for suffix of executables... " >&6; }
4241 if { { ac_try="$ac_link"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_link") 2>&5
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; then :
4252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4254 # work properly (i.e., refer to `conftest.exe'), while it won't with
4256 for ac_file in conftest.exe conftest conftest.*; do
4257 test -f "$ac_file" || continue
4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot compute suffix of executables: cannot compile and link
4269 See \`config.log' for more details." "$LINENO" 5; }
4271 rm -f conftest$ac_cv_exeext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273 $as_echo "$ac_cv_exeext" >&6; }
4275 rm -f conftest.$ac_ext
4276 EXEEXT=$ac_cv_exeext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279 $as_echo_n "checking for suffix of object files... " >&6; }
4280 if test "${ac_cv_objext+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4294 rm -f conftest.o conftest.obj
4295 if { { ac_try="$ac_compile"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4315 $as_echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "cannot compute suffix of object files: cannot compile
4321 See \`config.log' for more details." "$LINENO" 5; }
4323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326 $as_echo "$ac_cv_objext" >&6; }
4327 OBJEXT=$ac_cv_objext
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4348 if ac_fn_c_try_compile "$LINENO"; then :
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4364 ac_test_CFLAGS=${CFLAGS+set}
4365 ac_save_CFLAGS=$CFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cc_g+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 if ac_fn_c_try_compile "$LINENO"; then :
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4401 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4417 if ac_fn_c_try_compile "$LINENO"; then :
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428 $as_echo "$ac_cv_prog_cc_g" >&6; }
4429 if test "$ac_test_CFLAGS" = set; then
4430 CFLAGS=$ac_save_CFLAGS
4431 elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4438 if test "$GCC" = yes; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4449 ac_cv_prog_cc_c89=no
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 #include <sys/types.h>
4456 #include <sys/stat.h>
4457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458 struct buf { int x; };
4459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460 static char *e (p, i)
4466 static char *f (char * (*g) (char **, int), char **p, ...)
4471 s = g (p, va_arg (v,int));
4476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477 function prototypes and stuff, but not '\xHH' hex character constants.
4478 These don't provoke an error unfortunately, instead are silently treated
4479 as 'x'. The following induces an error, until -std is added to get
4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481 array size at least. It's necessary to write '\x00'==0 to get something
4482 that's true only with -std. */
4483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486 inside strings and character constants. */
4488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4490 int test (int i, double x);
4491 struct s1 {int (*f) (int a);};
4492 struct s2 {int (*f) (double a);};
4493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4507 CC="$ac_save_CC $ac_arg"
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_c89=$ac_arg
4511 rm -f core conftest.err conftest.$ac_objext
4512 test "x$ac_cv_prog_cc_c89" != "xno" && break
4514 rm -f conftest.$ac_ext
4519 case "x$ac_cv_prog_cc_c89" in
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522 $as_echo "none needed" >&6; } ;;
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525 $as_echo "unsupported" >&6; } ;;
4527 CC="$CC $ac_cv_prog_cc_c89"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4531 if test "x$ac_cv_prog_cc_c89" != xno; then :
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 ac_cpp='$CXXCPP $CPPFLAGS'
4543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4546 if test -z "$CXX"; then
4547 if test -n "$CCC"; then
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_CXX+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -n "$CXX"; then
4561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 if test -n "$CXX"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4583 $as_echo "$CXX" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4590 test -n "$CXX" && break
4593 if test -z "$CXX"; then
4595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 if test -n "$ac_ct_CXX"; then
4605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_CXX="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4625 if test -n "$ac_ct_CXX"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4627 $as_echo "$ac_ct_CXX" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4634 test -n "$ac_ct_CXX" && break
4637 if test "x$ac_ct_CXX" = x; then
4640 case $cross_compiling:$ac_tool_warned in
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4652 # Provide some information about the compiler.
4653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4656 for ac_option in --version -v -V -qversion; do
4657 { { ac_try="$ac_compiler $ac_option >&5"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4666 if test -s conftest.err; then
4668 ... rest of stderr output deleted ...
4669 10q' conftest.err >conftest.er1
4670 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4696 if ac_fn_cxx_try_compile "$LINENO"; then :
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4707 if test $ac_compiler_gnu = yes; then
4712 ac_test_CXXFLAGS=${CXXFLAGS+set}
4713 ac_save_CXXFLAGS=$CXXFLAGS
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4720 ac_cxx_werror_flag=yes
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4735 ac_cv_prog_cxx_g=yes
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_cxx_try_compile "$LINENO"; then :
4752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4766 ac_cv_prog_cxx_g=yes
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4777 if test "$ac_test_CXXFLAGS" = set; then
4778 CXXFLAGS=$ac_save_CXXFLAGS
4779 elif test $ac_cv_prog_cxx_g = yes; then
4780 if test "$GXX" = yes; then
4786 if test "$GXX" = yes; then
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 # We must set the default linker to the linker used by gcc for the correct
4800 # operation of libtool. If LD is not defined and we are using gcc, try to
4801 # set the LD default to the ld used by gcc.
4802 if test -z "$LD"; then
4803 if test "$GCC" = yes; then
4806 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4808 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4810 case $gcc_prog_ld in
4811 # Accept absolute paths.
4812 [\\/]* | [A-Za-z]:[\\/]*)
4813 LD="$gcc_prog_ld" ;;
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$GNATBIND"; then
4830 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 GNATBIND=$ac_cv_prog_GNATBIND
4850 if test -n "$GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4852 $as_echo "$GNATBIND" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$ac_cv_prog_GNATBIND"; then
4861 ac_ct_GNATBIND=$GNATBIND
4862 # Extract the first word of "gnatbind", so it can be a program name with args.
4863 set dummy gnatbind; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$ac_ct_GNATBIND"; then
4870 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4890 if test -n "$ac_ct_GNATBIND"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4892 $as_echo "$ac_ct_GNATBIND" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4898 if test "x$ac_ct_GNATBIND" = x; then
4901 case $cross_compiling:$ac_tool_warned in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4907 GNATBIND=$ac_ct_GNATBIND
4910 GNATBIND="$ac_cv_prog_GNATBIND"
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$GNATMAKE"; then
4922 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 GNATMAKE=$ac_cv_prog_GNATMAKE
4942 if test -n "$GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4944 $as_echo "$GNATMAKE" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_GNATMAKE"; then
4953 ac_ct_GNATMAKE=$GNATMAKE
4954 # Extract the first word of "gnatmake", so it can be a program name with args.
4955 set dummy gnatmake; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4982 if test -n "$ac_ct_GNATMAKE"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4984 $as_echo "$ac_ct_GNATMAKE" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_GNATMAKE" = x; then
4993 case $cross_compiling:$ac_tool_warned in
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4999 GNATMAKE=$ac_ct_GNATMAKE
5002 GNATMAKE="$ac_cv_prog_GNATMAKE"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5006 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5007 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5010 cat >conftest.adb <<EOF
5011 procedure conftest is begin null; end conftest;
5013 acx_cv_cc_gcc_supports_ada=no
5014 # There is a bug in old released versions of GCC which causes the
5015 # driver to exit successfully when the appropriate language module
5016 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5017 # Therefore we must check for the error message as well as an
5018 # unsuccessful exit.
5019 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5020 # given a .adb file, but produce no object file. So we must check
5021 # if an object file was really produced to guard against this.
5022 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5023 if test x"$errors" = x && test -f conftest.$ac_objext; then
5024 acx_cv_cc_gcc_supports_ada=yes
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5029 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5031 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5038 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5039 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5044 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5045 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5046 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5049 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5052 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5053 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5056 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5063 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5064 do_compare="$gcc_cv_prog_cmp_skip"
5068 # See if we are building gcc with C++.
5069 # Check whether --enable-build-with-cxx was given.
5070 if test "${enable_build_with_cxx+set}" = set; then :
5071 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5073 ENABLE_BUILD_WITH_CXX=no
5077 # Used for setting $lt_cv_objdir
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5079 $as_echo_n "checking for objdir... " >&6; }
5080 if test "${lt_cv_objdir+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5083 rm -f .libs 2>/dev/null
5084 mkdir .libs 2>/dev/null
5085 if test -d .libs; then
5088 # MS-DOS does not allow filenames that begin with a dot.
5091 rmdir .libs 2>/dev/null
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5094 $as_echo "$lt_cv_objdir" >&6; }
5095 objdir=$lt_cv_objdir
5101 cat >>confdefs.h <<_ACEOF
5102 #define LT_OBJDIR "$lt_cv_objdir/"
5107 # Check for GMP, MPFR and MPC
5108 gmplibs="-lmpc -lmpfr -lgmp"
5112 # Specify a location for mpc
5113 # check for this first so it ends up on the link line before mpfr.
5115 # Check whether --with-mpc was given.
5116 if test "${with_mpc+set}" = set; then :
5121 # Check whether --with-mpc_include was given.
5122 if test "${with_mpc_include+set}" = set; then :
5123 withval=$with_mpc_include;
5127 # Check whether --with-mpc_lib was given.
5128 if test "${with_mpc_lib+set}" = set; then :
5129 withval=$with_mpc_lib;
5133 if test "x$with_mpc" != x; then
5134 gmplibs="-L$with_mpc/lib $gmplibs"
5135 gmpinc="-I$with_mpc/include $gmpinc"
5137 if test "x$with_mpc_include" != x; then
5138 gmpinc="-I$with_mpc_include $gmpinc"
5140 if test "x$with_mpc_lib" != x; then
5141 gmplibs="-L$with_mpc_lib $gmplibs"
5143 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5144 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5145 gmpinc='-I$$s/mpc/src '"$gmpinc"
5146 # Do not test the mpc version. Assume that it is sufficient, since
5147 # it is in the source tree, and the library has not been built yet
5148 # but it would be included on the link line in the version check below
5149 # hence making the test fail.
5153 # Specify a location for mpfr
5154 # check for this first so it ends up on the link line before gmp.
5156 # Check whether --with-mpfr-dir was given.
5157 if test "${with_mpfr_dir+set}" = set; then :
5158 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5159 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5164 # Check whether --with-mpfr was given.
5165 if test "${with_mpfr+set}" = set; then :
5170 # Check whether --with-mpfr_include was given.
5171 if test "${with_mpfr_include+set}" = set; then :
5172 withval=$with_mpfr_include;
5176 # Check whether --with-mpfr_lib was given.
5177 if test "${with_mpfr_lib+set}" = set; then :
5178 withval=$with_mpfr_lib;
5182 if test "x$with_mpfr" != x; then
5183 gmplibs="-L$with_mpfr/lib $gmplibs"
5184 gmpinc="-I$with_mpfr/include $gmpinc"
5186 if test "x$with_mpfr_include" != x; then
5187 gmpinc="-I$with_mpfr_include $gmpinc"
5189 if test "x$with_mpfr_lib" != x; then
5190 gmplibs="-L$with_mpfr_lib $gmplibs"
5192 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5193 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5194 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5195 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5196 # Do not test the mpfr version. Assume that it is sufficient, since
5197 # it is in the source tree, and the library has not been built yet
5198 # but it would be included on the link line in the version check below
5199 # hence making the test fail.
5203 # Specify a location for gmp
5205 # Check whether --with-gmp-dir was given.
5206 if test "${with_gmp_dir+set}" = set; then :
5207 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5208 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5213 # Check whether --with-gmp was given.
5214 if test "${with_gmp+set}" = set; then :
5219 # Check whether --with-gmp_include was given.
5220 if test "${with_gmp_include+set}" = set; then :
5221 withval=$with_gmp_include;
5225 # Check whether --with-gmp_lib was given.
5226 if test "${with_gmp_lib+set}" = set; then :
5227 withval=$with_gmp_lib;
5232 if test "x$with_gmp" != x; then
5233 gmplibs="-L$with_gmp/lib $gmplibs"
5234 gmpinc="-I$with_gmp/include $gmpinc"
5236 if test "x$with_gmp_include" != x; then
5237 gmpinc="-I$with_gmp_include $gmpinc"
5239 if test "x$with_gmp_lib" != x; then
5240 gmplibs="-L$with_gmp_lib $gmplibs"
5242 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5243 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5244 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5245 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5246 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5247 # Do not test the gmp version. Assume that it is sufficient, since
5248 # it is in the source tree, and the library has not been built yet
5249 # but it would be included on the link line in the version check below
5250 # hence making the test fail.
5254 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5256 saved_CFLAGS="$CFLAGS"
5257 CFLAGS="$CFLAGS $gmpinc"
5258 # Check for the recommended and required versions of GMP.
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5260 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5269 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5270 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5271 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5287 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5288 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5289 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5302 $as_echo "buggy but acceptable" >&6; }
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }; have_gmp=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 # If we have GMP, check the MPFR version.
5312 if test x"$have_gmp" = xyes; then
5313 # Check for the recommended and required versions of MPFR.
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5315 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5324 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5341 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354 $as_echo "buggy but acceptable" >&6; }
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }; have_gmp=no
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 # Check for the MPC header version.
5365 if test x"$have_gmp" = xyes ; then
5366 # Check for the recommended and required versions of MPC.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5368 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5376 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5392 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5405 $as_echo "buggy but acceptable" >&6; }
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }; have_gmp=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 # Now check the MPFR library.
5416 if test x"$have_gmp" = xyes; then
5418 LIBS="$LIBS $gmplibs"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5420 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5434 mpfr_atan2 (n, n, x, GMP_RNDN);
5435 mpfr_erfc (n, x, GMP_RNDN);
5436 mpfr_subnormalize (x, t, GMP_RNDN);
5440 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5441 mpc_cosh (c, c, MPC_RNDNN);
5442 mpc_pow (c, c, c, MPC_RNDNN);
5443 mpc_acosh (c, c, MPC_RNDNN);
5450 if ac_fn_c_try_link "$LINENO"; then :
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }; have_gmp=no
5457 rm -f core conftest.err conftest.$ac_objext \
5458 conftest$ac_exeext conftest.$ac_ext
5462 CFLAGS="$saved_CFLAGS"
5464 # The library versions listed in the error message below should match
5465 # the HARD-minimums enforced above.
5466 if test x$have_gmp != xyes; then
5467 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5468 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5469 their locations. Source code for these libraries can be found at
5470 their respective hosting sites as well as at
5471 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5472 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5473 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5474 make sure that you have installed both the libraries and the header
5475 files. They may be located in separate packages." "$LINENO" 5
5479 # Flags needed for both GMP, MPFR and/or MPC.
5486 # Allow host libstdc++ to be specified for static linking with PPL.
5488 # Check whether --with-host-libstdcxx was given.
5489 if test "${with_host_libstdcxx+set}" = set; then :
5490 withval=$with_host_libstdcxx;
5494 case $with_host_libstdcxx in
5496 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5500 # Linker flags to use for stage1 or when not boostrapping.
5502 # Check whether --with-stage1-ldflags was given.
5503 if test "${with_stage1_ldflags+set}" = set; then :
5504 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5507 stage1_ldflags=$withval
5515 # Libraries to use for stage1 or when not bootstrapping.
5517 # Check whether --with-stage1-libs was given.
5518 if test "${with_stage1_libs+set}" = set; then :
5519 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5522 stage1_libs=$withval
5525 stage1_libs=$with_host_libstdcxx
5530 # Libraries to use for stage2 and later builds. This defaults to the
5531 # argument passed to --with-host-libstdcxx.
5533 # Check whether --with-boot-libs was given.
5534 if test "${with_boot_libs+set}" = set; then :
5535 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5538 poststage1_libs=$withval
5541 poststage1_libs=$with_host_libstdcxx
5546 # Linker flags to use for stage2 and later builds.
5548 # Check whether --with-boot-ldflags was given.
5549 if test "${with_boot_ldflags+set}" = set; then :
5550 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5553 poststage1_ldflags=$withval
5557 # With --enable-build-with-cxx, default to linking libstdc++ and
5558 # libgcc statically. But if the user explicitly specified the
5559 # libraries to use, trust that they are doing what they want.
5560 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5561 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5568 ppllibs=" -lppl_c -lppl -lgmpxx"
5572 # Check whether --with-ppl was given.
5573 if test "${with_ppl+set}" = set; then :
5578 # Check whether --with-ppl_include was given.
5579 if test "${with_ppl_include+set}" = set; then :
5580 withval=$with_ppl_include;
5584 # Check whether --with-ppl_lib was given.
5585 if test "${with_ppl_lib+set}" = set; then :
5586 withval=$with_ppl_lib;
5597 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5598 pplinc="-I$with_ppl/include $pplinc"
5601 if test "x$with_ppl_include" != x; then
5602 pplinc="-I$with_ppl_include $pplinc"
5604 if test "x$with_ppl_lib" != x; then
5605 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5607 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5608 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5609 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5610 enable_ppl_version_check=no
5613 # Check whether --enable-ppl-version-check was given.
5614 if test "${enable_ppl_version_check+set}" = set; then :
5615 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5617 ENABLE_PPL_CHECK=yes
5621 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5622 saved_CFLAGS="$CFLAGS"
5623 CFLAGS="$CFLAGS $pplinc $gmpinc"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5625 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5633 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 CFLAGS="$saved_CFLAGS"
5652 # Flags needed for PPL
5661 # Check whether --with-cloog was given.
5662 if test "${with_cloog+set}" = set; then :
5663 withval=$with_cloog;
5667 # Check whether --with-cloog_include was given.
5668 if test "${with_cloog_include+set}" = set; then :
5669 withval=$with_cloog_include;
5673 # Check whether --with-cloog_lib was given.
5674 if test "${with_cloog_lib+set}" = set; then :
5675 withval=$with_cloog_lib;
5679 # Check whether --enable-cloog-version-check was given.
5680 if test "${enable_cloog_version_check+set}" = set; then :
5681 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5683 ENABLE_CLOOG_CHECK=yes
5687 # Initialize clooglibs and clooginc.
5696 clooglibs="-L$with_cloog/lib"
5697 clooginc="-I$with_cloog/include"
5700 if test "x${with_cloog_include}" != x ; then
5701 clooginc="-I$with_cloog_include"
5703 if test "x${with_cloog_lib}" != x; then
5704 clooglibs="-L$with_cloog_lib"
5711 if test "x$with_ppl" = "xno"; then
5714 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5715 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5716 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5717 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5719 if test "x$with_cloog" != "xno"; then
5723 _cloog_saved_CFLAGS=$CFLAGS
5724 _cloog_saved_CPPFLAGS=$CPPFLAGS
5725 _cloog_saved_LDFLAGS=$LDFLAGS
5726 _cloog_saved_LIBS=$LIBS
5728 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5730 CFLAGS="${CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5731 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5732 LDFLAGS="${LDFLAGS} ${clooglibs} ${ppllibs}"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG" >&5
5735 $as_echo_n "checking for installed CLooG... " >&6; }
5736 if test "${gcc_cv_cloog_type+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5739 LIBS="-lcloog ${_cloog_saved_LIBS}"
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include "cloog/cloog.h"
5746 #ifndef CLOOG_PPL_BACKEND
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 gcc_cv_cloog_type="PPL Legacy"
5756 LIBS="-lcloog-isl -lisl ${_cloog_saved_LIBS}"
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include "cloog/cloog.h"
5768 if ac_fn_c_try_link "$LINENO"; then :
5769 gcc_cv_cloog_type=ISL
5771 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include "cloog/cloog.h"
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 gcc_cv_cloog_type=PPL
5786 gcc_cv_cloog_type=no
5788 rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5791 rm -f core conftest.err conftest.$ac_objext \
5792 conftest$ac_exeext conftest.$ac_ext
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5798 $as_echo "$gcc_cv_cloog_type" >&6; }
5800 case $gcc_cv_cloog_type in
5802 clooginc="${clooginc}"
5803 clooglibs="${clooglibs} -lcloog"
5807 clooginc="${clooginc} ${_cloogorginc}"
5808 clooglibs="${clooglibs} -lcloog-isl"
5812 clooginc="${clooginc} ${_cloogorginc}"
5813 clooglibs="${clooglibs} -lcloog-ppl"
5823 LIBS=$_cloog_saved_LIBS
5824 CFLAGS=$_cloog_saved_CFLAGS
5825 CPPFLAGS=$_cloog_saved_CPPFLAGS
5826 LDFLAGS=$_cloog_saved_LDFLAGS
5832 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5833 _cloog_saved_CFLAGS=$CFLAGS
5834 _cloog_saved_LDFLAGS=$LDFLAGS
5836 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5837 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5839 if test "${cloog_org}" = yes ; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5841 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5842 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include "cloog/cloog.h"
5851 #if CLOOG_VERSION_MAJOR != 0 \
5852 || CLOOG_VERSION_MINOR != 14 \
5853 || CLOOG_VERSION_REVISION < 0
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 gcc_cv_cloog_ct_0_14_0=yes
5863 gcc_cv_cloog_ct_0_14_0=no
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5868 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5869 elif test "${cloog_org}" = no ; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5871 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5872 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include "cloog/cloog.h"
5881 #if CLOOG_VERSION_MAJOR != 0 \
5882 || CLOOG_VERSION_MINOR != 15 \
5883 || CLOOG_VERSION_REVISION < 5
5890 if ac_fn_c_try_compile "$LINENO"; then :
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #include "cloog/cloog.h"
5897 #if CLOOG_VERSION_MAJOR != 0 \
5898 || CLOOG_VERSION_MINOR != 15 \
5899 || CLOOG_VERSION_REVISION < 9
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907 gcc_cv_cloog_ct_0_15_5=yes
5909 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 gcc_cv_cloog_ct_0_15_5=no
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5918 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5921 CFLAGS=$_cloog_saved_CFLAGS
5922 LDFLAGS=$_cloog_saved_LDFLAGS
5931 if test "x${with_cloog}" != x \
5932 || test "x${with_cloog_include}" != x \
5933 || test "x${with_cloog_lib}" != x ; then
5934 graphite_requested=yes
5936 graphite_requested=no
5941 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5942 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5943 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5948 if test "${graphite_requested}" = yes \
5949 && test "x${clooglibs}" = x \
5950 && test "x${clooginc}" = x ; then
5952 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5958 # Check for LTO support.
5959 # Check whether --enable-lto was given.
5960 if test "${enable_lto+set}" = set; then :
5961 enableval=$enable_lto; enable_lto=$enableval
5963 enable_lto=yes; default_enable_lto=yes
5972 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5973 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5974 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5982 if test $target_elf = yes; then :
5983 # ELF platforms build the lto-plugin always.
5984 build_lto_plugin=yes
5987 if test x"$default_enable_lto" = x"yes" ; then
5989 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
5990 # On other non-ELF platforms, LTO has yet to be validated.
5994 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5995 # It would also be nice to check the binutils support, but we don't
5996 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5997 # warn during gcc/ subconfigure; unless you're bootstrapping with
5998 # -flto it won't be needed until after installation anyway.
6000 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6001 *) if test x"$enable_lto" = x"yes"; then
6002 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6007 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6008 # Build it unless LTO was explicitly disabled.
6010 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6018 # By default, C is the only stage 1 language.
6019 stage1_languages=,c,
6021 # Target libraries that we bootstrap.
6022 bootstrap_target_libs=,target-libgcc,
6024 # Figure out what language subdirectories are present.
6025 # Look if the user specified --enable-languages="..."; if not, use
6026 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6028 # NB: embedded tabs in this IF block -- do not untabify
6029 if test -d ${srcdir}/gcc; then
6030 if test x"${enable_languages+set}" != xset; then
6031 if test x"${LANGUAGES+set}" = xset; then
6032 enable_languages="${LANGUAGES}"
6033 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6035 enable_languages=all
6038 if test x"${enable_languages}" = x ||
6039 test x"${enable_languages}" = xyes;
6041 echo configure.in: --enable-languages needs at least one language argument 1>&2
6045 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6047 # 'f95' is the old name for the 'fortran' language. We issue a warning
6048 # and make the substitution.
6049 case ,${enable_languages}, in
6051 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6052 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6056 # First scan to see if an enabled language requires some other language.
6057 # We assume that a given config-lang.in will list all the language
6058 # front ends it requires, even if some are required indirectly.
6059 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6060 case ${lang_frag} in
6062 # The odd quoting in the next line works around
6063 # an apparent bug in bash 1.12 on linux.
6064 ${srcdir}/gcc/[*]/config-lang.in) ;;
6066 # From the config-lang.in, get $language, $lang_requires
6070 for other in ${lang_requires} ; do
6071 case ,${enable_languages}, in
6075 echo " \`$other' language required by \`$language'; enabling" 1>&2
6076 enable_languages="${enable_languages},${other}"
6084 new_enable_languages=,c,
6086 # If LTO is enabled, add the LTO front end.
6087 extra_host_libiberty_configure_flags=
6088 if test "$enable_lto" = "yes" ; then
6089 case ,${enable_languages}, in
6091 *) enable_languages="${enable_languages},lto" ;;
6093 if test "${build_lto_plugin}" = "yes" ; then
6094 configdirs="$configdirs lto-plugin"
6095 extra_host_libiberty_configure_flags=--enable-shared
6100 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6101 potential_languages=,c,
6103 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6104 case ${lang_frag} in
6106 # The odd quoting in the next line works around
6107 # an apparent bug in bash 1.12 on linux.
6108 ${srcdir}/gcc/[*]/config-lang.in) ;;
6110 # From the config-lang.in, get $language, $target_libs,
6111 # $lang_dirs, $boot_language, and $build_by_default
6117 build_by_default=yes
6119 if test x${language} = x; then
6120 echo "${lang_frag} doesn't set \$language." 1>&2
6124 if test "$language" = "c++" \
6125 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6129 case ,${enable_languages}, in
6131 # Language was explicitly selected; include it.
6135 # 'all' was selected, select it if it is a default language
6136 add_this_lang=${build_by_default}
6143 # Disable languages that need other directories if these aren't available.
6144 for i in $subdir_requires; do
6145 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6146 case ,${enable_languages}, in
6148 # Specifically requested language; tell them.
6149 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6153 add_this_lang=unsupported
6158 # Disable Ada if no preexisting GNAT is available.
6159 case ,${enable_languages},:${language}:${have_gnat} in
6160 *,${language},*:ada:no)
6161 # Specifically requested language; tell them.
6162 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6166 add_this_lang=unsupported
6170 # Disable a language that is unsupported by the target.
6171 case " $unsupported_languages " in
6173 add_this_lang=unsupported
6177 case $add_this_lang in
6179 # Remove language-dependent dirs.
6180 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6183 # Remove language-dependent dirs; still show language as supported.
6184 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6185 potential_languages="${potential_languages}${language},"
6188 new_enable_languages="${new_enable_languages}${language},"
6189 potential_languages="${potential_languages}${language},"
6190 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6191 case "${boot_language}:,$enable_stage1_languages," in
6192 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6193 # Add to (comma-separated) list of stage 1 languages.
6194 case ",$stage1_languages," in
6195 *,$language,* | ,yes, | ,all,) ;;
6196 *) stage1_languages="${stage1_languages}${language}," ;;
6198 # We need to bootstrap any supporting libraries.
6199 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6208 # Check whether --enable-stage1-languages was given.
6209 if test "${enable_stage1_languages+set}" = set; then :
6210 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6212 # Set it to something that will have no effect in the loop below
6213 enable_stage1_languages=c ;;
6215 enable_stage1_languages=`echo $new_enable_languages | \
6216 sed -e "s/^,//" -e "s/,$//" ` ;;
6218 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6219 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6222 # Add "good" languages from enable_stage1_languages to stage1_languages,
6223 # while "bad" languages go in missing_languages. Leave no duplicates.
6224 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6225 case $potential_languages in
6227 case $stage1_languages in
6229 *) stage1_languages="$stage1_languages$i," ;;
6232 case $missing_languages in
6234 *) missing_languages="$missing_languages$i," ;;
6241 # Remove leading/trailing commas that were added for simplicity
6242 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6243 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6244 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6245 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6247 if test "x$missing_languages" != x; then
6249 The following requested languages could not be built: ${missing_languages}
6250 Supported languages are: ${potential_languages}" "$LINENO" 5
6252 if test "x$new_enable_languages" != "x$enable_languages"; then
6253 echo The following languages will be built: ${new_enable_languages}
6254 enable_languages="$new_enable_languages"
6258 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6261 # Handle --disable-<component> generically.
6262 for dir in $configdirs $build_configdirs $target_configdirs ; do
6263 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6264 varname=`echo $dirname | sed -e s/+/_/g`
6265 if eval test x\${enable_${varname}} "=" xno ; then
6266 noconfigdirs="$noconfigdirs $dir"
6270 # Check for Boehm's garbage collector
6271 # Check whether --enable-objc-gc was given.
6272 if test "${enable_objc_gc+set}" = set; then :
6273 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6274 *,objc,*:*:yes:*target-boehm-gc*)
6275 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6281 # Make sure we only build Boehm's garbage collector if required.
6282 case ,${enable_languages},:${enable_objc_gc} in
6284 # Keep target-boehm-gc if requested for Objective-C.
6287 # Otherwise remove target-boehm-gc depending on target-libjava.
6288 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6289 noconfigdirs="$noconfigdirs target-boehm-gc"
6294 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6295 # $build_configdirs and $target_configdirs.
6296 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6299 for dir in . $skipdirs $noconfigdirs ; do
6300 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6301 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6302 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6303 if test -r $srcdir/$dirname/configure ; then
6304 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6307 notsupp="$notsupp $dir"
6311 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6312 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6313 if test -r $srcdir/$dirname/configure ; then
6314 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6317 notsupp="$notsupp $dir"
6321 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6322 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6323 if test -r $srcdir/$dirname/configure ; then
6324 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6327 notsupp="$notsupp $dir"
6333 # Sometimes the tools are distributed with libiberty but with no other
6334 # libraries. In that case, we don't want to build target-libiberty.
6335 # Don't let libgcc imply libiberty either.
6336 if test -n "${target_configdirs}" ; then
6339 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6340 if test "$i" = "libgcc"; then
6341 libgcc=target-libgcc
6342 elif test "$i" != "libiberty" ; then
6343 if test -r $srcdir/$i/configure ; then
6349 if test -z "${others}" ; then
6350 target_configdirs=$libgcc
6354 # Quietly strip out all directories which aren't configurable in this tree.
6355 # This relies on all configurable subdirectories being autoconfiscated, which
6357 build_configdirs_all="$build_configdirs"
6359 for i in ${build_configdirs_all} ; do
6360 j=`echo $i | sed -e s/build-//g`
6361 if test -f ${srcdir}/$j/configure ; then
6362 build_configdirs="${build_configdirs} $i"
6366 configdirs_all="$configdirs"
6368 for i in ${configdirs_all} ; do
6369 if test -f ${srcdir}/$i/configure ; then
6370 configdirs="${configdirs} $i"
6374 target_configdirs_all="$target_configdirs"
6376 for i in ${target_configdirs_all} ; do
6377 j=`echo $i | sed -e s/target-//g`
6378 if test -f ${srcdir}/$j/configure ; then
6379 target_configdirs="${target_configdirs} $i"
6383 # Produce a warning message for the subdirs we can't configure.
6384 # This isn't especially interesting in the Cygnus tree, but in the individual
6385 # FSF releases, it's important to let people know when their machine isn't
6386 # supported by the one or two programs in a package.
6388 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6389 # If $appdirs is non-empty, at least one of those directories must still
6390 # be configured, or we error out. (E.g., if the gas release supports a
6391 # specified target in some subdirs but not the gas subdir, we shouldn't
6392 # pretend that all is well.)
6393 if test -n "$appdirs" ; then
6394 for dir in $appdirs ; do
6395 if test -r $dir/Makefile.in ; then
6396 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6406 if test -n "$appdirs" ; then
6407 echo "*** This configuration is not supported by this package." 1>&2
6411 # Okay, some application will build, or we don't care to check. Still
6412 # notify of subdirs not getting built.
6413 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6414 echo " ${notsupp}" 1>&2
6415 echo " (Any other directories should still work fine.)" 1>&2
6423 # To find our prefix, in gcc_cv_tool_prefix.
6425 # The user is always right.
6426 if test "${PATH_SEPARATOR+set}" != set; then
6427 echo "#! /bin/sh" >conf$$.sh
6428 echo "exit 0" >>conf$$.sh
6430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6440 if test "x$exec_prefix" = xNONE; then
6441 if test "x$prefix" = xNONE; then
6442 gcc_cv_tool_prefix=$ac_default_prefix
6444 gcc_cv_tool_prefix=$prefix
6447 gcc_cv_tool_prefix=$exec_prefix
6450 # If there is no compiler in the tree, use the PATH only. In any
6451 # case, if there is no compiler in the tree nobody should use
6452 # AS_FOR_TARGET and LD_FOR_TARGET.
6453 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6454 gcc_version=`cat $srcdir/gcc/BASE-VER`
6455 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6456 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6457 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6458 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6459 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6460 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6465 if test x$build = x$target && test -n "$md_exec_prefix"; then
6466 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6474 # Check whether --with-build-sysroot was given.
6475 if test "${with_build_sysroot+set}" = set; then :
6476 withval=$with_build_sysroot; if test x"$withval" != x ; then
6477 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6480 SYSROOT_CFLAGS_FOR_TARGET=
6486 # Check whether --with-debug-prefix-map was given.
6487 if test "${with_debug_prefix_map+set}" = set; then :
6488 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6489 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6490 for debug_map in $withval; do
6491 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6495 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6500 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6501 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6502 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6503 # We want to ensure that TARGET libraries (which we know are built with
6504 # gcc) are built with "-O2 -g", so include those options when setting
6505 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6506 if test "x$CFLAGS_FOR_TARGET" = x; then
6507 CFLAGS_FOR_TARGET=$CFLAGS
6510 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6513 *" -g "* | *" -g3 "*) ;;
6514 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6519 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6520 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6521 case " $CXXFLAGS " in
6523 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6525 case " $CXXFLAGS " in
6526 *" -g "* | *" -g3 "*) ;;
6527 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6532 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6533 # the named directory are copied to $(tooldir)/sys-include.
6534 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6535 if test x${is_cross_compiler} = xno ; then
6536 echo 1>&2 '***' --with-headers is only supported when cross compiling
6539 if test x"${with_headers}" != xyes ; then
6540 x=${gcc_cv_tool_prefix}
6541 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6545 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6546 # the name directories are copied to $(tooldir)/lib. Multiple directories
6548 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6549 if test x${is_cross_compiler} = xno ; then
6550 echo 1>&2 '***' --with-libs is only supported when cross compiling
6553 if test x"${with_libs}" != xyes ; then
6554 # Copy the libraries in reverse order, so that files in the first named
6555 # library override files in subsequent libraries.
6556 x=${gcc_cv_tool_prefix}
6557 for l in ${with_libs}; do
6558 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6563 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6565 # This is done by determining whether or not the appropriate directory
6566 # is available, and by checking whether or not specific configurations
6567 # have requested that this magic not happen.
6569 # The command line options always override the explicit settings in
6570 # configure.in, and the settings in configure.in override this magic.
6572 # If the default for a toolchain is to use GNU as and ld, and you don't
6573 # want to do that, then you should use the --without-gnu-as and
6574 # --without-gnu-ld options for the configure script. Similarly, if
6575 # the default is to use the included zlib and you don't want to do that,
6576 # you should use the --with-system-zlib option for the configure script.
6578 if test x${use_gnu_as} = x &&
6579 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6581 extra_host_args="$extra_host_args --with-gnu-as"
6584 if test x${use_gnu_ld} = x &&
6585 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6587 extra_host_args="$extra_host_args --with-gnu-ld"
6590 if test x${use_included_zlib} = x &&
6591 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6594 with_system_zlib=yes
6595 extra_host_args="$extra_host_args --with-system-zlib"
6598 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6599 # can detect this case.
6601 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6603 extra_host_args="$extra_host_args --with-newlib"
6606 # Handle ${copy_dirs}
6607 set fnord ${copy_dirs}
6609 while test $# != 0 ; do
6610 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6613 echo Copying $1 to $2
6615 # Use the install script to create the directory and all required
6616 # parent directories.
6617 if test -d $2 ; then
6621 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6624 # Copy the directory, assuming we have tar.
6625 # FIXME: Should we use B in the second tar? Not all systems support it.
6626 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6628 # It is the responsibility of the user to correctly adjust all
6629 # symlinks. If somebody can figure out how to handle them correctly
6630 # here, feel free to add the code.
6637 # Determine a target-dependent exec_prefix that the installed
6638 # gcc will search in. Keep this list sorted by triplet, with
6639 # the *-*-osname triplets last.
6643 md_exec_prefix=/gnu/lib/gcc-lib
6645 i[34567]86-pc-msdosdjgpp*)
6646 md_exec_prefix=/dev/env/DJDIR/bin
6648 i[34567]86-*-sco3.2v5*)
6649 if test $with_gnu_as = yes; then
6650 md_exec_prefix=/usr/gnu/bin
6652 md_exec_prefix=/usr/ccs/bin/elf
6657 powerpc-*-chorusos* | \
6658 powerpc*-*-eabi* | \
6659 powerpc*-*-sysv* | \
6660 powerpc*-*-kaos* | \
6662 md_exec_prefix=/usr/ccs/bin
6667 md_exec_prefix=/usr/ccs/bin
6682 md_exec_prefix=/usr/ccs/bin
6686 extra_arflags_for_target=
6687 extra_nmflags_for_target=
6688 extra_ranlibflags_for_target=
6689 target_makefile_frag=/dev/null
6692 target_makefile_frag="config/mt-mep"
6695 target_makefile_frag="config/mt-spu"
6698 target_makefile_frag="config/mt-sde"
6700 mipsisa*-*-elfoabi*)
6701 target_makefile_frag="config/mt-mips-elfoabi"
6703 mips*-*-*linux* | mips*-*-gnu*)
6704 target_makefile_frag="config/mt-mips-gnu"
6707 target_makefile_frag="config/mt-netware"
6709 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6710 target_makefile_frag="config/mt-gnu"
6712 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6713 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6714 # commands to handle both 32-bit and 64-bit objects. These flags are
6715 # harmless if we're using GNU nm or ar.
6716 extra_arflags_for_target=" -X32_64"
6717 extra_nmflags_for_target=" -B -X32_64"
6720 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6721 extra_ranlibflags_for_target=" -c"
6723 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6724 target_makefile_frag="config/mt-wince"
6728 alphaieee_frag=/dev/null
6731 # This just makes sure to use the -mieee option to build target libs.
6732 # This should probably be set individually by each library.
6733 alphaieee_frag="config/mt-alphaieee"
6737 # If --enable-target-optspace always use -Os instead of -O2 to build
6738 # the target libraries, similarly if it is not specified, use -Os
6739 # on selected platforms.
6740 ospace_frag=/dev/null
6741 case "${enable_target_optspace}:${target}" in
6743 ospace_frag="config/mt-ospace"
6746 ospace_frag="config/mt-d30v"
6748 :m32r-* | :d10v-* | :fr30-*)
6749 ospace_frag="config/mt-ospace"
6754 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6758 # Default to using --with-stabs for certain targets.
6759 if test x${with_stabs} = x ; then
6763 mips*-*-* | alpha*-*-osf*)
6765 extra_host_args="${extra_host_args} --with-stabs"
6770 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6771 # them automatically.
6774 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6778 # Some systems (e.g., one of the i386-aix systems the gas testers are
6779 # using) don't handle "\$" correctly, so don't use it here.
6780 tooldir='${exec_prefix}'/${target_noncanonical}
6781 build_tooldir=${tooldir}
6783 # Create a .gdbinit file which runs the one in srcdir
6784 # and tells GDB to look there for source files.
6786 if test -r ${srcdir}/.gdbinit ; then
6789 *) cat > ./.gdbinit <<EOF
6793 source ${srcdir}/.gdbinit
6799 # Make sure that the compiler is able to generate an executable. If it
6800 # can't, we are probably in trouble. We don't care whether we can run the
6801 # executable--we might be using a cross compiler--we only care whether it
6802 # can be created. At this point the main configure script has set CC.
6804 echo "int main () { return 0; }" > conftest.c
6805 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6806 if test $? = 0 ; then
6807 if test -s conftest || test -s conftest.exe ; then
6813 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6814 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6821 # The Solaris /usr/ucb/cc compiler does not appear to work.
6823 sparc-sun-solaris2*)
6824 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6825 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6827 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6828 if test -d /opt/cygnus/bin ; then
6829 if test "$could_use" = "" ; then
6830 could_use="/opt/cygnus/bin"
6832 could_use="$could_use or /opt/cygnus/bin"
6835 if test "$could_use" = "" ; then
6836 echo "Warning: compilation may fail because you're using"
6837 echo "/usr/ucb/cc. You should change your PATH or CC "
6838 echo "variable and rerun configure."
6840 echo "Warning: compilation may fail because you're using"
6841 echo "/usr/ucb/cc, when you should use the C compiler from"
6842 echo "$could_use. You should change your"
6843 echo "PATH or CC variable and rerun configure."
6849 # Decide which environment variable is used to find dynamic libraries.
6851 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6852 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6853 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6854 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6857 # On systems where the dynamic library environment variable is PATH,
6858 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6859 # built executables to PATH.
6860 if test "$RPATH_ENVVAR" = PATH; then
6861 GCC_SHLIB_SUBDIR=/shlib
6866 # Record target_configdirs and the configure arguments for target and
6867 # build configuration in Makefile.
6868 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6869 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6871 # If we are building libgomp, bootstrap it.
6872 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6873 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6876 # Determine whether gdb needs tk/tcl or not.
6877 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6878 # and in that case we want gdb to be built without tk. Ugh!
6879 # In fact I believe gdb is the *only* package directly dependent on tk,
6880 # so we should be able to put the 'maybe's in unconditionally and
6881 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6882 # 100% sure that that's safe though.
6884 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6885 case "$enable_gdbtk" in
6889 GDB_TK="${gdb_tk}" ;;
6891 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6892 # distro. Eventually someone will fix this and move Insight, nee
6893 # gdbtk to a separate directory.
6894 if test -d ${srcdir}/gdb/gdbtk ; then
6901 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6902 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6904 # Strip out unwanted targets.
6906 # While at that, we remove Makefiles if we were started for recursive
6907 # configuration, so that the top-level Makefile reconfigures them,
6908 # like we used to do when configure itself was recursive.
6910 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6911 # but now we're fixing up the Makefile ourselves with the additional
6912 # commands passed to AC_CONFIG_FILES. Use separate variables
6913 # extrasub-{build,host,target} not because there is any reason to split
6914 # the substitutions up that way, but only to remain below the limit of
6915 # 99 commands in a script, for HP-UX sed.
6916 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6918 # Check whether --enable-bootstrap was given.
6919 if test "${enable_bootstrap+set}" = set; then :
6920 enableval=$enable_bootstrap;
6922 enable_bootstrap=default
6926 # Issue errors and warnings for invalid/strange bootstrap combinations.
6927 case "$configdirs" in
6928 *gcc*) have_compiler=yes ;;
6929 *) have_compiler=no ;;
6932 case "$have_compiler:$host:$target:$enable_bootstrap" in
6935 # Default behavior. Enable bootstrap if we have a compiler
6936 # and we are in a native configuration.
6937 yes:$build:$build:default)
6938 enable_bootstrap=yes ;;
6941 enable_bootstrap=no ;;
6943 # We have a compiler and we are in a native configuration, bootstrap is ok
6944 yes:$build:$build:yes)
6947 # Other configurations, but we have a compiler. Assume the user knows
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6951 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6954 # No compiler: if they passed --enable-bootstrap explicitly, fail
6956 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6958 # Fail if wrong command line
6960 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6964 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6967 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6971 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6972 yes:yes:*\ gold\ *:*,c++,*) ;;
6973 yes:yes:*\ gold\ *:*)
6974 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6978 # Adjust the toplevel makefile according to whether bootstrap was selected.
6979 case $enable_bootstrap in
6981 bootstrap_suffix=bootstrap
6982 BUILD_CONFIG=bootstrap-debug
6985 bootstrap_suffix=no-bootstrap
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6991 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6994 # Check whether --with-build-config was given.
6995 if test "${with_build_config+set}" = set; then :
6996 withval=$with_build_config; case $with_build_config in
6997 yes) with_build_config= ;;
6998 no) with_build_config= BUILD_CONFIG= ;;
7003 if test "x${with_build_config}" != x; then
7004 BUILD_CONFIG=$with_build_config
7006 case $BUILD_CONFIG in
7008 if echo "int f (void) { return 0; }" > conftest.c &&
7009 ${CC} -c conftest.c &&
7010 mv conftest.o conftest.o.g0 &&
7011 ${CC} -c -g conftest.c &&
7012 mv conftest.o conftest.o.g &&
7013 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7018 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7023 $as_echo "$BUILD_CONFIG" >&6; }
7027 for module in ${build_configdirs} ; do
7028 if test -z "${no_recursion}" \
7029 && test -f ${build_subdir}/${module}/Makefile; then
7030 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7031 rm -f ${build_subdir}/${module}/Makefile
7033 extrasub_build="$extrasub_build
7034 /^@if build-$module\$/d
7035 /^@endif build-$module\$/d
7036 /^@if build-$module-$bootstrap_suffix\$/d
7037 /^@endif build-$module-$bootstrap_suffix\$/d"
7040 for module in ${configdirs} ; do
7041 if test -z "${no_recursion}"; then
7042 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7043 if test -f ${file}; then
7044 echo 1>&2 "*** removing ${file} to force reconfigure"
7049 extrasub_host="$extrasub_host
7051 /^@endif $module\$/d
7052 /^@if $module-$bootstrap_suffix\$/d
7053 /^@endif $module-$bootstrap_suffix\$/d"
7056 for module in ${target_configdirs} ; do
7057 if test -z "${no_recursion}" \
7058 && test -f ${target_subdir}/${module}/Makefile; then
7059 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7060 rm -f ${target_subdir}/${module}/Makefile
7063 # We only bootstrap target libraries listed in bootstrap_target_libs.
7064 case $bootstrap_target_libs in
7065 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7066 *) target_bootstrap_suffix=no-bootstrap ;;
7069 extrasub_target="$extrasub_target
7070 /^@if target-$module\$/d
7071 /^@endif target-$module\$/d
7072 /^@if target-$module-$target_bootstrap_suffix\$/d
7073 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7076 # Do the final fixup along with target modules.
7077 extrasub_target="$extrasub_target
7078 /^@if /,/^@endif /d"
7080 # Create the serialization dependencies. This uses a temporary file.
7082 # Check whether --enable-serial-configure was given.
7083 if test "${enable_serial_configure+set}" = set; then :
7084 enableval=$enable_serial_configure;
7088 case ${enable_serial_configure} in
7090 enable_serial_build_configure=yes
7091 enable_serial_host_configure=yes
7092 enable_serial_target_configure=yes
7096 # These force 'configure's to be done one at a time, to avoid problems
7097 # with contention over a shared config.cache.
7099 echo '# serdep.tmp' > serdep.tmp
7101 test "x${enable_serial_build_configure}" = xyes &&
7102 for item in ${build_configdirs} ; do
7105 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7110 test "x${enable_serial_host_configure}" = xyes &&
7111 for item in ${configdirs} ; do
7114 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7119 test "x${enable_serial_target_configure}" = xyes &&
7120 for item in ${target_configdirs} ; do
7123 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7127 serialization_dependencies=serdep.tmp
7130 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7131 # target, nonopt, and variable assignments. These are the ones we
7132 # might not want to pass down to subconfigures. The exception being
7133 # --cache-file=/dev/null, which is used to turn off the use of cache
7134 # files altogether, and which should be passed on to subconfigures.
7135 # Also strip program-prefix, program-suffix, and program-transform-name,
7136 # so that we can pass down a consistent program-transform-name.
7140 eval "set -- $ac_configure_args"
7143 if test X"$skip_next" = X"yes"; then
7147 if test X"$keep_next" = X"yes"; then
7150 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7152 baseargs="$baseargs '$ac_arg'"
7157 # Handle separated arguments. Based on the logic generated by
7160 *=* | --config-cache | -C | -disable-* | --disable-* \
7161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7163 | -with-* | --with-* | -without-* | --without-* | --x)
7175 --cache-file=/dev/null | \
7176 -cache-file=/dev/null )
7177 # Handled here to avoid the test to skip args below.
7178 baseargs="$baseargs '$ac_arg'"
7179 # Assert: $separate_arg should always be no.
7180 keep_next=$separate_arg
7196 -program-prefix* | \
7197 -program-suffix* | \
7198 -program-transform-name* )
7199 skip_next=$separate_arg
7203 # An option. Add it.
7206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7208 baseargs="$baseargs '$ac_arg'"
7209 keep_next=$separate_arg
7212 # Either a variable assignment, or a nonopt (triplet). Don't
7213 # pass it down; let the Makefile handle this.
7218 # Remove the initial space we just introduced and, as these will be
7219 # expanded by make, quote '$'.
7220 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7222 # Add in --program-transform-name, after --program-prefix and
7223 # --program-suffix have been applied to it. Autoconf has already
7224 # doubled dollar signs and backslashes in program_transform_name; we want
7225 # the backslashes un-doubled, and then the entire thing wrapped in single
7226 # quotes, because this will be expanded first by make and then by the shell.
7227 # Also, because we want to override the logic in subdir configure scripts to
7228 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7229 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7230 ${program_transform_name}
7232 gcc_transform_name=`cat conftestsed.out`
7233 rm -f conftestsed.out
7234 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7235 if test "$silent" = yes; then
7236 baseargs="$baseargs --silent"
7238 baseargs="$baseargs --disable-option-checking"
7240 # Record and document user additions to sub configure arguments.
7245 # For the build-side libraries, we just need to pretend we're native,
7246 # and not use the same cache file. Multilibs are neither needed nor
7248 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7250 # For host modules, accept cache file option, or specification as blank.
7251 case "${cache_file}" in
7253 cache_file_option="" ;;
7254 /* | [A-Za-z]:[\\/]* ) # absolute path
7255 cache_file_option="--cache-file=${cache_file}" ;;
7257 cache_file_option="--cache-file=../${cache_file}" ;;
7260 # Host dirs don't like to share a cache file either, horribly enough.
7261 # This seems to be due to autoconf 2.5x stupidity.
7262 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7264 target_configargs="$target_configargs ${baseargs}"
7266 # Passing a --with-cross-host argument lets the target libraries know
7267 # whether they are being built with a cross-compiler or being built
7268 # native. However, it would be better to use other mechanisms to make the
7269 # sorts of decisions they want to make on this basis. Please consider
7270 # this option to be deprecated. FIXME.
7271 if test x${is_cross_compiler} = xyes ; then
7272 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7275 # Default to --enable-multilib.
7276 if test x${enable_multilib} = x ; then
7277 target_configargs="--enable-multilib ${target_configargs}"
7280 # Pass --with-newlib if appropriate. Note that target_configdirs has
7281 # changed from the earlier setting of with_newlib.
7282 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7283 target_configargs="--with-newlib ${target_configargs}"
7286 # Different target subdirs use different values of certain variables
7287 # (notably CXX). Worse, multilibs use *lots* of different values.
7288 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7289 # it doesn't automatically accept command-line overrides of them.
7290 # This means it's not safe for target subdirs to share a cache file,
7291 # which is disgusting, but there you have it. Hopefully this can be
7292 # fixed in future. It's still worthwhile to use a cache file for each
7293 # directory. I think.
7295 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7296 # We need to pass --target, as newer autoconf's requires consistency
7297 # for target_alias and gcc doesn't manage it consistently.
7298 target_configargs="--cache-file=./config.cache ${target_configargs}"
7301 case " $target_configdirs " in
7303 case " $target_configargs " in
7304 *" --with-newlib "*)
7307 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7311 # If we're not building GCC, don't discard standard headers.
7312 if test -d ${srcdir}/gcc; then
7313 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7315 if test "${build}" != "${host}"; then
7316 # On Canadian crosses, CC_FOR_TARGET will have already been set
7317 # by `configure', so we won't have an opportunity to add -Bgcc/
7318 # to it. This is right: we don't want to search that directory
7319 # for binaries, but we want the header files in there, so add
7321 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7323 # Someone might think of using the pre-installed headers on
7324 # Canadian crosses, in case the installed compiler is not fully
7325 # compatible with the compiler being built. In this case, it
7326 # would be better to flag an error than risking having
7327 # incompatible object files being constructed. We can't
7328 # guarantee that an error will be flagged, but let's hope the
7329 # compiler will do it, when presented with incompatible header
7334 case "${target}-${is_cross_compiler}" in
7335 i[3456789]86-*-linux*-no)
7336 # Here host == target, so we don't need to build gcc,
7337 # so we don't want to discard standard headers.
7338 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7341 # If we're building newlib, use its generic headers last, but search
7342 # for any libc-related directories first (so make it the last -B
7344 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7346 # If we're building libgloss, find the startup file, simulator library
7347 # and linker script.
7348 case " $target_configdirs " in
7350 # Look for startup file, simulator library and maybe linker script.
7351 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7352 # Look for libnosys.a in case the target needs it.
7353 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7354 # Most targets have the linker script in the source directory.
7355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7366 x86_64-*mingw* | *-w64-mingw*)
7367 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7368 # however, use a symlink named 'mingw' in ${prefix} .
7369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7372 # MinGW can't be handled as Cygwin above since it does not use newlib.
7373 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'
7377 # Allow the user to override the flags for
7378 # our build compiler if desired.
7379 if test x"${build}" = x"${host}" ; then
7380 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7381 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7382 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7385 # On Canadian crosses, we'll be searching the right directories for
7386 # the previously-installed cross compiler, so don't bother to add
7387 # flags for directories within the install tree of the compiler
7388 # being built; programs in there won't even run.
7389 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7390 # Search for pre-installed headers if nothing else fits.
7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7394 if test "x${use_gnu_ld}" = x &&
7395 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7396 # Arrange for us to find uninstalled linker scripts.
7397 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7400 # Search for other target-specific linker scripts and such.
7403 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7407 # Makefile fragments.
7408 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7410 eval fragval=\$$frag
7411 if test $fragval != /dev/null; then
7412 eval $frag=${srcdir}/$fragval
7420 # Miscellanea: directories, flags, etc.
7429 # Build module lists & subconfigure args.
7433 # Host module lists & subconfigure args.
7438 # Target module lists & subconfigure args.
7460 # Generate default definitions for YACC, M4, LEX and other programs that run
7461 # on the build machine. These are used if the Makefile can't locate these
7462 # programs in objdir.
7463 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7465 for ac_prog in 'bison -y' byacc yacc
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_YACC+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$YACC"; then
7475 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_YACC="$ac_prog"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 YACC=$ac_cv_prog_YACC
7495 if test -n "$YACC"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7497 $as_echo "$YACC" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7504 test -n "$YACC" && break
7506 test -n "$YACC" || YACC="$MISSING bison -y"
7508 case " $build_configdirs " in
7509 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7510 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7513 for ac_prog in bison
7515 # Extract the first word of "$ac_prog", so it can be a program name with args.
7516 set dummy $ac_prog; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_BISON+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7522 if test -n "$BISON"; then
7523 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_BISON="$ac_prog"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 BISON=$ac_cv_prog_BISON
7543 if test -n "$BISON"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7545 $as_echo "$BISON" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7552 test -n "$BISON" && break
7554 test -n "$BISON" || BISON="$MISSING bison"
7556 case " $build_configdirs " in
7557 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7560 for ac_prog in gm4 gnum4 m4
7562 # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_M4+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7569 if test -n "$M4"; then
7570 ac_cv_prog_M4="$M4" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_M4="$ac_prog"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 if test -n "$M4"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7592 $as_echo "$M4" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7599 test -n "$M4" && break
7601 test -n "$M4" || M4="$MISSING m4"
7603 case " $build_configdirs " in
7604 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7607 for ac_prog in flex lex
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if test "${ac_cv_prog_LEX+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7616 if test -n "$LEX"; then
7617 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_prog_LEX="$ac_prog"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 if test -n "$LEX"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7639 $as_echo "$LEX" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7646 test -n "$LEX" && break
7648 test -n "$LEX" || LEX="$MISSING flex"
7650 case " $build_configdirs " in
7651 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7652 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7657 # Extract the first word of "$ac_prog", so it can be a program name with args.
7658 set dummy $ac_prog; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_FLEX+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$FLEX"; then
7665 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_FLEX="$ac_prog"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 FLEX=$ac_cv_prog_FLEX
7685 if test -n "$FLEX"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7687 $as_echo "$FLEX" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7694 test -n "$FLEX" && break
7696 test -n "$FLEX" || FLEX="$MISSING flex"
7698 case " $build_configdirs " in
7699 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7702 for ac_prog in makeinfo
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$MAKEINFO"; then
7712 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_MAKEINFO="$ac_prog"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 MAKEINFO=$ac_cv_prog_MAKEINFO
7732 if test -n "$MAKEINFO"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7734 $as_echo "$MAKEINFO" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7741 test -n "$MAKEINFO" && break
7743 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7745 case " $build_configdirs " in
7746 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7749 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7750 # higher, else we use the "missing" dummy.
7751 if ${MAKEINFO} --version \
7752 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7755 MAKEINFO="$MISSING makeinfo"
7761 # FIXME: expect and dejagnu may become build tools?
7763 for ac_prog in expect
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 if test -n "$EXPECT"; then
7773 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_EXPECT="$ac_prog"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 EXPECT=$ac_cv_prog_EXPECT
7793 if test -n "$EXPECT"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7795 $as_echo "$EXPECT" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7802 test -n "$EXPECT" && break
7804 test -n "$EXPECT" || EXPECT="expect"
7806 case " $configdirs " in
7808 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7812 for ac_prog in runtest
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$RUNTEST"; then
7822 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_RUNTEST="$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 RUNTEST=$ac_cv_prog_RUNTEST
7842 if test -n "$RUNTEST"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7844 $as_echo "$RUNTEST" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$RUNTEST" && break
7853 test -n "$RUNTEST" || RUNTEST="runtest"
7855 case " $configdirs " in
7857 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7864 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7865 ncn_target_tool_prefix=
7866 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7870 if test -n "$AR"; then
7872 elif test -n "$ac_cv_prog_AR"; then
7876 if test -n "$ac_cv_prog_AR"; then
7877 for ncn_progname in ar; do
7878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7879 set dummy ${ncn_progname}; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_prog_AR+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 if test -n "$AR"; then
7886 ac_cv_prog_AR="$AR" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_prog_AR="${ncn_progname}"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 if test -n "$AR"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7908 $as_echo "$AR" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7918 for ncn_progname in ar; do
7919 if test -n "$ncn_tool_prefix"; then
7920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_AR+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 if test -n "$AR"; then
7928 ac_cv_prog_AR="$AR" # Let the user override the test.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 if test -n "$AR"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7950 $as_echo "$AR" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7958 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7960 set dummy ${ncn_progname}; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7966 if test -n "$AR"; then
7967 ac_cv_prog_AR="$AR" # Let the user override the test.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_AR="${ncn_progname}"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 if test -n "$AR"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7989 $as_echo "$AR" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7997 test -n "$ac_cv_prog_AR" && break
8000 if test -z "$ac_cv_prog_AR" ; then
8002 if test $build = $host ; then
8005 AR="${ncn_tool_prefix}$2"
8011 if test -n "$AS"; then
8013 elif test -n "$ac_cv_prog_AS"; then
8017 if test -n "$ac_cv_prog_AS"; then
8018 for ncn_progname in as; do
8019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8020 set dummy ${ncn_progname}; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if test "${ac_cv_prog_AS+set}" = set; then :
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$AS"; then
8027 ac_cv_prog_AS="$AS" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_prog_AS="${ncn_progname}"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 if test -n "$AS"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8049 $as_echo "$AS" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8059 for ncn_progname in as; do
8060 if test -n "$ncn_tool_prefix"; then
8061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8062 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_AS+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$AS"; then
8069 ac_cv_prog_AS="$AS" # 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_AS="${ncn_tool_prefix}${ncn_progname}"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 if test -n "$AS"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8091 $as_echo "$AS" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8099 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101 set dummy ${ncn_progname}; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_AS+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8107 if test -n "$AS"; then
8108 ac_cv_prog_AS="$AS" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_AS="${ncn_progname}"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 if test -n "$AS"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8130 $as_echo "$AS" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8138 test -n "$ac_cv_prog_AS" && break
8141 if test -z "$ac_cv_prog_AS" ; then
8143 if test $build = $host ; then
8146 AS="${ncn_tool_prefix}$2"
8152 if test -n "$DLLTOOL"; then
8153 ac_cv_prog_DLLTOOL=$DLLTOOL
8154 elif test -n "$ac_cv_prog_DLLTOOL"; then
8155 DLLTOOL=$ac_cv_prog_DLLTOOL
8158 if test -n "$ac_cv_prog_DLLTOOL"; then
8159 for ncn_progname in dlltool; do
8160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8161 set dummy ${ncn_progname}; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 if test -n "$DLLTOOL"; then
8168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_DLLTOOL="${ncn_progname}"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 DLLTOOL=$ac_cv_prog_DLLTOOL
8188 if test -n "$DLLTOOL"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8190 $as_echo "$DLLTOOL" >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8200 for ncn_progname in dlltool; do
8201 if test -n "$ncn_tool_prefix"; then
8202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8203 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$DLLTOOL"; then
8210 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 DLLTOOL=$ac_cv_prog_DLLTOOL
8230 if test -n "$DLLTOOL"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8232 $as_echo "$DLLTOOL" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8240 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8242 set dummy ${ncn_progname}; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8248 if test -n "$DLLTOOL"; then
8249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_DLLTOOL="${ncn_progname}"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 DLLTOOL=$ac_cv_prog_DLLTOOL
8269 if test -n "$DLLTOOL"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8271 $as_echo "$DLLTOOL" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8279 test -n "$ac_cv_prog_DLLTOOL" && break
8282 if test -z "$ac_cv_prog_DLLTOOL" ; then
8284 if test $build = $host ; then
8287 DLLTOOL="${ncn_tool_prefix}$2"
8293 if test -n "$LD"; then
8295 elif test -n "$ac_cv_prog_LD"; then
8299 if test -n "$ac_cv_prog_LD"; then
8300 for ncn_progname in ld; do
8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302 set dummy ${ncn_progname}; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_LD+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8308 if test -n "$LD"; then
8309 ac_cv_prog_LD="$LD" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_prog_LD="${ncn_progname}"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 if test -n "$LD"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8331 $as_echo "$LD" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8341 for ncn_progname in ld; do
8342 if test -n "$ncn_tool_prefix"; then
8343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_LD+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8350 if test -n "$LD"; then
8351 ac_cv_prog_LD="$LD" # Let the user override the test.
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 if test -n "$LD"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8373 $as_echo "$LD" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8381 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8383 set dummy ${ncn_progname}; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_LD+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8389 if test -n "$LD"; then
8390 ac_cv_prog_LD="$LD" # Let the user override the test.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_LD="${ncn_progname}"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 if test -n "$LD"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8412 $as_echo "$LD" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 test -n "$ac_cv_prog_LD" && break
8423 if test -z "$ac_cv_prog_LD" ; then
8425 if test $build = $host ; then
8428 LD="${ncn_tool_prefix}$2"
8434 if test -n "$LIPO"; then
8435 ac_cv_prog_LIPO=$LIPO
8436 elif test -n "$ac_cv_prog_LIPO"; then
8437 LIPO=$ac_cv_prog_LIPO
8440 if test -n "$ac_cv_prog_LIPO"; then
8441 for ncn_progname in lipo; do
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443 set dummy ${ncn_progname}; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_LIPO+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8449 if test -n "$LIPO"; then
8450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_LIPO="${ncn_progname}"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 LIPO=$ac_cv_prog_LIPO
8470 if test -n "$LIPO"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8472 $as_echo "$LIPO" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8482 for ncn_progname in lipo; do
8483 if test -n "$ncn_tool_prefix"; then
8484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if test "${ac_cv_prog_LIPO+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8491 if test -n "$LIPO"; then
8492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 LIPO=$ac_cv_prog_LIPO
8512 if test -n "$LIPO"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8514 $as_echo "$LIPO" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8522 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_progname}; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_LIPO+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8530 if test -n "$LIPO"; then
8531 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_LIPO="${ncn_progname}"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 LIPO=$ac_cv_prog_LIPO
8551 if test -n "$LIPO"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8553 $as_echo "$LIPO" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8561 test -n "$ac_cv_prog_LIPO" && break
8564 if test -z "$ac_cv_prog_LIPO" ; then
8566 if test $build = $host ; then
8569 LIPO="${ncn_tool_prefix}$2"
8575 if test -n "$NM"; then
8577 elif test -n "$ac_cv_prog_NM"; then
8581 if test -n "$ac_cv_prog_NM"; then
8582 for ncn_progname in nm; do
8583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8584 set dummy ${ncn_progname}; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_prog_NM+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8590 if test -n "$NM"; then
8591 ac_cv_prog_NM="$NM" # Let the user override the test.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600 ac_cv_prog_NM="${ncn_progname}"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 if test -n "$NM"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8613 $as_echo "$NM" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8623 for ncn_progname in nm; do
8624 if test -n "$ncn_tool_prefix"; then
8625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_prog_NM+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8632 if test -n "$NM"; then
8633 ac_cv_prog_NM="$NM" # Let the user override the test.
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 if test -n "$NM"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8655 $as_echo "$NM" >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8663 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8665 set dummy ${ncn_progname}; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_NM+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8671 if test -n "$NM"; then
8672 ac_cv_prog_NM="$NM" # Let the user override the test.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_prog_NM="${ncn_progname}"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 if test -n "$NM"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8694 $as_echo "$NM" >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8702 test -n "$ac_cv_prog_NM" && break
8705 if test -z "$ac_cv_prog_NM" ; then
8707 if test $build = $host ; then
8710 NM="${ncn_tool_prefix}$2"
8716 if test -n "$RANLIB"; then
8717 ac_cv_prog_RANLIB=$RANLIB
8718 elif test -n "$ac_cv_prog_RANLIB"; then
8719 RANLIB=$ac_cv_prog_RANLIB
8722 if test -n "$ac_cv_prog_RANLIB"; then
8723 for ncn_progname in ranlib; do
8724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8725 set dummy ${ncn_progname}; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8731 if test -n "$RANLIB"; then
8732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741 ac_cv_prog_RANLIB="${ncn_progname}"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 RANLIB=$ac_cv_prog_RANLIB
8752 if test -n "$RANLIB"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8754 $as_echo "$RANLIB" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8764 for ncn_progname in ranlib; do
8765 if test -n "$ncn_tool_prefix"; then
8766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8773 if test -n "$RANLIB"; then
8774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 RANLIB=$ac_cv_prog_RANLIB
8794 if test -n "$RANLIB"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8796 $as_echo "$RANLIB" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8804 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8806 set dummy ${ncn_progname}; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8812 if test -n "$RANLIB"; then
8813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_RANLIB="${ncn_progname}"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 RANLIB=$ac_cv_prog_RANLIB
8833 if test -n "$RANLIB"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8835 $as_echo "$RANLIB" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8843 test -n "$ac_cv_prog_RANLIB" && break
8846 if test -z "$ac_cv_prog_RANLIB" ; then
8852 if test -n "$STRIP"; then
8853 ac_cv_prog_STRIP=$STRIP
8854 elif test -n "$ac_cv_prog_STRIP"; then
8855 STRIP=$ac_cv_prog_STRIP
8858 if test -n "$ac_cv_prog_STRIP"; then
8859 for ncn_progname in strip; do
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_STRIP+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$STRIP"; then
8868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_STRIP="${ncn_progname}"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 STRIP=$ac_cv_prog_STRIP
8888 if test -n "$STRIP"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8890 $as_echo "$STRIP" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8900 for ncn_progname in strip; do
8901 if test -n "$ncn_tool_prefix"; then
8902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_STRIP+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8909 if test -n "$STRIP"; then
8910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 STRIP=$ac_cv_prog_STRIP
8930 if test -n "$STRIP"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8932 $as_echo "$STRIP" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8940 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if test "${ac_cv_prog_STRIP+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8948 if test -n "$STRIP"; then
8949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_prog_STRIP="${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 STRIP=$ac_cv_prog_STRIP
8969 if test -n "$STRIP"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8971 $as_echo "$STRIP" >&6; }
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 test -n "$ac_cv_prog_STRIP" && break
8982 if test -z "$ac_cv_prog_STRIP" ; then
8988 if test -n "$WINDRES"; then
8989 ac_cv_prog_WINDRES=$WINDRES
8990 elif test -n "$ac_cv_prog_WINDRES"; then
8991 WINDRES=$ac_cv_prog_WINDRES
8994 if test -n "$ac_cv_prog_WINDRES"; then
8995 for ncn_progname in windres; do
8996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8997 set dummy ${ncn_progname}; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9003 if test -n "$WINDRES"; then
9004 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9013 ac_cv_prog_WINDRES="${ncn_progname}"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 WINDRES=$ac_cv_prog_WINDRES
9024 if test -n "$WINDRES"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9026 $as_echo "$WINDRES" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9036 for ncn_progname in windres; do
9037 if test -n "$ncn_tool_prefix"; then
9038 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9039 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 if test -n "$WINDRES"; then
9046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 WINDRES=$ac_cv_prog_WINDRES
9066 if test -n "$WINDRES"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9068 $as_echo "$WINDRES" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9076 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9078 set dummy ${ncn_progname}; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9084 if test -n "$WINDRES"; then
9085 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_prog_WINDRES="${ncn_progname}"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 WINDRES=$ac_cv_prog_WINDRES
9105 if test -n "$WINDRES"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9107 $as_echo "$WINDRES" >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9115 test -n "$ac_cv_prog_WINDRES" && break
9118 if test -z "$ac_cv_prog_WINDRES" ; then
9120 if test $build = $host ; then
9123 WINDRES="${ncn_tool_prefix}$2"
9129 if test -n "$WINDMC"; then
9130 ac_cv_prog_WINDMC=$WINDMC
9131 elif test -n "$ac_cv_prog_WINDMC"; then
9132 WINDMC=$ac_cv_prog_WINDMC
9135 if test -n "$ac_cv_prog_WINDMC"; then
9136 for ncn_progname in windmc; do
9137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138 set dummy ${ncn_progname}; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9144 if test -n "$WINDMC"; then
9145 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 test -z "$as_dir" && as_dir=.
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154 ac_cv_prog_WINDMC="${ncn_progname}"
9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 WINDMC=$ac_cv_prog_WINDMC
9165 if test -n "$WINDMC"; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9167 $as_echo "$WINDMC" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9177 for ncn_progname in windmc; do
9178 if test -n "$ncn_tool_prefix"; then
9179 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9180 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9186 if test -n "$WINDMC"; then
9187 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9196 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 WINDMC=$ac_cv_prog_WINDMC
9207 if test -n "$WINDMC"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9209 $as_echo "$WINDMC" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9217 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9219 set dummy ${ncn_progname}; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9225 if test -n "$WINDMC"; then
9226 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_prog_WINDMC="${ncn_progname}"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 WINDMC=$ac_cv_prog_WINDMC
9246 if test -n "$WINDMC"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9248 $as_echo "$WINDMC" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9256 test -n "$ac_cv_prog_WINDMC" && break
9259 if test -z "$ac_cv_prog_WINDMC" ; then
9261 if test $build = $host ; then
9264 WINDMC="${ncn_tool_prefix}$2"
9270 if test -n "$OBJCOPY"; then
9271 ac_cv_prog_OBJCOPY=$OBJCOPY
9272 elif test -n "$ac_cv_prog_OBJCOPY"; then
9273 OBJCOPY=$ac_cv_prog_OBJCOPY
9276 if test -n "$ac_cv_prog_OBJCOPY"; then
9277 for ncn_progname in objcopy; do
9278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9279 set dummy ${ncn_progname}; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9285 if test -n "$OBJCOPY"; then
9286 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_prog_OBJCOPY="${ncn_progname}"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 OBJCOPY=$ac_cv_prog_OBJCOPY
9306 if test -n "$OBJCOPY"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9308 $as_echo "$OBJCOPY" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9318 for ncn_progname in objcopy; do
9319 if test -n "$ncn_tool_prefix"; then
9320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9321 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9327 if test -n "$OBJCOPY"; then
9328 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 OBJCOPY=$ac_cv_prog_OBJCOPY
9348 if test -n "$OBJCOPY"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9350 $as_echo "$OBJCOPY" >&6; }
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9358 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9360 set dummy ${ncn_progname}; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9366 if test -n "$OBJCOPY"; then
9367 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_prog_OBJCOPY="${ncn_progname}"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 OBJCOPY=$ac_cv_prog_OBJCOPY
9387 if test -n "$OBJCOPY"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9389 $as_echo "$OBJCOPY" >&6; }
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9397 test -n "$ac_cv_prog_OBJCOPY" && break
9400 if test -z "$ac_cv_prog_OBJCOPY" ; then
9402 if test $build = $host ; then
9405 OBJCOPY="${ncn_tool_prefix}$2"
9411 if test -n "$OBJDUMP"; then
9412 ac_cv_prog_OBJDUMP=$OBJDUMP
9413 elif test -n "$ac_cv_prog_OBJDUMP"; then
9414 OBJDUMP=$ac_cv_prog_OBJDUMP
9417 if test -n "$ac_cv_prog_OBJDUMP"; then
9418 for ncn_progname in objdump; do
9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420 set dummy ${ncn_progname}; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9426 if test -n "$OBJDUMP"; then
9427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9436 ac_cv_prog_OBJDUMP="${ncn_progname}"
9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 OBJDUMP=$ac_cv_prog_OBJDUMP
9447 if test -n "$OBJDUMP"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9449 $as_echo "$OBJDUMP" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9459 for ncn_progname in objdump; do
9460 if test -n "$ncn_tool_prefix"; then
9461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9468 if test -n "$OBJDUMP"; then
9469 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 OBJDUMP=$ac_cv_prog_OBJDUMP
9489 if test -n "$OBJDUMP"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9491 $as_echo "$OBJDUMP" >&6; }
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9499 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9501 set dummy ${ncn_progname}; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9507 if test -n "$OBJDUMP"; then
9508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_prog_OBJDUMP="${ncn_progname}"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 OBJDUMP=$ac_cv_prog_OBJDUMP
9528 if test -n "$OBJDUMP"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9530 $as_echo "$OBJDUMP" >&6; }
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9538 test -n "$ac_cv_prog_OBJDUMP" && break
9541 if test -z "$ac_cv_prog_OBJDUMP" ; then
9543 if test $build = $host ; then
9546 OBJDUMP="${ncn_tool_prefix}$2"
9557 # Check whether --with-build-time-tools was given.
9558 if test "${with_build_time_tools+set}" = set; then :
9559 withval=$with_build_time_tools; case x"$withval" in
9562 with_build_time_tools=
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9564 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9568 with_build_time_tools=
9574 if test -n "$CC_FOR_TARGET"; then
9575 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9576 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9577 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9580 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9581 for ncn_progname in cc gcc; do
9582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9583 set dummy ${ncn_progname}; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 if test -n "$CC_FOR_TARGET"; then
9590 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9610 if test -n "$CC_FOR_TARGET"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9612 $as_echo "$CC_FOR_TARGET" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9622 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9623 for ncn_progname in cc gcc; do
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9625 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9626 if test -x $with_build_time_tools/${ncn_progname}; then
9627 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9629 $as_echo "yes" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9638 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9639 for ncn_progname in cc gcc; do
9640 if test -n "$ncn_target_tool_prefix"; then
9641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9648 if test -n "$CC_FOR_TARGET"; then
9649 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9669 if test -n "$CC_FOR_TARGET"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9671 $as_echo "$CC_FOR_TARGET" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9679 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9681 set dummy ${ncn_progname}; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9687 if test -n "$CC_FOR_TARGET"; then
9688 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9708 if test -n "$CC_FOR_TARGET"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9710 $as_echo "$CC_FOR_TARGET" >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9718 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9722 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9724 if test $build = $target ; then
9727 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9730 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9735 if test -n "$CXX_FOR_TARGET"; then
9736 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9737 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9738 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9741 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9742 for ncn_progname in c++ g++ cxx gxx; do
9743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_progname}; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9750 if test -n "$CXX_FOR_TARGET"; then
9751 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9771 if test -n "$CXX_FOR_TARGET"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9773 $as_echo "$CXX_FOR_TARGET" >&6; }
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9783 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9784 for ncn_progname in c++ g++ cxx gxx; do
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9787 if test -x $with_build_time_tools/${ncn_progname}; then
9788 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9790 $as_echo "yes" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9799 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9800 for ncn_progname in c++ g++ cxx gxx; do
9801 if test -n "$ncn_target_tool_prefix"; then
9802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9809 if test -n "$CXX_FOR_TARGET"; then
9810 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9830 if test -n "$CXX_FOR_TARGET"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9832 $as_echo "$CXX_FOR_TARGET" >&6; }
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9840 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9842 set dummy ${ncn_progname}; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9848 if test -n "$CXX_FOR_TARGET"; then
9849 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9869 if test -n "$CXX_FOR_TARGET"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9871 $as_echo "$CXX_FOR_TARGET" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9879 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9883 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9884 set dummy c++ g++ cxx gxx
9885 if test $build = $target ; then
9888 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9891 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9896 if test -n "$GCC_FOR_TARGET"; then
9897 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9898 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9899 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9902 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9903 for ncn_progname in gcc; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_progname}; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9911 if test -n "$GCC_FOR_TARGET"; then
9912 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9932 if test -n "$GCC_FOR_TARGET"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9934 $as_echo "$GCC_FOR_TARGET" >&6; }
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9944 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9945 for ncn_progname in gcc; do
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9960 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9961 for ncn_progname in gcc; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9964 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$GCC_FOR_TARGET"; then
9971 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9991 if test -n "$GCC_FOR_TARGET"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9993 $as_echo "$GCC_FOR_TARGET" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10001 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10003 set dummy ${ncn_progname}; ac_word=$2
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005 $as_echo_n "checking for $ac_word... " >&6; }
10006 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10009 if test -n "$GCC_FOR_TARGET"; then
10010 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10016 test -z "$as_dir" && as_dir=.
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10019 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10030 if test -n "$GCC_FOR_TARGET"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10032 $as_echo "$GCC_FOR_TARGET" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10040 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10044 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10045 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10047 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10052 if test -n "$GCJ_FOR_TARGET"; then
10053 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10054 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10055 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10058 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10059 for ncn_progname in gcj; do
10060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10061 set dummy ${ncn_progname}; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10067 if test -n "$GCJ_FOR_TARGET"; then
10068 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10088 if test -n "$GCJ_FOR_TARGET"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10090 $as_echo "$GCJ_FOR_TARGET" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10100 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10101 for ncn_progname in gcj; do
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10104 if test -x $with_build_time_tools/${ncn_progname}; then
10105 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10107 $as_echo "yes" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10117 for ncn_progname in gcj; do
10118 if test -n "$ncn_target_tool_prefix"; then
10119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10126 if test -n "$GCJ_FOR_TARGET"; then
10127 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10136 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10147 if test -n "$GCJ_FOR_TARGET"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10149 $as_echo "$GCJ_FOR_TARGET" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10157 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10159 set dummy ${ncn_progname}; ac_word=$2
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161 $as_echo_n "checking for $ac_word... " >&6; }
10162 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10165 if test -n "$GCJ_FOR_TARGET"; then
10166 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10175 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10186 if test -n "$GCJ_FOR_TARGET"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10188 $as_echo "$GCJ_FOR_TARGET" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10196 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10200 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10202 if test $build = $target ; then
10203 GCJ_FOR_TARGET="$2"
10205 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10208 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10213 if test -n "$GFORTRAN_FOR_TARGET"; then
10214 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10215 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10216 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10219 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10220 for ncn_progname in gfortran; do
10221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10222 set dummy ${ncn_progname}; ac_word=$2
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224 $as_echo_n "checking for $ac_word... " >&6; }
10225 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10228 if test -n "$GFORTRAN_FOR_TARGET"; then
10229 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10235 test -z "$as_dir" && as_dir=.
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10238 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10249 if test -n "$GFORTRAN_FOR_TARGET"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10251 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10261 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10262 for ncn_progname in gfortran; do
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10264 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10265 if test -x $with_build_time_tools/${ncn_progname}; then
10266 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10268 $as_echo "yes" >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10277 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10278 for ncn_progname in gfortran; do
10279 if test -n "$ncn_target_tool_prefix"; then
10280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10281 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283 $as_echo_n "checking for $ac_word... " >&6; }
10284 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10287 if test -n "$GFORTRAN_FOR_TARGET"; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10308 if test -n "$GFORTRAN_FOR_TARGET"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10310 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10318 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10320 set dummy ${ncn_progname}; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10326 if test -n "$GFORTRAN_FOR_TARGET"; then
10327 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10347 if test -n "$GFORTRAN_FOR_TARGET"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10349 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10357 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10361 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10363 if test $build = $target ; then
10364 GFORTRAN_FOR_TARGET="$2"
10366 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10369 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10374 cat > conftest.c << \EOF
10379 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10380 have_gcc_for_target=yes
10382 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10383 have_gcc_for_target=no
10390 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10391 if test -n "$with_build_time_tools"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10393 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10394 if test -x $with_build_time_tools/ar; then
10395 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10396 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10398 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10403 elif test $build != $host && test $have_gcc_for_target = yes; then
10404 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10405 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10406 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10409 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10410 # Extract the first word of "ar", so it can be a program name with args.
10411 set dummy ar; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10417 case $AR_FOR_TARGET in
10419 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $gcc_cv_tool_dirs
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10441 if test -n "$AR_FOR_TARGET"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10443 $as_echo "$AR_FOR_TARGET" >&6; }
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10451 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10454 if test -n "$AR_FOR_TARGET"; then
10455 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10456 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10457 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10460 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10461 for ncn_progname in ar; do
10462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10469 if test -n "$AR_FOR_TARGET"; then
10470 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10490 if test -n "$AR_FOR_TARGET"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10492 $as_echo "$AR_FOR_TARGET" >&6; }
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10502 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10503 for ncn_progname in ar; do
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10506 if test -x $with_build_time_tools/${ncn_progname}; then
10507 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10518 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10519 for ncn_progname in ar; do
10520 if test -n "$ncn_target_tool_prefix"; then
10521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10528 if test -n "$AR_FOR_TARGET"; then
10529 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10549 if test -n "$AR_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10551 $as_echo "$AR_FOR_TARGET" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10559 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10561 set dummy ${ncn_progname}; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10567 if test -n "$AR_FOR_TARGET"; then
10568 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10588 if test -n "$AR_FOR_TARGET"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10590 $as_echo "$AR_FOR_TARGET" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10598 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10602 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10604 if test $build = $target ; then
10607 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10610 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10614 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10620 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10621 if test -n "$with_build_time_tools"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10623 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10624 if test -x $with_build_time_tools/as; then
10625 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10626 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10628 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10633 elif test $build != $host && test $have_gcc_for_target = yes; then
10634 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10635 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10636 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10639 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10640 # Extract the first word of "as", so it can be a program name with args.
10641 set dummy as; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10647 case $AS_FOR_TARGET in
10649 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $gcc_cv_tool_dirs
10656 test -z "$as_dir" && as_dir=.
10657 for ac_exec_ext in '' $ac_executable_extensions; do
10658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10659 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10671 if test -n "$AS_FOR_TARGET"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10673 $as_echo "$AS_FOR_TARGET" >&6; }
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10681 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10684 if test -n "$AS_FOR_TARGET"; then
10685 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10686 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10687 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10690 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10691 for ncn_progname in as; do
10692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10693 set dummy ${ncn_progname}; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10699 if test -n "$AS_FOR_TARGET"; then
10700 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10720 if test -n "$AS_FOR_TARGET"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10722 $as_echo "$AS_FOR_TARGET" >&6; }
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10732 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10733 for ncn_progname in as; do
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10735 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10736 if test -x $with_build_time_tools/${ncn_progname}; then
10737 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10739 $as_echo "yes" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10748 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10749 for ncn_progname in as; do
10750 if test -n "$ncn_target_tool_prefix"; then
10751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10758 if test -n "$AS_FOR_TARGET"; then
10759 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10779 if test -n "$AS_FOR_TARGET"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10781 $as_echo "$AS_FOR_TARGET" >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10789 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 if test -n "$AS_FOR_TARGET"; then
10798 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10818 if test -n "$AS_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10820 $as_echo "$AS_FOR_TARGET" >&6; }
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10828 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10832 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10834 if test $build = $target ; then
10837 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10840 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10844 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10850 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10851 if test -n "$with_build_time_tools"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10853 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10854 if test -x $with_build_time_tools/dlltool; then
10855 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10856 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10858 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10863 elif test $build != $host && test $have_gcc_for_target = yes; then
10864 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10865 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10866 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10869 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10870 # Extract the first word of "dlltool", so it can be a program name with args.
10871 set dummy dlltool; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10877 case $DLLTOOL_FOR_TARGET in
10879 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $gcc_cv_tool_dirs
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10901 if test -n "$DLLTOOL_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10903 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10914 if test -n "$DLLTOOL_FOR_TARGET"; then
10915 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10916 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10917 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10920 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10921 for ncn_progname in dlltool; do
10922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 if test -n "$DLLTOOL_FOR_TARGET"; then
10930 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10950 if test -n "$DLLTOOL_FOR_TARGET"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10952 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10962 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10963 for ncn_progname in dlltool; do
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10966 if test -x $with_build_time_tools/${ncn_progname}; then
10967 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10969 $as_echo "yes" >&6; }
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10978 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10979 for ncn_progname in dlltool; do
10980 if test -n "$ncn_target_tool_prefix"; then
10981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 if test -n "$DLLTOOL_FOR_TARGET"; then
10989 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11009 if test -n "$DLLTOOL_FOR_TARGET"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11011 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11019 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11021 set dummy ${ncn_progname}; ac_word=$2
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023 $as_echo_n "checking for $ac_word... " >&6; }
11024 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11027 if test -n "$DLLTOOL_FOR_TARGET"; then
11028 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031 for as_dir in $PATH
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11037 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11048 if test -n "$DLLTOOL_FOR_TARGET"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11050 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11058 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11062 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11064 if test $build = $target ; then
11065 DLLTOOL_FOR_TARGET="$2"
11067 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11070 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11074 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11080 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11081 if test -n "$with_build_time_tools"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11083 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11084 if test -x $with_build_time_tools/ld; then
11085 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11086 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11088 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11093 elif test $build != $host && test $have_gcc_for_target = yes; then
11094 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11095 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11096 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11099 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11100 # Extract the first word of "ld", so it can be a program name with args.
11101 set dummy ld; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11107 case $LD_FOR_TARGET in
11109 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $gcc_cv_tool_dirs
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11131 if test -n "$LD_FOR_TARGET"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11133 $as_echo "$LD_FOR_TARGET" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11141 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11144 if test -n "$LD_FOR_TARGET"; then
11145 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11146 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11147 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11150 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11151 for ncn_progname in ld; do
11152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11153 set dummy ${ncn_progname}; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11159 if test -n "$LD_FOR_TARGET"; then
11160 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11180 if test -n "$LD_FOR_TARGET"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11182 $as_echo "$LD_FOR_TARGET" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11192 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11193 for ncn_progname in ld; do
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11195 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11196 if test -x $with_build_time_tools/${ncn_progname}; then
11197 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; }
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11208 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11209 for ncn_progname in ld; do
11210 if test -n "$ncn_target_tool_prefix"; then
11211 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11212 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11218 if test -n "$LD_FOR_TARGET"; then
11219 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11239 if test -n "$LD_FOR_TARGET"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11241 $as_echo "$LD_FOR_TARGET" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11249 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11251 set dummy ${ncn_progname}; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11255 $as_echo_n "(cached) " >&6
11257 if test -n "$LD_FOR_TARGET"; then
11258 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11267 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11278 if test -n "$LD_FOR_TARGET"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11280 $as_echo "$LD_FOR_TARGET" >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11288 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11292 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11294 if test $build = $target ; then
11297 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11300 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11304 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11310 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11311 if test -n "$with_build_time_tools"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11313 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11314 if test -x $with_build_time_tools/lipo; then
11315 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11316 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11318 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11323 elif test $build != $host && test $have_gcc_for_target = yes; then
11324 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11325 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11326 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11329 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11330 # Extract the first word of "lipo", so it can be a program name with args.
11331 set dummy lipo; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11337 case $LIPO_FOR_TARGET in
11339 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $gcc_cv_tool_dirs
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11361 if test -n "$LIPO_FOR_TARGET"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11363 $as_echo "$LIPO_FOR_TARGET" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11371 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11374 if test -n "$LIPO_FOR_TARGET"; then
11375 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11376 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11377 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11380 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11381 for ncn_progname in lipo; do
11382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11383 set dummy ${ncn_progname}; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11389 if test -n "$LIPO_FOR_TARGET"; then
11390 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11410 if test -n "$LIPO_FOR_TARGET"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11412 $as_echo "$LIPO_FOR_TARGET" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11422 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11423 for ncn_progname in lipo; do
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11425 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11426 if test -x $with_build_time_tools/${ncn_progname}; then
11427 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429 $as_echo "yes" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11438 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11439 for ncn_progname in lipo; do
11440 if test -n "$ncn_target_tool_prefix"; then
11441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11442 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11448 if test -n "$LIPO_FOR_TARGET"; then
11449 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11469 if test -n "$LIPO_FOR_TARGET"; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11471 $as_echo "$LIPO_FOR_TARGET" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11479 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11481 set dummy ${ncn_progname}; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11487 if test -n "$LIPO_FOR_TARGET"; then
11488 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11508 if test -n "$LIPO_FOR_TARGET"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11510 $as_echo "$LIPO_FOR_TARGET" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11522 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11524 if test $build = $target ; then
11525 LIPO_FOR_TARGET="$2"
11527 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11530 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11534 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11540 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11541 if test -n "$with_build_time_tools"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11543 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11544 if test -x $with_build_time_tools/nm; then
11545 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11546 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11548 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11553 elif test $build != $host && test $have_gcc_for_target = yes; then
11554 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11555 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11556 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11559 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11560 # Extract the first word of "nm", so it can be a program name with args.
11561 set dummy nm; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11567 case $NM_FOR_TARGET in
11569 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $gcc_cv_tool_dirs
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11591 if test -n "$NM_FOR_TARGET"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11593 $as_echo "$NM_FOR_TARGET" >&6; }
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11601 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11604 if test -n "$NM_FOR_TARGET"; then
11605 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11606 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11607 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11610 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11611 for ncn_progname in nm; do
11612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11613 set dummy ${ncn_progname}; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 if test -n "$NM_FOR_TARGET"; then
11620 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11640 if test -n "$NM_FOR_TARGET"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11642 $as_echo "$NM_FOR_TARGET" >&6; }
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11652 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11653 for ncn_progname in nm; do
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11656 if test -x $with_build_time_tools/${ncn_progname}; then
11657 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659 $as_echo "yes" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11668 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11669 for ncn_progname in nm; do
11670 if test -n "$ncn_target_tool_prefix"; then
11671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11678 if test -n "$NM_FOR_TARGET"; then
11679 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11699 if test -n "$NM_FOR_TARGET"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11701 $as_echo "$NM_FOR_TARGET" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11709 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11711 set dummy ${ncn_progname}; ac_word=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11717 if test -n "$NM_FOR_TARGET"; then
11718 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11738 if test -n "$NM_FOR_TARGET"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11740 $as_echo "$NM_FOR_TARGET" >&6; }
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11748 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11752 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11754 if test $build = $target ; then
11757 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11760 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11764 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11770 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11771 if test -n "$with_build_time_tools"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11773 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11774 if test -x $with_build_time_tools/objdump; then
11775 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11776 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11778 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11783 elif test $build != $host && test $have_gcc_for_target = yes; then
11784 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11785 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11786 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11789 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11790 # Extract the first word of "objdump", so it can be a program name with args.
11791 set dummy objdump; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11797 case $OBJDUMP_FOR_TARGET in
11799 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $gcc_cv_tool_dirs
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11821 if test -n "$OBJDUMP_FOR_TARGET"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11823 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11831 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11834 if test -n "$OBJDUMP_FOR_TARGET"; then
11835 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11836 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11837 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11840 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11841 for ncn_progname in objdump; do
11842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11843 set dummy ${ncn_progname}; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11849 if test -n "$OBJDUMP_FOR_TARGET"; then
11850 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853 for as_dir in $PATH
11856 test -z "$as_dir" && as_dir=.
11857 for ac_exec_ext in '' $ac_executable_extensions; do
11858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11859 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11870 if test -n "$OBJDUMP_FOR_TARGET"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11872 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11882 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11883 for ncn_progname in objdump; do
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11885 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11886 if test -x $with_build_time_tools/${ncn_progname}; then
11887 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11898 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11899 for ncn_progname in objdump; do
11900 if test -n "$ncn_target_tool_prefix"; then
11901 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11902 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11908 if test -n "$OBJDUMP_FOR_TARGET"; then
11909 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11929 if test -n "$OBJDUMP_FOR_TARGET"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11931 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11939 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11941 set dummy ${ncn_progname}; ac_word=$2
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943 $as_echo_n "checking for $ac_word... " >&6; }
11944 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11947 if test -n "$OBJDUMP_FOR_TARGET"; then
11948 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11968 if test -n "$OBJDUMP_FOR_TARGET"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11970 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11978 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11982 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11984 if test $build = $target ; then
11985 OBJDUMP_FOR_TARGET="$2"
11987 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11990 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11994 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12000 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12001 if test -n "$with_build_time_tools"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12003 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12004 if test -x $with_build_time_tools/ranlib; then
12005 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12006 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12008 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12013 elif test $build != $host && test $have_gcc_for_target = yes; then
12014 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12015 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12016 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12019 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12020 # Extract the first word of "ranlib", so it can be a program name with args.
12021 set dummy ranlib; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12027 case $RANLIB_FOR_TARGET in
12029 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $gcc_cv_tool_dirs
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12051 if test -n "$RANLIB_FOR_TARGET"; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12053 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12061 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12064 if test -n "$RANLIB_FOR_TARGET"; then
12065 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12066 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12067 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12070 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12071 for ncn_progname in ranlib; do
12072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12073 set dummy ${ncn_progname}; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12079 if test -n "$RANLIB_FOR_TARGET"; then
12080 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12089 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12100 if test -n "$RANLIB_FOR_TARGET"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12102 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12112 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12113 for ncn_progname in ranlib; do
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12115 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12116 if test -x $with_build_time_tools/${ncn_progname}; then
12117 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12119 $as_echo "yes" >&6; }
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12128 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12129 for ncn_progname in ranlib; do
12130 if test -n "$ncn_target_tool_prefix"; then
12131 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12132 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12138 if test -n "$RANLIB_FOR_TARGET"; then
12139 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12159 if test -n "$RANLIB_FOR_TARGET"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12161 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12169 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12171 set dummy ${ncn_progname}; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
12177 if test -n "$RANLIB_FOR_TARGET"; then
12178 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12198 if test -n "$RANLIB_FOR_TARGET"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12200 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12208 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12212 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12214 if test $build = $target ; then
12215 RANLIB_FOR_TARGET="$2"
12217 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12220 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12224 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12230 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12231 if test -n "$with_build_time_tools"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12233 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12234 if test -x $with_build_time_tools/strip; then
12235 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12236 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12238 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12243 elif test $build != $host && test $have_gcc_for_target = yes; then
12244 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12245 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12246 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12249 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12250 # Extract the first word of "strip", so it can be a program name with args.
12251 set dummy strip; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12257 case $STRIP_FOR_TARGET in
12259 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $gcc_cv_tool_dirs
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12281 if test -n "$STRIP_FOR_TARGET"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12283 $as_echo "$STRIP_FOR_TARGET" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12291 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12294 if test -n "$STRIP_FOR_TARGET"; then
12295 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12296 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12297 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12300 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12301 for ncn_progname in strip; do
12302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12303 set dummy ${ncn_progname}; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 if test -n "$STRIP_FOR_TARGET"; then
12310 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12330 if test -n "$STRIP_FOR_TARGET"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12332 $as_echo "$STRIP_FOR_TARGET" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12342 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12343 for ncn_progname in strip; do
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12346 if test -x $with_build_time_tools/${ncn_progname}; then
12347 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12358 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12359 for ncn_progname in strip; do
12360 if test -n "$ncn_target_tool_prefix"; then
12361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 if test -n "$STRIP_FOR_TARGET"; then
12369 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
12377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12389 if test -n "$STRIP_FOR_TARGET"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12391 $as_echo "$STRIP_FOR_TARGET" >&6; }
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12399 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12401 set dummy ${ncn_progname}; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 if test -n "$STRIP_FOR_TARGET"; then
12408 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12428 if test -n "$STRIP_FOR_TARGET"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12430 $as_echo "$STRIP_FOR_TARGET" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12438 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12442 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12444 if test $build = $target ; then
12445 STRIP_FOR_TARGET="$2"
12447 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12450 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12454 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12460 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12461 if test -n "$with_build_time_tools"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12463 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12464 if test -x $with_build_time_tools/windres; then
12465 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12466 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12468 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12473 elif test $build != $host && test $have_gcc_for_target = yes; then
12474 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12475 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12476 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12480 # Extract the first word of "windres", so it can be a program name with args.
12481 set dummy windres; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12487 case $WINDRES_FOR_TARGET in
12489 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $gcc_cv_tool_dirs
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12511 if test -n "$WINDRES_FOR_TARGET"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12513 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12521 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12524 if test -n "$WINDRES_FOR_TARGET"; then
12525 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12526 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12527 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12530 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12531 for ncn_progname in windres; do
12532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12533 set dummy ${ncn_progname}; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12539 if test -n "$WINDRES_FOR_TARGET"; then
12540 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543 for as_dir in $PATH
12546 test -z "$as_dir" && as_dir=.
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12549 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12560 if test -n "$WINDRES_FOR_TARGET"; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12562 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12572 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12573 for ncn_progname in windres; do
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12576 if test -x $with_build_time_tools/${ncn_progname}; then
12577 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579 $as_echo "yes" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12588 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12589 for ncn_progname in windres; do
12590 if test -n "$ncn_target_tool_prefix"; then
12591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12598 if test -n "$WINDRES_FOR_TARGET"; then
12599 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12619 if test -n "$WINDRES_FOR_TARGET"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12621 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12629 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631 set dummy ${ncn_progname}; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12637 if test -n "$WINDRES_FOR_TARGET"; then
12638 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12647 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12658 if test -n "$WINDRES_FOR_TARGET"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12660 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12668 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12672 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12674 if test $build = $target ; then
12675 WINDRES_FOR_TARGET="$2"
12677 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12680 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12684 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12690 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12691 if test -n "$with_build_time_tools"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12693 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12694 if test -x $with_build_time_tools/windmc; then
12695 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12696 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12698 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12703 elif test $build != $host && test $have_gcc_for_target = yes; then
12704 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12705 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12706 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12709 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12710 # Extract the first word of "windmc", so it can be a program name with args.
12711 set dummy windmc; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12717 case $WINDMC_FOR_TARGET in
12719 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $gcc_cv_tool_dirs
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12741 if test -n "$WINDMC_FOR_TARGET"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12743 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12751 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12754 if test -n "$WINDMC_FOR_TARGET"; then
12755 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12756 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12757 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12760 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12761 for ncn_progname in windmc; do
12762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12763 set dummy ${ncn_progname}; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12769 if test -n "$WINDMC_FOR_TARGET"; then
12770 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12790 if test -n "$WINDMC_FOR_TARGET"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12792 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12802 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12803 for ncn_progname in windmc; do
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12806 if test -x $with_build_time_tools/${ncn_progname}; then
12807 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12809 $as_echo "yes" >&6; }
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12818 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12819 for ncn_progname in windmc; do
12820 if test -n "$ncn_target_tool_prefix"; then
12821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12828 if test -n "$WINDMC_FOR_TARGET"; then
12829 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12849 if test -n "$WINDMC_FOR_TARGET"; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12851 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12859 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12861 set dummy ${ncn_progname}; ac_word=$2
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863 $as_echo_n "checking for $ac_word... " >&6; }
12864 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12867 if test -n "$WINDMC_FOR_TARGET"; then
12868 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12874 test -z "$as_dir" && as_dir=.
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12877 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12888 if test -n "$WINDMC_FOR_TARGET"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12890 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12898 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12902 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12904 if test $build = $target ; then
12905 WINDMC_FOR_TARGET="$2"
12907 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12910 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12914 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12918 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12921 $as_echo_n "checking where to find the target ar... " >&6; }
12922 if test "x${build}" != "x${host}" ; then
12923 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12924 # We already found the complete path
12925 ac_dir=`dirname $AR_FOR_TARGET`
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12927 $as_echo "pre-installed in $ac_dir" >&6; }
12929 # Canadian cross, just use what we found
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12931 $as_echo "pre-installed" >&6; }
12935 case " ${configdirs} " in
12940 if test $ok = yes; then
12941 # An in-tree tool is available and we can use it
12942 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12944 $as_echo "just compiled" >&6; }
12945 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12946 # We already found the complete path
12947 ac_dir=`dirname $AR_FOR_TARGET`
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12949 $as_echo "pre-installed in $ac_dir" >&6; }
12950 elif test "x$target" = "x$host"; then
12951 # We can use an host tool
12952 AR_FOR_TARGET='$(AR)'
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12954 $as_echo "host tool" >&6; }
12956 # We need a cross tool
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12958 $as_echo "pre-installed" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12963 $as_echo_n "checking where to find the target as... " >&6; }
12964 if test "x${build}" != "x${host}" ; then
12965 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12966 # We already found the complete path
12967 ac_dir=`dirname $AS_FOR_TARGET`
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12969 $as_echo "pre-installed in $ac_dir" >&6; }
12971 # Canadian cross, just use what we found
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12973 $as_echo "pre-installed" >&6; }
12977 case " ${configdirs} " in
12982 if test $ok = yes; then
12983 # An in-tree tool is available and we can use it
12984 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12986 $as_echo "just compiled" >&6; }
12987 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12988 # We already found the complete path
12989 ac_dir=`dirname $AS_FOR_TARGET`
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12991 $as_echo "pre-installed in $ac_dir" >&6; }
12992 elif test "x$target" = "x$host"; then
12993 # We can use an host tool
12994 AS_FOR_TARGET='$(AS)'
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12996 $as_echo "host tool" >&6; }
12998 # We need a cross tool
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13000 $as_echo "pre-installed" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13005 $as_echo_n "checking where to find the target cc... " >&6; }
13006 if test "x${build}" != "x${host}" ; then
13007 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13008 # We already found the complete path
13009 ac_dir=`dirname $CC_FOR_TARGET`
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13011 $as_echo "pre-installed in $ac_dir" >&6; }
13013 # Canadian cross, just use what we found
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13015 $as_echo "pre-installed" >&6; }
13019 case " ${configdirs} " in
13024 if test $ok = yes; then
13025 # An in-tree tool is available and we can use it
13026 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13028 $as_echo "just compiled" >&6; }
13029 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13030 # We already found the complete path
13031 ac_dir=`dirname $CC_FOR_TARGET`
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13033 $as_echo "pre-installed in $ac_dir" >&6; }
13034 elif test "x$target" = "x$host"; then
13035 # We can use an host tool
13036 CC_FOR_TARGET='$(CC)'
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13038 $as_echo "host tool" >&6; }
13040 # We need a cross tool
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13042 $as_echo "pre-installed" >&6; }
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13047 $as_echo_n "checking where to find the target c++... " >&6; }
13048 if test "x${build}" != "x${host}" ; then
13049 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13050 # We already found the complete path
13051 ac_dir=`dirname $CXX_FOR_TARGET`
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13053 $as_echo "pre-installed in $ac_dir" >&6; }
13055 # Canadian cross, just use what we found
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13057 $as_echo "pre-installed" >&6; }
13061 case " ${configdirs} " in
13065 case ,${enable_languages}, in
13069 if test $ok = yes; then
13070 # An in-tree tool is available and we can use it
13071 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13073 $as_echo "just compiled" >&6; }
13074 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13075 # We already found the complete path
13076 ac_dir=`dirname $CXX_FOR_TARGET`
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13078 $as_echo "pre-installed in $ac_dir" >&6; }
13079 elif test "x$target" = "x$host"; then
13080 # We can use an host tool
13081 CXX_FOR_TARGET='$(CXX)'
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13083 $as_echo "host tool" >&6; }
13085 # We need a cross tool
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13087 $as_echo "pre-installed" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13092 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13093 if test "x${build}" != "x${host}" ; then
13094 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13095 # We already found the complete path
13096 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13098 $as_echo "pre-installed in $ac_dir" >&6; }
13100 # Canadian cross, just use what we found
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13102 $as_echo "pre-installed" >&6; }
13106 case " ${configdirs} " in
13110 case ,${enable_languages}, in
13114 if test $ok = yes; then
13115 # An in-tree tool is available and we can use it
13116 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'
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13118 $as_echo "just compiled" >&6; }
13119 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13120 # We already found the complete path
13121 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13123 $as_echo "pre-installed in $ac_dir" >&6; }
13124 elif test "x$target" = "x$host"; then
13125 # We can use an host tool
13126 RAW_CXX_FOR_TARGET='$(CXX)'
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13128 $as_echo "host tool" >&6; }
13130 # We need a cross tool
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13132 $as_echo "pre-installed" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13137 $as_echo_n "checking where to find the target dlltool... " >&6; }
13138 if test "x${build}" != "x${host}" ; then
13139 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13140 # We already found the complete path
13141 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13143 $as_echo "pre-installed in $ac_dir" >&6; }
13145 # Canadian cross, just use what we found
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13147 $as_echo "pre-installed" >&6; }
13151 case " ${configdirs} " in
13156 if test $ok = yes; then
13157 # An in-tree tool is available and we can use it
13158 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13160 $as_echo "just compiled" >&6; }
13161 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13162 # We already found the complete path
13163 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13165 $as_echo "pre-installed in $ac_dir" >&6; }
13166 elif test "x$target" = "x$host"; then
13167 # We can use an host tool
13168 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13170 $as_echo "host tool" >&6; }
13172 # We need a cross tool
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13174 $as_echo "pre-installed" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13179 $as_echo_n "checking where to find the target gcc... " >&6; }
13180 if test "x${build}" != "x${host}" ; then
13181 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13182 # We already found the complete path
13183 ac_dir=`dirname $GCC_FOR_TARGET`
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13185 $as_echo "pre-installed in $ac_dir" >&6; }
13187 # Canadian cross, just use what we found
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189 $as_echo "pre-installed" >&6; }
13193 case " ${configdirs} " in
13198 if test $ok = yes; then
13199 # An in-tree tool is available and we can use it
13200 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13202 $as_echo "just compiled" >&6; }
13203 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13204 # We already found the complete path
13205 ac_dir=`dirname $GCC_FOR_TARGET`
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13207 $as_echo "pre-installed in $ac_dir" >&6; }
13208 elif test "x$target" = "x$host"; then
13209 # We can use an host tool
13210 GCC_FOR_TARGET='$()'
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13212 $as_echo "host tool" >&6; }
13214 # We need a cross tool
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13216 $as_echo "pre-installed" >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13221 $as_echo_n "checking where to find the target gcj... " >&6; }
13222 if test "x${build}" != "x${host}" ; then
13223 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13224 # We already found the complete path
13225 ac_dir=`dirname $GCJ_FOR_TARGET`
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13227 $as_echo "pre-installed in $ac_dir" >&6; }
13229 # Canadian cross, just use what we found
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231 $as_echo "pre-installed" >&6; }
13235 case " ${configdirs} " in
13239 case ,${enable_languages}, in
13243 if test $ok = yes; then
13244 # An in-tree tool is available and we can use it
13245 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13247 $as_echo "just compiled" >&6; }
13248 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13249 # We already found the complete path
13250 ac_dir=`dirname $GCJ_FOR_TARGET`
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252 $as_echo "pre-installed in $ac_dir" >&6; }
13253 elif test "x$target" = "x$host"; then
13254 # We can use an host tool
13255 GCJ_FOR_TARGET='$(GCJ)'
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13257 $as_echo "host tool" >&6; }
13259 # We need a cross tool
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13261 $as_echo "pre-installed" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13266 $as_echo_n "checking where to find the target gfortran... " >&6; }
13267 if test "x${build}" != "x${host}" ; then
13268 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13269 # We already found the complete path
13270 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272 $as_echo "pre-installed in $ac_dir" >&6; }
13274 # Canadian cross, just use what we found
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13276 $as_echo "pre-installed" >&6; }
13280 case " ${configdirs} " in
13284 case ,${enable_languages}, in
13288 if test $ok = yes; then
13289 # An in-tree tool is available and we can use it
13290 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13292 $as_echo "just compiled" >&6; }
13293 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
13295 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297 $as_echo "pre-installed in $ac_dir" >&6; }
13298 elif test "x$target" = "x$host"; then
13299 # We can use an host tool
13300 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13302 $as_echo "host tool" >&6; }
13304 # We need a cross tool
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306 $as_echo "pre-installed" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13311 $as_echo_n "checking where to find the target ld... " >&6; }
13312 if test "x${build}" != "x${host}" ; then
13313 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
13315 ac_dir=`dirname $LD_FOR_TARGET`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317 $as_echo "pre-installed in $ac_dir" >&6; }
13319 # Canadian cross, just use what we found
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13321 $as_echo "pre-installed" >&6; }
13325 case " ${configdirs} " in
13330 if test $ok = yes; then
13331 # An in-tree tool is available and we can use it
13332 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13334 $as_echo "just compiled" >&6; }
13335 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13336 # We already found the complete path
13337 ac_dir=`dirname $LD_FOR_TARGET`
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13339 $as_echo "pre-installed in $ac_dir" >&6; }
13340 elif test "x$target" = "x$host"; then
13341 # We can use an host tool
13342 LD_FOR_TARGET='$(LD)'
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13344 $as_echo "host tool" >&6; }
13346 # We need a cross tool
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13348 $as_echo "pre-installed" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13353 $as_echo_n "checking where to find the target lipo... " >&6; }
13354 if test "x${build}" != "x${host}" ; then
13355 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13356 # We already found the complete path
13357 ac_dir=`dirname $LIPO_FOR_TARGET`
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13359 $as_echo "pre-installed in $ac_dir" >&6; }
13361 # Canadian cross, just use what we found
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13363 $as_echo "pre-installed" >&6; }
13366 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13367 # We already found the complete path
13368 ac_dir=`dirname $LIPO_FOR_TARGET`
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13370 $as_echo "pre-installed in $ac_dir" >&6; }
13371 elif test "x$target" = "x$host"; then
13372 # We can use an host tool
13373 LIPO_FOR_TARGET='$(LIPO)'
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13375 $as_echo "host tool" >&6; }
13377 # We need a cross tool
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13379 $as_echo "pre-installed" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13384 $as_echo_n "checking where to find the target nm... " >&6; }
13385 if test "x${build}" != "x${host}" ; then
13386 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13387 # We already found the complete path
13388 ac_dir=`dirname $NM_FOR_TARGET`
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390 $as_echo "pre-installed in $ac_dir" >&6; }
13392 # Canadian cross, just use what we found
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394 $as_echo "pre-installed" >&6; }
13398 case " ${configdirs} " in
13403 if test $ok = yes; then
13404 # An in-tree tool is available and we can use it
13405 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13407 $as_echo "just compiled" >&6; }
13408 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13409 # We already found the complete path
13410 ac_dir=`dirname $NM_FOR_TARGET`
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13412 $as_echo "pre-installed in $ac_dir" >&6; }
13413 elif test "x$target" = "x$host"; then
13414 # We can use an host tool
13415 NM_FOR_TARGET='$(NM)'
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13417 $as_echo "host tool" >&6; }
13419 # We need a cross tool
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13421 $as_echo "pre-installed" >&6; }
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13426 $as_echo_n "checking where to find the target objdump... " >&6; }
13427 if test "x${build}" != "x${host}" ; then
13428 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13429 # We already found the complete path
13430 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432 $as_echo "pre-installed in $ac_dir" >&6; }
13434 # Canadian cross, just use what we found
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436 $as_echo "pre-installed" >&6; }
13440 case " ${configdirs} " in
13445 if test $ok = yes; then
13446 # An in-tree tool is available and we can use it
13447 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13449 $as_echo "just compiled" >&6; }
13450 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13451 # We already found the complete path
13452 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13454 $as_echo "pre-installed in $ac_dir" >&6; }
13455 elif test "x$target" = "x$host"; then
13456 # We can use an host tool
13457 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13459 $as_echo "host tool" >&6; }
13461 # We need a cross tool
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13463 $as_echo "pre-installed" >&6; }
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13468 $as_echo_n "checking where to find the target ranlib... " >&6; }
13469 if test "x${build}" != "x${host}" ; then
13470 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13471 # We already found the complete path
13472 ac_dir=`dirname $RANLIB_FOR_TARGET`
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13474 $as_echo "pre-installed in $ac_dir" >&6; }
13476 # Canadian cross, just use what we found
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478 $as_echo "pre-installed" >&6; }
13482 case " ${configdirs} " in
13487 if test $ok = yes; then
13488 # An in-tree tool is available and we can use it
13489 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13491 $as_echo "just compiled" >&6; }
13492 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13493 # We already found the complete path
13494 ac_dir=`dirname $RANLIB_FOR_TARGET`
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496 $as_echo "pre-installed in $ac_dir" >&6; }
13497 elif test "x$target" = "x$host"; then
13498 # We can use an host tool
13499 RANLIB_FOR_TARGET='$(RANLIB)'
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13501 $as_echo "host tool" >&6; }
13503 # We need a cross tool
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505 $as_echo "pre-installed" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13510 $as_echo_n "checking where to find the target strip... " >&6; }
13511 if test "x${build}" != "x${host}" ; then
13512 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13513 # We already found the complete path
13514 ac_dir=`dirname $STRIP_FOR_TARGET`
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516 $as_echo "pre-installed in $ac_dir" >&6; }
13518 # Canadian cross, just use what we found
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13520 $as_echo "pre-installed" >&6; }
13524 case " ${configdirs} " in
13529 if test $ok = yes; then
13530 # An in-tree tool is available and we can use it
13531 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13533 $as_echo "just compiled" >&6; }
13534 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13535 # We already found the complete path
13536 ac_dir=`dirname $STRIP_FOR_TARGET`
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13538 $as_echo "pre-installed in $ac_dir" >&6; }
13539 elif test "x$target" = "x$host"; then
13540 # We can use an host tool
13541 STRIP_FOR_TARGET='$(STRIP)'
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13543 $as_echo "host tool" >&6; }
13545 # We need a cross tool
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13547 $as_echo "pre-installed" >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13552 $as_echo_n "checking where to find the target windres... " >&6; }
13553 if test "x${build}" != "x${host}" ; then
13554 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13555 # We already found the complete path
13556 ac_dir=`dirname $WINDRES_FOR_TARGET`
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13558 $as_echo "pre-installed in $ac_dir" >&6; }
13560 # Canadian cross, just use what we found
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13562 $as_echo "pre-installed" >&6; }
13566 case " ${configdirs} " in
13571 if test $ok = yes; then
13572 # An in-tree tool is available and we can use it
13573 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13575 $as_echo "just compiled" >&6; }
13576 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13577 # We already found the complete path
13578 ac_dir=`dirname $WINDRES_FOR_TARGET`
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13580 $as_echo "pre-installed in $ac_dir" >&6; }
13581 elif test "x$target" = "x$host"; then
13582 # We can use an host tool
13583 WINDRES_FOR_TARGET='$(WINDRES)'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13585 $as_echo "host tool" >&6; }
13587 # We need a cross tool
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13589 $as_echo "pre-installed" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13594 $as_echo_n "checking where to find the target windmc... " >&6; }
13595 if test "x${build}" != "x${host}" ; then
13596 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13597 # We already found the complete path
13598 ac_dir=`dirname $WINDMC_FOR_TARGET`
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13600 $as_echo "pre-installed in $ac_dir" >&6; }
13602 # Canadian cross, just use what we found
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13604 $as_echo "pre-installed" >&6; }
13608 case " ${configdirs} " in
13613 if test $ok = yes; then
13614 # An in-tree tool is available and we can use it
13615 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13617 $as_echo "just compiled" >&6; }
13618 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13619 # We already found the complete path
13620 ac_dir=`dirname $WINDMC_FOR_TARGET`
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13622 $as_echo "pre-installed in $ac_dir" >&6; }
13623 elif test "x$target" = "x$host"; then
13624 # We can use an host tool
13625 WINDMC_FOR_TARGET='$(WINDMC)'
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13627 $as_echo "host tool" >&6; }
13629 # We need a cross tool
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13639 # Certain tools may need extra flags.
13640 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13641 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13642 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13644 # When building target libraries, except in a Canadian cross, we use
13645 # the same toolchain as the compiler we just built.
13646 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13647 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13648 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13649 if test $host = $build; then
13650 case " $configdirs " in
13652 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13653 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13654 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13664 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13665 # Check whether --enable-maintainer-mode was given.
13666 if test "${enable_maintainer_mode+set}" = set; then :
13667 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13669 USE_MAINTAINER_MODE=no
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13673 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13676 if test "$USE_MAINTAINER_MODE" = yes; then
13677 MAINTAINER_MODE_TRUE=
13678 MAINTAINER_MODE_FALSE='#'
13680 MAINTAINER_MODE_TRUE='#'
13681 MAINTAINER_MODE_FALSE=
13683 MAINT=$MAINTAINER_MODE_TRUE
13685 # ---------------------
13686 # GCC bootstrap support
13687 # ---------------------
13689 # Stage specific cflags for build.
13694 yes) stage1_cflags="-g -Wa,-J" ;;
13695 *) stage1_cflags="-g -J" ;;
13699 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13700 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13701 saved_CFLAGS="$CFLAGS"
13703 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13704 CFLAGS="$CFLAGS -fkeep-inline-functions"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13706 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13710 #if (__GNUC__ < 3) \
13711 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13712 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13713 #error http://gcc.gnu.org/PR29382
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 CFLAGS="$saved_CFLAGS"
13738 # Enable --enable-checking in stage1 of the compiler.
13739 # Check whether --enable-stage1-checking was given.
13740 if test "${enable_stage1_checking+set}" = set; then :
13741 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13743 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13744 stage1_checking=--enable-checking=yes,types
13746 stage1_checking=--enable-checking=$enable_checking,types
13752 # Enable -Werror in bootstrap stage2 and later.
13753 # Check whether --enable-werror was given.
13754 if test "${enable_werror+set}" = set; then :
13755 enableval=$enable_werror;
13757 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13764 case ${enable_werror} in
13765 yes) stage2_werror_flag="--enable-werror-always" ;;
13766 *) stage2_werror_flag="" ;;
13770 # Specify what files to not compare during bootstrap.
13772 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13774 hppa*64*-*-hpux*) ;;
13775 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13777 case " $configdirs " in
13778 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13782 ac_config_files="$ac_config_files Makefile"
13784 cat >confcache <<\_ACEOF
13785 # This file is a shell script that caches the results of configure
13786 # tests run on this system so they can be shared between configure
13787 # scripts and configure runs, see configure's option --config-cache.
13788 # It is not useful on other systems. If it contains results you don't
13789 # want to keep, you may remove or edit it.
13791 # config.status only pays attention to the cache file if you give it
13792 # the --recheck option to rerun configure.
13794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13796 # following values.
13800 # The following way of writing the cache mishandles newlines in values,
13801 # but we know of no workaround that is simple, portable, and efficient.
13802 # So, we kill variables containing newlines.
13803 # Ultrix sh set writes to stderr and can't be redirected directly,
13804 # and sets the high bit in the cache file unless we assign to the vars.
13806 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13807 eval ac_val=\$$ac_var
13811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13815 _ | IFS | as_nl) ;; #(
13816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13817 *) { eval $ac_var=; unset $ac_var;} ;;
13823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13824 *${as_nl}ac_space=\ *)
13825 # `set' does not quote correctly, so add quotes: double-quote
13826 # substitution turns \\\\ into \\, and sed turns \\ into \.
13829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13832 # `set' quotes correctly as required by POSIX, so do not add quotes.
13833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13847 if test -w "$cache_file"; then
13848 test "x$cache_file" != "x/dev/null" &&
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13850 $as_echo "$as_me: updating cache $cache_file" >&6;}
13851 cat confcache >$cache_file
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13860 # Let make expand exec_prefix.
13861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13863 # Transform confdefs.h into DEFS.
13864 # Protect against shell expansion while executing Makefile rules.
13865 # Protect against Makefile macro expansion.
13867 # If the first sed substitution is executed (which looks for macros that
13868 # take arguments), then branch to the quote section. Otherwise,
13869 # look for a macro that doesn't take arguments.
13879 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13881 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13885 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13898 DEFS=`sed -n "$ac_script" confdefs.h`
13903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13904 # 1. Remove the extension, and $U if already installed.
13905 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13906 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13907 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13908 # will be set to the directory where LIBOBJS objects are built.
13909 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13910 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13912 LIBOBJS=$ac_libobjs
13914 LTLIBOBJS=$ac_ltlibobjs
13918 : ${CONFIG_STATUS=./config.status}
13920 ac_clean_files_save=$ac_clean_files
13921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13927 # Generated by $as_me.
13928 # Run this file to recreate the current configuration.
13929 # Compiler output produced by configure, useful for debugging
13930 # configure, is in config.log if it exists.
13933 ac_cs_recheck=false
13936 SHELL=\${CONFIG_SHELL-$SHELL}
13939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13940 ## -------------------- ##
13941 ## M4sh Initialization. ##
13942 ## -------------------- ##
13944 # Be more Bourne compatible
13945 DUALCASE=1; export DUALCASE # for MKS sh
13946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13950 # is contrary to our usage. Disable this feature.
13951 alias -g '${1+"$@"}'='"$@"'
13952 setopt NO_GLOB_SUBST
13954 case `(set -o) 2>/dev/null` in #(
13966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13970 # Prefer a ksh shell builtin over an external printf program on Solaris,
13971 # but without wasting forks for bash or zsh.
13972 if test -z "$BASH_VERSION$ZSH_VERSION" \
13973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13974 as_echo='print -r --'
13975 as_echo_n='print -rn --'
13976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13977 as_echo='printf %s\n'
13978 as_echo_n='printf %s'
13980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13981 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13982 as_echo_n='/usr/ucb/echo -n'
13984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13985 as_echo_n_body='eval
13989 expr "X$arg" : "X\\(.*\\)$as_nl";
13990 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13992 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13994 export as_echo_n_body
13995 as_echo_n='sh -c $as_echo_n_body as_echo'
13997 export as_echo_body
13998 as_echo='sh -c $as_echo_body as_echo'
14001 # The user is always right.
14002 if test "${PATH_SEPARATOR+set}" != set; then
14004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14012 # We need space, tab and new line, in precisely that order. Quoting is
14013 # there to prevent editors from complaining about space-tab.
14014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14015 # splitting by setting IFS to empty value.)
14018 # Find who we are. Look in the path if we contain no directory separator.
14020 *[\\/]* ) as_myself=$0 ;;
14021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14025 test -z "$as_dir" && as_dir=.
14026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14032 # We did not find ourselves, most probably we were run as `sh COMMAND'
14033 # in which case we are not to be found in the path.
14034 if test "x$as_myself" = x; then
14037 if test ! -f "$as_myself"; then
14038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14042 # Unset variables that we do not need and which cause bugs (e.g. in
14043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14044 # suppresses any "Segmentation fault" message there. '((' could
14045 # trigger a bug in pdksh 5.2.14.
14046 for as_var in BASH_ENV ENV MAIL MAILPATH
14047 do eval test x\${$as_var+set} = xset \
14048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14064 # as_fn_error ERROR [LINENO LOG_FD]
14065 # ---------------------------------
14066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14068 # script with status $?, using 1 if that was 0.
14071 as_status=$?; test $as_status -eq 0 && as_status=1
14073 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14076 $as_echo "$as_me: error: $1" >&2
14077 as_fn_exit $as_status
14081 # as_fn_set_status STATUS
14082 # -----------------------
14083 # Set $? to STATUS, without forking.
14084 as_fn_set_status ()
14087 } # as_fn_set_status
14089 # as_fn_exit STATUS
14090 # -----------------
14091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14095 as_fn_set_status $1
14101 # Portably unset VAR.
14104 { eval $1=; unset $1;}
14106 as_unset=as_fn_unset
14107 # as_fn_append VAR VALUE
14108 # ----------------------
14109 # Append the text in VALUE to the end of the definition contained in VAR. Take
14110 # advantage of any shell optimizations that allow amortized linear growth over
14111 # repeated appends, instead of the typical quadratic growth present in naive
14113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14114 eval 'as_fn_append ()
14125 # as_fn_arith ARG...
14126 # ------------------
14127 # Perform arithmetic evaluation on the ARGs, and store the result in the
14128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14129 # must be portable across $(()) and expr.
14130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14131 eval 'as_fn_arith ()
14138 as_val=`expr "$@" || test $? -eq 1`
14143 if expr a : '\(a\)' >/dev/null 2>&1 &&
14144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14151 as_basename=basename
14156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14162 as_me=`$as_basename -- "$0" ||
14163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14164 X"$0" : 'X\(//\)$' \| \
14165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14167 sed '/^.*\/\([^/][^/]*\)\/*$/{
14181 # Avoid depending upon Character Ranges.
14182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14185 as_cr_digits='0123456789'
14186 as_cr_alnum=$as_cr_Letters$as_cr_digits
14188 ECHO_C= ECHO_N= ECHO_T=
14189 case `echo -n x` in #(((((
14191 case `echo 'xy\c'` in
14192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14201 rm -f conf$$ conf$$.exe conf$$.file
14202 if test -d conf$$.dir; then
14203 rm -f conf$$.dir/conf$$.file
14206 mkdir conf$$.dir 2>/dev/null
14208 if (echo >conf$$.file) 2>/dev/null; then
14209 if ln -s conf$$.file conf$$ 2>/dev/null; then
14211 # ... but there are two gotchas:
14212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14214 # In both cases, we have to default to `cp -p'.
14215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14217 elif ln conf$$.file conf$$ 2>/dev/null; then
14225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14226 rmdir conf$$.dir 2>/dev/null
14231 # Create "$as_dir" as a directory, including parents if necessary.
14236 -*) as_dir=./$as_dir;;
14238 test -d "$as_dir" || eval $as_mkdir_p || {
14242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14243 *) as_qdir=$as_dir;;
14245 as_dirs="'$as_qdir' $as_dirs"
14246 as_dir=`$as_dirname -- "$as_dir" ||
14247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14248 X"$as_dir" : 'X\(//\)[^/]' \| \
14249 X"$as_dir" : 'X\(//\)$' \| \
14250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14251 $as_echo X"$as_dir" |
14252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14256 /^X\(\/\/\)[^/].*/{
14269 test -d "$as_dir" && break
14271 test -z "$as_dirs" || eval "mkdir $as_dirs"
14272 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14276 if mkdir -p . 2>/dev/null; then
14277 as_mkdir_p='mkdir -p "$as_dir"'
14279 test -d ./-p && rmdir ./-p
14283 if test -x / >/dev/null 2>&1; then
14284 as_test_x='test -x'
14286 if ls -dL / >/dev/null 2>&1; then
14293 if test -d "$1"; then
14299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14300 ???[sx]*):;;*)false;;esac;fi
14304 as_executable_p=$as_test_x
14306 # Sed expression to map a string onto a valid CPP name.
14307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14309 # Sed expression to map a string onto a valid variable name.
14310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14314 ## ----------------------------------- ##
14315 ## Main body of $CONFIG_STATUS script. ##
14316 ## ----------------------------------- ##
14318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14321 # Save the log message, to keep $0 and so on meaningful, and to
14322 # report actual input values of CONFIG_FILES etc. instead of their
14323 # values after options handling.
14325 This file was extended by $as_me, which was
14326 generated by GNU Autoconf 2.64. Invocation command line was
14328 CONFIG_FILES = $CONFIG_FILES
14329 CONFIG_HEADERS = $CONFIG_HEADERS
14330 CONFIG_LINKS = $CONFIG_LINKS
14331 CONFIG_COMMANDS = $CONFIG_COMMANDS
14334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14339 case $ac_config_files in *"
14340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14346 # Files that config.status was made for.
14347 config_files="$ac_config_files"
14351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353 \`$as_me' instantiates files and other configuration actions
14354 from templates according to the current configuration. Unless the files
14355 and actions are specified as TAGs, all are instantiated by default.
14357 Usage: $0 [OPTION]... [TAG]...
14359 -h, --help print this help, then exit
14360 -V, --version print version number and configuration settings, then exit
14361 -q, --quiet, --silent
14362 do not print progress messages
14363 -d, --debug don't remove temporary files
14364 --recheck update $as_me by reconfiguring in the same conditions
14365 --file=FILE[:TEMPLATE]
14366 instantiate the configuration file FILE
14368 Configuration files:
14371 Report bugs to the package provider."
14374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14377 configured by $0, generated by GNU Autoconf 2.64,
14378 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14380 Copyright (C) 2009 Free Software Foundation, Inc.
14381 This config.status script is free software; the Free Software Foundation
14382 gives unlimited permission to copy, distribute and modify it."
14388 test -n "\$AWK" || AWK=awk
14391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14392 # The default lists apply if the user does not specify any file.
14398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14410 # Handling of the options.
14411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14414 $as_echo "$ac_cs_version"; exit ;;
14415 --debug | --debu | --deb | --de | --d | -d )
14417 --file | --fil | --fi | --f )
14420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14422 as_fn_append CONFIG_FILES " '$ac_optarg'"
14423 ac_need_defaults=false;;
14424 --he | --h | --help | --hel | -h )
14425 $as_echo "$ac_cs_usage"; exit ;;
14426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14430 # This is an error.
14431 -*) as_fn_error "unrecognized option: \`$1'
14432 Try \`$0 --help' for more information." ;;
14434 *) as_fn_append ac_config_targets " $1"
14435 ac_need_defaults=false ;;
14441 ac_configure_extra_args=
14443 if $ac_cs_silent; then
14445 ac_configure_extra_args="$ac_configure_extra_args --silent"
14449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450 if \$ac_cs_recheck; then
14451 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14453 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14454 CONFIG_SHELL='$SHELL'
14455 export CONFIG_SHELL
14460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14465 ## Running $as_me. ##
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14475 extrasub_build="$extrasub_build"
14476 extrasub_host="$extrasub_host"
14477 extrasub_target="$extrasub_target"
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483 # Handling of arguments.
14484 for ac_config_target in $ac_config_targets
14486 case $ac_config_target in
14487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14489 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14494 # If the user did not use the arguments to specify the items to instantiate,
14495 # then the envvar interface is used. Set only those that are not.
14496 # We use the long form for the default assignment because of an extremely
14497 # bizarre bug on SunOS 4.1.3.
14498 if $ac_need_defaults; then
14499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14502 # Have a temporary directory for convenience. Make it in the build tree
14503 # simply because there is no reason against having it here, and in addition,
14504 # creating and moving files from /tmp can sometimes cause problems.
14505 # Hook for its removal unless debugging.
14506 # Note that there is a small window in which the directory will not be cleaned:
14507 # after its creation but before its name has been assigned to `$tmp'.
14511 trap 'exit_status=$?
14512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14514 trap 'as_fn_exit 1' 1 2 13 15
14516 # Create a (secure) tmp directory for tmp files.
14519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14520 test -n "$tmp" && test -d "$tmp"
14523 tmp=./conf$$-$RANDOM
14524 (umask 077 && mkdir "$tmp")
14525 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14527 # Set up the scripts for CONFIG_FILES section.
14528 # No need to generate them if there are no CONFIG_FILES.
14529 # This happens for instance with `./config.status config.h'.
14530 if test -n "$CONFIG_FILES"; then
14532 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14533 ac_cs_awk_getline=:
14534 ac_cs_awk_pipe_init=
14535 ac_cs_awk_read_file='
14536 while ((getline aline < (F[key])) > 0)
14539 ac_cs_awk_pipe_fini=
14541 ac_cs_awk_getline=false
14542 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14543 ac_cs_awk_read_file='
14545 print "cat " F[key] " &&"
14546 '$ac_cs_awk_pipe_init
14547 # The final `:' finishes the AND list.
14548 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14550 ac_cr=`echo X | tr X '\015'`
14551 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14552 # But we know of no other shell where ac_cr would be empty at this
14553 # point, so we can use a bashism as a fallback.
14554 if test "x$ac_cr" = x; then
14555 eval ac_cr=\$\'\\r\'
14557 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14558 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14561 ac_cs_awk_cr=$ac_cr
14564 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14567 # Create commands to substitute file output variables.
14569 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14570 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14571 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14574 } >conf$$files.sh &&
14575 . ./conf$$files.sh ||
14576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14577 rm -f conf$$files.sh
14580 echo "cat >conf$$subs.awk <<_ACEOF" &&
14581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14583 } >conf$$subs.sh ||
14584 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14585 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14587 for ac_last_try in false false false false false :; do
14588 . ./conf$$subs.sh ||
14589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14592 if test $ac_delim_n = $ac_delim_num; then
14594 elif $ac_last_try; then
14595 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14600 rm -f conf$$subs.sh
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14607 s/^/S["/; s/!.*/"]=/
14617 s/\(.\{148\}\).*/\1/
14619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14631 s/\(.\{148\}\).*/\1/
14633 s/["\\]/\\&/g; s/^/"/; s/$/"/
14637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14642 ' <conf$$subs.awk | sed '
14647 ' >>$CONFIG_STATUS || ac_write_fail=1
14648 rm -f conf$$subs.awk
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14651 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14652 for (key in S) S_is_set[key] = 1
14654 \$ac_cs_awk_pipe_init
14658 nfields = split(line, field, "@")
14660 len = length(field[1])
14661 for (i = 2; i < nfields; i++) {
14663 keylen = length(key)
14664 if (S_is_set[key]) {
14666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14667 len += length(value) + length(field[++i])
14672 if (nfields == 3 && !substed) {
14674 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14675 \$ac_cs_awk_read_file
14681 \$ac_cs_awk_pipe_fini
14684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14685 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14689 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14690 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14695 # trailing colons and then remove the whole line if VPATH becomes empty
14696 # (actually we leave an empty line to preserve line numbers).
14697 if test "x$srcdir" = x.; then
14698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14699 s/:*\$(srcdir):*/:/
14700 s/:*\${srcdir}:*/:/
14702 s/^\([^=]*=[ ]*\):*/\1/
14708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14709 fi # test -n "$CONFIG_FILES"
14712 eval set X " :F $CONFIG_FILES "
14717 :[FHLC]) ac_mode=$ac_tag; continue;;
14719 case $ac_mode$ac_tag in
14721 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14722 :[FH]-) ac_tag=-:-;;
14723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14740 -) ac_f="$tmp/stdin";;
14741 *) # Look for the file first in the build tree, then in the source tree
14742 # (if the path is not absolute). The absolute path cannot be DOS-style,
14743 # because $ac_f cannot contain `:'.
14747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14749 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14751 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14752 as_fn_append ac_file_inputs " '$ac_f'"
14755 # Let's still pretend it is `configure' which instantiates (i.e., don't
14756 # use $as_me), people would be surprised to read:
14757 # /* config.h. Generated by config.status. */
14758 configure_input='Generated from '`
14759 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14761 if test x"$ac_file" != x-; then
14762 configure_input="$ac_file. $configure_input"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14764 $as_echo "$as_me: creating $ac_file" >&6;}
14766 # Neutralize special characters interpreted by sed in replacement strings.
14767 case $configure_input in #(
14768 *\&* | *\|* | *\\* )
14769 ac_sed_conf_input=`$as_echo "$configure_input" |
14770 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14771 *) ac_sed_conf_input=$configure_input;;
14775 *:-:* | *:-) cat >"$tmp/stdin" \
14776 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14781 ac_dir=`$as_dirname -- "$ac_file" ||
14782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14783 X"$ac_file" : 'X\(//\)[^/]' \| \
14784 X"$ac_file" : 'X\(//\)$' \| \
14785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14786 $as_echo X"$ac_file" |
14787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14791 /^X\(\/\/\)[^/].*/{
14804 as_dir="$ac_dir"; as_fn_mkdir_p
14808 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14811 # A ".." for each directory in $ac_dir_suffix.
14812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14813 case $ac_top_builddir_sub in
14814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14818 ac_abs_top_builddir=$ac_pwd
14819 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14820 # for backward compatibility:
14821 ac_top_builddir=$ac_top_build_prefix
14824 .) # We are building in place.
14826 ac_top_srcdir=$ac_top_builddir_sub
14827 ac_abs_top_srcdir=$ac_pwd ;;
14828 [\\/]* | ?:[\\/]* ) # Absolute name.
14829 ac_srcdir=$srcdir$ac_dir_suffix;
14830 ac_top_srcdir=$srcdir
14831 ac_abs_top_srcdir=$srcdir ;;
14832 *) # Relative name.
14833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14834 ac_top_srcdir=$ac_top_build_prefix$srcdir
14835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14837 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 # If the template does not know about datarootdir, expand it.
14854 # FIXME: This hack should be removed a few years after 2.60.
14855 ac_datarootdir_hack=; ac_datarootdir_seen=
14866 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14867 *datarootdir*) ac_datarootdir_seen=yes;;
14868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14870 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873 ac_datarootdir_hack='
14874 s&@datadir@&$datadir&g
14875 s&@docdir@&$docdir&g
14876 s&@infodir@&$infodir&g
14877 s&@localedir@&$localedir&g
14878 s&@mandir@&$mandir&g
14879 s&\\\${datarootdir}&$datarootdir&g' ;;
14883 # Neutralize VPATH when `$srcdir' = `.'.
14884 # Shell code in configure.ac might set extrasub.
14885 # FIXME: do we really want to maintain this feature?
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 ac_sed_extra="$ac_vpsub
14890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14893 s|@configure_input@|$ac_sed_conf_input|;t t
14894 s&@top_builddir@&$ac_top_builddir_sub&;t t
14895 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14896 s&@srcdir@&$ac_srcdir&;t t
14897 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14898 s&@top_srcdir@&$ac_top_srcdir&;t t
14899 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14900 s&@builddir@&$ac_builddir&;t t
14901 s&@abs_builddir@&$ac_abs_builddir&;t t
14902 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14903 s&@INSTALL@&$ac_INSTALL&;t t
14904 $ac_datarootdir_hack
14906 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14907 if $ac_cs_awk_getline; then
14908 $AWK -f "$tmp/subs.awk"
14910 $AWK -f "$tmp/subs.awk" | $SHELL
14912 || as_fn_error "could not create $ac_file" "$LINENO" 5
14914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14918 which seems to be undefined. Please make sure it is defined." >&5
14919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14920 which seems to be undefined. Please make sure it is defined." >&2;}
14924 -) cat "$tmp/out" && rm -f "$tmp/out";;
14925 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14927 || as_fn_error "could not create $ac_file" "$LINENO" 5
14935 case $ac_file$ac_mode in
14936 "Makefile":F) sed "$extrasub_build" Makefile |
14937 sed "$extrasub_host" |
14938 sed "$extrasub_target" > mf$$
14939 mv -f mf$$ Makefile ;;
14947 ac_clean_files=$ac_clean_files_save
14949 test $ac_write_fail = 0 ||
14950 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14953 # configure is writing to config.log, and then calls config.status.
14954 # config.status does its own redirection, appending to config.log.
14955 # Unfortunately, on DOS this fails, as config.log is still kept open
14956 # by configure, so config.status won't be able to write to it; its
14957 # output is simply discarded. So we exec the FD to /dev/null,
14958 # effectively closing config.log, so it can be properly (re)opened and
14959 # appended to by config.status. When coming back to configure, we
14960 # need to make the FD available again.
14961 if test "$no_create" != yes; then
14963 ac_config_status_args=
14964 test "$silent" = yes &&
14965 ac_config_status_args="$ac_config_status_args --quiet"
14967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14970 # would make configure fail if this is the last instruction.
14971 $ac_cs_success || as_fn_exit $?
14973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}