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
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
645 extra_host_libiberty_configure_flags
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
673 EXTRA_CONFIGARGS_LIBJAVA
700 TOPLEVEL_CONFIGURE_ARGUMENTS
728 program_transform_name
739 ac_subst_files='serialization_dependencies
745 enable_option_checking
750 enable_libquadmath_support
753 enable_static_libjava
774 enable_isl_version_check
778 enable_cloog_version_check
780 enable_stage1_languages
783 with_debug_prefix_map
785 enable_serial_configure
786 with_build_time_tools
787 enable_maintainer_mode
788 enable_stage1_checking
791 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
995 -help | --help | --hel | --he | -h)
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval with_$ac_useropt=no ;;
1203 # Obsolete; use --with-x.
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information."
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1271 # Be sure to have absolute directory names.
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 as_fn_error "path to source, $srcdir, contains spaces"
1368 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures this package to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1453 if test -n "$ac_init_help"; then
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --disable-isl-version-check
1472 disable check for ISL version
1473 --disable-cloog-version-check
1474 disable check for CLooG version
1475 --enable-lto enable link time optimization support
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1481 --enable-serial-[{host,target,build}-]configure
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
1506 --with-mpfr-include=PATH
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
1524 --with-isl=PATH Specify prefix directory for the installed ISL
1525 package. Equivalent to
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1538 --with-build-sysroot=SYSROOT
1539 use sysroot as the system root during the build
1540 --with-debug-prefix-map='A=B C=D ...'
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
1544 --with-build-time-tools=PATH
1545 use given path to find target tools during the build
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1558 additional configure arguments for build directories
1560 additional configure arguments for host directories
1562 additional configure arguments for target directories
1565 DLLTOOL DLLTOOL for the host
1567 LIPO LIPO for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
1572 WINDMC WINDMC for the host
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
1575 READELF READELF for the host
1585 GFORTRAN for the target
1593 DLLTOOL for the target
1601 OBJDUMP for the target
1603 RANLIB for the target
1605 READELF for the target
1607 STRIP for the target
1609 WINDRES for the target
1611 WINDMC for the target
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to the package provider.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.64
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 } # ac_fn_c_try_compile
1731 # ac_fn_cxx_try_compile LINENO
1732 # ----------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_cxx_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 } # ac_fn_cxx_try_compile
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 } # ac_fn_c_try_link
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=$ac_status
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.64. Invocation command line was
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1921 ac_must_keep_next=false
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937 as_fn_append ac_configure_args1 " '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 -* ) ac_must_keep_next=true ;;
1953 as_fn_append ac_configure_args " '$ac_arg'"
1958 { ac_configure_args0=; unset ac_configure_args0;}
1959 { ac_configure_args1=; unset ac_configure_args1;}
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##
2015 for ac_var in $ac_subst_vars
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2025 if test -n "$ac_subst_files"; then
2027 ## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##
2032 for ac_var in $ac_subst_files
2034 eval ac_val=\$$ac_var
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 $as_echo "$ac_var='\''$ac_val'\''"
2043 if test -s confdefs.h; then
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2069 $as_echo "/* confdefs.h */" > confdefs.h
2071 # Predefined preprocessor variables.
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_NAME "$PACKAGE_NAME"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_URL "$PACKAGE_URL"
2098 # Let the site file select an alternate cache file if it wants to.
2099 # Prefer an explicitly selected file to automatically selected ones.
2102 if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2113 test "x$ac_site_file" = xNONE && continue
2114 if test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2139 # Check that the precious variables saved in the cache have kept the same
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215 # if PWD already has a value, it is probably wrong.
2216 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2218 # Export original configure arguments for use by sub-configures.
2219 # Quote arguments with shell meta charatcers.
2220 TOPLEVEL_CONFIGURE_ARGUMENTS=
2221 set -- "$progname" "$@"
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2234 if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2237 # Remove the initial space we just introduced and, as these will be
2238 # expanded by make, quote '$'.
2239 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2242 # Find the build, host, and target systems.
2244 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2253 if test -z "$ac_aux_dir"; then
2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 # These three variables are undocumented and unsupported,
2258 # and are intended to be withdrawn in a future Autoconf release.
2259 # They can cause serious problems if a builder's source tree is in a directory
2260 # whose full name contains unusual characters.
2261 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266 # Make sure we can run config.sub.
2267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271 $as_echo_n "checking build system type... " >&6; }
2272 if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2275 ac_build_alias=$build_alias
2276 test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278 test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285 $as_echo "$ac_cv_build" >&6; }
2286 case $ac_cv_build in
2288 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2291 ac_save_IFS=$IFS; IFS='-'
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
2326 test "$host_noncanonical" = "$target_noncanonical" &&
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2329 program_transform_name=s,y,y,
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2348 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2351 ac_save_IFS=$IFS; IFS='-'
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365 $as_echo_n "checking target system type... " >&6; }
2366 if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378 $as_echo "$ac_cv_target" >&6; }
2379 case $ac_cv_target in
2381 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2383 target=$ac_cv_target
2384 ac_save_IFS=$IFS; IFS='-'
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2397 # The aliases save the names the user supplied, while $host etc.
2398 # will get canonicalized.
2399 test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2402 program_prefix=${target_alias}-
2404 test "$program_prefix" != NONE &&
2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406 # Use a double $ so make ignores it.
2407 test "$program_suffix" != NONE &&
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409 # Double any \ or $.
2410 # By default was `s,x,x', remove it if useless.
2411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416 # Get 'install' or 'install-sh' and its variants.
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 rm -rf conftest.one conftest.two conftest.dir
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511 $as_echo_n "checking whether ln works... " >&6; }
2512 if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 rm -f conftestdata_t
2516 echo >conftestdata_f
2517 if ln conftestdata_f conftestdata_t 2>/dev/null
2523 rm -f conftestdata_f conftestdata_t
2526 if test $acx_cv_prog_LN = no; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529 $as_echo "no, using $LN" >&6; }
2531 LN="$acx_cv_prog_LN"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537 $as_echo_n "checking whether ln -s works... " >&6; }
2539 if test "$LN_S" = "ln -s"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544 $as_echo "no, using $LN_S" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549 if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570 # Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572 case `"$ac_path_SED" --version 2>&1` in
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2577 $as_echo_n 0123456789 >"conftest.in"
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2598 $ac_path_SED_found && break 3
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612 $as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2616 for ac_prog in gawk mawk nawk awk
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648 $as_echo "$AWK" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2655 test -n "$AWK" && break
2659 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2661 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2663 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2667 # Set srcdir to "." if that's what it is.
2668 # This is important for multilib support.
2670 if test "${pwd}" = "${srcpwd}" ; then
2678 ### To add a new directory to the tree, first choose whether it is a target
2679 ### or a host dependent tool. Then put it into the appropriate list
2680 ### (library or tools, host or target), doing a dependency sort.
2682 # Subdirs will be configured in the order listed in build_configdirs,
2683 # configdirs, or target_configdirs; see the serialization section below.
2685 # Dependency sorting is only needed when *configuration* must be done in
2686 # a particular order. In all cases a dependency should be specified in
2687 # the Makefile, whether or not it's implicitly specified here.
2689 # Double entries in build_configdirs, configdirs, or target_configdirs may
2690 # cause circular dependencies and break everything horribly.
2692 # these library is used by various programs built for the build
2695 build_libs="build-libiberty"
2697 # these tools are built for the build environment
2698 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2700 # these libraries are used by various programs built for the host environment
2702 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2704 # these tools are built for the host environment
2705 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706 # know that we are building the simulator.
2707 # binutils, gas and ld appear in that order because it makes sense to run
2708 # "make check" in that particular order.
2709 # If --enable-gold is used, "gold" may replace "ld".
2710 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2712 # libgcj represents the runtime libraries only used by gcj.
2713 libgcj="target-libffi \
2717 # these libraries are built for the target environment, and are built after
2718 # the host libraries and the host tools (which may be a cross compiler)
2719 # Note that libiberty is not a target library.
2720 target_libraries="target-libgcc \
2721 target-libbacktrace \
2727 target-libstdc++-v3 \
2730 target-libquadmath \
2731 target-libgfortran \
2738 # these tools are built using the target libraries, and are intended to
2739 # run only in the target environment
2741 # note: any program that *uses* libraries that are in the "target_libraries"
2742 # list belongs in this list.
2744 target_tools="target-rda"
2746 ################################################################################
2748 ## All tools belong in one of the four categories, and are assigned above
2749 ## We assign ${configdirs} this way to remove all embedded newlines. This
2750 ## is important because configure will choke if they ever get through.
2751 ## ${configdirs} is directories we build using the host tools.
2752 ## ${target_configdirs} is directories we build using the target tools.
2753 configdirs=`echo ${host_libs} ${host_tools}`
2754 target_configdirs=`echo ${target_libraries} ${target_tools}`
2755 build_configdirs=`echo ${build_libs} ${build_tools}`
2759 ################################################################################
2761 srcname="gnu development package"
2763 # This gets set non-empty for some net releases of packages.
2766 # Define is_cross_compiler to save on calls to 'test'.
2768 if test x"${host}" = x"${target}" ; then
2769 is_cross_compiler=no
2771 is_cross_compiler=yes
2774 # Find the build and target subdir names.
2776 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2777 # have matching libraries, they should use host libraries: Makefile.tpl
2778 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2779 # However, they still use the build modules, because the corresponding
2780 # host modules (e.g. bison) are only built for the host when bootstrap
2782 # - build_subdir is where we find build modules, and never changes.
2783 # - build_libsubdir is where we find build libraries, and can be overridden.
2785 # Prefix 'build-' so this never conflicts with target_subdir.
2786 build_subdir="build-${build_noncanonical}"
2788 # Check whether --with-build-libsubdir was given.
2789 if test "${with_build_libsubdir+set}" = set; then :
2790 withval=$with_build_libsubdir; build_libsubdir="$withval"
2792 build_libsubdir="$build_subdir"
2795 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2796 if ( test $srcdir = . && test -d gcc ) \
2797 || test -d $srcdir/../host-${host_noncanonical}; then
2798 host_subdir="host-${host_noncanonical}"
2803 target_subdir=${target_noncanonical}
2805 # Be sure to cover against remnants of an in-tree build.
2806 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2807 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2808 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2811 # Skipdirs are removed silently.
2813 # Noconfigdirs are removed loudly.
2817 # Make sure we don't let GNU ld be added if we didn't want it.
2818 if test x$with_gnu_ld = xno ; then
2820 noconfigdirs="$noconfigdirs ld gold"
2824 # Make sure we don't let GNU as be added if we didn't want it.
2825 if test x$with_gnu_as = xno ; then
2827 noconfigdirs="$noconfigdirs gas"
2831 # Make sure we don't let ZLIB be added if we didn't want it.
2832 if test x$with_system_zlib = xyes ; then
2833 use_included_zlib=no
2834 noconfigdirs="$noconfigdirs zlib"
2837 # some tools are so dependent upon X11 that if we're not building with X,
2838 # it's not even worth trying to configure, much less build, that tool.
2841 yes | "") ;; # the default value for this tree is that X11 is available
2843 skipdirs="${skipdirs} tk itcl libgui"
2844 # We won't be able to build gdbtk without X.
2847 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2850 # Some are only suitable for cross toolchains.
2851 # Remove these if host=target.
2852 cross_only="target-libgloss target-newlib target-opcodes"
2854 case $is_cross_compiler in
2855 no) skipdirs="${skipdirs} ${cross_only}" ;;
2858 # If both --with-headers and --with-libs are specified, default to
2860 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2861 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2862 if test x"${with_newlib}" = x ; then
2867 # Recognize --with-newlib/--without-newlib.
2868 case ${with_newlib} in
2869 no) skipdirs="${skipdirs} target-newlib" ;;
2870 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2873 # Handle --enable-gold, --enable-ld.
2874 # --disable-gold [--enable-ld]
2875 # Build only ld. Default option.
2876 # --enable-gold [--enable-ld]
2877 # Build both gold and ld. Install gold as "ld.gold", install ld
2878 # as "ld.bfd" and "ld".
2879 # --enable-gold=default [--enable-ld]
2880 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2881 # install ld as "ld.bfd".
2882 # --enable-gold[=default] --disable-ld
2883 # Build only gold, which is then installed as both "ld.gold" and "ld".
2884 # --enable-gold --enable-ld=default
2885 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2887 # In other words, ld is default
2888 # --enable-gold=default --enable-ld=default
2892 # Check whether --enable-gold was given.
2893 if test "${enable_gold+set}" = set; then :
2894 enableval=$enable_gold; ENABLE_GOLD=$enableval
2899 case "${ENABLE_GOLD}" in
2901 # Check for ELF target.
2904 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2905 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2906 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2907 | *-*-solaris2* | *-*-nto*)
2909 *-*-linux*aout* | *-*-linux*oldld*)
2917 if test "$is_elf" = "yes"; then
2918 # Check for target supported by gold.
2920 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2921 configdirs="$configdirs gold"
2922 if test x${ENABLE_GOLD} = xdefault; then
2933 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2937 # Check whether --enable-ld was given.
2938 if test "${enable_ld+set}" = set; then :
2939 enableval=$enable_ld; ENABLE_LD=$enableval
2945 case "${ENABLE_LD}" in
2947 if test x${default_ld} != x; then
2948 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2954 if test x${ENABLE_GOLD} != xyes; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2956 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2958 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2961 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2965 # Configure extra directories which are host specific
2969 configdirs="$configdirs libtermcap" ;;
2972 # A target can indicate whether a language isn't supported for some reason.
2973 # Only spaces may be used in this macro; not newlines or tabs.
2974 unsupported_languages=
2976 # Remove more programs from consideration, based on the host or
2977 # target this usually means that a port of the program doesn't
2981 i[3456789]86-*-msdosdjgpp*)
2982 noconfigdirs="$noconfigdirs tcl tk itcl"
2987 # Check whether --enable-libquadmath was given.
2988 if test "${enable_libquadmath+set}" = set; then :
2989 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2991 ENABLE_LIBQUADMATH=yes
2994 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2995 noconfigdirs="$noconfigdirs target-libquadmath"
2999 # Check whether --enable-libquadmath-support was given.
3000 if test "${enable_libquadmath_support+set}" = set; then :
3001 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3003 ENABLE_LIBQUADMATH_SUPPORT=yes
3006 enable_libquadmath_support=
3007 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3008 enable_libquadmath_support=no
3012 # Check whether --enable-libada was given.
3013 if test "${enable_libada+set}" = set; then :
3014 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3019 if test "${ENABLE_LIBADA}" != "yes" ; then
3020 noconfigdirs="$noconfigdirs gnattools"
3023 # Check whether --enable-libssp was given.
3024 if test "${enable_libssp+set}" = set; then :
3025 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3031 # Save it here so that, even in case of --enable-libgcj, if the Java
3032 # front-end isn't enabled, we still get libgcj disabled.
3033 libgcj_saved=$libgcj
3034 case $enable_libgcj in
3036 # If we reset it here, it won't get added to noconfigdirs in the
3037 # target-specific build rules, so it will be forcibly enabled
3038 # (unless the Java language itself isn't enabled).
3042 # Make sure we get it printed in the list of not supported target libs.
3043 # Don't disable libffi, though, other languages use it.
3044 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3045 # Clear libgcj_saved so that even if java is enabled libffi won't be
3051 # Check whether --enable-static-libjava was given.
3052 if test "${enable_static_libjava+set}" = set; then :
3053 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3055 ENABLE_STATIC_LIBJAVA=no
3058 enable_static_libjava=
3059 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3060 enable_static_libjava=yes
3063 if test x$enable_static_libjava != xyes ; then
3064 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3068 # Disable libmudflap on some systems.
3069 if test x$enable_libmudflap = x ; then
3071 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3072 # Enable libmudflap by default in GNU and friends.
3075 # Enable libmudflap by default in FreeBSD.
3078 # Disable it by default everywhere else.
3079 noconfigdirs="$noconfigdirs target-libmudflap"
3084 # Disable libgomp on non POSIX hosted systems.
3085 if test x$enable_libgomp = x ; then
3086 # Enable libgomp by default on hosted POSIX systems.
3088 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3090 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3092 *-*-solaris2* | *-*-hpux11*)
3094 *-*-darwin* | *-*-aix*)
3097 noconfigdirs="$noconfigdirs target-libgomp"
3102 # Disable libatomic on unsupported systems.
3103 if test -d ${srcdir}/libatomic; then
3104 if test x$enable_libatomic = x; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3106 $as_echo_n "checking for libatomic support... " >&6; }
3107 if (srcdir=${srcdir}/libatomic; \
3108 . ${srcdir}/configure.tgt; \
3109 test -n "$UNSUPPORTED")
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 noconfigdirs="$noconfigdirs target-libatomic"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 $as_echo "yes" >&6; }
3121 # Disable libitm on unsupported systems.
3122 if test -d ${srcdir}/libitm; then
3123 if test x$enable_libitm = x; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3125 $as_echo_n "checking for libitm support... " >&6; }
3126 if (srcdir=${srcdir}/libitm; \
3127 . ${srcdir}/configure.tgt; \
3128 test -n "$UNSUPPORTED")
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 noconfigdirs="$noconfigdirs target-libitm"
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3140 # Disable libquadmath for some systems.
3142 # libquadmath is unused on AIX and libquadmath build process use of
3143 # LD_LIBRARY_PATH can break AIX bootstrap.
3144 powerpc-*-aix* | rs6000-*-aix*)
3145 noconfigdirs="$noconfigdirs target-libquadmath"
3149 # Disable libssp for some systems.
3152 # No hosted I/O support.
3153 noconfigdirs="$noconfigdirs target-libssp"
3155 powerpc-*-aix* | rs6000-*-aix*)
3156 noconfigdirs="$noconfigdirs target-libssp"
3159 # libssp uses a misaligned load to trigger a fault, but the RL78
3160 # doesn't fault for those - instead, it gives a build-time error
3161 # for explicit misaligned loads.
3162 noconfigdirs="$noconfigdirs target-libssp"
3166 # Disable libstdc++-v3 for some systems.
3169 # VxWorks uses the Dinkumware C++ library.
3170 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 # the C++ libraries don't build on top of CE's C libraries
3174 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3181 # Disable Fortran for some systems.
3184 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3185 unsupported_languages="$unsupported_languages fortran"
3189 # Disable Java if libffi is not supported.
3219 powerpc-*-aix* | rs6000-*-aix*)
3223 powerpc64-*-freebsd*)
3227 s390-*-* | s390x-*-*)
3229 sh-*-* | sh[34]*-*-*)
3231 sh64-*-* | sh5*-*-*)
3238 unsupported_languages="$unsupported_languages java"
3242 # Disable Java, libgcj or related libraries for some systems.
3246 i[3456789]86-*-darwin*)
3248 x86_64-*-darwin[912]*)
3251 noconfigdirs="$noconfigdirs ${libgcj}"
3254 noconfigdirs="$noconfigdirs ${libgcj}"
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3275 noconfigdirs="$noconfigdirs ${libgcj}"
3278 noconfigdirs="$noconfigdirs target-boehm-gc"
3280 cris-*-* | crisv32-*-*)
3281 unsupported_languages="$unsupported_languages java"
3285 *) # See PR46792 regarding target-libffi.
3286 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3290 # In this case, it's because the hppa64-linux target is for
3291 # the kernel only at this point and has no libc, and thus no
3292 # headers, crt*.o, etc., all of which are needed by these.
3293 unsupported_languages="$unsupported_languages java"
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3301 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3302 # build on HP-UX 10.20.
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3308 i[3456789]86-w64-mingw*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3311 i[3456789]86-*-mingw*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3318 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3321 # copied from rs6000-*-* entry
3322 noconfigdirs="$noconfigdirs ${libgcj}"
3325 noconfigdirs="$noconfigdirs ${libgcj}"
3328 noconfigdirs="$noconfigdirs ${libgcj}"
3332 # Default libgloss CPU subdirectory.
3333 libgloss_dir="$target_cpu"
3336 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3342 cris-*-* | crisv32-*-*)
3351 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3352 libgloss_dir=m68hc11
3354 m68*-*-* | fido-*-*)
3368 # Disable newlib and libgloss for various target OSes.
3371 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3373 i[3456789]86-*-linux*)
3374 # This section makes it possible to build newlib natively on linux.
3375 # If we are using a cross compiler then don't configure newlib.
3376 if test x${is_cross_compiler} != xno ; then
3377 noconfigdirs="$noconfigdirs target-newlib"
3379 noconfigdirs="$noconfigdirs target-libgloss"
3380 # If we are not using a cross compiler, do configure newlib.
3381 # Note however, that newlib will only be configured in this situation
3382 # if the --with-newlib option has been given, because otherwise
3383 # 'target-newlib' will appear in skipdirs.
3385 i[3456789]86-*-rdos*)
3386 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3388 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3409 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3425 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3428 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3431 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3439 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3440 noconfigdirs="$noconfigdirs sim target-rda"
3442 i[3456789]86-*-darwin*)
3443 noconfigdirs="$noconfigdirs ld gprof"
3444 noconfigdirs="$noconfigdirs sim target-rda"
3446 x86_64-*-darwin[912]*)
3447 noconfigdirs="$noconfigdirs ld gas gprof"
3448 noconfigdirs="$noconfigdirs sim target-rda"
3451 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3452 noconfigdirs="$noconfigdirs sim target-rda"
3457 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3458 && test -f /usr/local/include/gmp.h; then
3463 # Remove unsupported stuff on all kaOS configurations.
3464 noconfigdirs="$noconfigdirs target-libgloss"
3471 noconfigdirs="$noconfigdirs target-libgloss"
3473 # The tpf target doesn't support gdb yet.
3475 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3478 noconfigdirs="$noconfigdirs target-rda"
3483 # ld works, but does not support shared libraries.
3484 # gas doesn't generate exception information.
3485 noconfigdirs="$noconfigdirs gas ld"
3488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3491 # newlib is not 64 bit ready
3492 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3495 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3498 noconfigdirs="$noconfigdirs target-libgloss"
3501 noconfigdirs="$noconfigdirs target-libgloss"
3504 noconfigdirs="$noconfigdirs ld target-libgloss"
3506 c4x-*-* | tic4x-*-*)
3507 noconfigdirs="$noconfigdirs target-libgloss"
3510 noconfigdirs="$noconfigdirs target-libgloss gdb"
3513 noconfigdirs="$noconfigdirs target-libgloss"
3516 noconfigdirs="$noconfigdirs gdb"
3519 noconfigdirs="$noconfigdirs gdb"
3522 noconfigdirs="$noconfigdirs gprof"
3525 noconfigdirs="$noconfigdirs target-libgloss"
3528 noconfigdirs="$noconfigdirs target-libgloss"
3530 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3538 hppa*-*-openbsd* | \
3542 noconfigdirs="$noconfigdirs ld"
3547 noconfigdirs="$noconfigdirs ld"
3550 noconfigdirs="$noconfigdirs gdb"
3553 # No gdb support yet.
3554 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3557 # No ld support yet.
3558 noconfigdirs="$noconfigdirs libgui itcl ld"
3561 # No ld support yet.
3562 noconfigdirs="$noconfigdirs libgui itcl ld"
3564 i[3456789]86-w64-mingw*)
3566 i[3456789]86-*-mingw*)
3567 target_configdirs="$target_configdirs target-winsup"
3570 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3571 noconfigdirs="$noconfigdirs target-libgloss"
3572 # always build newlib if winsup directory is present.
3573 if test -d "$srcdir/winsup/cygwin"; then
3574 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3575 elif test -d "$srcdir/newlib"; then
3576 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3580 noconfigdirs="$noconfigdirs target-libgloss"
3582 i[3456789]86-*-sco3.2v5*)
3583 # The linker does not yet know about weak symbols in COFF,
3584 # and is not configured to handle mixed ELF and COFF.
3585 noconfigdirs="$noconfigdirs ld target-libgloss"
3587 i[3456789]86-*-sco*)
3588 noconfigdirs="$noconfigdirs gprof target-libgloss"
3590 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3591 noconfigdirs="$noconfigdirs target-libgloss"
3593 i[3456789]86-*-sysv4*)
3594 noconfigdirs="$noconfigdirs target-libgloss"
3596 i[3456789]86-*-beos*)
3597 noconfigdirs="$noconfigdirs gdb"
3599 i[3456789]86-*-rdos*)
3600 noconfigdirs="$noconfigdirs gdb"
3603 noconfigdirs="$noconfigdirs gdb"
3606 noconfigdirs="$noconfigdirs sim"
3609 # copied from rs6000-*-* entry
3610 noconfigdirs="$noconfigdirs gprof"
3612 powerpc*-*-winnt* | powerpc*-*-pe*)
3613 target_configdirs="$target_configdirs target-winsup"
3614 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3615 # always build newlib.
3616 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3618 # This is temporary until we can link against shared libraries
3619 powerpcle-*-solaris*)
3620 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3623 noconfigdirs="$noconfigdirs gdb"
3626 noconfigdirs="$noconfigdirs gprof"
3629 noconfigdirs="$noconfigdirs gprof"
3632 noconfigdirs="$noconfigdirs gprof"
3635 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3638 noconfigdirs="$noconfigdirs gprof"
3641 if test x$with_newlib = xyes; then
3642 noconfigdirs="$noconfigdirs gprof"
3646 noconfigdirs="$noconfigdirs gprof target-libgloss"
3649 noconfigdirs="$noconfigdirs gprof target-libgloss"
3652 noconfigdirs="$noconfigdirs gprof target-libgloss"
3657 noconfigdirs="$noconfigdirs gprof"
3664 noconfigdirs="$noconfigdirs target-libgloss" ;;
3668 if test x${is_cross_compiler} = xno ; then
3673 noconfigdirs="$noconfigdirs sim"
3675 tilepro-*-* | tilegx-*-*)
3676 noconfigdirs="$noconfigdirs sim"
3679 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 # If we aren't building newlib, then don't build libgloss, since libgloss
3687 # depends upon some newlib header files.
3688 case "${noconfigdirs}" in
3689 *target-libgloss*) ;;
3690 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3693 # Work in distributions that contain no compiler tools, like Autoconf.
3694 host_makefile_frag=/dev/null
3695 if test -d ${srcdir}/config ; then
3697 i[3456789]86-*-msdosdjgpp*)
3698 host_makefile_frag="config/mh-djgpp"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3703 $as_echo_n "checking to see if cat works as expected... " >&6; }
3704 echo a >cygwin-cat-check
3705 if test `cat cygwin-cat-check` = a ; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 as_fn_error "The cat command does not ignore carriage return characters.
3714 Please either mount the build directory in binary mode or run the following
3715 commands before running any configure script:
3721 host_makefile_frag="config/mh-cygwin"
3724 host_makefile_frag="config/mh-mingw"
3727 host_makefile_frag="config/mh-pa-hpux10"
3730 host_makefile_frag="config/mh-pa"
3733 host_makefile_frag="config/mh-pa"
3736 host_makefile_frag="config/mh-darwin"
3739 host_makefile_frag="config/mh-ppc-aix"
3742 host_makefile_frag="config/mh-ppc-aix"
3747 if test "${build}" != "${host}" ; then
3748 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3749 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3750 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3751 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3752 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3753 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3754 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
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 GOC_FOR_BUILD="\$(GOC)"
3769 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3770 LD_FOR_BUILD="\$(LD)"
3771 NM_FOR_BUILD="\$(NM)"
3772 RANLIB_FOR_BUILD="\$(RANLIB)"
3773 WINDRES_FOR_BUILD="\$(WINDRES)"
3774 WINDMC_FOR_BUILD="\$(WINDMC)"
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3821 if test -z "$ac_cv_prog_CC"; then
3823 # Extract the first word of "gcc", so it can be a program name with args.
3824 set dummy gcc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -n "$ac_ct_CC"; then
3831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_ac_ct_CC="gcc"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3851 if test -n "$ac_ct_CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3853 $as_echo "$ac_ct_CC" >&6; }
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3859 if test "x$ac_ct_CC" = x; then
3862 case $cross_compiling:$ac_tool_warned in
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3866 ac_tool_warned=yes ;;
3874 if test -z "$CC"; then
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="${ac_tool_prefix}cc"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3915 if test -z "$CC"; then
3916 # Extract the first word of "cc", so it can be a program name with args.
3917 set dummy cc; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if test "${ac_cv_prog_CC+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3935 ac_prog_rejected=yes
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 if test $ac_prog_rejected = yes; then
3947 # We found a bogon in the path, so make sure we never use it.
3948 set dummy $ac_cv_prog_CC
3950 if test $# != 0; then
3951 # We chose a different compiler from the bogus one.
3952 # However, it has the same basename, so the bogon will be chosen
3953 # first if we set CC to just the basename; use the full file name.
3955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3961 if test -n "$CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 for ac_prog in cl.exe
3975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4012 test -n "$CC" && break
4015 if test -z "$CC"; then
4017 for ac_prog in cl.exe
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_ac_ct_CC="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 test -n "$ac_ct_CC" && break
4059 if test "x$ac_ct_CC" = x; then
4062 case $cross_compiling:$ac_tool_warned in
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error "no acceptable C compiler found in \$PATH
4078 See \`config.log' for more details." "$LINENO" 5; }
4080 # Provide some information about the compiler.
4081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4084 for ac_option in --version -v -V -qversion; do
4085 { { ac_try="$ac_compiler $ac_option >&5"
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4094 if test -s conftest.err; then
4096 ... rest of stderr output deleted ...
4097 10q' conftest.err >conftest.er1
4098 cat conftest.er1 >&5
4099 rm -f conftest.er1 conftest.err
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 ac_clean_files_save=$ac_clean_files
4117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4118 # Try to create an executable without -o first, disregard a.out.
4119 # It will help us diagnose broken compilers, and finding out an intuition
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4122 $as_echo_n "checking for C compiler default output file name... " >&6; }
4123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4125 # The possible output files:
4126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4129 for ac_file in $ac_files
4132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4138 if { { ac_try="$ac_link_default"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_link_default") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }; then :
4149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4152 # so that the user can short-circuit this test for compilers unknown to
4154 for ac_file in $ac_files ''
4156 test -f "$ac_file" || continue
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4161 # We found the default executable, but exeext='' is most
4165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 # We set ac_cv_exeext here because the later test for it is not
4170 # safe: cross compilers may not add the suffix if given an `-o'
4171 # argument, so we may need to know it at that point already.
4172 # Even if this section looks crufty: it has the advantage of
4179 test "$ac_cv_exeext" = no && ac_cv_exeext=
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4185 $as_echo "$ac_file" >&6; }
4186 if test -z "$ac_file"; then :
4187 $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 { as_fn_set_status 77
4193 as_fn_error "C compiler cannot create executables
4194 See \`config.log' for more details." "$LINENO" 5; }; }
4196 ac_exeext=$ac_cv_exeext
4198 # Check that the compiler produces executables we can run. If not, either
4199 # the compiler is broken, or we cross compile.
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4201 $as_echo_n "checking whether the C compiler works... " >&6; }
4202 # If not cross compiling, check that we can run a simple program.
4203 if test "$cross_compiling" != yes; then
4204 if { ac_try='./$ac_file'
4205 { { case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_try") 2>&5
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }; }; then
4217 if test "$cross_compiling" = maybe; then
4220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222 as_fn_error "cannot run C compiled programs.
4223 If you meant to cross compile, use \`--host'.
4224 See \`config.log' for more details." "$LINENO" 5; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229 $as_echo "yes" >&6; }
4231 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4232 ac_clean_files=$ac_clean_files_save
4233 # Check that the compiler produces executables we can run. If not, either
4234 # the compiler is broken, or we cross compile.
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4236 $as_echo_n "checking whether we are cross compiling... " >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4238 $as_echo "$cross_compiling" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4241 $as_echo_n "checking for suffix of executables... " >&6; }
4242 if { { ac_try="$ac_link"
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 $as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_link") 2>&5
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; }; then :
4253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4255 # work properly (i.e., refer to `conftest.exe'), while it won't with
4257 for ac_file in conftest.exe conftest conftest.*; do
4258 test -f "$ac_file" || continue
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error "cannot compute suffix of executables: cannot compile and link
4270 See \`config.log' for more details." "$LINENO" 5; }
4272 rm -f conftest$ac_cv_exeext
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4274 $as_echo "$ac_cv_exeext" >&6; }
4276 rm -f conftest.$ac_ext
4277 EXEEXT=$ac_cv_exeext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4280 $as_echo_n "checking for suffix of object files... " >&6; }
4281 if test "${ac_cv_objext+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4295 rm -f conftest.o conftest.obj
4296 if { { ac_try="$ac_compile"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_compile") 2>&5
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }; then :
4307 for ac_file in conftest.o conftest.obj conftest.*; do
4308 test -f "$ac_file" || continue;
4310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4316 $as_echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error "cannot compute suffix of object files: cannot compile
4322 See \`config.log' for more details." "$LINENO" 5; }
4324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4327 $as_echo "$ac_cv_objext" >&6; }
4328 OBJEXT=$ac_cv_objext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4332 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4349 if ac_fn_c_try_compile "$LINENO"; then :
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4359 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4360 if test $ac_compiler_gnu = yes; then
4365 ac_test_CFLAGS=${CFLAGS+set}
4366 ac_save_CFLAGS=$CFLAGS
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4368 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4369 if test "${ac_cv_prog_cc_g+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 ac_save_c_werror_flag=$ac_c_werror_flag
4373 ac_c_werror_flag=yes
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4387 if ac_fn_c_try_compile "$LINENO"; then :
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4402 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4418 if ac_fn_c_try_compile "$LINENO"; then :
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 ac_c_werror_flag=$ac_save_c_werror_flag
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4429 $as_echo "$ac_cv_prog_cc_g" >&6; }
4430 if test "$ac_test_CFLAGS" = set; then
4431 CFLAGS=$ac_save_CFLAGS
4432 elif test $ac_cv_prog_cc_g = yes; then
4433 if test "$GCC" = yes; then
4439 if test "$GCC" = yes; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4446 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4447 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_cv_prog_cc_c89=no
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 #include <sys/stat.h>
4458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4459 struct buf { int x; };
4460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4461 static char *e (p, i)
4467 static char *f (char * (*g) (char **, int), char **p, ...)
4472 s = g (p, va_arg (v,int));
4477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4478 function prototypes and stuff, but not '\xHH' hex character constants.
4479 These don't provoke an error unfortunately, instead are silently treated
4480 as 'x'. The following induces an error, until -std is added to get
4481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4482 array size at least. It's necessary to write '\x00'==0 to get something
4483 that's true only with -std. */
4484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4487 inside strings and character constants. */
4489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4491 int test (int i, double x);
4492 struct s1 {int (*f) (int a);};
4493 struct s2 {int (*f) (double a);};
4494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4508 CC="$ac_save_CC $ac_arg"
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_c89=$ac_arg
4512 rm -f core conftest.err conftest.$ac_objext
4513 test "x$ac_cv_prog_cc_c89" != "xno" && break
4515 rm -f conftest.$ac_ext
4520 case "x$ac_cv_prog_cc_c89" in
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 $as_echo "none needed" >&6; } ;;
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;;
4528 CC="$CC $ac_cv_prog_cc_c89"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4532 if test "x$ac_cv_prog_cc_c89" != xno; then :
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 ac_cpp='$CXXCPP $CPPFLAGS'
4544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4547 if test -z "$CXX"; then
4548 if test -n "$CCC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_CXX+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$CXX"; then
4562 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 if test -n "$CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4584 $as_echo "$CXX" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$CXX" && break
4594 if test -z "$CXX"; then
4596 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4605 if test -n "$ac_ct_CXX"; then
4606 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_ac_ct_CXX="$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4626 if test -n "$ac_ct_CXX"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4628 $as_echo "$ac_ct_CXX" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$ac_ct_CXX" && break
4638 if test "x$ac_ct_CXX" = x; then
4641 case $cross_compiling:$ac_tool_warned in
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645 ac_tool_warned=yes ;;
4653 # Provide some information about the compiler.
4654 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4657 for ac_option in --version -v -V -qversion; do
4658 { { ac_try="$ac_compiler $ac_option >&5"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 $as_echo "$ac_try_echo"; } >&5
4665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4667 if test -s conftest.err; then
4669 ... rest of stderr output deleted ...
4670 10q' conftest.err >conftest.er1
4671 cat conftest.er1 >&5
4672 rm -f conftest.er1 conftest.err
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4679 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4680 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4697 if ac_fn_cxx_try_compile "$LINENO"; then :
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4707 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4708 if test $ac_compiler_gnu = yes; then
4713 ac_test_CXXFLAGS=${CXXFLAGS+set}
4714 ac_save_CXXFLAGS=$CXXFLAGS
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4716 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4717 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4721 ac_cxx_werror_flag=yes
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4735 if ac_fn_cxx_try_compile "$LINENO"; then :
4736 ac_cv_prog_cxx_g=yes
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4750 if ac_fn_cxx_try_compile "$LINENO"; then :
4753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4766 if ac_fn_cxx_try_compile "$LINENO"; then :
4767 ac_cv_prog_cxx_g=yes
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4777 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4778 if test "$ac_test_CXXFLAGS" = set; then
4779 CXXFLAGS=$ac_save_CXXFLAGS
4780 elif test $ac_cv_prog_cxx_g = yes; then
4781 if test "$GXX" = yes; then
4787 if test "$GXX" = yes; then
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 # We must set the default linker to the linker used by gcc for the correct
4801 # operation of libtool. If LD is not defined and we are using gcc, try to
4802 # set the LD default to the ld used by gcc.
4803 if test -z "$LD"; then
4804 if test "$GCC" = yes; then
4807 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4809 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4811 case $gcc_prog_ld in
4812 # Accept absolute paths.
4813 [\\/]* | [A-Za-z]:[\\/]*)
4814 LD="$gcc_prog_ld" ;;
4822 if test -n "$ac_tool_prefix"; then
4823 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4824 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$GNATBIND"; then
4831 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 GNATBIND=$ac_cv_prog_GNATBIND
4851 if test -n "$GNATBIND"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4853 $as_echo "$GNATBIND" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4861 if test -z "$ac_cv_prog_GNATBIND"; then
4862 ac_ct_GNATBIND=$GNATBIND
4863 # Extract the first word of "gnatbind", so it can be a program name with args.
4864 set dummy gnatbind; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$ac_ct_GNATBIND"; then
4871 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4891 if test -n "$ac_ct_GNATBIND"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4893 $as_echo "$ac_ct_GNATBIND" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4899 if test "x$ac_ct_GNATBIND" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4908 GNATBIND=$ac_ct_GNATBIND
4911 GNATBIND="$ac_cv_prog_GNATBIND"
4914 if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$GNATMAKE"; then
4923 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 GNATMAKE=$ac_cv_prog_GNATMAKE
4943 if test -n "$GNATMAKE"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4945 $as_echo "$GNATMAKE" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4953 if test -z "$ac_cv_prog_GNATMAKE"; then
4954 ac_ct_GNATMAKE=$GNATMAKE
4955 # Extract the first word of "gnatmake", so it can be a program name with args.
4956 set dummy gnatmake; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$ac_ct_GNATMAKE"; then
4963 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4983 if test -n "$ac_ct_GNATMAKE"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4985 $as_echo "$ac_ct_GNATMAKE" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4991 if test "x$ac_ct_GNATMAKE" = x; then
4994 case $cross_compiling:$ac_tool_warned in
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
5000 GNATMAKE=$ac_ct_GNATMAKE
5003 GNATMAKE="$ac_cv_prog_GNATMAKE"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5007 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5008 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5011 cat >conftest.adb <<EOF
5012 procedure conftest is begin null; end conftest;
5014 acx_cv_cc_gcc_supports_ada=no
5015 # There is a bug in old released versions of GCC which causes the
5016 # driver to exit successfully when the appropriate language module
5017 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5018 # Therefore we must check for the error message as well as an
5019 # unsuccessful exit.
5020 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5021 # given a .adb file, but produce no object file. So we must check
5022 # if an object file was really produced to guard against this.
5023 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5024 if test x"$errors" = x && test -f conftest.$ac_objext; then
5025 acx_cv_cc_gcc_supports_ada=yes
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5030 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5032 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5039 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5040 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5045 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5046 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5047 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5050 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5053 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5054 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5057 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5064 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5065 do_compare="$gcc_cv_prog_cmp_skip"
5069 # Check whether --enable-bootstrap was given.
5070 if test "${enable_bootstrap+set}" = set; then :
5071 enableval=$enable_bootstrap;
5073 enable_bootstrap=default
5077 # Issue errors and warnings for invalid/strange bootstrap combinations.
5078 if test -r $srcdir/gcc/configure; then
5084 case "$have_compiler:$host:$target:$enable_bootstrap" in
5087 # Default behavior. Enable bootstrap if we have a compiler
5088 # and we are in a native configuration.
5089 yes:$build:$build:default)
5090 enable_bootstrap=yes ;;
5093 enable_bootstrap=no ;;
5095 # We have a compiler and we are in a native configuration, bootstrap is ok
5096 yes:$build:$build:yes)
5099 # Other configurations, but we have a compiler. Assume the user knows
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5103 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5106 # No compiler: if they passed --enable-bootstrap explicitly, fail
5108 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5110 # Fail if wrong command line
5112 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5116 # Used for setting $lt_cv_objdir
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5118 $as_echo_n "checking for objdir... " >&6; }
5119 if test "${lt_cv_objdir+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 rm -f .libs 2>/dev/null
5123 mkdir .libs 2>/dev/null
5124 if test -d .libs; then
5127 # MS-DOS does not allow filenames that begin with a dot.
5130 rmdir .libs 2>/dev/null
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5133 $as_echo "$lt_cv_objdir" >&6; }
5134 objdir=$lt_cv_objdir
5140 cat >>confdefs.h <<_ACEOF
5141 #define LT_OBJDIR "$lt_cv_objdir/"
5146 # Check for GMP, MPFR and MPC
5147 gmplibs="-lmpc -lmpfr -lgmp"
5151 # Specify a location for mpc
5152 # check for this first so it ends up on the link line before mpfr.
5154 # Check whether --with-mpc was given.
5155 if test "${with_mpc+set}" = set; then :
5160 # Check whether --with-mpc-include was given.
5161 if test "${with_mpc_include+set}" = set; then :
5162 withval=$with_mpc_include;
5166 # Check whether --with-mpc-lib was given.
5167 if test "${with_mpc_lib+set}" = set; then :
5168 withval=$with_mpc_lib;
5172 if test "x$with_mpc" != x; then
5173 gmplibs="-L$with_mpc/lib $gmplibs"
5174 gmpinc="-I$with_mpc/include $gmpinc"
5176 if test "x$with_mpc_include" != x; then
5177 gmpinc="-I$with_mpc_include $gmpinc"
5179 if test "x$with_mpc_lib" != x; then
5180 gmplibs="-L$with_mpc_lib $gmplibs"
5182 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5183 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5184 gmpinc='-I$$s/mpc/src '"$gmpinc"
5185 # Do not test the mpc version. Assume that it is sufficient, since
5186 # it is in the source tree, and the library has not been built yet
5187 # but it would be included on the link line in the version check below
5188 # hence making the test fail.
5192 # Specify a location for mpfr
5193 # check for this first so it ends up on the link line before gmp.
5195 # Check whether --with-mpfr-dir was given.
5196 if test "${with_mpfr_dir+set}" = set; then :
5197 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5198 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5203 # Check whether --with-mpfr was given.
5204 if test "${with_mpfr+set}" = set; then :
5209 # Check whether --with-mpfr-include was given.
5210 if test "${with_mpfr_include+set}" = set; then :
5211 withval=$with_mpfr_include;
5215 # Check whether --with-mpfr-lib was given.
5216 if test "${with_mpfr_lib+set}" = set; then :
5217 withval=$with_mpfr_lib;
5221 if test "x$with_mpfr" != x; then
5222 gmplibs="-L$with_mpfr/lib $gmplibs"
5223 gmpinc="-I$with_mpfr/include $gmpinc"
5225 if test "x$with_mpfr_include" != x; then
5226 gmpinc="-I$with_mpfr_include $gmpinc"
5228 if test "x$with_mpfr_lib" != x; then
5229 gmplibs="-L$with_mpfr_lib $gmplibs"
5231 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5232 # MPFR v3.1.0 moved the sources into a src sub-directory.
5233 if test -d ${srcdir}/mpfr/src; then
5234 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5235 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5236 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5238 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5239 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5240 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5242 # Do not test the mpfr version. Assume that it is sufficient, since
5243 # it is in the source tree, and the library has not been built yet
5244 # but it would be included on the link line in the version check below
5245 # hence making the test fail.
5249 # Specify a location for gmp
5251 # Check whether --with-gmp-dir was given.
5252 if test "${with_gmp_dir+set}" = set; then :
5253 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5254 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5259 # Check whether --with-gmp was given.
5260 if test "${with_gmp+set}" = set; then :
5265 # Check whether --with-gmp-include was given.
5266 if test "${with_gmp_include+set}" = set; then :
5267 withval=$with_gmp_include;
5271 # Check whether --with-gmp-lib was given.
5272 if test "${with_gmp_lib+set}" = set; then :
5273 withval=$with_gmp_lib;
5278 if test "x$with_gmp" != x; then
5279 gmplibs="-L$with_gmp/lib $gmplibs"
5280 gmpinc="-I$with_gmp/include $gmpinc"
5282 if test "x$with_gmp_include" != x; then
5283 gmpinc="-I$with_gmp_include $gmpinc"
5285 if test "x$with_gmp_lib" != x; then
5286 gmplibs="-L$with_gmp_lib $gmplibs"
5288 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5289 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5290 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5291 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5292 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5293 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5294 # Do not test the gmp version. Assume that it is sufficient, since
5295 # it is in the source tree, and the library has not been built yet
5296 # but it would be included on the link line in the version check below
5297 # hence making the test fail.
5301 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5303 saved_CFLAGS="$CFLAGS"
5304 CFLAGS="$CFLAGS $gmpinc"
5305 # Check for the recommended and required versions of GMP.
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5307 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5316 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5317 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5318 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5334 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5335 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5336 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5349 $as_echo "buggy but acceptable" >&6; }
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }; have_gmp=no
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 # If we have GMP, check the MPFR version.
5359 if test x"$have_gmp" = xyes; then
5360 # Check for the recommended and required versions of MPFR.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5362 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5371 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5388 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5401 $as_echo "buggy but acceptable" >&6; }
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }; have_gmp=no
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 # Check for the MPC header version.
5412 if test x"$have_gmp" = xyes ; then
5413 # Check for the recommended and required versions of MPC.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5415 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5423 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5439 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5449 $as_echo "yes" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5452 $as_echo "buggy but acceptable" >&6; }
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }; have_gmp=no
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 # Now check the MPFR library.
5463 if test x"$have_gmp" = xyes; then
5465 LIBS="$LIBS $gmplibs"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5467 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5481 mpfr_atan2 (n, n, x, GMP_RNDN);
5482 mpfr_erfc (n, x, GMP_RNDN);
5483 mpfr_subnormalize (x, t, GMP_RNDN);
5487 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5488 mpc_cosh (c, c, MPC_RNDNN);
5489 mpc_pow (c, c, c, MPC_RNDNN);
5490 mpc_acosh (c, c, MPC_RNDNN);
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499 $as_echo "yes" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }; have_gmp=no
5504 rm -f core conftest.err conftest.$ac_objext \
5505 conftest$ac_exeext conftest.$ac_ext
5509 CFLAGS="$saved_CFLAGS"
5511 # The library versions listed in the error message below should match
5512 # the HARD-minimums enforced above.
5513 if test x$have_gmp != xyes; then
5514 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5515 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5516 their locations. Source code for these libraries can be found at
5517 their respective hosting sites as well as at
5518 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5519 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5520 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5521 make sure that you have installed both the libraries and the header
5522 files. They may be located in separate packages." "$LINENO" 5
5526 # Flags needed for both GMP, MPFR and/or MPC.
5534 # Allow host libstdc++ to be specified for static linking with PPL.
5536 # Check whether --with-host-libstdcxx was given.
5537 if test "${with_host_libstdcxx+set}" = set; then :
5538 withval=$with_host_libstdcxx;
5542 case $with_host_libstdcxx in
5544 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5548 # Linker flags to use for stage1 or when not boostrapping.
5550 # Check whether --with-stage1-ldflags was given.
5551 if test "${with_stage1_ldflags+set}" = set; then :
5552 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5555 stage1_ldflags=$withval
5563 # Libraries to use for stage1 or when not bootstrapping.
5565 # Check whether --with-stage1-libs was given.
5566 if test "${with_stage1_libs+set}" = set; then :
5567 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5570 stage1_libs=$withval
5573 stage1_libs=$with_host_libstdcxx
5578 # Libraries to use for stage2 and later builds. This defaults to the
5579 # argument passed to --with-host-libstdcxx.
5581 # Check whether --with-boot-libs was given.
5582 if test "${with_boot_libs+set}" = set; then :
5583 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5586 poststage1_libs=$withval
5589 poststage1_libs=$with_host_libstdcxx
5594 # Linker flags to use for stage2 and later builds.
5596 # Check whether --with-boot-ldflags was given.
5597 if test "${with_boot_ldflags+set}" = set; then :
5598 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5601 poststage1_ldflags=$withval
5605 # In stages 2 and 3, default to linking libstdc++ and libgcc
5606 # statically. But if the user explicitly specified the libraries to
5607 # use, trust that they are doing what they want.
5608 if test "$poststage1_libs" = ""; then
5609 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5618 # Check whether --with-isl was given.
5619 if test "${with_isl+set}" = set; then :
5624 # Check whether --with-isl-include was given.
5625 if test "${with_isl_include+set}" = set; then :
5626 withval=$with_isl_include;
5630 # Check whether --with-isl-lib was given.
5631 if test "${with_isl_lib+set}" = set; then :
5632 withval=$with_isl_lib;
5636 # Check whether --enable-isl-version-check was given.
5637 if test "${enable_isl_version_check+set}" = set; then :
5638 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5640 ENABLE_ISL_CHECK=yes
5644 # Initialize isllibs and islinc.
5653 isllibs="-L$with_isl/lib"
5654 islinc="-I$with_isl/include"
5657 if test "x${with_isl_include}" != x ; then
5658 islinc="-I$with_isl_include"
5660 if test "x${with_isl_lib}" != x; then
5661 isllibs="-L$with_isl_lib"
5663 if test "x${islinc}" = x && test "x${isllibs}" = x \
5664 && test -d ${srcdir}/isl; then
5665 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5666 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5670 isllibs="${isllibs} -lisl"
5676 if test "x$with_isl" != "xno"; then
5678 if test "${ENABLE_ISL_CHECK}" = yes ; then
5679 _isl_saved_CFLAGS=$CFLAGS
5680 _isl_saved_LDFLAGS=$LDFLAGS
5681 _isl_saved_LIBS=$LIBS
5683 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5684 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5685 LIBS="${_isl_saved_LIBS} -lisl"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5689 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5690 if test "${gcc_cv_isl+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5693 if test "$cross_compiling" = yes; then :
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <isl/version.h>
5703 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5710 if ac_fn_c_try_run "$LINENO"; then :
5715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716 conftest.$ac_objext conftest.beam conftest.$ac_ext
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5721 $as_echo "$gcc_cv_isl" >&6; }
5723 CFLAGS=$_isl_saved_CFLAGS
5724 LDFLAGS=$_isl_saved_LDFLAGS
5725 LIBS=$_isl_saved_LIBS
5734 if test "x${with_isl}" = xno; then
5735 graphite_requested=no
5736 elif test "x${with_isl}" != x \
5737 || test "x${with_isl_include}" != x \
5738 || test "x${with_isl_lib}" != x ; then
5739 graphite_requested=yes
5741 graphite_requested=no
5746 if test "${gcc_cv_isl}" = no ; then
5751 if test "${graphite_requested}" = yes \
5752 && test "x${isllibs}" = x \
5753 && test "x${islinc}" = x ; then
5755 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5764 # Check whether --with-cloog was given.
5765 if test "${with_cloog+set}" = set; then :
5766 withval=$with_cloog;
5770 # Check whether --with-cloog-include was given.
5771 if test "${with_cloog_include+set}" = set; then :
5772 withval=$with_cloog_include;
5776 # Check whether --with-cloog-lib was given.
5777 if test "${with_cloog_lib+set}" = set; then :
5778 withval=$with_cloog_lib;
5782 # Check whether --enable-cloog-version-check was given.
5783 if test "${enable_cloog_version_check+set}" = set; then :
5784 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5786 ENABLE_CLOOG_CHECK=yes
5790 # Initialize clooglibs and clooginc.
5799 clooglibs="-L$with_cloog/lib"
5800 clooginc="-I$with_cloog/include"
5803 if test "x${with_cloog_include}" != x ; then
5804 clooginc="-I$with_cloog_include"
5806 if test "x${with_cloog_lib}" != x; then
5807 clooglibs="-L$with_cloog_lib"
5809 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5810 && test -d ${srcdir}/cloog; then
5811 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5812 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5815 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5816 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5822 if test "x$isllibs" = x && test "x$islinc" = x; then
5825 elif test "x$with_cloog" != "xno"; then
5829 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5830 _cloog_saved_CFLAGS=$CFLAGS
5831 _cloog_saved_LDFLAGS=$LDFLAGS
5833 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5834 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5837 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5838 if test "${gcc_cv_cloog+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include "cloog/version.h"
5847 #if CLOOG_VERSION_MAJOR != 0 \
5848 || CLOOG_VERSION_MINOR != 17 \
5849 || CLOOG_VERSION_REVISION < 0
5856 if ac_fn_c_try_compile "$LINENO"; then :
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5864 $as_echo "$gcc_cv_cloog" >&6; }
5866 CFLAGS=$_cloog_saved_CFLAGS
5867 LDFLAGS=$_cloog_saved_LDFLAGS
5876 if test "x${with_cloog}" = xno; then
5877 graphite_requested=no
5878 elif test "x${with_cloog}" != x \
5879 || test "x${with_cloog_include}" != x \
5880 || test "x${with_cloog_lib}" != x ; then
5881 graphite_requested=yes
5883 graphite_requested=no
5888 if test "${gcc_cv_cloog}" = no ; then
5893 if test "${graphite_requested}" = yes \
5894 && test "x${clooglibs}" = x \
5895 && test "x${clooginc}" = x ; then
5897 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5903 # If either the ISL or the CLooG check failed, disable builds of in-tree
5905 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5906 noconfigdirs="$noconfigdirs cloog isl"
5909 # Check for LTO support.
5910 # Check whether --enable-lto was given.
5911 if test "${enable_lto+set}" = set; then :
5912 enableval=$enable_lto; enable_lto=$enableval
5914 enable_lto=yes; default_enable_lto=yes
5923 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5924 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5925 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5933 if test $target_elf = yes; then :
5934 # ELF platforms build the lto-plugin always.
5935 build_lto_plugin=yes
5938 if test x"$default_enable_lto" = x"yes" ; then
5940 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5941 # On other non-ELF platforms, LTO has yet to be validated.
5945 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5946 # It would also be nice to check the binutils support, but we don't
5947 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5948 # warn during gcc/ subconfigure; unless you're bootstrapping with
5949 # -flto it won't be needed until after installation anyway.
5951 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5952 *) if test x"$enable_lto" = x"yes"; then
5953 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5958 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5959 # Build it unless LTO was explicitly disabled.
5961 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5969 # By default, C and C++ are the only stage 1 languages.
5970 stage1_languages=,c,
5972 # Target libraries that we bootstrap.
5973 bootstrap_target_libs=,target-libgcc,
5975 # Figure out what language subdirectories are present.
5976 # Look if the user specified --enable-languages="..."; if not, use
5977 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5979 # NB: embedded tabs in this IF block -- do not untabify
5980 if test -d ${srcdir}/gcc; then
5981 if test x"${enable_languages+set}" != xset; then
5982 if test x"${LANGUAGES+set}" = xset; then
5983 enable_languages="${LANGUAGES}"
5984 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5986 enable_languages=all
5989 if test x"${enable_languages}" = x ||
5990 test x"${enable_languages}" = xyes;
5992 echo configure.in: --enable-languages needs at least one language argument 1>&2
5996 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5998 # 'f95' is the old name for the 'fortran' language. We issue a warning
5999 # and make the substitution.
6000 case ,${enable_languages}, in
6002 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6003 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6007 # If bootstrapping, C++ must be enabled.
6008 case ",$enable_languages,:$enable_bootstrap" in
6011 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6012 enable_languages="${enable_languages},c++"
6014 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6019 # First scan to see if an enabled language requires some other language.
6020 # We assume that a given config-lang.in will list all the language
6021 # front ends it requires, even if some are required indirectly.
6022 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6023 case ${lang_frag} in
6025 # The odd quoting in the next line works around
6026 # an apparent bug in bash 1.12 on linux.
6027 ${srcdir}/gcc/[*]/config-lang.in) ;;
6029 # From the config-lang.in, get $language, $lang_requires, and
6030 # $lang_requires_boot_languages.
6033 lang_requires_boot_languages=
6035 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6036 case ,${enable_languages}, in
6040 echo " \`$other' language required by \`$language'; enabling" 1>&2
6041 enable_languages="${enable_languages},${other}"
6045 for other in ${lang_requires_boot_languages} ; do
6046 if test "$other" != "c"; then
6047 case ,${enable_stage1_languages}, in
6051 case ,${enable_languages}, in
6053 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6054 enable_stage1_languages="$enable_stage1_languages,${other}"
6065 new_enable_languages=,c,
6067 # If LTO is enabled, add the LTO front end.
6068 extra_host_libiberty_configure_flags=
6069 if test "$enable_lto" = "yes" ; then
6070 case ,${enable_languages}, in
6072 *) enable_languages="${enable_languages},lto" ;;
6074 if test "${build_lto_plugin}" = "yes" ; then
6075 configdirs="$configdirs lto-plugin"
6076 extra_host_libiberty_configure_flags=--enable-shared
6081 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6082 potential_languages=,c,
6084 enabled_target_libs=
6085 disabled_target_libs=
6087 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6088 case ${lang_frag} in
6090 # The odd quoting in the next line works around
6091 # an apparent bug in bash 1.12 on linux.
6092 ${srcdir}/gcc/[*]/config-lang.in) ;;
6094 # From the config-lang.in, get $language, $target_libs,
6095 # $lang_dirs, $boot_language, and $build_by_default
6101 build_by_default=yes
6103 if test x${language} = x; then
6104 echo "${lang_frag} doesn't set \$language." 1>&2
6108 if test "$language" = "c++"; then
6112 case ,${enable_languages}, in
6114 # Language was explicitly selected; include it
6115 # unless it is C, which is enabled by default.
6116 if test "$language" != "c"; then
6121 # 'all' was selected, select it if it is a default language
6122 add_this_lang=${build_by_default}
6129 # Disable languages that need other directories if these aren't available.
6130 for i in $subdir_requires; do
6131 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6132 case ,${enable_languages}, in
6134 # Specifically requested language; tell them.
6135 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6139 add_this_lang=unsupported
6144 # Disable Ada if no preexisting GNAT is available.
6145 case ,${enable_languages},:${language}:${have_gnat} in
6146 *,${language},*:ada:no)
6147 # Specifically requested language; tell them.
6148 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6152 add_this_lang=unsupported
6156 # Disable a language that is unsupported by the target.
6157 case " $unsupported_languages " in
6159 add_this_lang=unsupported
6163 case $add_this_lang in
6165 # Remove language-dependent dirs.
6166 disabled_target_libs="$disabled_target_libs $target_libs"
6167 noconfigdirs="$noconfigdirs $lang_dirs"
6170 # Remove language-dependent dirs; still show language as supported.
6171 disabled_target_libs="$disabled_target_libs $target_libs"
6172 noconfigdirs="$noconfigdirs $lang_dirs"
6173 potential_languages="${potential_languages}${language},"
6176 new_enable_languages="${new_enable_languages}${language},"
6177 potential_languages="${potential_languages}${language},"
6178 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6179 enabled_target_libs="$enabled_target_libs $target_libs"
6180 case "${boot_language}:,$enable_stage1_languages," in
6181 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6182 # Add to (comma-separated) list of stage 1 languages.
6183 case ",$stage1_languages," in
6184 *,$language,* | ,yes, | ,all,) ;;
6185 *) stage1_languages="${stage1_languages}${language}," ;;
6187 # We need to bootstrap any supporting libraries.
6188 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6197 # Add target libraries which are only needed for disabled languages
6199 if test -n "$disabled_target_libs"; then
6200 for dir in $disabled_target_libs; do
6201 case " $enabled_target_libs " in
6203 *) noconfigdirs="$noconfigdirs $dir" ;;
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 # Disable libitm if we're not building C++
6295 case ,${enable_languages}, in
6298 noconfigdirs="$noconfigdirs target-libitm"
6302 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6303 # $build_configdirs and $target_configdirs.
6304 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6307 for dir in . $skipdirs $noconfigdirs ; do
6308 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6309 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6310 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6311 if test -r $srcdir/$dirname/configure ; then
6312 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6315 notsupp="$notsupp $dir"
6319 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6321 if test -r $srcdir/$dirname/configure ; then
6322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6325 notsupp="$notsupp $dir"
6329 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6331 if test -r $srcdir/$dirname/configure ; then
6332 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6335 notsupp="$notsupp $dir"
6341 # Quietly strip out all directories which aren't configurable in this tree.
6342 # This relies on all configurable subdirectories being autoconfiscated, which
6344 build_configdirs_all="$build_configdirs"
6346 for i in ${build_configdirs_all} ; do
6347 j=`echo $i | sed -e s/build-//g`
6348 if test -f ${srcdir}/$j/configure ; then
6349 build_configdirs="${build_configdirs} $i"
6353 configdirs_all="$configdirs"
6355 for i in ${configdirs_all} ; do
6356 if test -f ${srcdir}/$i/configure ; then
6357 configdirs="${configdirs} $i"
6361 target_configdirs_all="$target_configdirs"
6363 for i in ${target_configdirs_all} ; do
6364 j=`echo $i | sed -e s/target-//g`
6365 if test -f ${srcdir}/$j/configure ; then
6366 target_configdirs="${target_configdirs} $i"
6370 # Produce a warning message for the subdirs we can't configure.
6371 # This isn't especially interesting in the Cygnus tree, but in the individual
6372 # FSF releases, it's important to let people know when their machine isn't
6373 # supported by the one or two programs in a package.
6375 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6376 # If $appdirs is non-empty, at least one of those directories must still
6377 # be configured, or we error out. (E.g., if the gas release supports a
6378 # specified target in some subdirs but not the gas subdir, we shouldn't
6379 # pretend that all is well.)
6380 if test -n "$appdirs" ; then
6381 for dir in $appdirs ; do
6382 if test -r $dir/Makefile.in ; then
6383 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6387 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6393 if test -n "$appdirs" ; then
6394 echo "*** This configuration is not supported by this package." 1>&2
6398 # Okay, some application will build, or we don't care to check. Still
6399 # notify of subdirs not getting built.
6400 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6401 echo " ${notsupp}" 1>&2
6402 echo " (Any other directories should still work fine.)" 1>&2
6410 # To find our prefix, in gcc_cv_tool_prefix.
6412 # The user is always right.
6413 if test "${PATH_SEPARATOR+set}" != set; then
6414 echo "#! /bin/sh" >conf$$.sh
6415 echo "exit 0" >>conf$$.sh
6417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6427 if test "x$exec_prefix" = xNONE; then
6428 if test "x$prefix" = xNONE; then
6429 gcc_cv_tool_prefix=$ac_default_prefix
6431 gcc_cv_tool_prefix=$prefix
6434 gcc_cv_tool_prefix=$exec_prefix
6437 # If there is no compiler in the tree, use the PATH only. In any
6438 # case, if there is no compiler in the tree nobody should use
6439 # AS_FOR_TARGET and LD_FOR_TARGET.
6440 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6441 gcc_version=`cat $srcdir/gcc/BASE-VER`
6442 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6444 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6447 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6452 if test x$build = x$target && test -n "$md_exec_prefix"; then
6453 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6461 # Check whether --with-build-sysroot was given.
6462 if test "${with_build_sysroot+set}" = set; then :
6463 withval=$with_build_sysroot; if test x"$withval" != x ; then
6464 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6467 SYSROOT_CFLAGS_FOR_TARGET=
6473 # Check whether --with-debug-prefix-map was given.
6474 if test "${with_debug_prefix_map+set}" = set; then :
6475 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6476 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6477 for debug_map in $withval; do
6478 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6482 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6487 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6488 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6489 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6490 # We want to ensure that TARGET libraries (which we know are built with
6491 # gcc) are built with "-O2 -g", so include those options when setting
6492 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6493 if test "x$CFLAGS_FOR_TARGET" = x; then
6494 CFLAGS_FOR_TARGET=$CFLAGS
6497 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6500 *" -g "* | *" -g3 "*) ;;
6501 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6506 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6507 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6508 case " $CXXFLAGS " in
6510 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6512 case " $CXXFLAGS " in
6513 *" -g "* | *" -g3 "*) ;;
6514 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6521 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6522 # the named directory are copied to $(tooldir)/sys-include.
6523 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6524 if test x${is_cross_compiler} = xno ; then
6525 echo 1>&2 '***' --with-headers is only supported when cross compiling
6528 if test x"${with_headers}" != xyes ; then
6529 x=${gcc_cv_tool_prefix}
6530 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6534 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6535 # the name directories are copied to $(tooldir)/lib. Multiple directories
6537 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6538 if test x${is_cross_compiler} = xno ; then
6539 echo 1>&2 '***' --with-libs is only supported when cross compiling
6542 if test x"${with_libs}" != xyes ; then
6543 # Copy the libraries in reverse order, so that files in the first named
6544 # library override files in subsequent libraries.
6545 x=${gcc_cv_tool_prefix}
6546 for l in ${with_libs}; do
6547 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6552 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6554 # This is done by determining whether or not the appropriate directory
6555 # is available, and by checking whether or not specific configurations
6556 # have requested that this magic not happen.
6558 # The command line options always override the explicit settings in
6559 # configure.in, and the settings in configure.in override this magic.
6561 # If the default for a toolchain is to use GNU as and ld, and you don't
6562 # want to do that, then you should use the --without-gnu-as and
6563 # --without-gnu-ld options for the configure script. Similarly, if
6564 # the default is to use the included zlib and you don't want to do that,
6565 # you should use the --with-system-zlib option for the configure script.
6567 if test x${use_gnu_as} = x &&
6568 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6570 extra_host_args="$extra_host_args --with-gnu-as"
6573 if test x${use_gnu_ld} = x &&
6574 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6576 extra_host_args="$extra_host_args --with-gnu-ld"
6579 if test x${use_included_zlib} = x &&
6580 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6583 with_system_zlib=yes
6584 extra_host_args="$extra_host_args --with-system-zlib"
6587 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6588 # can detect this case.
6590 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6592 extra_host_args="$extra_host_args --with-newlib"
6595 # Handle ${copy_dirs}
6596 set fnord ${copy_dirs}
6598 while test $# != 0 ; do
6599 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6602 echo Copying $1 to $2
6604 # Use the install script to create the directory and all required
6605 # parent directories.
6606 if test -d $2 ; then
6610 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6613 # Copy the directory, assuming we have tar.
6614 # FIXME: Should we use B in the second tar? Not all systems support it.
6615 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6617 # It is the responsibility of the user to correctly adjust all
6618 # symlinks. If somebody can figure out how to handle them correctly
6619 # here, feel free to add the code.
6626 # Determine a target-dependent exec_prefix that the installed
6627 # gcc will search in. Keep this list sorted by triplet, with
6628 # the *-*-osname triplets last.
6631 i[34567]86-pc-msdosdjgpp*)
6632 md_exec_prefix=/dev/env/DJDIR/bin
6637 md_exec_prefix=/usr/ccs/bin
6641 extra_arflags_for_target=
6642 extra_nmflags_for_target=
6643 extra_ranlibflags_for_target=
6644 target_makefile_frag=/dev/null
6647 target_makefile_frag="config/mt-spu"
6650 target_makefile_frag="config/mt-sde"
6652 mipsisa*-*-elfoabi*)
6653 target_makefile_frag="config/mt-mips-elfoabi"
6655 mips*-*-*linux* | mips*-*-gnu*)
6656 target_makefile_frag="config/mt-mips-gnu"
6658 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6659 target_makefile_frag="config/mt-gnu"
6661 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6662 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6663 # commands to handle both 32-bit and 64-bit objects. These flags are
6664 # harmless if we're using GNU nm or ar.
6665 extra_arflags_for_target=" -X32_64"
6666 extra_nmflags_for_target=" -B -X32_64"
6670 alphaieee_frag=/dev/null
6673 # This just makes sure to use the -mieee option to build target libs.
6674 # This should probably be set individually by each library.
6675 alphaieee_frag="config/mt-alphaieee"
6679 # If --enable-target-optspace always use -Os instead of -O2 to build
6680 # the target libraries, similarly if it is not specified, use -Os
6681 # on selected platforms.
6682 ospace_frag=/dev/null
6683 case "${enable_target_optspace}:${target}" in
6685 ospace_frag="config/mt-ospace"
6688 ospace_frag="config/mt-d30v"
6690 :m32r-* | :d10v-* | :fr30-*)
6691 ospace_frag="config/mt-ospace"
6696 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6700 # Some systems (e.g., one of the i386-aix systems the gas testers are
6701 # using) don't handle "\$" correctly, so don't use it here.
6702 tooldir='${exec_prefix}'/${target_noncanonical}
6703 build_tooldir=${tooldir}
6705 # Create a .gdbinit file which runs the one in srcdir
6706 # and tells GDB to look there for source files.
6708 if test -r ${srcdir}/.gdbinit ; then
6711 *) cat > ./.gdbinit <<EOF
6715 source ${srcdir}/.gdbinit
6721 # Make sure that the compiler is able to generate an executable. If it
6722 # can't, we are probably in trouble. We don't care whether we can run the
6723 # executable--we might be using a cross compiler--we only care whether it
6724 # can be created. At this point the main configure script has set CC.
6726 echo "int main () { return 0; }" > conftest.c
6727 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6728 if test $? = 0 ; then
6729 if test -s conftest || test -s conftest.exe ; then
6735 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6736 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6743 # Decide which environment variable is used to find dynamic libraries.
6745 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6746 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6747 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6748 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6751 # On systems where the dynamic library environment variable is PATH,
6752 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6753 # built executables to PATH.
6754 if test "$RPATH_ENVVAR" = PATH; then
6755 GCC_SHLIB_SUBDIR=/shlib
6760 # Record target_configdirs and the configure arguments for target and
6761 # build configuration in Makefile.
6762 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6763 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6765 # If we are building libgomp, bootstrap it.
6766 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6767 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6770 # Determine whether gdb needs tk/tcl or not.
6771 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6772 # and in that case we want gdb to be built without tk. Ugh!
6773 # In fact I believe gdb is the *only* package directly dependent on tk,
6774 # so we should be able to put the 'maybe's in unconditionally and
6775 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6776 # 100% sure that that's safe though.
6778 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6779 case "$enable_gdbtk" in
6783 GDB_TK="${gdb_tk}" ;;
6785 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6786 # distro. Eventually someone will fix this and move Insight, nee
6787 # gdbtk to a separate directory.
6788 if test -d ${srcdir}/gdb/gdbtk ; then
6795 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6796 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6798 # Strip out unwanted targets.
6800 # While at that, we remove Makefiles if we were started for recursive
6801 # configuration, so that the top-level Makefile reconfigures them,
6802 # like we used to do when configure itself was recursive.
6804 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6805 # but now we're fixing up the Makefile ourselves with the additional
6806 # commands passed to AC_CONFIG_FILES. Use separate variables
6807 # extrasub-{build,host,target} not because there is any reason to split
6808 # the substitutions up that way, but only to remain below the limit of
6809 # 99 commands in a script, for HP-UX sed.
6810 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6812 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6813 yes:yes:*\ gold\ *:*,c++,*) ;;
6814 yes:yes:*\ gold\ *:*)
6815 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6819 # Adjust the toplevel makefile according to whether bootstrap was selected.
6820 case $enable_bootstrap in
6822 bootstrap_suffix=bootstrap
6823 BUILD_CONFIG=bootstrap-debug
6826 bootstrap_suffix=no-bootstrap
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6832 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6835 # Check whether --with-build-config was given.
6836 if test "${with_build_config+set}" = set; then :
6837 withval=$with_build_config; case $with_build_config in
6838 yes) with_build_config= ;;
6839 no) with_build_config= BUILD_CONFIG= ;;
6844 if test "x${with_build_config}" != x; then
6845 BUILD_CONFIG=$with_build_config
6847 case $BUILD_CONFIG in
6849 if echo "int f (void) { return 0; }" > conftest.c &&
6850 ${CC} -c conftest.c &&
6851 mv conftest.o conftest.o.g0 &&
6852 ${CC} -c -g conftest.c &&
6853 mv conftest.o conftest.o.g &&
6854 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6859 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6864 $as_echo "$BUILD_CONFIG" >&6; }
6868 for module in ${build_configdirs} ; do
6869 if test -z "${no_recursion}" \
6870 && test -f ${build_subdir}/${module}/Makefile; then
6871 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6872 rm -f ${build_subdir}/${module}/Makefile
6874 extrasub_build="$extrasub_build
6875 /^@if build-$module\$/d
6876 /^@endif build-$module\$/d
6877 /^@if build-$module-$bootstrap_suffix\$/d
6878 /^@endif build-$module-$bootstrap_suffix\$/d"
6881 for module in ${configdirs} ; do
6882 if test -z "${no_recursion}"; then
6883 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6884 if test -f ${file}; then
6885 echo 1>&2 "*** removing ${file} to force reconfigure"
6890 extrasub_host="$extrasub_host
6892 /^@endif $module\$/d
6893 /^@if $module-$bootstrap_suffix\$/d
6894 /^@endif $module-$bootstrap_suffix\$/d"
6897 for module in ${target_configdirs} ; do
6898 if test -z "${no_recursion}" \
6899 && test -f ${target_subdir}/${module}/Makefile; then
6900 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6901 rm -f ${target_subdir}/${module}/Makefile
6904 # We only bootstrap target libraries listed in bootstrap_target_libs.
6905 case $bootstrap_target_libs in
6906 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6907 *) target_bootstrap_suffix=no-bootstrap ;;
6910 extrasub_target="$extrasub_target
6911 /^@if target-$module\$/d
6912 /^@endif target-$module\$/d
6913 /^@if target-$module-$target_bootstrap_suffix\$/d
6914 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6917 # Do the final fixup along with target modules.
6918 extrasub_target="$extrasub_target
6919 /^@if /,/^@endif /d"
6921 # Create the serialization dependencies. This uses a temporary file.
6923 # Check whether --enable-serial-configure was given.
6924 if test "${enable_serial_configure+set}" = set; then :
6925 enableval=$enable_serial_configure;
6929 case ${enable_serial_configure} in
6931 enable_serial_build_configure=yes
6932 enable_serial_host_configure=yes
6933 enable_serial_target_configure=yes
6937 # These force 'configure's to be done one at a time, to avoid problems
6938 # with contention over a shared config.cache.
6940 echo '# serdep.tmp' > serdep.tmp
6942 test "x${enable_serial_build_configure}" = xyes &&
6943 for item in ${build_configdirs} ; do
6946 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6951 test "x${enable_serial_host_configure}" = xyes &&
6952 for item in ${configdirs} ; do
6955 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6960 test "x${enable_serial_target_configure}" = xyes &&
6961 for item in ${target_configdirs} ; do
6964 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6968 serialization_dependencies=serdep.tmp
6971 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6972 # target, nonopt, and variable assignments. These are the ones we
6973 # might not want to pass down to subconfigures. The exception being
6974 # --cache-file=/dev/null, which is used to turn off the use of cache
6975 # files altogether, and which should be passed on to subconfigures.
6976 # Also strip program-prefix, program-suffix, and program-transform-name,
6977 # so that we can pass down a consistent program-transform-name.
6982 eval "set -- $ac_configure_args"
6985 if test X"$skip_next" = X"yes"; then
6989 if test X"$keep_next" = X"yes"; then
6992 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6994 baseargs="$baseargs '$ac_arg'"
6995 tbaseargs="$tbaseargs '$ac_arg'"
7000 # Handle separated arguments. Based on the logic generated by
7003 *=* | --config-cache | -C | -disable-* | --disable-* \
7004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7006 | -with-* | --with-* | -without-* | --without-* | --x)
7020 --with-* | --without-*)
7021 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7025 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7028 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7037 mpc | mpfr | gmp | cloog)
7038 # If we're processing --with-$lib, --with-$lib-include or
7039 # --with-$lib-lib, for one of the libs above, and target is
7040 # different from host, don't pass the current argument to any
7041 # target library's configure.
7042 if test x$is_cross_compiler = xyes; then
7051 --cache-file=/dev/null | \
7052 -cache-file=/dev/null )
7053 # Handled here to avoid the test to skip args below.
7054 baseargs="$baseargs '$ac_arg'"
7055 tbaseargs="$tbaseargs '$ac_arg'"
7056 # Assert: $separate_arg should always be no.
7057 keep_next=$separate_arg
7073 -program-prefix* | \
7074 -program-suffix* | \
7075 -program-transform-name* )
7076 skip_next=$separate_arg
7080 # An option. Add it.
7083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7085 baseargs="$baseargs '$ac_arg'"
7086 if test X"$skip_targ" = Xno; then
7087 tbaseargs="$tbaseargs '$ac_arg'"
7089 keep_next=$separate_arg
7092 # Either a variable assignment, or a nonopt (triplet). Don't
7093 # pass it down; let the Makefile handle this.
7098 # Remove the initial space we just introduced and, as these will be
7099 # expanded by make, quote '$'.
7100 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7102 # Add in --program-transform-name, after --program-prefix and
7103 # --program-suffix have been applied to it. Autoconf has already
7104 # doubled dollar signs and backslashes in program_transform_name; we want
7105 # the backslashes un-doubled, and then the entire thing wrapped in single
7106 # quotes, because this will be expanded first by make and then by the shell.
7107 # Also, because we want to override the logic in subdir configure scripts to
7108 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7109 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7110 ${program_transform_name}
7112 gcc_transform_name=`cat conftestsed.out`
7113 rm -f conftestsed.out
7114 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7115 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7116 if test "$silent" = yes; then
7117 baseargs="$baseargs --silent"
7118 tbaseargs="$tbaseargs --silent"
7120 baseargs="$baseargs --disable-option-checking"
7121 tbaseargs="$tbaseargs --disable-option-checking"
7123 # Record and document user additions to sub configure arguments.
7128 # For the build-side libraries, we just need to pretend we're native,
7129 # and not use the same cache file. Multilibs are neither needed nor
7131 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7133 # For host modules, accept cache file option, or specification as blank.
7134 case "${cache_file}" in
7136 cache_file_option="" ;;
7137 /* | [A-Za-z]:[\\/]* ) # absolute path
7138 cache_file_option="--cache-file=${cache_file}" ;;
7140 cache_file_option="--cache-file=../${cache_file}" ;;
7143 # Host dirs don't like to share a cache file either, horribly enough.
7144 # This seems to be due to autoconf 2.5x stupidity.
7145 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7147 target_configargs="$target_configargs ${tbaseargs}"
7149 # Passing a --with-cross-host argument lets the target libraries know
7150 # whether they are being built with a cross-compiler or being built
7151 # native. However, it would be better to use other mechanisms to make the
7152 # sorts of decisions they want to make on this basis. Please consider
7153 # this option to be deprecated. FIXME.
7154 if test x${is_cross_compiler} = xyes ; then
7155 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7158 # Default to --enable-multilib.
7159 if test x${enable_multilib} = x ; then
7160 target_configargs="--enable-multilib ${target_configargs}"
7163 # Pass --with-newlib if appropriate. Note that target_configdirs has
7164 # changed from the earlier setting of with_newlib.
7165 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7166 target_configargs="--with-newlib ${target_configargs}"
7169 # Different target subdirs use different values of certain variables
7170 # (notably CXX). Worse, multilibs use *lots* of different values.
7171 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7172 # it doesn't automatically accept command-line overrides of them.
7173 # This means it's not safe for target subdirs to share a cache file,
7174 # which is disgusting, but there you have it. Hopefully this can be
7175 # fixed in future. It's still worthwhile to use a cache file for each
7176 # directory. I think.
7178 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7179 # We need to pass --target, as newer autoconf's requires consistency
7180 # for target_alias and gcc doesn't manage it consistently.
7181 target_configargs="--cache-file=./config.cache ${target_configargs}"
7184 case " $target_configdirs " in
7186 case " $target_configargs " in
7187 *" --with-newlib "*)
7190 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'
7194 # If we're not building GCC, don't discard standard headers.
7195 if test -d ${srcdir}/gcc; then
7196 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7198 if test "${build}" != "${host}"; then
7199 # On Canadian crosses, CC_FOR_TARGET will have already been set
7200 # by `configure', so we won't have an opportunity to add -Bgcc/
7201 # to it. This is right: we don't want to search that directory
7202 # for binaries, but we want the header files in there, so add
7204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7206 # Someone might think of using the pre-installed headers on
7207 # Canadian crosses, in case the installed compiler is not fully
7208 # compatible with the compiler being built. In this case, it
7209 # would be better to flag an error than risking having
7210 # incompatible object files being constructed. We can't
7211 # guarantee that an error will be flagged, but let's hope the
7212 # compiler will do it, when presented with incompatible header
7217 case "${target}-${is_cross_compiler}" in
7218 i[3456789]86-*-linux*-no)
7219 # Here host == target, so we don't need to build gcc,
7220 # so we don't want to discard standard headers.
7221 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7224 # If we're building newlib, use its generic headers last, but search
7225 # for any libc-related directories first (so make it the last -B
7227 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7229 # If we're building libgloss, find the startup file, simulator library
7230 # and linker script.
7231 case " $target_configdirs " in
7233 # Look for startup file, simulator library and maybe linker script.
7234 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7235 # Look for libnosys.a in case the target needs it.
7236 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7237 # Most targets have the linker script in the source directory.
7238 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7249 x86_64-*mingw* | *-w64-mingw*)
7250 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7251 # however, use a symlink named 'mingw' in ${prefix} .
7252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7255 # MinGW can't be handled as Cygwin above since it does not use newlib.
7256 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'
7260 # Allow the user to override the flags for
7261 # our build compiler if desired.
7262 if test x"${build}" = x"${host}" ; then
7263 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7264 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7265 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7268 # On Canadian crosses, we'll be searching the right directories for
7269 # the previously-installed cross compiler, so don't bother to add
7270 # flags for directories within the install tree of the compiler
7271 # being built; programs in there won't even run.
7272 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7273 # Search for pre-installed headers if nothing else fits.
7274 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7277 if test "x${use_gnu_ld}" = x &&
7278 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7279 # Arrange for us to find uninstalled linker scripts.
7280 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7283 # Search for other target-specific linker scripts and such.
7286 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7290 # Makefile fragments.
7291 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7293 eval fragval=\$$frag
7294 if test $fragval != /dev/null; then
7295 eval $frag=${srcdir}/$fragval
7303 # Miscellanea: directories, flags, etc.
7312 # Build module lists & subconfigure args.
7316 # Host module lists & subconfigure args.
7321 # Target module lists & subconfigure args.
7343 # Generate default definitions for YACC, M4, LEX and other programs that run
7344 # on the build machine. These are used if the Makefile can't locate these
7345 # programs in objdir.
7346 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7348 for ac_prog in 'bison -y' byacc yacc
7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_YACC+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$YACC"; then
7358 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_YACC="$ac_prog"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 YACC=$ac_cv_prog_YACC
7378 if test -n "$YACC"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7380 $as_echo "$YACC" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7387 test -n "$YACC" && break
7389 test -n "$YACC" || YACC="$MISSING bison -y"
7391 case " $build_configdirs " in
7392 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7395 for ac_prog in bison
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if test "${ac_cv_prog_BISON+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 if test -n "$BISON"; then
7405 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_BISON="$ac_prog"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 BISON=$ac_cv_prog_BISON
7425 if test -n "$BISON"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7427 $as_echo "$BISON" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 test -n "$BISON" && break
7436 test -n "$BISON" || BISON="$MISSING bison"
7438 case " $build_configdirs " in
7439 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7442 for ac_prog in gm4 gnum4 m4
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_M4+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$M4"; then
7452 ac_cv_prog_M4="$M4" # Let the user override the test.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_M4="$ac_prog"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 if test -n "$M4"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7474 $as_echo "$M4" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7481 test -n "$M4" && break
7483 test -n "$M4" || M4="$MISSING m4"
7485 case " $build_configdirs " in
7486 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7489 for ac_prog in flex lex
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_LEX+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$LEX"; then
7499 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_LEX="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 if test -n "$LEX"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7521 $as_echo "$LEX" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 test -n "$LEX" && break
7530 test -n "$LEX" || LEX="$MISSING flex"
7532 case " $build_configdirs " in
7533 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7534 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_FLEX+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 if test -n "$FLEX"; then
7547 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_FLEX="$ac_prog"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 FLEX=$ac_cv_prog_FLEX
7567 if test -n "$FLEX"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7569 $as_echo "$FLEX" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7576 test -n "$FLEX" && break
7578 test -n "$FLEX" || FLEX="$MISSING flex"
7580 case " $build_configdirs " in
7581 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7584 for ac_prog in makeinfo
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 if test -n "$MAKEINFO"; then
7594 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_MAKEINFO="$ac_prog"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 MAKEINFO=$ac_cv_prog_MAKEINFO
7614 if test -n "$MAKEINFO"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7616 $as_echo "$MAKEINFO" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7623 test -n "$MAKEINFO" && break
7625 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7627 case " $build_configdirs " in
7628 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7631 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7632 # higher, else we use the "missing" dummy.
7633 if ${MAKEINFO} --version \
7634 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7637 MAKEINFO="$MISSING makeinfo"
7643 # FIXME: expect and dejagnu may become build tools?
7645 for ac_prog in expect
7647 # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7654 if test -n "$EXPECT"; then
7655 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_prog_EXPECT="$ac_prog"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 EXPECT=$ac_cv_prog_EXPECT
7675 if test -n "$EXPECT"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7677 $as_echo "$EXPECT" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 test -n "$EXPECT" && break
7686 test -n "$EXPECT" || EXPECT="expect"
7688 case " $configdirs " in
7690 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7694 for ac_prog in runtest
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$RUNTEST"; then
7704 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_RUNTEST="$ac_prog"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 RUNTEST=$ac_cv_prog_RUNTEST
7724 if test -n "$RUNTEST"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7726 $as_echo "$RUNTEST" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 test -n "$RUNTEST" && break
7735 test -n "$RUNTEST" || RUNTEST="runtest"
7737 case " $configdirs " in
7739 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7746 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7747 ncn_target_tool_prefix=
7748 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7752 if test -n "$AR"; then
7754 elif test -n "$ac_cv_prog_AR"; then
7758 if test -n "$ac_cv_prog_AR"; then
7759 for ncn_progname in ar; do
7760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7761 set dummy ${ncn_progname}; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_AR+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$AR"; then
7768 ac_cv_prog_AR="$AR" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_AR="${ncn_progname}"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 if test -n "$AR"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7790 $as_echo "$AR" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7800 for ncn_progname in ar; do
7801 if test -n "$ncn_tool_prefix"; then
7802 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7803 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_AR+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 if test -n "$AR"; then
7810 ac_cv_prog_AR="$AR" # Let the user override the test.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 if test -n "$AR"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7832 $as_echo "$AR" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7840 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7842 set dummy ${ncn_progname}; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_AR+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7848 if test -n "$AR"; then
7849 ac_cv_prog_AR="$AR" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_AR="${ncn_progname}"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 if test -n "$AR"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7871 $as_echo "$AR" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 test -n "$ac_cv_prog_AR" && break
7882 if test -z "$ac_cv_prog_AR" ; then
7884 if test $build = $host ; then
7887 AR="${ncn_tool_prefix}$2"
7893 if test -n "$AS"; then
7895 elif test -n "$ac_cv_prog_AS"; then
7899 if test -n "$ac_cv_prog_AS"; then
7900 for ncn_progname in as; do
7901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7902 set dummy ${ncn_progname}; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_AS+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7908 if test -n "$AS"; then
7909 ac_cv_prog_AS="$AS" # Let the user override the test.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_AS="${ncn_progname}"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 if test -n "$AS"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7931 $as_echo "$AS" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7941 for ncn_progname in as; do
7942 if test -n "$ncn_tool_prefix"; then
7943 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7944 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_AS+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$AS"; then
7951 ac_cv_prog_AS="$AS" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 if test -n "$AS"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7973 $as_echo "$AS" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7983 set dummy ${ncn_progname}; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_AS+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 if test -n "$AS"; then
7990 ac_cv_prog_AS="$AS" # Let the user override the test.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_AS="${ncn_progname}"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 if test -n "$AS"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8012 $as_echo "$AS" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8020 test -n "$ac_cv_prog_AS" && break
8023 if test -z "$ac_cv_prog_AS" ; then
8025 if test $build = $host ; then
8028 AS="${ncn_tool_prefix}$2"
8034 if test -n "$DLLTOOL"; then
8035 ac_cv_prog_DLLTOOL=$DLLTOOL
8036 elif test -n "$ac_cv_prog_DLLTOOL"; then
8037 DLLTOOL=$ac_cv_prog_DLLTOOL
8040 if test -n "$ac_cv_prog_DLLTOOL"; then
8041 for ncn_progname in dlltool; do
8042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8043 set dummy ${ncn_progname}; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8049 if test -n "$DLLTOOL"; then
8050 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_prog_DLLTOOL="${ncn_progname}"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 DLLTOOL=$ac_cv_prog_DLLTOOL
8070 if test -n "$DLLTOOL"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8072 $as_echo "$DLLTOOL" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8082 for ncn_progname in dlltool; do
8083 if test -n "$ncn_tool_prefix"; then
8084 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8085 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$DLLTOOL"; then
8092 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 DLLTOOL=$ac_cv_prog_DLLTOOL
8112 if test -n "$DLLTOOL"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8114 $as_echo "$DLLTOOL" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8124 set dummy ${ncn_progname}; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$DLLTOOL"; then
8131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_DLLTOOL="${ncn_progname}"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 DLLTOOL=$ac_cv_prog_DLLTOOL
8151 if test -n "$DLLTOOL"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8153 $as_echo "$DLLTOOL" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 test -n "$ac_cv_prog_DLLTOOL" && break
8164 if test -z "$ac_cv_prog_DLLTOOL" ; then
8166 if test $build = $host ; then
8169 DLLTOOL="${ncn_tool_prefix}$2"
8175 if test -n "$LD"; then
8177 elif test -n "$ac_cv_prog_LD"; then
8181 if test -n "$ac_cv_prog_LD"; then
8182 for ncn_progname in ld; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184 set dummy ${ncn_progname}; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if test "${ac_cv_prog_LD+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$LD"; then
8191 ac_cv_prog_LD="$LD" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_prog_LD="${ncn_progname}"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 if test -n "$LD"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8213 $as_echo "$LD" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8223 for ncn_progname in ld; do
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_prog_LD+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$LD"; then
8233 ac_cv_prog_LD="$LD" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 if test -n "$LD"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8255 $as_echo "$LD" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8263 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_progname}; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if test "${ac_cv_prog_LD+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 if test -n "$LD"; then
8272 ac_cv_prog_LD="$LD" # Let the user override the test.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_LD="${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 if test -n "$LD"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8294 $as_echo "$LD" >&6; }
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 test -n "$ac_cv_prog_LD" && break
8305 if test -z "$ac_cv_prog_LD" ; then
8307 if test $build = $host ; then
8310 LD="${ncn_tool_prefix}$2"
8316 if test -n "$LIPO"; then
8317 ac_cv_prog_LIPO=$LIPO
8318 elif test -n "$ac_cv_prog_LIPO"; then
8319 LIPO=$ac_cv_prog_LIPO
8322 if test -n "$ac_cv_prog_LIPO"; then
8323 for ncn_progname in lipo; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325 set dummy ${ncn_progname}; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if test "${ac_cv_prog_LIPO+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8331 if test -n "$LIPO"; then
8332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8341 ac_cv_prog_LIPO="${ncn_progname}"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 LIPO=$ac_cv_prog_LIPO
8352 if test -n "$LIPO"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8354 $as_echo "$LIPO" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8364 for ncn_progname in lipo; do
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_LIPO+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$LIPO"; then
8374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 LIPO=$ac_cv_prog_LIPO
8394 if test -n "$LIPO"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8396 $as_echo "$LIPO" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8404 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_progname}; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_LIPO+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8412 if test -n "$LIPO"; then
8413 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_LIPO="${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 LIPO=$ac_cv_prog_LIPO
8433 if test -n "$LIPO"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8435 $as_echo "$LIPO" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 test -n "$ac_cv_prog_LIPO" && break
8446 if test -z "$ac_cv_prog_LIPO" ; then
8448 if test $build = $host ; then
8451 LIPO="${ncn_tool_prefix}$2"
8457 if test -n "$NM"; then
8459 elif test -n "$ac_cv_prog_NM"; then
8463 if test -n "$ac_cv_prog_NM"; then
8464 for ncn_progname in nm; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466 set dummy ${ncn_progname}; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_NM+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8472 if test -n "$NM"; then
8473 ac_cv_prog_NM="$NM" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_NM="${ncn_progname}"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 if test -n "$NM"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8495 $as_echo "$NM" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8505 for ncn_progname in nm; do
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_prog_NM+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8514 if test -n "$NM"; then
8515 ac_cv_prog_NM="$NM" # Let the user override the test.
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 if test -n "$NM"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8537 $as_echo "$NM" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8545 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547 set dummy ${ncn_progname}; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if test "${ac_cv_prog_NM+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$NM"; then
8554 ac_cv_prog_NM="$NM" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_prog_NM="${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 if test -n "$NM"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8576 $as_echo "$NM" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8584 test -n "$ac_cv_prog_NM" && break
8587 if test -z "$ac_cv_prog_NM" ; then
8589 if test $build = $host ; then
8592 NM="${ncn_tool_prefix}$2"
8598 if test -n "$RANLIB"; then
8599 ac_cv_prog_RANLIB=$RANLIB
8600 elif test -n "$ac_cv_prog_RANLIB"; then
8601 RANLIB=$ac_cv_prog_RANLIB
8604 if test -n "$ac_cv_prog_RANLIB"; then
8605 for ncn_progname in ranlib; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607 set dummy ${ncn_progname}; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8613 if test -n "$RANLIB"; then
8614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8623 ac_cv_prog_RANLIB="${ncn_progname}"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 RANLIB=$ac_cv_prog_RANLIB
8634 if test -n "$RANLIB"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8636 $as_echo "$RANLIB" >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8646 for ncn_progname in ranlib; do
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$RANLIB"; then
8656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 RANLIB=$ac_cv_prog_RANLIB
8676 if test -n "$RANLIB"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8678 $as_echo "$RANLIB" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688 set dummy ${ncn_progname}; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8694 if test -n "$RANLIB"; then
8695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_prog_RANLIB="${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 RANLIB=$ac_cv_prog_RANLIB
8715 if test -n "$RANLIB"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8717 $as_echo "$RANLIB" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 test -n "$ac_cv_prog_RANLIB" && break
8728 if test -z "$ac_cv_prog_RANLIB" ; then
8734 if test -n "$STRIP"; then
8735 ac_cv_prog_STRIP=$STRIP
8736 elif test -n "$ac_cv_prog_STRIP"; then
8737 STRIP=$ac_cv_prog_STRIP
8740 if test -n "$ac_cv_prog_STRIP"; then
8741 for ncn_progname in strip; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743 set dummy ${ncn_progname}; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if test "${ac_cv_prog_STRIP+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 if test -n "$STRIP"; then
8750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759 ac_cv_prog_STRIP="${ncn_progname}"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 STRIP=$ac_cv_prog_STRIP
8770 if test -n "$STRIP"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8772 $as_echo "$STRIP" >&6; }
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8782 for ncn_progname in strip; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if test "${ac_cv_prog_STRIP+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8791 if test -n "$STRIP"; then
8792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8801 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 STRIP=$ac_cv_prog_STRIP
8812 if test -n "$STRIP"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8814 $as_echo "$STRIP" >&6; }
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8822 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824 set dummy ${ncn_progname}; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_STRIP+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8830 if test -n "$STRIP"; then
8831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_STRIP="${ncn_progname}"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 STRIP=$ac_cv_prog_STRIP
8851 if test -n "$STRIP"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8853 $as_echo "$STRIP" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8861 test -n "$ac_cv_prog_STRIP" && break
8864 if test -z "$ac_cv_prog_STRIP" ; then
8870 if test -n "$WINDRES"; then
8871 ac_cv_prog_WINDRES=$WINDRES
8872 elif test -n "$ac_cv_prog_WINDRES"; then
8873 WINDRES=$ac_cv_prog_WINDRES
8876 if test -n "$ac_cv_prog_WINDRES"; then
8877 for ncn_progname in windres; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879 set dummy ${ncn_progname}; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8885 if test -n "$WINDRES"; then
8886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_WINDRES="${ncn_progname}"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 WINDRES=$ac_cv_prog_WINDRES
8906 if test -n "$WINDRES"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8908 $as_echo "$WINDRES" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8918 for ncn_progname in windres; do
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
8927 if test -n "$WINDRES"; then
8928 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 WINDRES=$ac_cv_prog_WINDRES
8948 if test -n "$WINDRES"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8950 $as_echo "$WINDRES" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8958 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960 set dummy ${ncn_progname}; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
8966 if test -n "$WINDRES"; then
8967 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8976 ac_cv_prog_WINDRES="${ncn_progname}"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 WINDRES=$ac_cv_prog_WINDRES
8987 if test -n "$WINDRES"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8989 $as_echo "$WINDRES" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8997 test -n "$ac_cv_prog_WINDRES" && break
9000 if test -z "$ac_cv_prog_WINDRES" ; then
9002 if test $build = $host ; then
9005 WINDRES="${ncn_tool_prefix}$2"
9011 if test -n "$WINDMC"; then
9012 ac_cv_prog_WINDMC=$WINDMC
9013 elif test -n "$ac_cv_prog_WINDMC"; then
9014 WINDMC=$ac_cv_prog_WINDMC
9017 if test -n "$ac_cv_prog_WINDMC"; then
9018 for ncn_progname in windmc; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9026 if test -n "$WINDMC"; then
9027 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_WINDMC="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 WINDMC=$ac_cv_prog_WINDMC
9047 if test -n "$WINDMC"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9049 $as_echo "$WINDMC" >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9059 for ncn_progname in windmc; do
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9068 if test -n "$WINDMC"; then
9069 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 WINDMC=$ac_cv_prog_WINDMC
9089 if test -n "$WINDMC"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9091 $as_echo "$WINDMC" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9099 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9107 if test -n "$WINDMC"; then
9108 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117 ac_cv_prog_WINDMC="${ncn_progname}"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 WINDMC=$ac_cv_prog_WINDMC
9128 if test -n "$WINDMC"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9130 $as_echo "$WINDMC" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9138 test -n "$ac_cv_prog_WINDMC" && break
9141 if test -z "$ac_cv_prog_WINDMC" ; then
9143 if test $build = $host ; then
9146 WINDMC="${ncn_tool_prefix}$2"
9152 if test -n "$OBJCOPY"; then
9153 ac_cv_prog_OBJCOPY=$OBJCOPY
9154 elif test -n "$ac_cv_prog_OBJCOPY"; then
9155 OBJCOPY=$ac_cv_prog_OBJCOPY
9158 if test -n "$ac_cv_prog_OBJCOPY"; then
9159 for ncn_progname in objcopy; do
9160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161 set dummy ${ncn_progname}; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9167 if test -n "$OBJCOPY"; then
9168 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177 ac_cv_prog_OBJCOPY="${ncn_progname}"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 OBJCOPY=$ac_cv_prog_OBJCOPY
9188 if test -n "$OBJCOPY"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9190 $as_echo "$OBJCOPY" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9200 for ncn_progname in objcopy; do
9201 if test -n "$ncn_tool_prefix"; then
9202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9203 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205 $as_echo_n "checking for $ac_word... " >&6; }
9206 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9209 if test -n "$OBJCOPY"; then
9210 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 OBJCOPY=$ac_cv_prog_OBJCOPY
9230 if test -n "$OBJCOPY"; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9232 $as_echo "$OBJCOPY" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9240 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9242 set dummy ${ncn_progname}; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9248 if test -n "$OBJCOPY"; then
9249 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9258 ac_cv_prog_OBJCOPY="${ncn_progname}"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 OBJCOPY=$ac_cv_prog_OBJCOPY
9269 if test -n "$OBJCOPY"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9271 $as_echo "$OBJCOPY" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9279 test -n "$ac_cv_prog_OBJCOPY" && break
9282 if test -z "$ac_cv_prog_OBJCOPY" ; then
9284 if test $build = $host ; then
9287 OBJCOPY="${ncn_tool_prefix}$2"
9293 if test -n "$OBJDUMP"; then
9294 ac_cv_prog_OBJDUMP=$OBJDUMP
9295 elif test -n "$ac_cv_prog_OBJDUMP"; then
9296 OBJDUMP=$ac_cv_prog_OBJDUMP
9299 if test -n "$ac_cv_prog_OBJDUMP"; then
9300 for ncn_progname in objdump; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302 set dummy ${ncn_progname}; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9308 if test -n "$OBJDUMP"; then
9309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9318 ac_cv_prog_OBJDUMP="${ncn_progname}"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 OBJDUMP=$ac_cv_prog_OBJDUMP
9329 if test -n "$OBJDUMP"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9331 $as_echo "$OBJDUMP" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9341 for ncn_progname in objdump; do
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9350 if test -n "$OBJDUMP"; then
9351 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 OBJDUMP=$ac_cv_prog_OBJDUMP
9371 if test -n "$OBJDUMP"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9373 $as_echo "$OBJDUMP" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9381 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383 set dummy ${ncn_progname}; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9389 if test -n "$OBJDUMP"; then
9390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_prog_OBJDUMP="${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 OBJDUMP=$ac_cv_prog_OBJDUMP
9410 if test -n "$OBJDUMP"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9412 $as_echo "$OBJDUMP" >&6; }
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 test -n "$ac_cv_prog_OBJDUMP" && break
9423 if test -z "$ac_cv_prog_OBJDUMP" ; then
9425 if test $build = $host ; then
9428 OBJDUMP="${ncn_tool_prefix}$2"
9434 if test -n "$READELF"; then
9435 ac_cv_prog_READELF=$READELF
9436 elif test -n "$ac_cv_prog_READELF"; then
9437 READELF=$ac_cv_prog_READELF
9440 if test -n "$ac_cv_prog_READELF"; then
9441 for ncn_progname in readelf; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_progname}; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if test "${ac_cv_prog_READELF+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9449 if test -n "$READELF"; then
9450 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459 ac_cv_prog_READELF="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 READELF=$ac_cv_prog_READELF
9470 if test -n "$READELF"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9472 $as_echo "$READELF" >&6; }
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9482 for ncn_progname in readelf; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487 $as_echo_n "checking for $ac_word... " >&6; }
9488 if test "${ac_cv_prog_READELF+set}" = set; then :
9489 $as_echo_n "(cached) " >&6
9491 if test -n "$READELF"; then
9492 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9501 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 READELF=$ac_cv_prog_READELF
9512 if test -n "$READELF"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9514 $as_echo "$READELF" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9522 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if test "${ac_cv_prog_READELF+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9530 if test -n "$READELF"; then
9531 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_prog_READELF="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 READELF=$ac_cv_prog_READELF
9551 if test -n "$READELF"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9553 $as_echo "$READELF" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 test -n "$ac_cv_prog_READELF" && break
9564 if test -z "$ac_cv_prog_READELF" ; then
9566 if test $build = $host ; then
9569 READELF="${ncn_tool_prefix}$2"
9580 # Check whether --with-build-time-tools was given.
9581 if test "${with_build_time_tools+set}" = set; then :
9582 withval=$with_build_time_tools; case x"$withval" in
9585 with_build_time_tools=
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9587 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9591 with_build_time_tools=
9597 if test -n "$CC_FOR_TARGET"; then
9598 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9599 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9600 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9603 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9604 for ncn_progname in cc gcc; do
9605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9606 set dummy ${ncn_progname}; ac_word=$2
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 $as_echo_n "checking for $ac_word... " >&6; }
9609 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9612 if test -n "$CC_FOR_TARGET"; then
9613 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9622 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9633 if test -n "$CC_FOR_TARGET"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9635 $as_echo "$CC_FOR_TARGET" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9645 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9646 for ncn_progname in cc gcc; do
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9649 if test -x $with_build_time_tools/${ncn_progname}; then
9650 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9652 $as_echo "yes" >&6; }
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9661 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9662 for ncn_progname in cc gcc; do
9663 if test -n "$ncn_target_tool_prefix"; then
9664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9671 if test -n "$CC_FOR_TARGET"; then
9672 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9681 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9691 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9692 if test -n "$CC_FOR_TARGET"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9694 $as_echo "$CC_FOR_TARGET" >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9702 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704 set dummy ${ncn_progname}; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9710 if test -n "$CC_FOR_TARGET"; then
9711 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9731 if test -n "$CC_FOR_TARGET"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9733 $as_echo "$CC_FOR_TARGET" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9741 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9745 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9747 if test $build = $target ; then
9750 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9753 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9758 if test -n "$CXX_FOR_TARGET"; then
9759 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9760 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9761 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9764 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9765 for ncn_progname in c++ g++ cxx gxx; do
9766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9767 set dummy ${ncn_progname}; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9773 if test -n "$CXX_FOR_TARGET"; then
9774 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9783 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9794 if test -n "$CXX_FOR_TARGET"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9796 $as_echo "$CXX_FOR_TARGET" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9806 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9807 for ncn_progname in c++ g++ cxx gxx; do
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9809 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9810 if test -x $with_build_time_tools/${ncn_progname}; then
9811 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9813 $as_echo "yes" >&6; }
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9822 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9823 for ncn_progname in c++ g++ cxx gxx; do
9824 if test -n "$ncn_target_tool_prefix"; then
9825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
9832 if test -n "$CXX_FOR_TARGET"; then
9833 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9853 if test -n "$CXX_FOR_TARGET"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9855 $as_echo "$CXX_FOR_TARGET" >&6; }
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9863 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9865 set dummy ${ncn_progname}; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9871 if test -n "$CXX_FOR_TARGET"; then
9872 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9892 if test -n "$CXX_FOR_TARGET"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9894 $as_echo "$CXX_FOR_TARGET" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9902 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9906 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9907 set dummy c++ g++ cxx gxx
9908 if test $build = $target ; then
9911 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9914 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9919 if test -n "$GCC_FOR_TARGET"; then
9920 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9921 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9922 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9925 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9926 for ncn_progname in gcc; do
9927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9928 set dummy ${ncn_progname}; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9934 if test -n "$GCC_FOR_TARGET"; then
9935 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9955 if test -n "$GCC_FOR_TARGET"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9957 $as_echo "$GCC_FOR_TARGET" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9967 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9968 for ncn_progname in gcc; do
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9970 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9971 if test -x $with_build_time_tools/${ncn_progname}; then
9972 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9974 $as_echo "yes" >&6; }
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9983 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9984 for ncn_progname in gcc; do
9985 if test -n "$ncn_target_tool_prefix"; then
9986 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9987 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9989 $as_echo_n "checking for $ac_word... " >&6; }
9990 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9991 $as_echo_n "(cached) " >&6
9993 if test -n "$GCC_FOR_TARGET"; then
9994 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 test -z "$as_dir" && as_dir=.
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10003 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10014 if test -n "$GCC_FOR_TARGET"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10016 $as_echo "$GCC_FOR_TARGET" >&6; }
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10024 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10026 set dummy ${ncn_progname}; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
10032 if test -n "$GCC_FOR_TARGET"; then
10033 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10042 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10053 if test -n "$GCC_FOR_TARGET"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10055 $as_echo "$GCC_FOR_TARGET" >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10063 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10067 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10068 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10070 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10075 if test -n "$GCJ_FOR_TARGET"; then
10076 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10077 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10078 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10081 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10082 for ncn_progname in gcj; do
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084 set dummy ${ncn_progname}; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10090 if test -n "$GCJ_FOR_TARGET"; then
10091 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10111 if test -n "$GCJ_FOR_TARGET"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10113 $as_echo "$GCJ_FOR_TARGET" >&6; }
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10123 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10124 for ncn_progname in gcj; do
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10127 if test -x $with_build_time_tools/${ncn_progname}; then
10128 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130 $as_echo "yes" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10139 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10140 for ncn_progname in gcj; do
10141 if test -n "$ncn_target_tool_prefix"; then
10142 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10143 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10149 if test -n "$GCJ_FOR_TARGET"; then
10150 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10170 if test -n "$GCJ_FOR_TARGET"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10172 $as_echo "$GCJ_FOR_TARGET" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10180 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182 set dummy ${ncn_progname}; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10188 if test -n "$GCJ_FOR_TARGET"; then
10189 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10209 if test -n "$GCJ_FOR_TARGET"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10211 $as_echo "$GCJ_FOR_TARGET" >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10219 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10223 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10225 if test $build = $target ; then
10226 GCJ_FOR_TARGET="$2"
10228 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10231 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10236 if test -n "$GFORTRAN_FOR_TARGET"; then
10237 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10238 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10239 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10242 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10243 for ncn_progname in gfortran; do
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245 set dummy ${ncn_progname}; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10251 if test -n "$GFORTRAN_FOR_TARGET"; then
10252 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10272 if test -n "$GFORTRAN_FOR_TARGET"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10274 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10284 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10285 for ncn_progname in gfortran; do
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10288 if test -x $with_build_time_tools/${ncn_progname}; then
10289 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291 $as_echo "yes" >&6; }
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10300 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10301 for ncn_progname in gfortran; do
10302 if test -n "$ncn_target_tool_prefix"; then
10303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10310 if test -n "$GFORTRAN_FOR_TARGET"; then
10311 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10331 if test -n "$GFORTRAN_FOR_TARGET"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10333 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10341 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343 set dummy ${ncn_progname}; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
10349 if test -n "$GFORTRAN_FOR_TARGET"; then
10350 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10370 if test -n "$GFORTRAN_FOR_TARGET"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10372 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10380 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10384 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10386 if test $build = $target ; then
10387 GFORTRAN_FOR_TARGET="$2"
10389 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10392 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10397 if test -n "$GOC_FOR_TARGET"; then
10398 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10399 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10400 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10403 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10404 for ncn_progname in gccgo; do
10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10406 set dummy ${ncn_progname}; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 $as_echo_n "checking for $ac_word... " >&6; }
10409 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10412 if test -n "$GOC_FOR_TARGET"; then
10413 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10422 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10433 if test -n "$GOC_FOR_TARGET"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10435 $as_echo "$GOC_FOR_TARGET" >&6; }
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10445 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10446 for ncn_progname in gccgo; do
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10449 if test -x $with_build_time_tools/${ncn_progname}; then
10450 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452 $as_echo "yes" >&6; }
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10461 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10462 for ncn_progname in gccgo; do
10463 if test -n "$ncn_target_tool_prefix"; then
10464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10471 if test -n "$GOC_FOR_TARGET"; then
10472 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10492 if test -n "$GOC_FOR_TARGET"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10494 $as_echo "$GOC_FOR_TARGET" >&6; }
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10502 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10504 set dummy ${ncn_progname}; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10510 if test -n "$GOC_FOR_TARGET"; then
10511 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10531 if test -n "$GOC_FOR_TARGET"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10533 $as_echo "$GOC_FOR_TARGET" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10541 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10545 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10547 if test $build = $target ; then
10548 GOC_FOR_TARGET="$2"
10550 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10553 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10558 cat > conftest.c << \EOF
10563 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10564 have_gcc_for_target=yes
10566 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10567 have_gcc_for_target=no
10574 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10575 if test -n "$with_build_time_tools"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10577 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10578 if test -x $with_build_time_tools/ar; then
10579 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10580 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10582 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10587 elif test $build != $host && test $have_gcc_for_target = yes; then
10588 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10589 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10590 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10593 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10594 # Extract the first word of "ar", so it can be a program name with args.
10595 set dummy ar; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10601 case $AR_FOR_TARGET in
10603 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607 for as_dir in $gcc_cv_tool_dirs
10610 test -z "$as_dir" && as_dir=.
10611 for ac_exec_ext in '' $ac_executable_extensions; do
10612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10613 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10625 if test -n "$AR_FOR_TARGET"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10627 $as_echo "$AR_FOR_TARGET" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10635 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10638 if test -n "$AR_FOR_TARGET"; then
10639 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10640 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10641 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10644 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10645 for ncn_progname in ar; do
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_progname}; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10653 if test -n "$AR_FOR_TARGET"; then
10654 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10674 if test -n "$AR_FOR_TARGET"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10676 $as_echo "$AR_FOR_TARGET" >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10686 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10687 for ncn_progname in ar; do
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10689 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10690 if test -x $with_build_time_tools/${ncn_progname}; then
10691 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693 $as_echo "yes" >&6; }
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10702 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10703 for ncn_progname in ar; do
10704 if test -n "$ncn_target_tool_prefix"; then
10705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10712 if test -n "$AR_FOR_TARGET"; then
10713 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10733 if test -n "$AR_FOR_TARGET"; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10735 $as_echo "$AR_FOR_TARGET" >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
10743 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10751 if test -n "$AR_FOR_TARGET"; then
10752 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10772 if test -n "$AR_FOR_TARGET"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10774 $as_echo "$AR_FOR_TARGET" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10786 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10788 if test $build = $target ; then
10791 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10794 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10798 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10804 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10805 if test -n "$with_build_time_tools"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10807 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10808 if test -x $with_build_time_tools/as; then
10809 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10810 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10812 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10817 elif test $build != $host && test $have_gcc_for_target = yes; then
10818 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10819 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10820 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10823 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10824 # Extract the first word of "as", so it can be a program name with args.
10825 set dummy as; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10831 case $AS_FOR_TARGET in
10833 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $gcc_cv_tool_dirs
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10855 if test -n "$AS_FOR_TARGET"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10857 $as_echo "$AS_FOR_TARGET" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10865 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10868 if test -n "$AS_FOR_TARGET"; then
10869 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10870 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10871 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10874 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10875 for ncn_progname in as; do
10876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10877 set dummy ${ncn_progname}; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10883 if test -n "$AS_FOR_TARGET"; then
10884 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10893 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10904 if test -n "$AS_FOR_TARGET"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10906 $as_echo "$AS_FOR_TARGET" >&6; }
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10916 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10917 for ncn_progname in as; do
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10919 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10920 if test -x $with_build_time_tools/${ncn_progname}; then
10921 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923 $as_echo "yes" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10932 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10933 for ncn_progname in as; do
10934 if test -n "$ncn_target_tool_prefix"; then
10935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10936 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10942 if test -n "$AS_FOR_TARGET"; then
10943 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10963 if test -n "$AS_FOR_TARGET"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10965 $as_echo "$AS_FOR_TARGET" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10973 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10981 if test -n "$AS_FOR_TARGET"; then
10982 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11002 if test -n "$AS_FOR_TARGET"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11004 $as_echo "$AS_FOR_TARGET" >&6; }
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11012 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11016 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11018 if test $build = $target ; then
11021 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11024 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11028 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11034 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11035 if test -n "$with_build_time_tools"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11037 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11038 if test -x $with_build_time_tools/dlltool; then
11039 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11040 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11042 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11047 elif test $build != $host && test $have_gcc_for_target = yes; then
11048 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11049 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11050 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11053 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11054 # Extract the first word of "dlltool", so it can be a program name with args.
11055 set dummy dlltool; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11061 case $DLLTOOL_FOR_TARGET in
11063 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $gcc_cv_tool_dirs
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11085 if test -n "$DLLTOOL_FOR_TARGET"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11087 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11095 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11098 if test -n "$DLLTOOL_FOR_TARGET"; then
11099 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11100 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11101 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11104 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11105 for ncn_progname in dlltool; do
11106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11107 set dummy ${ncn_progname}; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11113 if test -n "$DLLTOOL_FOR_TARGET"; then
11114 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11134 if test -n "$DLLTOOL_FOR_TARGET"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11136 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11146 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11147 for ncn_progname in dlltool; do
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11149 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11150 if test -x $with_build_time_tools/${ncn_progname}; then
11151 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11162 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11163 for ncn_progname in dlltool; do
11164 if test -n "$ncn_target_tool_prefix"; then
11165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11166 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11172 if test -n "$DLLTOOL_FOR_TARGET"; then
11173 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11193 if test -n "$DLLTOOL_FOR_TARGET"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11195 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11203 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11211 if test -n "$DLLTOOL_FOR_TARGET"; then
11212 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11221 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11232 if test -n "$DLLTOOL_FOR_TARGET"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11234 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11242 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11246 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11248 if test $build = $target ; then
11249 DLLTOOL_FOR_TARGET="$2"
11251 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11254 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11258 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11264 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11265 if test -n "$with_build_time_tools"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11267 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11268 if test -x $with_build_time_tools/ld; then
11269 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11270 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11272 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11277 elif test $build != $host && test $have_gcc_for_target = yes; then
11278 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11279 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11280 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11283 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11284 # Extract the first word of "ld", so it can be a program name with args.
11285 set dummy ld; ac_word=$2
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287 $as_echo_n "checking for $ac_word... " >&6; }
11288 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11291 case $LD_FOR_TARGET in
11293 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $gcc_cv_tool_dirs
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11303 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11315 if test -n "$LD_FOR_TARGET"; then
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11317 $as_echo "$LD_FOR_TARGET" >&6; }
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11325 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11328 if test -n "$LD_FOR_TARGET"; then
11329 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11330 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11331 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11334 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11335 for ncn_progname in ld; do
11336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11337 set dummy ${ncn_progname}; ac_word=$2
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339 $as_echo_n "checking for $ac_word... " >&6; }
11340 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11343 if test -n "$LD_FOR_TARGET"; then
11344 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11353 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11364 if test -n "$LD_FOR_TARGET"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11366 $as_echo "$LD_FOR_TARGET" >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11376 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11377 for ncn_progname in ld; do
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11379 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11380 if test -x $with_build_time_tools/${ncn_progname}; then
11381 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383 $as_echo "yes" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11392 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11393 for ncn_progname in ld; do
11394 if test -n "$ncn_target_tool_prefix"; then
11395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11402 if test -n "$LD_FOR_TARGET"; then
11403 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11423 if test -n "$LD_FOR_TARGET"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11425 $as_echo "$LD_FOR_TARGET" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435 set dummy ${ncn_progname}; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11441 if test -n "$LD_FOR_TARGET"; then
11442 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11462 if test -n "$LD_FOR_TARGET"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11464 $as_echo "$LD_FOR_TARGET" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11472 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11476 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11478 if test $build = $target ; then
11481 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11484 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11488 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11494 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11495 if test -n "$with_build_time_tools"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11497 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11498 if test -x $with_build_time_tools/lipo; then
11499 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11500 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11502 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11507 elif test $build != $host && test $have_gcc_for_target = yes; then
11508 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11509 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11510 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11513 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11514 # Extract the first word of "lipo", so it can be a program name with args.
11515 set dummy lipo; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11521 case $LIPO_FOR_TARGET in
11523 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $gcc_cv_tool_dirs
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11545 if test -n "$LIPO_FOR_TARGET"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11547 $as_echo "$LIPO_FOR_TARGET" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11555 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11558 if test -n "$LIPO_FOR_TARGET"; then
11559 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11560 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11561 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11564 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11565 for ncn_progname in lipo; do
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567 set dummy ${ncn_progname}; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11573 if test -n "$LIPO_FOR_TARGET"; then
11574 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11583 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11594 if test -n "$LIPO_FOR_TARGET"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11596 $as_echo "$LIPO_FOR_TARGET" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11606 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11607 for ncn_progname in lipo; do
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11609 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11610 if test -x $with_build_time_tools/${ncn_progname}; then
11611 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613 $as_echo "yes" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11622 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11623 for ncn_progname in lipo; do
11624 if test -n "$ncn_target_tool_prefix"; then
11625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11626 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11632 if test -n "$LIPO_FOR_TARGET"; then
11633 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11653 if test -n "$LIPO_FOR_TARGET"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11655 $as_echo "$LIPO_FOR_TARGET" >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11663 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11671 if test -n "$LIPO_FOR_TARGET"; then
11672 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11692 if test -n "$LIPO_FOR_TARGET"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11694 $as_echo "$LIPO_FOR_TARGET" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11702 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11706 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11708 if test $build = $target ; then
11709 LIPO_FOR_TARGET="$2"
11711 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11714 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11718 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11724 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11725 if test -n "$with_build_time_tools"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11727 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11728 if test -x $with_build_time_tools/nm; then
11729 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11730 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11732 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735 $as_echo "no" >&6; }
11737 elif test $build != $host && test $have_gcc_for_target = yes; then
11738 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11739 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11740 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11743 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11744 # Extract the first word of "nm", so it can be a program name with args.
11745 set dummy nm; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11751 case $NM_FOR_TARGET in
11753 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $gcc_cv_tool_dirs
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11763 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11775 if test -n "$NM_FOR_TARGET"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11777 $as_echo "$NM_FOR_TARGET" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11785 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11788 if test -n "$NM_FOR_TARGET"; then
11789 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11790 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11791 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11794 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11795 for ncn_progname in nm; do
11796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11797 set dummy ${ncn_progname}; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11803 if test -n "$NM_FOR_TARGET"; then
11804 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11824 if test -n "$NM_FOR_TARGET"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11826 $as_echo "$NM_FOR_TARGET" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11836 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11837 for ncn_progname in nm; do
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11839 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11840 if test -x $with_build_time_tools/${ncn_progname}; then
11841 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843 $as_echo "yes" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11852 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11853 for ncn_progname in nm; do
11854 if test -n "$ncn_target_tool_prefix"; then
11855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11856 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11862 if test -n "$NM_FOR_TARGET"; then
11863 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11883 if test -n "$NM_FOR_TARGET"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11885 $as_echo "$NM_FOR_TARGET" >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11893 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11895 set dummy ${ncn_progname}; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11901 if test -n "$NM_FOR_TARGET"; then
11902 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11922 if test -n "$NM_FOR_TARGET"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11924 $as_echo "$NM_FOR_TARGET" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11932 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11936 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11938 if test $build = $target ; then
11941 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11944 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11948 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11954 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11955 if test -n "$with_build_time_tools"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11957 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11958 if test -x $with_build_time_tools/objdump; then
11959 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11960 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11962 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11967 elif test $build != $host && test $have_gcc_for_target = yes; then
11968 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11969 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11970 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11973 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11974 # Extract the first word of "objdump", so it can be a program name with args.
11975 set dummy objdump; ac_word=$2
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977 $as_echo_n "checking for $ac_word... " >&6; }
11978 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11981 case $OBJDUMP_FOR_TARGET in
11983 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $gcc_cv_tool_dirs
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11993 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12005 if test -n "$OBJDUMP_FOR_TARGET"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12007 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12015 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12018 if test -n "$OBJDUMP_FOR_TARGET"; then
12019 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12020 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12021 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12024 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12025 for ncn_progname in objdump; do
12026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12027 set dummy ${ncn_progname}; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
12033 if test -n "$OBJDUMP_FOR_TARGET"; then
12034 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12043 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12054 if test -n "$OBJDUMP_FOR_TARGET"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12056 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12066 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12067 for ncn_progname in objdump; do
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12069 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12070 if test -x $with_build_time_tools/${ncn_progname}; then
12071 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12082 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12083 for ncn_progname in objdump; do
12084 if test -n "$ncn_target_tool_prefix"; then
12085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12086 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12092 if test -n "$OBJDUMP_FOR_TARGET"; then
12093 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12113 if test -n "$OBJDUMP_FOR_TARGET"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12115 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12123 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12125 set dummy ${ncn_progname}; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12131 if test -n "$OBJDUMP_FOR_TARGET"; then
12132 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12152 if test -n "$OBJDUMP_FOR_TARGET"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12154 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12162 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12166 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12168 if test $build = $target ; then
12169 OBJDUMP_FOR_TARGET="$2"
12171 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12174 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12178 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12184 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12185 if test -n "$with_build_time_tools"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12187 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12188 if test -x $with_build_time_tools/ranlib; then
12189 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12190 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12192 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12197 elif test $build != $host && test $have_gcc_for_target = yes; then
12198 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12199 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12200 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12203 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12204 # Extract the first word of "ranlib", so it can be a program name with args.
12205 set dummy ranlib; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12211 case $RANLIB_FOR_TARGET in
12213 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $gcc_cv_tool_dirs
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12223 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12235 if test -n "$RANLIB_FOR_TARGET"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12237 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12248 if test -n "$RANLIB_FOR_TARGET"; then
12249 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12250 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12251 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12254 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12255 for ncn_progname in ranlib; do
12256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12257 set dummy ${ncn_progname}; ac_word=$2
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259 $as_echo_n "checking for $ac_word... " >&6; }
12260 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
12263 if test -n "$RANLIB_FOR_TARGET"; then
12264 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12273 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12284 if test -n "$RANLIB_FOR_TARGET"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12286 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12296 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12297 for ncn_progname in ranlib; do
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12299 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12300 if test -x $with_build_time_tools/${ncn_progname}; then
12301 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12312 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12313 for ncn_progname in ranlib; do
12314 if test -n "$ncn_target_tool_prefix"; then
12315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12316 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12322 if test -n "$RANLIB_FOR_TARGET"; then
12323 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12343 if test -n "$RANLIB_FOR_TARGET"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12345 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12353 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12355 set dummy ${ncn_progname}; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12361 if test -n "$RANLIB_FOR_TARGET"; then
12362 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12382 if test -n "$RANLIB_FOR_TARGET"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12384 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12392 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12396 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12398 if test $build = $target ; then
12399 RANLIB_FOR_TARGET="$2"
12401 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12404 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12408 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12414 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12415 if test -n "$with_build_time_tools"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12417 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12418 if test -x $with_build_time_tools/readelf; then
12419 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12420 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12422 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12427 elif test $build != $host && test $have_gcc_for_target = yes; then
12428 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12429 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12430 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12433 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12434 # Extract the first word of "readelf", so it can be a program name with args.
12435 set dummy readelf; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12441 case $READELF_FOR_TARGET in
12443 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $gcc_cv_tool_dirs
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12453 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12465 if test -n "$READELF_FOR_TARGET"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12467 $as_echo "$READELF_FOR_TARGET" >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12475 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12478 if test -n "$READELF_FOR_TARGET"; then
12479 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12480 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12481 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12484 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12485 for ncn_progname in readelf; do
12486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12487 set dummy ${ncn_progname}; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 if test -n "$READELF_FOR_TARGET"; then
12494 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in $PATH
12500 test -z "$as_dir" && as_dir=.
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12503 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12514 if test -n "$READELF_FOR_TARGET"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12516 $as_echo "$READELF_FOR_TARGET" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12526 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12527 for ncn_progname in readelf; do
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12529 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12530 if test -x $with_build_time_tools/${ncn_progname}; then
12531 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 $as_echo "no" >&6; }
12542 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12543 for ncn_progname in readelf; do
12544 if test -n "$ncn_target_tool_prefix"; then
12545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12552 if test -n "$READELF_FOR_TARGET"; then
12553 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12573 if test -n "$READELF_FOR_TARGET"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12575 $as_echo "$READELF_FOR_TARGET" >&6; }
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12583 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585 set dummy ${ncn_progname}; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12591 if test -n "$READELF_FOR_TARGET"; then
12592 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12612 if test -n "$READELF_FOR_TARGET"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12614 $as_echo "$READELF_FOR_TARGET" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12622 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12626 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12628 if test $build = $target ; then
12629 READELF_FOR_TARGET="$2"
12631 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12634 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12638 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12644 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12645 if test -n "$with_build_time_tools"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12647 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12648 if test -x $with_build_time_tools/strip; then
12649 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12650 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12652 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12657 elif test $build != $host && test $have_gcc_for_target = yes; then
12658 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12659 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12660 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12663 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12664 # Extract the first word of "strip", so it can be a program name with args.
12665 set dummy strip; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12671 case $STRIP_FOR_TARGET in
12673 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $gcc_cv_tool_dirs
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12695 if test -n "$STRIP_FOR_TARGET"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12697 $as_echo "$STRIP_FOR_TARGET" >&6; }
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12705 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12708 if test -n "$STRIP_FOR_TARGET"; then
12709 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12710 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12714 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12715 for ncn_progname in strip; do
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12723 if test -n "$STRIP_FOR_TARGET"; then
12724 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12733 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12744 if test -n "$STRIP_FOR_TARGET"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12746 $as_echo "$STRIP_FOR_TARGET" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12756 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12757 for ncn_progname in strip; do
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12759 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12760 if test -x $with_build_time_tools/${ncn_progname}; then
12761 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 $as_echo "yes" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12773 for ncn_progname in strip; do
12774 if test -n "$ncn_target_tool_prefix"; then
12775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12782 if test -n "$STRIP_FOR_TARGET"; then
12783 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12803 if test -n "$STRIP_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12805 $as_echo "$STRIP_FOR_TARGET" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12813 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815 set dummy ${ncn_progname}; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12821 if test -n "$STRIP_FOR_TARGET"; then
12822 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12842 if test -n "$STRIP_FOR_TARGET"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12844 $as_echo "$STRIP_FOR_TARGET" >&6; }
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12852 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12856 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12858 if test $build = $target ; then
12859 STRIP_FOR_TARGET="$2"
12861 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12864 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12868 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12874 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12875 if test -n "$with_build_time_tools"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12877 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12878 if test -x $with_build_time_tools/windres; then
12879 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12880 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12882 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12887 elif test $build != $host && test $have_gcc_for_target = yes; then
12888 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12889 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12890 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12893 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12894 # Extract the first word of "windres", so it can be a program name with args.
12895 set dummy windres; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 case $WINDRES_FOR_TARGET in
12903 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $gcc_cv_tool_dirs
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12913 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12925 if test -n "$WINDRES_FOR_TARGET"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12927 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12935 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12938 if test -n "$WINDRES_FOR_TARGET"; then
12939 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12940 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12944 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12945 for ncn_progname in windres; do
12946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12947 set dummy ${ncn_progname}; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12953 if test -n "$WINDRES_FOR_TARGET"; then
12954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12974 if test -n "$WINDRES_FOR_TARGET"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12976 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12986 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12987 for ncn_progname in windres; do
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12989 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12990 if test -x $with_build_time_tools/${ncn_progname}; then
12991 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993 $as_echo "yes" >&6; }
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13002 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13003 for ncn_progname in windres; do
13004 if test -n "$ncn_target_tool_prefix"; then
13005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13006 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 if test -n "$WINDRES_FOR_TARGET"; then
13013 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13033 if test -n "$WINDRES_FOR_TARGET"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13035 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13043 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13045 set dummy ${ncn_progname}; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13051 if test -n "$WINDRES_FOR_TARGET"; then
13052 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13072 if test -n "$WINDRES_FOR_TARGET"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13074 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13082 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13086 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13088 if test $build = $target ; then
13089 WINDRES_FOR_TARGET="$2"
13091 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13094 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13098 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13104 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13105 if test -n "$with_build_time_tools"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13107 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13108 if test -x $with_build_time_tools/windmc; then
13109 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13110 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13112 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13117 elif test $build != $host && test $have_gcc_for_target = yes; then
13118 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13119 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13120 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13123 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13124 # Extract the first word of "windmc", so it can be a program name with args.
13125 set dummy windmc; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
13131 case $WINDMC_FOR_TARGET in
13133 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $gcc_cv_tool_dirs
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13155 if test -n "$WINDMC_FOR_TARGET"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13157 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13165 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13168 if test -n "$WINDMC_FOR_TARGET"; then
13169 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13170 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13174 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13175 for ncn_progname in windmc; do
13176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13177 set dummy ${ncn_progname}; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13183 if test -n "$WINDMC_FOR_TARGET"; then
13184 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13204 if test -n "$WINDMC_FOR_TARGET"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13206 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13216 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13217 for ncn_progname in windmc; do
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13219 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13220 if test -x $with_build_time_tools/${ncn_progname}; then
13221 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223 $as_echo "yes" >&6; }
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13232 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13233 for ncn_progname in windmc; do
13234 if test -n "$ncn_target_tool_prefix"; then
13235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13236 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13242 if test -n "$WINDMC_FOR_TARGET"; then
13243 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13263 if test -n "$WINDMC_FOR_TARGET"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13265 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13273 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13275 set dummy ${ncn_progname}; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13281 if test -n "$WINDMC_FOR_TARGET"; then
13282 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13302 if test -n "$WINDMC_FOR_TARGET"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13304 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13312 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13316 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13318 if test $build = $target ; then
13319 WINDMC_FOR_TARGET="$2"
13321 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13324 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13328 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13332 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13335 $as_echo_n "checking where to find the target ar... " >&6; }
13336 if test "x${build}" != "x${host}" ; then
13337 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13338 # We already found the complete path
13339 ac_dir=`dirname $AR_FOR_TARGET`
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13341 $as_echo "pre-installed in $ac_dir" >&6; }
13343 # Canadian cross, just use what we found
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13345 $as_echo "pre-installed" >&6; }
13349 case " ${configdirs} " in
13354 if test $ok = yes; then
13355 # An in-tree tool is available and we can use it
13356 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13358 $as_echo "just compiled" >&6; }
13359 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
13361 ac_dir=`dirname $AR_FOR_TARGET`
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363 $as_echo "pre-installed in $ac_dir" >&6; }
13364 elif test "x$target" = "x$host"; then
13365 # We can use an host tool
13366 AR_FOR_TARGET='$(AR)'
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13368 $as_echo "host tool" >&6; }
13370 # We need a cross tool
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372 $as_echo "pre-installed" >&6; }
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13377 $as_echo_n "checking where to find the target as... " >&6; }
13378 if test "x${build}" != "x${host}" ; then
13379 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
13381 ac_dir=`dirname $AS_FOR_TARGET`
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383 $as_echo "pre-installed in $ac_dir" >&6; }
13385 # Canadian cross, just use what we found
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13387 $as_echo "pre-installed" >&6; }
13391 case " ${configdirs} " in
13396 if test $ok = yes; then
13397 # An in-tree tool is available and we can use it
13398 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13400 $as_echo "just compiled" >&6; }
13401 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
13403 ac_dir=`dirname $AS_FOR_TARGET`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405 $as_echo "pre-installed in $ac_dir" >&6; }
13406 elif test "x$target" = "x$host"; then
13407 # We can use an host tool
13408 AS_FOR_TARGET='$(AS)'
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13410 $as_echo "host tool" >&6; }
13412 # We need a cross tool
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414 $as_echo "pre-installed" >&6; }
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13419 $as_echo_n "checking where to find the target cc... " >&6; }
13420 if test "x${build}" != "x${host}" ; then
13421 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
13423 ac_dir=`dirname $CC_FOR_TARGET`
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425 $as_echo "pre-installed in $ac_dir" >&6; }
13427 # Canadian cross, just use what we found
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13429 $as_echo "pre-installed" >&6; }
13433 case " ${configdirs} " in
13438 if test $ok = yes; then
13439 # An in-tree tool is available and we can use it
13440 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13442 $as_echo "just compiled" >&6; }
13443 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
13445 ac_dir=`dirname $CC_FOR_TARGET`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447 $as_echo "pre-installed in $ac_dir" >&6; }
13448 elif test "x$target" = "x$host"; then
13449 # We can use an host tool
13450 CC_FOR_TARGET='$(CC)'
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13452 $as_echo "host tool" >&6; }
13454 # We need a cross tool
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13456 $as_echo "pre-installed" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13461 $as_echo_n "checking where to find the target c++... " >&6; }
13462 if test "x${build}" != "x${host}" ; then
13463 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
13465 ac_dir=`dirname $CXX_FOR_TARGET`
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467 $as_echo "pre-installed in $ac_dir" >&6; }
13469 # Canadian cross, just use what we found
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13471 $as_echo "pre-installed" >&6; }
13475 case " ${configdirs} " in
13479 case ,${enable_languages}, in
13483 if test $ok = yes; then
13484 # An in-tree tool is available and we can use it
13485 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13487 $as_echo "just compiled" >&6; }
13488 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
13490 ac_dir=`dirname $CXX_FOR_TARGET`
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492 $as_echo "pre-installed in $ac_dir" >&6; }
13493 elif test "x$target" = "x$host"; then
13494 # We can use an host tool
13495 CXX_FOR_TARGET='$(CXX)'
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13497 $as_echo "host tool" >&6; }
13499 # We need a cross tool
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501 $as_echo "pre-installed" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13506 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13507 if test "x${build}" != "x${host}" ; then
13508 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
13510 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512 $as_echo "pre-installed in $ac_dir" >&6; }
13514 # Canadian cross, just use what we found
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13516 $as_echo "pre-installed" >&6; }
13520 case " ${configdirs} " in
13524 case ,${enable_languages}, in
13528 if test $ok = yes; then
13529 # An in-tree tool is available and we can use it
13530 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'
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532 $as_echo "just compiled" >&6; }
13533 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
13535 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537 $as_echo "pre-installed in $ac_dir" >&6; }
13538 elif test "x$target" = "x$host"; then
13539 # We can use an host tool
13540 RAW_CXX_FOR_TARGET='$(CXX)'
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542 $as_echo "host tool" >&6; }
13544 # We need a cross tool
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546 $as_echo "pre-installed" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13551 $as_echo_n "checking where to find the target dlltool... " >&6; }
13552 if test "x${build}" != "x${host}" ; then
13553 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
13555 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557 $as_echo "pre-installed in $ac_dir" >&6; }
13559 # Canadian cross, just use what we found
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561 $as_echo "pre-installed" >&6; }
13565 case " ${configdirs} " in
13570 if test $ok = yes; then
13571 # An in-tree tool is available and we can use it
13572 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13574 $as_echo "just compiled" >&6; }
13575 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13576 # We already found the complete path
13577 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13579 $as_echo "pre-installed in $ac_dir" >&6; }
13580 elif test "x$target" = "x$host"; then
13581 # We can use an host tool
13582 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13584 $as_echo "host tool" >&6; }
13586 # We need a cross tool
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13588 $as_echo "pre-installed" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13593 $as_echo_n "checking where to find the target gcc... " >&6; }
13594 if test "x${build}" != "x${host}" ; then
13595 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13596 # We already found the complete path
13597 ac_dir=`dirname $GCC_FOR_TARGET`
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599 $as_echo "pre-installed in $ac_dir" >&6; }
13601 # Canadian cross, just use what we found
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603 $as_echo "pre-installed" >&6; }
13607 case " ${configdirs} " in
13612 if test $ok = yes; then
13613 # An in-tree tool is available and we can use it
13614 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13616 $as_echo "just compiled" >&6; }
13617 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13618 # We already found the complete path
13619 ac_dir=`dirname $GCC_FOR_TARGET`
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13621 $as_echo "pre-installed in $ac_dir" >&6; }
13622 elif test "x$target" = "x$host"; then
13623 # We can use an host tool
13624 GCC_FOR_TARGET='$()'
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13626 $as_echo "host tool" >&6; }
13628 # We need a cross tool
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13630 $as_echo "pre-installed" >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13635 $as_echo_n "checking where to find the target gcj... " >&6; }
13636 if test "x${build}" != "x${host}" ; then
13637 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13638 # We already found the complete path
13639 ac_dir=`dirname $GCJ_FOR_TARGET`
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641 $as_echo "pre-installed in $ac_dir" >&6; }
13643 # Canadian cross, just use what we found
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13645 $as_echo "pre-installed" >&6; }
13649 case " ${configdirs} " in
13653 case ,${enable_languages}, in
13657 if test $ok = yes; then
13658 # An in-tree tool is available and we can use it
13659 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13661 $as_echo "just compiled" >&6; }
13662 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
13664 ac_dir=`dirname $GCJ_FOR_TARGET`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666 $as_echo "pre-installed in $ac_dir" >&6; }
13667 elif test "x$target" = "x$host"; then
13668 # We can use an host tool
13669 GCJ_FOR_TARGET='$(GCJ)'
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13671 $as_echo "host tool" >&6; }
13673 # We need a cross tool
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675 $as_echo "pre-installed" >&6; }
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13680 $as_echo_n "checking where to find the target gfortran... " >&6; }
13681 if test "x${build}" != "x${host}" ; then
13682 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
13684 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686 $as_echo "pre-installed in $ac_dir" >&6; }
13688 # Canadian cross, just use what we found
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690 $as_echo "pre-installed" >&6; }
13694 case " ${configdirs} " in
13698 case ,${enable_languages}, in
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706 $as_echo "just compiled" >&6; }
13707 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716 $as_echo "host tool" >&6; }
13718 # We need a cross tool
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720 $as_echo "pre-installed" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13725 $as_echo_n "checking where to find the target gccgo... " >&6; }
13726 if test "x${build}" != "x${host}" ; then
13727 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $GOC_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731 $as_echo "pre-installed in $ac_dir" >&6; }
13733 # Canadian cross, just use what we found
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13739 case " ${configdirs} " in
13743 case ,${enable_languages}, in
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
13749 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751 $as_echo "just compiled" >&6; }
13752 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $GOC_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756 $as_echo "pre-installed in $ac_dir" >&6; }
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 GOC_FOR_TARGET='$(GOC)'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761 $as_echo "host tool" >&6; }
13763 # We need a cross tool
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765 $as_echo "pre-installed" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13770 $as_echo_n "checking where to find the target ld... " >&6; }
13771 if test "x${build}" != "x${host}" ; then
13772 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
13774 ac_dir=`dirname $LD_FOR_TARGET`
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776 $as_echo "pre-installed in $ac_dir" >&6; }
13778 # Canadian cross, just use what we found
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780 $as_echo "pre-installed" >&6; }
13784 case " ${configdirs} " in
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793 $as_echo "just compiled" >&6; }
13794 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $LD_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 LD_FOR_TARGET='$(LD)'
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803 $as_echo "host tool" >&6; }
13805 # We need a cross tool
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807 $as_echo "pre-installed" >&6; }
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13812 $as_echo_n "checking where to find the target lipo... " >&6; }
13813 if test "x${build}" != "x${host}" ; then
13814 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
13816 ac_dir=`dirname $LIPO_FOR_TARGET`
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818 $as_echo "pre-installed in $ac_dir" >&6; }
13820 # Canadian cross, just use what we found
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13825 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13826 # We already found the complete path
13827 ac_dir=`dirname $LIPO_FOR_TARGET`
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829 $as_echo "pre-installed in $ac_dir" >&6; }
13830 elif test "x$target" = "x$host"; then
13831 # We can use an host tool
13832 LIPO_FOR_TARGET='$(LIPO)'
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13834 $as_echo "host tool" >&6; }
13836 # We need a cross tool
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838 $as_echo "pre-installed" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13843 $as_echo_n "checking where to find the target nm... " >&6; }
13844 if test "x${build}" != "x${host}" ; then
13845 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
13847 ac_dir=`dirname $NM_FOR_TARGET`
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849 $as_echo "pre-installed in $ac_dir" >&6; }
13851 # Canadian cross, just use what we found
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13857 case " ${configdirs} " in
13862 if test $ok = yes; then
13863 # An in-tree tool is available and we can use it
13864 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13866 $as_echo "just compiled" >&6; }
13867 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
13869 ac_dir=`dirname $NM_FOR_TARGET`
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871 $as_echo "pre-installed in $ac_dir" >&6; }
13872 elif test "x$target" = "x$host"; then
13873 # We can use an host tool
13874 NM_FOR_TARGET='$(NM)'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13876 $as_echo "host tool" >&6; }
13878 # We need a cross tool
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880 $as_echo "pre-installed" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13885 $as_echo_n "checking where to find the target objdump... " >&6; }
13886 if test "x${build}" != "x${host}" ; then
13887 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
13889 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891 $as_echo "pre-installed in $ac_dir" >&6; }
13893 # Canadian cross, just use what we found
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13899 case " ${configdirs} " in
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908 $as_echo "just compiled" >&6; }
13909 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
13911 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913 $as_echo "pre-installed in $ac_dir" >&6; }
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918 $as_echo "host tool" >&6; }
13920 # We need a cross tool
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922 $as_echo "pre-installed" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13927 $as_echo_n "checking where to find the target ranlib... " >&6; }
13928 if test "x${build}" != "x${host}" ; then
13929 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
13931 ac_dir=`dirname $RANLIB_FOR_TARGET`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933 $as_echo "pre-installed in $ac_dir" >&6; }
13935 # Canadian cross, just use what we found
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937 $as_echo "pre-installed" >&6; }
13941 case " ${configdirs} " in
13946 if test $ok = yes; then
13947 # An in-tree tool is available and we can use it
13948 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950 $as_echo "just compiled" >&6; }
13951 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
13953 ac_dir=`dirname $RANLIB_FOR_TARGET`
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955 $as_echo "pre-installed in $ac_dir" >&6; }
13956 elif test "x$target" = "x$host"; then
13957 # We can use an host tool
13958 RANLIB_FOR_TARGET='$(RANLIB)'
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960 $as_echo "host tool" >&6; }
13962 # We need a cross tool
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13969 $as_echo_n "checking where to find the target readelf... " >&6; }
13970 if test "x${build}" != "x${host}" ; then
13971 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $READELF_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975 $as_echo "pre-installed in $ac_dir" >&6; }
13977 # Canadian cross, just use what we found
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979 $as_echo "pre-installed" >&6; }
13983 case " ${configdirs} " in
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $READELF_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 READELF_FOR_TARGET='$(READELF)'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14004 # We need a cross tool
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14011 $as_echo_n "checking where to find the target strip... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $STRIP_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14019 # Canadian cross, just use what we found
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14025 case " ${configdirs} " in
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034 $as_echo "just compiled" >&6; }
14035 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $STRIP_FOR_TARGET`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 STRIP_FOR_TARGET='$(STRIP)'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044 $as_echo "host tool" >&6; }
14046 # We need a cross tool
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14053 $as_echo_n "checking where to find the target windres... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $WINDRES_FOR_TARGET`
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059 $as_echo "pre-installed in $ac_dir" >&6; }
14061 # Canadian cross, just use what we found
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14067 case " ${configdirs} " in
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $WINDRES_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 WINDRES_FOR_TARGET='$(WINDRES)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14095 $as_echo_n "checking where to find the target windmc... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $WINDMC_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14103 # Canadian cross, just use what we found
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14109 case " ${configdirs} " in
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $WINDMC_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 WINDMC_FOR_TARGET='$(WINDMC)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14140 # Certain tools may need extra flags.
14141 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14142 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14143 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14145 # When building target libraries, except in a Canadian cross, we use
14146 # the same toolchain as the compiler we just built.
14147 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14148 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14149 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14150 if test $host = $build; then
14151 case " $configdirs " in
14153 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14154 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14155 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14165 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14166 # Check whether --enable-maintainer-mode was given.
14167 if test "${enable_maintainer_mode+set}" = set; then :
14168 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14170 USE_MAINTAINER_MODE=no
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14174 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14177 if test "$USE_MAINTAINER_MODE" = yes; then
14178 MAINTAINER_MODE_TRUE=
14179 MAINTAINER_MODE_FALSE='#'
14181 MAINTAINER_MODE_TRUE='#'
14182 MAINTAINER_MODE_FALSE=
14184 MAINT=$MAINTAINER_MODE_TRUE
14186 # ---------------------
14187 # GCC bootstrap support
14188 # ---------------------
14190 # Stage specific cflags for build.
14195 yes) stage1_cflags="-g -Wa,-J" ;;
14196 *) stage1_cflags="-g -J" ;;
14202 # Enable --enable-checking in stage1 of the compiler.
14203 # Check whether --enable-stage1-checking was given.
14204 if test "${enable_stage1_checking+set}" = set; then :
14205 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14207 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14208 stage1_checking=--enable-checking=yes,types
14210 stage1_checking=--enable-checking=$enable_checking,types
14216 # Enable -Werror in bootstrap stage2 and later.
14217 # Check whether --enable-werror was given.
14218 if test "${enable_werror+set}" = set; then :
14219 enableval=$enable_werror;
14221 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14228 case ${enable_werror} in
14229 yes) stage2_werror_flag="--enable-werror-always" ;;
14230 *) stage2_werror_flag="" ;;
14234 # Specify what files to not compare during bootstrap.
14236 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14238 hppa*64*-*-hpux*) ;;
14239 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14240 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14244 ac_config_files="$ac_config_files Makefile"
14246 cat >confcache <<\_ACEOF
14247 # This file is a shell script that caches the results of configure
14248 # tests run on this system so they can be shared between configure
14249 # scripts and configure runs, see configure's option --config-cache.
14250 # It is not useful on other systems. If it contains results you don't
14251 # want to keep, you may remove or edit it.
14253 # config.status only pays attention to the cache file if you give it
14254 # the --recheck option to rerun configure.
14256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14258 # following values.
14262 # The following way of writing the cache mishandles newlines in values,
14263 # but we know of no workaround that is simple, portable, and efficient.
14264 # So, we kill variables containing newlines.
14265 # Ultrix sh set writes to stderr and can't be redirected directly,
14266 # and sets the high bit in the cache file unless we assign to the vars.
14268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14269 eval ac_val=\$$ac_var
14273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14277 _ | IFS | as_nl) ;; #(
14278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14279 *) { eval $ac_var=; unset $ac_var;} ;;
14285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14286 *${as_nl}ac_space=\ *)
14287 # `set' does not quote correctly, so add quotes: double-quote
14288 # substitution turns \\\\ into \\, and sed turns \\ into \.
14291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14294 # `set' quotes correctly as required by POSIX, so do not add quotes.
14295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14309 if test -w "$cache_file"; then
14310 test "x$cache_file" != "x/dev/null" &&
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14312 $as_echo "$as_me: updating cache $cache_file" >&6;}
14313 cat confcache >$cache_file
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14322 # Let make expand exec_prefix.
14323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14325 # Transform confdefs.h into DEFS.
14326 # Protect against shell expansion while executing Makefile rules.
14327 # Protect against Makefile macro expansion.
14329 # If the first sed substitution is executed (which looks for macros that
14330 # take arguments), then branch to the quote section. Otherwise,
14331 # look for a macro that doesn't take arguments.
14341 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14343 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14347 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14360 DEFS=`sed -n "$ac_script" confdefs.h`
14365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14366 # 1. Remove the extension, and $U if already installed.
14367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14368 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14370 # will be set to the directory where LIBOBJS objects are built.
14371 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14372 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14374 LIBOBJS=$ac_libobjs
14376 LTLIBOBJS=$ac_ltlibobjs
14380 : ${CONFIG_STATUS=./config.status}
14382 ac_clean_files_save=$ac_clean_files
14383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14389 # Generated by $as_me.
14390 # Run this file to recreate the current configuration.
14391 # Compiler output produced by configure, useful for debugging
14392 # configure, is in config.log if it exists.
14395 ac_cs_recheck=false
14398 SHELL=\${CONFIG_SHELL-$SHELL}
14401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14402 ## -------------------- ##
14403 ## M4sh Initialization. ##
14404 ## -------------------- ##
14406 # Be more Bourne compatible
14407 DUALCASE=1; export DUALCASE # for MKS sh
14408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14412 # is contrary to our usage. Disable this feature.
14413 alias -g '${1+"$@"}'='"$@"'
14414 setopt NO_GLOB_SUBST
14416 case `(set -o) 2>/dev/null` in #(
14428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14432 # Prefer a ksh shell builtin over an external printf program on Solaris,
14433 # but without wasting forks for bash or zsh.
14434 if test -z "$BASH_VERSION$ZSH_VERSION" \
14435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14436 as_echo='print -r --'
14437 as_echo_n='print -rn --'
14438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14439 as_echo='printf %s\n'
14440 as_echo_n='printf %s'
14442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14444 as_echo_n='/usr/ucb/echo -n'
14446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14447 as_echo_n_body='eval
14451 expr "X$arg" : "X\\(.*\\)$as_nl";
14452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14456 export as_echo_n_body
14457 as_echo_n='sh -c $as_echo_n_body as_echo'
14459 export as_echo_body
14460 as_echo='sh -c $as_echo_body as_echo'
14463 # The user is always right.
14464 if test "${PATH_SEPARATOR+set}" != set; then
14466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14474 # We need space, tab and new line, in precisely that order. Quoting is
14475 # there to prevent editors from complaining about space-tab.
14476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14477 # splitting by setting IFS to empty value.)
14480 # Find who we are. Look in the path if we contain no directory separator.
14482 *[\\/]* ) as_myself=$0 ;;
14483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14494 # We did not find ourselves, most probably we were run as `sh COMMAND'
14495 # in which case we are not to be found in the path.
14496 if test "x$as_myself" = x; then
14499 if test ! -f "$as_myself"; then
14500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14504 # Unset variables that we do not need and which cause bugs (e.g. in
14505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14506 # suppresses any "Segmentation fault" message there. '((' could
14507 # trigger a bug in pdksh 5.2.14.
14508 for as_var in BASH_ENV ENV MAIL MAILPATH
14509 do eval test x\${$as_var+set} = xset \
14510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14526 # as_fn_error ERROR [LINENO LOG_FD]
14527 # ---------------------------------
14528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14530 # script with status $?, using 1 if that was 0.
14533 as_status=$?; test $as_status -eq 0 && as_status=1
14535 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14538 $as_echo "$as_me: error: $1" >&2
14539 as_fn_exit $as_status
14543 # as_fn_set_status STATUS
14544 # -----------------------
14545 # Set $? to STATUS, without forking.
14546 as_fn_set_status ()
14549 } # as_fn_set_status
14551 # as_fn_exit STATUS
14552 # -----------------
14553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14557 as_fn_set_status $1
14563 # Portably unset VAR.
14566 { eval $1=; unset $1;}
14568 as_unset=as_fn_unset
14569 # as_fn_append VAR VALUE
14570 # ----------------------
14571 # Append the text in VALUE to the end of the definition contained in VAR. Take
14572 # advantage of any shell optimizations that allow amortized linear growth over
14573 # repeated appends, instead of the typical quadratic growth present in naive
14575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14576 eval 'as_fn_append ()
14587 # as_fn_arith ARG...
14588 # ------------------
14589 # Perform arithmetic evaluation on the ARGs, and store the result in the
14590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14591 # must be portable across $(()) and expr.
14592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14593 eval 'as_fn_arith ()
14600 as_val=`expr "$@" || test $? -eq 1`
14605 if expr a : '\(a\)' >/dev/null 2>&1 &&
14606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14613 as_basename=basename
14618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14624 as_me=`$as_basename -- "$0" ||
14625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14626 X"$0" : 'X\(//\)$' \| \
14627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14629 sed '/^.*\/\([^/][^/]*\)\/*$/{
14643 # Avoid depending upon Character Ranges.
14644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14647 as_cr_digits='0123456789'
14648 as_cr_alnum=$as_cr_Letters$as_cr_digits
14650 ECHO_C= ECHO_N= ECHO_T=
14651 case `echo -n x` in #(((((
14653 case `echo 'xy\c'` in
14654 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14663 rm -f conf$$ conf$$.exe conf$$.file
14664 if test -d conf$$.dir; then
14665 rm -f conf$$.dir/conf$$.file
14668 mkdir conf$$.dir 2>/dev/null
14670 if (echo >conf$$.file) 2>/dev/null; then
14671 if ln -s conf$$.file conf$$ 2>/dev/null; then
14673 # ... but there are two gotchas:
14674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14676 # In both cases, we have to default to `cp -p'.
14677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14679 elif ln conf$$.file conf$$ 2>/dev/null; then
14687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14688 rmdir conf$$.dir 2>/dev/null
14693 # Create "$as_dir" as a directory, including parents if necessary.
14698 -*) as_dir=./$as_dir;;
14700 test -d "$as_dir" || eval $as_mkdir_p || {
14704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14705 *) as_qdir=$as_dir;;
14707 as_dirs="'$as_qdir' $as_dirs"
14708 as_dir=`$as_dirname -- "$as_dir" ||
14709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710 X"$as_dir" : 'X\(//\)[^/]' \| \
14711 X"$as_dir" : 'X\(//\)$' \| \
14712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14713 $as_echo X"$as_dir" |
14714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14718 /^X\(\/\/\)[^/].*/{
14731 test -d "$as_dir" && break
14733 test -z "$as_dirs" || eval "mkdir $as_dirs"
14734 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14738 if mkdir -p . 2>/dev/null; then
14739 as_mkdir_p='mkdir -p "$as_dir"'
14741 test -d ./-p && rmdir ./-p
14745 if test -x / >/dev/null 2>&1; then
14746 as_test_x='test -x'
14748 if ls -dL / >/dev/null 2>&1; then
14755 if test -d "$1"; then
14761 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14762 ???[sx]*):;;*)false;;esac;fi
14766 as_executable_p=$as_test_x
14768 # Sed expression to map a string onto a valid CPP name.
14769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14771 # Sed expression to map a string onto a valid variable name.
14772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14776 ## ----------------------------------- ##
14777 ## Main body of $CONFIG_STATUS script. ##
14778 ## ----------------------------------- ##
14780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14783 # Save the log message, to keep $0 and so on meaningful, and to
14784 # report actual input values of CONFIG_FILES etc. instead of their
14785 # values after options handling.
14787 This file was extended by $as_me, which was
14788 generated by GNU Autoconf 2.64. Invocation command line was
14790 CONFIG_FILES = $CONFIG_FILES
14791 CONFIG_HEADERS = $CONFIG_HEADERS
14792 CONFIG_LINKS = $CONFIG_LINKS
14793 CONFIG_COMMANDS = $CONFIG_COMMANDS
14796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14801 case $ac_config_files in *"
14802 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808 # Files that config.status was made for.
14809 config_files="$ac_config_files"
14813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815 \`$as_me' instantiates files and other configuration actions
14816 from templates according to the current configuration. Unless the files
14817 and actions are specified as TAGs, all are instantiated by default.
14819 Usage: $0 [OPTION]... [TAG]...
14821 -h, --help print this help, then exit
14822 -V, --version print version number and configuration settings, then exit
14823 -q, --quiet, --silent
14824 do not print progress messages
14825 -d, --debug don't remove temporary files
14826 --recheck update $as_me by reconfiguring in the same conditions
14827 --file=FILE[:TEMPLATE]
14828 instantiate the configuration file FILE
14830 Configuration files:
14833 Report bugs to the package provider."
14836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14839 configured by $0, generated by GNU Autoconf 2.64,
14840 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14842 Copyright (C) 2009 Free Software Foundation, Inc.
14843 This config.status script is free software; the Free Software Foundation
14844 gives unlimited permission to copy, distribute and modify it."
14850 test -n "\$AWK" || AWK=awk
14853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14854 # The default lists apply if the user does not specify any file.
14860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14872 # Handling of the options.
14873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14875 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14876 $as_echo "$ac_cs_version"; exit ;;
14877 --debug | --debu | --deb | --de | --d | -d )
14879 --file | --fil | --fi | --f )
14882 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14884 as_fn_append CONFIG_FILES " '$ac_optarg'"
14885 ac_need_defaults=false;;
14886 --he | --h | --help | --hel | -h )
14887 $as_echo "$ac_cs_usage"; exit ;;
14888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14892 # This is an error.
14893 -*) as_fn_error "unrecognized option: \`$1'
14894 Try \`$0 --help' for more information." ;;
14896 *) as_fn_append ac_config_targets " $1"
14897 ac_need_defaults=false ;;
14903 ac_configure_extra_args=
14905 if $ac_cs_silent; then
14907 ac_configure_extra_args="$ac_configure_extra_args --silent"
14911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912 if \$ac_cs_recheck; then
14913 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14916 CONFIG_SHELL='$SHELL'
14917 export CONFIG_SHELL
14922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14927 ## Running $as_me. ##
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14937 extrasub_build="$extrasub_build"
14938 extrasub_host="$extrasub_host"
14939 extrasub_target="$extrasub_target"
14943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14945 # Handling of arguments.
14946 for ac_config_target in $ac_config_targets
14948 case $ac_config_target in
14949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14951 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14956 # If the user did not use the arguments to specify the items to instantiate,
14957 # then the envvar interface is used. Set only those that are not.
14958 # We use the long form for the default assignment because of an extremely
14959 # bizarre bug on SunOS 4.1.3.
14960 if $ac_need_defaults; then
14961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14964 # Have a temporary directory for convenience. Make it in the build tree
14965 # simply because there is no reason against having it here, and in addition,
14966 # creating and moving files from /tmp can sometimes cause problems.
14967 # Hook for its removal unless debugging.
14968 # Note that there is a small window in which the directory will not be cleaned:
14969 # after its creation but before its name has been assigned to `$tmp'.
14973 trap 'exit_status=$?
14974 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14976 trap 'as_fn_exit 1' 1 2 13 15
14978 # Create a (secure) tmp directory for tmp files.
14981 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14982 test -n "$tmp" && test -d "$tmp"
14985 tmp=./conf$$-$RANDOM
14986 (umask 077 && mkdir "$tmp")
14987 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14989 # Set up the scripts for CONFIG_FILES section.
14990 # No need to generate them if there are no CONFIG_FILES.
14991 # This happens for instance with `./config.status config.h'.
14992 if test -n "$CONFIG_FILES"; then
14994 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14995 ac_cs_awk_getline=:
14996 ac_cs_awk_pipe_init=
14997 ac_cs_awk_read_file='
14998 while ((getline aline < (F[key])) > 0)
15001 ac_cs_awk_pipe_fini=
15003 ac_cs_awk_getline=false
15004 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15005 ac_cs_awk_read_file='
15007 print "cat " F[key] " &&"
15008 '$ac_cs_awk_pipe_init
15009 # The final `:' finishes the AND list.
15010 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15012 ac_cr=`echo X | tr X '\015'`
15013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15014 # But we know of no other shell where ac_cr would be empty at this
15015 # point, so we can use a bashism as a fallback.
15016 if test "x$ac_cr" = x; then
15017 eval ac_cr=\$\'\\r\'
15019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15023 ac_cs_awk_cr=$ac_cr
15026 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15029 # Create commands to substitute file output variables.
15031 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15032 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15033 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15036 } >conf$$files.sh &&
15037 . ./conf$$files.sh ||
15038 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15039 rm -f conf$$files.sh
15042 echo "cat >conf$$subs.awk <<_ACEOF" &&
15043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15045 } >conf$$subs.sh ||
15046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15049 for ac_last_try in false false false false false :; do
15050 . ./conf$$subs.sh ||
15051 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15054 if test $ac_delim_n = $ac_delim_num; then
15056 elif $ac_last_try; then
15057 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15062 rm -f conf$$subs.sh
15064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15065 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15069 s/^/S["/; s/!.*/"]=/
15079 s/\(.\{148\}\).*/\1/
15081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15093 s/\(.\{148\}\).*/\1/
15095 s/["\\]/\\&/g; s/^/"/; s/$/"/
15099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15104 ' <conf$$subs.awk | sed '
15109 ' >>$CONFIG_STATUS || ac_write_fail=1
15110 rm -f conf$$subs.awk
15111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15114 for (key in S) S_is_set[key] = 1
15116 \$ac_cs_awk_pipe_init
15120 nfields = split(line, field, "@")
15122 len = length(field[1])
15123 for (i = 2; i < nfields; i++) {
15125 keylen = length(key)
15126 if (S_is_set[key]) {
15128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15129 len += length(value) + length(field[++i])
15134 if (nfields == 3 && !substed) {
15136 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15137 \$ac_cs_awk_read_file
15143 \$ac_cs_awk_pipe_fini
15146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15151 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15152 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15155 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15156 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15157 # trailing colons and then remove the whole line if VPATH becomes empty
15158 # (actually we leave an empty line to preserve line numbers).
15159 if test "x$srcdir" = x.; then
15160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15161 s/:*\$(srcdir):*/:/
15162 s/:*\${srcdir}:*/:/
15164 s/^\([^=]*=[ ]*\):*/\1/
15170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171 fi # test -n "$CONFIG_FILES"
15174 eval set X " :F $CONFIG_FILES "
15179 :[FHLC]) ac_mode=$ac_tag; continue;;
15181 case $ac_mode$ac_tag in
15183 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15184 :[FH]-) ac_tag=-:-;;
15185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15202 -) ac_f="$tmp/stdin";;
15203 *) # Look for the file first in the build tree, then in the source tree
15204 # (if the path is not absolute). The absolute path cannot be DOS-style,
15205 # because $ac_f cannot contain `:'.
15209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15211 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15214 as_fn_append ac_file_inputs " '$ac_f'"
15217 # Let's still pretend it is `configure' which instantiates (i.e., don't
15218 # use $as_me), people would be surprised to read:
15219 # /* config.h. Generated by config.status. */
15220 configure_input='Generated from '`
15221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15223 if test x"$ac_file" != x-; then
15224 configure_input="$ac_file. $configure_input"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15226 $as_echo "$as_me: creating $ac_file" >&6;}
15228 # Neutralize special characters interpreted by sed in replacement strings.
15229 case $configure_input in #(
15230 *\&* | *\|* | *\\* )
15231 ac_sed_conf_input=`$as_echo "$configure_input" |
15232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15233 *) ac_sed_conf_input=$configure_input;;
15237 *:-:* | *:-) cat >"$tmp/stdin" \
15238 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15243 ac_dir=`$as_dirname -- "$ac_file" ||
15244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15245 X"$ac_file" : 'X\(//\)[^/]' \| \
15246 X"$ac_file" : 'X\(//\)$' \| \
15247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15248 $as_echo X"$ac_file" |
15249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15253 /^X\(\/\/\)[^/].*/{
15266 as_dir="$ac_dir"; as_fn_mkdir_p
15270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15273 # A ".." for each directory in $ac_dir_suffix.
15274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15275 case $ac_top_builddir_sub in
15276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15280 ac_abs_top_builddir=$ac_pwd
15281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15282 # for backward compatibility:
15283 ac_top_builddir=$ac_top_build_prefix
15286 .) # We are building in place.
15288 ac_top_srcdir=$ac_top_builddir_sub
15289 ac_abs_top_srcdir=$ac_pwd ;;
15290 [\\/]* | ?:[\\/]* ) # Absolute name.
15291 ac_srcdir=$srcdir$ac_dir_suffix;
15292 ac_top_srcdir=$srcdir
15293 ac_abs_top_srcdir=$srcdir ;;
15294 *) # Relative name.
15295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15296 ac_top_srcdir=$ac_top_build_prefix$srcdir
15297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15315 # If the template does not know about datarootdir, expand it.
15316 # FIXME: This hack should be removed a few years after 2.60.
15317 ac_datarootdir_hack=; ac_datarootdir_seen=
15328 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15329 *datarootdir*) ac_datarootdir_seen=yes;;
15330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15332 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335 ac_datarootdir_hack='
15336 s&@datadir@&$datadir&g
15337 s&@docdir@&$docdir&g
15338 s&@infodir@&$infodir&g
15339 s&@localedir@&$localedir&g
15340 s&@mandir@&$mandir&g
15341 s&\\\${datarootdir}&$datarootdir&g' ;;
15345 # Neutralize VPATH when `$srcdir' = `.'.
15346 # Shell code in configure.ac might set extrasub.
15347 # FIXME: do we really want to maintain this feature?
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 ac_sed_extra="$ac_vpsub
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15355 s|@configure_input@|$ac_sed_conf_input|;t t
15356 s&@top_builddir@&$ac_top_builddir_sub&;t t
15357 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15358 s&@srcdir@&$ac_srcdir&;t t
15359 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15360 s&@top_srcdir@&$ac_top_srcdir&;t t
15361 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15362 s&@builddir@&$ac_builddir&;t t
15363 s&@abs_builddir@&$ac_abs_builddir&;t t
15364 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15365 s&@INSTALL@&$ac_INSTALL&;t t
15366 $ac_datarootdir_hack
15368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15369 if $ac_cs_awk_getline; then
15370 $AWK -f "$tmp/subs.awk"
15372 $AWK -f "$tmp/subs.awk" | $SHELL
15374 || as_fn_error "could not create $ac_file" "$LINENO" 5
15376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15377 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15380 which seems to be undefined. Please make sure it is defined." >&5
15381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15382 which seems to be undefined. Please make sure it is defined." >&2;}
15386 -) cat "$tmp/out" && rm -f "$tmp/out";;
15387 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15389 || as_fn_error "could not create $ac_file" "$LINENO" 5
15397 case $ac_file$ac_mode in
15398 "Makefile":F) sed "$extrasub_build" Makefile |
15399 sed "$extrasub_host" |
15400 sed "$extrasub_target" > mf$$
15401 mv -f mf$$ Makefile ;;
15409 ac_clean_files=$ac_clean_files_save
15411 test $ac_write_fail = 0 ||
15412 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15415 # configure is writing to config.log, and then calls config.status.
15416 # config.status does its own redirection, appending to config.log.
15417 # Unfortunately, on DOS this fails, as config.log is still kept open
15418 # by configure, so config.status won't be able to write to it; its
15419 # output is simply discarded. So we exec the FD to /dev/null,
15420 # effectively closing config.log, so it can be properly (re)opened and
15421 # appended to by config.status. When coming back to configure, we
15422 # need to make the FD available again.
15423 if test "$no_create" != yes; then
15425 ac_config_status_args=
15426 test "$silent" = yes &&
15427 ac_config_status_args="$ac_config_status_args --quiet"
15429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15432 # would make configure fail if this is the last instruction.
15433 $ac_cs_success || as_fn_exit $?
15435 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15437 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}