Sync toplevel configure with binutils-gdb
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
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 ## -------------------- ##
14
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 :
18   emulate sh
19   NULLCMD=:
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+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
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
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
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'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
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.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
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
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
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 || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 :
136   emulate sh
137   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
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; }
156
157 exitcode=0
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 :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
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 :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
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 :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
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
207 fi; }
208 IFS=$as_save_IFS
209
210
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.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
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."
228   else
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."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
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
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
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 :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
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.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
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
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
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
417
418
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.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
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; }
441
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).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
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 ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
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'"
522
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'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
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`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 EXTRA_CONFIGARGS_LIBJAVA
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
682 AWK
683 SED
684 LN_S
685 LN
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 build_configargs
812 host_configargs
813 target_configargs
814 AR
815 AS
816 DLLTOOL
817 LD
818 LIPO
819 NM
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
846
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900   # If the previous option needs an argument, assign it.
901   if test -n "$ac_prev"; then
902     eval $ac_prev=\$ac_option
903     ac_prev=
904     continue
905   fi
906
907   case $ac_option in
908   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374   *" "*)
1375     as_fn_error "path to source, $srcdir, contains spaces"
1376     ;;
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459   --target=TARGET   configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-as-accelerator-for=ARG
1472                           build as offload target compiler. Specify offload
1473                           host triple by ARG
1474   --enable-offload-targets=LIST
1475                           enable offloading to devices from comma-separated
1476                           LIST of TARGET[=DIR]. Use optional path to find
1477                           offload target compiler during the build
1478   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1479   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1480   --disable-libquadmath   do not build libquadmath directory
1481   --disable-libquadmath-support
1482                           disable libquadmath support for Fortran
1483   --enable-libada         build libada directory
1484   --enable-libssp         build libssp directory
1485   --disable-libstdcxx     do not build libstdc++-v3 directory
1486   --enable-liboffloadmic=ARG
1487                           build liboffloadmic [ARG={no,host,target}]
1488   --enable-static-libjava[=ARG]
1489                           build static libjava [default=no]
1490   --enable-bootstrap      enable bootstrapping [yes if native build]
1491   --disable-isl-version-check
1492                           disable check for ISL version
1493   --enable-lto            enable link time optimization support
1494   --enable-linker-plugin-configure-flags=FLAGS
1495                           additional flags for configuring linker plugins
1496                           [none]
1497   --enable-linker-plugin-flags=FLAGS
1498                           additional flags for configuring and building linker
1499                           plugins [none]
1500   --enable-stage1-languages[=all]
1501                           choose additional languages to build during stage1.
1502                           Mostly useful for compiler development
1503   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1504                           Objective-C runtime
1505   --enable-vtable-verify  Enable vtable verification feature
1506   --enable-serial-[{host,target,build}-]configure
1507                           force sequential configuration of sub-packages for
1508                           the host, target or build machine, or all
1509                           sub-packages
1510   --enable-maintainer-mode
1511                           enable make rules and dependencies not useful (and
1512                           sometimes confusing) to the casual installer
1513   --enable-stage1-checking[=all]
1514                           choose additional checking for stage1 of the
1515                           compiler
1516   --enable-werror         enable -Werror in bootstrap stage2 and later
1517   --enable-host-shared    build host code as shared libraries
1518
1519 Optional Packages:
1520   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1523   --with-system-zlib      use installed libz
1524   --with-mpc=PATH         specify prefix directory for installed MPC package.
1525                           Equivalent to --with-mpc-include=PATH/include plus
1526                           --with-mpc-lib=PATH/lib
1527   --with-mpc-include=PATH specify directory for installed MPC include files
1528   --with-mpc-lib=PATH     specify directory for the installed MPC library
1529   --with-mpfr-dir=PATH    this option has been REMOVED
1530   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1531                           Equivalent to --with-mpfr-include=PATH/include plus
1532                           --with-mpfr-lib=PATH/lib
1533   --with-mpfr-include=PATH
1534                           specify directory for installed MPFR include files
1535   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1536   --with-gmp-dir=PATH     this option has been REMOVED
1537   --with-gmp=PATH         specify prefix directory for the installed GMP
1538                           package. Equivalent to
1539                           --with-gmp-include=PATH/include plus
1540                           --with-gmp-lib=PATH/lib
1541   --with-gmp-include=PATH specify directory for installed GMP include files
1542   --with-gmp-lib=PATH     specify directory for the installed GMP library
1543   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544                           linking with PPL
1545   --with-stage1-libs=LIBS libraries for stage1
1546   --with-stage1-ldflags=FLAGS
1547                           linker flags for stage1
1548   --with-boot-libs=LIBS   libraries for stage2 and later
1549   --with-boot-ldflags=FLAGS
1550                           linker flags for stage2 and later
1551   --with-isl=PATH         Specify prefix directory for the installed ISL
1552                           package. Equivalent to
1553                           --with-isl-include=PATH/include plus
1554                           --with-isl-lib=PATH/lib
1555   --with-isl-include=PATH Specify directory for installed ISL include files
1556   --with-isl-lib=PATH     Specify the directory for the installed ISL library
1557   --with-build-sysroot=SYSROOT
1558                           use sysroot as the system root during the build
1559   --with-debug-prefix-map='A=B C=D ...'
1560                           map A to B, C to D ... in debug information
1561   --with-build-config='NAME NAME2...'
1562                           use config/NAME.mk build configuration
1563   --with-build-time-tools=PATH
1564                           use given path to find target tools during the build
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   build_configargs
1577               additional configure arguments for build directories
1578   host_configargs
1579               additional configure arguments for host directories
1580   target_configargs
1581               additional configure arguments for target directories
1582   AR          AR for the host
1583   AS          AS for the host
1584   DLLTOOL     DLLTOOL for the host
1585   LD          LD for the host
1586   LIPO        LIPO for the host
1587   NM          NM for the host
1588   RANLIB      RANLIB for the host
1589   STRIP       STRIP for the host
1590   WINDRES     WINDRES for the host
1591   WINDMC      WINDMC for the host
1592   OBJCOPY     OBJCOPY for the host
1593   OBJDUMP     OBJDUMP for the host
1594   READELF     READELF for the host
1595   CC_FOR_TARGET
1596               CC for the target
1597   CXX_FOR_TARGET
1598               CXX for the target
1599   GCC_FOR_TARGET
1600               GCC for the target
1601   GCJ_FOR_TARGET
1602               GCJ for the target
1603   GFORTRAN_FOR_TARGET
1604               GFORTRAN for the target
1605   GOC_FOR_TARGET
1606               GOC for the target
1607   AR_FOR_TARGET
1608               AR for the target
1609   AS_FOR_TARGET
1610               AS for the target
1611   DLLTOOL_FOR_TARGET
1612               DLLTOOL for the target
1613   LD_FOR_TARGET
1614               LD for the target
1615   LIPO_FOR_TARGET
1616               LIPO for the target
1617   NM_FOR_TARGET
1618               NM for the target
1619   OBJCOPY_FOR_TARGET
1620               OBJCOPY for the target
1621   OBJDUMP_FOR_TARGET
1622               OBJDUMP for the target
1623   RANLIB_FOR_TARGET
1624               RANLIB for the target
1625   READELF_FOR_TARGET
1626               READELF for the target
1627   STRIP_FOR_TARGET
1628               STRIP for the target
1629   WINDRES_FOR_TARGET
1630               WINDRES for the target
1631   WINDMC_FOR_TARGET
1632               WINDMC for the target
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 Report bugs to the package provider.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643   # If there are subdirs, report their specific --help.
1644   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645     test -d "$ac_dir" ||
1646       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647       continue
1648     ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654   # A ".." for each directory in $ac_dir_suffix.
1655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656   case $ac_top_builddir_sub in
1657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659   esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667   .)  # We are building in place.
1668     ac_srcdir=.
1669     ac_top_srcdir=$ac_top_builddir_sub
1670     ac_abs_top_srcdir=$ac_pwd ;;
1671   [\\/]* | ?:[\\/]* )  # Absolute name.
1672     ac_srcdir=$srcdir$ac_dir_suffix;
1673     ac_top_srcdir=$srcdir
1674     ac_abs_top_srcdir=$srcdir ;;
1675   *) # Relative name.
1676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677     ac_top_srcdir=$ac_top_build_prefix$srcdir
1678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682     cd "$ac_dir" || { ac_status=$?; continue; }
1683     # Check for guested configure.
1684     if test -f "$ac_srcdir/configure.gnu"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687     elif test -f "$ac_srcdir/configure"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure" --help=recursive
1690     else
1691       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692     fi || ac_status=$?
1693     cd "$ac_pwd" || { ac_status=$?; break; }
1694   done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699   cat <<\_ACEOF
1700 configure
1701 generated by GNU Autoconf 2.64
1702
1703 Copyright (C) 2009 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707   exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   rm -f conftest.$ac_objext
1721   if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_compile") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && {
1737          test -z "$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        } && test -s conftest.$ac_objext; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745         ac_retval=1
1746 fi
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   return $ac_retval
1749
1750 } # ac_fn_c_try_compile
1751
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   rm -f conftest.$ac_objext
1759   if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_compile") 2>conftest.err
1767   ac_status=$?
1768   if test -s conftest.err; then
1769     grep -v '^ *+' conftest.err >conftest.er1
1770     cat conftest.er1 >&5
1771     mv -f conftest.er1 conftest.err
1772   fi
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } && {
1775          test -z "$ac_cxx_werror_flag" ||
1776          test ! -s conftest.err
1777        } && test -s conftest.$ac_objext; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786   return $ac_retval
1787
1788 } # ac_fn_cxx_try_compile
1789
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext conftest$ac_exeext
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_cxx_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest$ac_exeext && {
1816          test "$cross_compiling" = yes ||
1817          $as_test_x conftest$ac_exeext
1818        }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824         ac_retval=1
1825 fi
1826   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828   # interfere with the next link command; also delete a directory that is
1829   # left behind by Apple's compiler.  We do this before executing the actions.
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   return $ac_retval
1833
1834 } # ac_fn_cxx_try_link
1835
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext conftest$ac_exeext
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_c_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest$ac_exeext && {
1862          test "$cross_compiling" = yes ||
1863          $as_test_x conftest$ac_exeext
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874   # interfere with the next link command; also delete a directory that is
1875   # left behind by Apple's compiler.  We do this before executing the actions.
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   return $ac_retval
1879
1880 } # ac_fn_c_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by $as_me, which was
1886 generated by GNU Autoconf 2.64.  Invocation command line was
1887
1888   $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
1907 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922     $as_echo "PATH: $as_dir"
1923   done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949   for ac_arg
1950   do
1951     case $ac_arg in
1952     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954     | -silent | --silent | --silen | --sile | --sil)
1955       continue ;;
1956     *\'*)
1957       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     esac
1959     case $ac_pass in
1960     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961     2)
1962       as_fn_append ac_configure_args1 " '$ac_arg'"
1963       if test $ac_must_keep_next = true; then
1964         ac_must_keep_next=false # Got value, back to normal.
1965       else
1966         case $ac_arg in
1967           *=* | --config-cache | -C | -disable-* | --disable-* \
1968           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970           | -with-* | --with-* | -without-* | --without-* | --x)
1971             case "$ac_configure_args0 " in
1972               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973             esac
1974             ;;
1975           -* ) ac_must_keep_next=true ;;
1976         esac
1977       fi
1978       as_fn_append ac_configure_args " '$ac_arg'"
1979       ;;
1980     esac
1981   done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log.  We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992   # Save into config.log some information that might help in debugging.
1993   {
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2000 _ASBOX
2001     echo
2002     # The following way of writing the cache mishandles newlines in values,
2003 (
2004   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005     eval ac_val=\$$ac_var
2006     case $ac_val in #(
2007     *${as_nl}*)
2008       case $ac_var in #(
2009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011       esac
2012       case $ac_var in #(
2013       _ | IFS | as_nl) ;; #(
2014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015       *) { eval $ac_var=; unset $ac_var;} ;;
2016       esac ;;
2017     esac
2018   done
2019   (set) 2>&1 |
2020     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021     *${as_nl}ac_space=\ *)
2022       sed -n \
2023         "s/'\''/'\''\\\\'\'''\''/g;
2024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025       ;; #(
2026     *)
2027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028       ;;
2029     esac |
2030     sort
2031 )
2032     echo
2033
2034     cat <<\_ASBOX
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2038 _ASBOX
2039     echo
2040     for ac_var in $ac_subst_vars
2041     do
2042       eval ac_val=\$$ac_var
2043       case $ac_val in
2044       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045       esac
2046       $as_echo "$ac_var='\''$ac_val'\''"
2047     done | sort
2048     echo
2049
2050     if test -n "$ac_subst_files"; then
2051       cat <<\_ASBOX
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2055 _ASBOX
2056       echo
2057       for ac_var in $ac_subst_files
2058       do
2059         eval ac_val=\$$ac_var
2060         case $ac_val in
2061         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062         esac
2063         $as_echo "$ac_var='\''$ac_val'\''"
2064       done | sort
2065       echo
2066     fi
2067
2068     if test -s confdefs.h; then
2069       cat <<\_ASBOX
2070 ## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##
2073 _ASBOX
2074       echo
2075       cat confdefs.h
2076       echo
2077     fi
2078     test "$ac_signal" != 0 &&
2079       $as_echo "$as_me: caught signal $ac_signal"
2080     $as_echo "$as_me: exit $exit_status"
2081   } >&5
2082   rm -f core *.core core.conftest.* &&
2083     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084     exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128   ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130   ac_site_file1=$prefix/share/config.site
2131   ac_site_file2=$prefix/etc/config.site
2132 else
2133   ac_site_file1=$ac_default_prefix/share/config.site
2134   ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138   test "x$ac_site_file" = xNONE && continue
2139   if test -r "$ac_site_file"; then
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142     sed 's/^/| /' "$ac_site_file" >&5
2143     . "$ac_site_file"
2144   fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148   # Some versions of bash will fail to source /dev/null (special
2149   # files actually), so we avoid doing that.
2150   if test -f "$cache_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153     case $cache_file in
2154       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155       *)                      . "./$cache_file";;
2156     esac
2157   fi
2158 else
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161   >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169   eval ac_new_set=\$ac_env_${ac_var}_set
2170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171   eval ac_new_val=\$ac_env_${ac_var}_value
2172   case $ac_old_set,$ac_new_set in
2173     set,)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,set)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,);;
2182     *)
2183       if test "x$ac_old_val" != "x$ac_new_val"; then
2184         # differences in whitespace do not lead to failure.
2185         ac_old_val_w=`echo x $ac_old_val`
2186         ac_new_val_w=`echo x $ac_new_val`
2187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190           ac_cache_corrupted=:
2191         else
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194           eval $ac_var=\$ac_old_val
2195         fi
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200       fi;;
2201   esac
2202   # Pass precious variables to config.status.
2203   if test "$ac_new_set" = set; then
2204     case $ac_new_val in
2205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     *) ac_arg=$ac_var=$ac_new_val ;;
2207     esac
2208     case " $ac_configure_args " in
2209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211     esac
2212   fi
2213 done
2214 if $ac_cache_corrupted; then
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239 progname=$0
2240 # if PWD already has a value, it is probably wrong.
2241 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243 # Export original configure arguments for use by sub-configures.
2244 # Quote arguments with shell meta charatcers.
2245 TOPLEVEL_CONFIGURE_ARGUMENTS=
2246 set -- "$progname" "$@"
2247 for ac_arg
2248 do
2249   case "$ac_arg" in
2250   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252     # if the argument is of the form -foo=baz, quote the baz part only
2253     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254   *) ;;
2255   esac
2256   # Add the quoted argument to the list.
2257   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258 done
2259 if test "$silent" = yes; then
2260   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261 fi
2262 # Remove the initial space we just introduced and, as these will be
2263 # expanded by make, quote '$'.
2264 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
2266
2267 # Find the build, host, and target systems.
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270   for ac_t in install-sh install.sh shtool; do
2271     if test -f "$ac_dir/$ac_t"; then
2272       ac_aux_dir=$ac_dir
2273       ac_install_sh="$ac_aux_dir/$ac_t -c"
2274       break 2
2275     fi
2276   done
2277 done
2278 if test -z "$ac_aux_dir"; then
2279   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2289
2290
2291 # Make sure we can run config.sub.
2292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296 $as_echo_n "checking build system type... " >&6; }
2297 if test "${ac_cv_build+set}" = set; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   ac_build_alias=$build_alias
2301 test "x$ac_build_alias" = x &&
2302   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303 test "x$ac_build_alias" = x &&
2304   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310 $as_echo "$ac_cv_build" >&6; }
2311 case $ac_cv_build in
2312 *-*-*) ;;
2313 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314 esac
2315 build=$ac_cv_build
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_build
2318 shift
2319 build_cpu=$1
2320 build_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 build_os=$*
2325 IFS=$ac_save_IFS
2326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327
2328
2329  case ${build_alias} in
2330   "") build_noncanonical=${build} ;;
2331   *) build_noncanonical=${build_alias} ;;
2332 esac
2333
2334
2335
2336  case ${host_alias} in
2337   "") host_noncanonical=${build_noncanonical} ;;
2338   *) host_noncanonical=${host_alias} ;;
2339 esac
2340
2341
2342
2343  case ${target_alias} in
2344   "") target_noncanonical=${host_noncanonical} ;;
2345   *) target_noncanonical=${target_alias} ;;
2346 esac
2347
2348
2349
2350
2351 test "$host_noncanonical" = "$target_noncanonical" &&
2352   test "$program_prefix$program_suffix$program_transform_name" = \
2353     NONENONEs,x,x, &&
2354   program_transform_name=s,y,y,
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357 $as_echo_n "checking host system type... " >&6; }
2358 if test "${ac_cv_host+set}" = set; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test "x$host_alias" = x; then
2362   ac_cv_host=$ac_cv_build
2363 else
2364   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366 fi
2367
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370 $as_echo "$ac_cv_host" >&6; }
2371 case $ac_cv_host in
2372 *-*-*) ;;
2373 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374 esac
2375 host=$ac_cv_host
2376 ac_save_IFS=$IFS; IFS='-'
2377 set x $ac_cv_host
2378 shift
2379 host_cpu=$1
2380 host_vendor=$2
2381 shift; shift
2382 # Remember, the first character of IFS is used to create $*,
2383 # except with old shells:
2384 host_os=$*
2385 IFS=$ac_save_IFS
2386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387
2388
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390 $as_echo_n "checking target system type... " >&6; }
2391 if test "${ac_cv_target+set}" = set; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   if test "x$target_alias" = x; then
2395   ac_cv_target=$ac_cv_host
2396 else
2397   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399 fi
2400
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403 $as_echo "$ac_cv_target" >&6; }
2404 case $ac_cv_target in
2405 *-*-*) ;;
2406 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407 esac
2408 target=$ac_cv_target
2409 ac_save_IFS=$IFS; IFS='-'
2410 set x $ac_cv_target
2411 shift
2412 target_cpu=$1
2413 target_vendor=$2
2414 shift; shift
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2417 target_os=$*
2418 IFS=$ac_save_IFS
2419 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420
2421
2422 # The aliases save the names the user supplied, while $host etc.
2423 # will get canonicalized.
2424 test -n "$target_alias" &&
2425   test "$program_prefix$program_suffix$program_transform_name" = \
2426     NONENONEs,x,x, &&
2427   program_prefix=${target_alias}-
2428
2429 test "$program_prefix" != NONE &&
2430   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439
2440
2441 # Get 'install' or 'install-sh' and its variants.
2442 # Find a good install program.  We prefer a C program (faster),
2443 # so one script is as good as another.  But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469   ./ | .// | /[cC]/* | \
2470   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472   /usr/ucb/* ) ;;
2473   *)
2474     # OSF1 and SCO ODT 3.0 have their own names for install.
2475     # Don't use installbsd from OSF since it installs stuff as root
2476     # by default.
2477     for ac_prog in ginstall scoinst install; do
2478       for ac_exec_ext in '' $ac_executable_extensions; do
2479         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480           if test $ac_prog = install &&
2481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # AIX install.  It has an incompatible calling convention.
2483             :
2484           elif test $ac_prog = install &&
2485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # program-specific install script used by HP pwplus--don't use.
2487             :
2488           else
2489             rm -rf conftest.one conftest.two conftest.dir
2490             echo one > conftest.one
2491             echo two > conftest.two
2492             mkdir conftest.dir
2493             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494               test -s conftest.one && test -s conftest.two &&
2495               test -s conftest.dir/conftest.one &&
2496               test -s conftest.dir/conftest.two
2497             then
2498               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499               break 3
2500             fi
2501           fi
2502         fi
2503       done
2504     done
2505     ;;
2506 esac
2507
2508   done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514   if test "${ac_cv_path_install+set}" = set; then
2515     INSTALL=$ac_cv_path_install
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for INSTALL within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     INSTALL=$ac_install_sh
2522   fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536 $as_echo_n "checking whether ln works... " >&6; }
2537 if test "${acx_cv_prog_LN+set}" = set; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   rm -f conftestdata_t
2541 echo >conftestdata_f
2542 if ln conftestdata_f conftestdata_t 2>/dev/null
2543 then
2544   acx_cv_prog_LN=ln
2545 else
2546   acx_cv_prog_LN=no
2547 fi
2548 rm -f conftestdata_f conftestdata_t
2549
2550 fi
2551 if test $acx_cv_prog_LN = no; then
2552   LN="cp"
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554 $as_echo "no, using $LN" >&6; }
2555 else
2556   LN="$acx_cv_prog_LN"
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558 $as_echo "yes" >&6; }
2559 fi
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562 $as_echo_n "checking whether ln -s works... " >&6; }
2563 LN_S=$as_ln_s
2564 if test "$LN_S" = "ln -s"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569 $as_echo "no, using $LN_S" >&6; }
2570 fi
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574 if test "${ac_cv_path_SED+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578      for ac_i in 1 2 3 4 5 6 7; do
2579        ac_script="$ac_script$as_nl$ac_script"
2580      done
2581      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582      { ac_script=; unset ac_script;}
2583      if test -z "$SED"; then
2584   ac_path_SED_found=false
2585   # Loop through the user's path and test for each of PROGNAME-LIST
2586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_prog in sed gsed; do
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595 # Check for GNU ac_path_SED and select it if it is found.
2596   # Check for GNU $ac_path_SED
2597 case `"$ac_path_SED" --version 2>&1` in
2598 *GNU*)
2599   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600 *)
2601   ac_count=0
2602   $as_echo_n 0123456789 >"conftest.in"
2603   while :
2604   do
2605     cat "conftest.in" "conftest.in" >"conftest.tmp"
2606     mv "conftest.tmp" "conftest.in"
2607     cp "conftest.in" "conftest.nl"
2608     $as_echo '' >> "conftest.nl"
2609     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611     as_fn_arith $ac_count + 1 && ac_count=$as_val
2612     if test $ac_count -gt ${ac_path_SED_max-0}; then
2613       # Best one so far, save it but keep looking for a better one
2614       ac_cv_path_SED="$ac_path_SED"
2615       ac_path_SED_max=$ac_count
2616     fi
2617     # 10*(2^10) chars as input seems more than enough
2618     test $ac_count -gt 10 && break
2619   done
2620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621 esac
2622
2623       $ac_path_SED_found && break 3
2624     done
2625   done
2626   done
2627 IFS=$as_save_IFS
2628   if test -z "$ac_cv_path_SED"; then
2629     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630   fi
2631 else
2632   ac_cv_path_SED=$SED
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637 $as_echo "$ac_cv_path_SED" >&6; }
2638  SED="$ac_cv_path_SED"
2639   rm -f conftest.sed
2640
2641 for ac_prog in gawk mawk nawk awk
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_AWK+set}" = set; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$AWK"; then
2651   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_AWK="$ac_prog"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 AWK=$ac_cv_prog_AWK
2671 if test -n "$AWK"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673 $as_echo "$AWK" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$AWK" && break
2681 done
2682
2683
2684 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2687 # a relative path.
2688 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689   INSTALL="${srcpwd}/install-sh -c"
2690 fi
2691
2692 # Set srcdir to "." if that's what it is.
2693 # This is important for multilib support.
2694 pwd=`${PWDCMD-pwd}`
2695 if test "${pwd}" = "${srcpwd}" ; then
2696   srcdir=.
2697 fi
2698
2699 topsrcdir=$srcpwd
2700
2701 extra_host_args=
2702
2703 ### To add a new directory to the tree, first choose whether it is a target
2704 ### or a host dependent tool.  Then put it into the appropriate list
2705 ### (library or tools, host or target), doing a dependency sort.
2706
2707 # Subdirs will be configured in the order listed in build_configdirs,
2708 # configdirs, or target_configdirs; see the serialization section below.
2709
2710 # Dependency sorting is only needed when *configuration* must be done in
2711 # a particular order.  In all cases a dependency should be specified in
2712 # the Makefile, whether or not it's implicitly specified here.
2713
2714 # Double entries in build_configdirs, configdirs, or target_configdirs may
2715 # cause circular dependencies and break everything horribly.
2716
2717 # these library is used by various programs built for the build
2718 # environment
2719 #
2720 build_libs="build-libiberty build-libcpp"
2721
2722 # these tools are built for the build environment
2723 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724
2725 # these libraries are used by various programs built for the host environment
2726 #f
2727 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2728
2729 # these tools are built for the host environment
2730 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731 # know that we are building the simulator.
2732 # binutils, gas and ld appear in that order because it makes sense to run
2733 # "make check" in that particular order.
2734 # If --enable-gold is used, "gold" may replace "ld".
2735 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2736
2737 # libgcj represents the runtime libraries only used by gcj.
2738 libgcj="target-libffi \
2739         target-zlib \
2740         target-libjava"
2741
2742 # these libraries are built for the target environment, and are built after
2743 # the host libraries and the host tools (which may be a cross compiler)
2744 # Note that libiberty is not a target library.
2745 target_libraries="target-libgcc \
2746                 target-libbacktrace \
2747                 target-libgloss \
2748                 target-newlib \
2749                 target-libgomp \
2750                 target-libcilkrts \
2751                 target-liboffloadmic \
2752                 target-libatomic \
2753                 target-libitm \
2754                 target-libstdc++-v3 \
2755                 target-libsanitizer \
2756                 target-libvtv \
2757                 target-libmpx \
2758                 target-libssp \
2759                 target-libquadmath \
2760                 target-libgfortran \
2761                 target-boehm-gc \
2762                 ${libgcj} \
2763                 target-libobjc \
2764                 target-libada \
2765                 target-libgo"
2766
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2769 #
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2772 #
2773 target_tools="target-rda"
2774
2775 ################################################################################
2776
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788 ################################################################################
2789
2790 srcname="gnu development package"
2791
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2794
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798   is_cross_compiler=no
2799 else
2800   is_cross_compiler=yes
2801 fi
2802
2803 # Find the build and target subdir names.
2804
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2816
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819   withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821   build_libsubdir="$build_subdir"
2822 fi
2823
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826    || test -d $srcdir/../host-${host_noncanonical}; then
2827   host_subdir="host-${host_noncanonical}"
2828 else
2829   host_subdir=.
2830 fi
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2833
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2836   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838 fi
2839
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2844
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848   use_gnu_ld=no
2849   noconfigdirs="$noconfigdirs ld gold"
2850 fi
2851
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855   use_gnu_as=no
2856   noconfigdirs="$noconfigdirs gas"
2857 fi
2858
2859 use_included_zlib=
2860
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863   withval=$with_system_zlib;
2864 fi
2865
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868   use_included_zlib=no
2869   noconfigdirs="$noconfigdirs zlib"
2870 fi
2871
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2874
2875 case ${with_x} in
2876   yes | "") ;; # the default value for this tree is that X11 is available
2877   no)
2878     skipdirs="${skipdirs} tk itcl libgui"
2879     # We won't be able to build gdbtk without X.
2880     enable_gdbtk=no
2881     ;;
2882   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2884
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2888
2889 case $is_cross_compiler in
2890   no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2892
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897   if test x"${with_newlib}" = x ; then
2898     with_newlib=no
2899   fi
2900 fi
2901
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904   no) skipdirs="${skipdirs} target-newlib" ;;
2905   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2907
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910   enableval=$enable_as_accelerator_for;
2911 fi
2912
2913
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916   enableval=$enable_offload_targets;
2917   if test x"$enable_offload_targets" = x; then
2918     as_fn_error "no offload targets specified" "$LINENO" 5
2919   fi
2920
2921 else
2922   enable_offload_targets=
2923 fi
2924
2925
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 #     Build only ld.  Default option.
2929 # --enable-gold [--enable-ld]
2930 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2931 #     as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2934 #     install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 #     and ld.bfd).
2940 #     In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 #     Error.
2943
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947   enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949   ENABLE_GOLD=no
2950 fi
2951
2952 case "${ENABLE_GOLD}" in
2953   yes|default)
2954     # Check for ELF target.
2955     is_elf=no
2956     case "${target}" in
2957       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961         case "${target}" in
2962           *-*-linux*aout* | *-*-linux*oldld*)
2963             ;;
2964           *)
2965             is_elf=yes
2966             ;;
2967         esac
2968     esac
2969
2970     if test "$is_elf" = "yes"; then
2971       # Check for target supported by gold.
2972       case "${target}" in
2973         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974         | aarch64*-*-* | tilegx*-*-*)
2975           configdirs="$configdirs gold"
2976           if test x${ENABLE_GOLD} = xdefault; then
2977             default_ld=gold
2978           fi
2979           ENABLE_GOLD=yes
2980           ;;
2981       esac
2982     fi
2983     ;;
2984   no)
2985     ;;
2986   *)
2987     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988     ;;
2989 esac
2990
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993   enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995   ENABLE_LD=yes
2996 fi
2997
2998
2999 case "${ENABLE_LD}" in
3000   default)
3001     if test x${default_ld} != x; then
3002       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003     fi
3004     ;;
3005   yes)
3006     ;;
3007   no)
3008     if test x${ENABLE_GOLD} != xyes; then
3009       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011     fi
3012     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013     ;;
3014   *)
3015     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016     ;;
3017 esac
3018
3019 # Configure extra directories which are host specific
3020
3021 case "${host}" in
3022   *-cygwin*)
3023     configdirs="$configdirs libtermcap" ;;
3024 esac
3025
3026 # A target can indicate whether a language isn't supported for some reason.
3027 # Only spaces may be used in this macro; not newlines or tabs.
3028 unsupported_languages=
3029
3030 # Remove more programs from consideration, based on the host or
3031 # target this usually means that a port of the program doesn't
3032 # exist yet.
3033
3034 case "${host}" in
3035   i[3456789]86-*-msdosdjgpp*)
3036     noconfigdirs="$noconfigdirs tcl tk itcl"
3037     ;;
3038 esac
3039
3040
3041 # Check whether --enable-libquadmath was given.
3042 if test "${enable_libquadmath+set}" = set; then :
3043   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044 else
3045   ENABLE_LIBQUADMATH=yes
3046 fi
3047
3048 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049   noconfigdirs="$noconfigdirs target-libquadmath"
3050 fi
3051
3052
3053 # Check whether --enable-libquadmath-support was given.
3054 if test "${enable_libquadmath_support+set}" = set; then :
3055   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056 else
3057   ENABLE_LIBQUADMATH_SUPPORT=yes
3058 fi
3059
3060 enable_libquadmath_support=
3061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062   enable_libquadmath_support=no
3063 fi
3064
3065
3066 # Check whether --enable-libada was given.
3067 if test "${enable_libada+set}" = set; then :
3068   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069 else
3070   ENABLE_LIBADA=yes
3071 fi
3072
3073 if test "${ENABLE_LIBADA}" != "yes" ; then
3074   noconfigdirs="$noconfigdirs gnattools"
3075 fi
3076
3077 # Check whether --enable-libssp was given.
3078 if test "${enable_libssp+set}" = set; then :
3079   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080 else
3081   ENABLE_LIBSSP=yes
3082 fi
3083
3084
3085 # Check whether --enable-libstdcxx was given.
3086 if test "${enable_libstdcxx+set}" = set; then :
3087   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088 else
3089   ENABLE_LIBSTDCXX=default
3090 fi
3091
3092 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094 fi
3095
3096 # If this is accelerator compiler and its target is intelmic we enable
3097 # target liboffloadmic by default.  If this is compiler with offloading
3098 # for intelmic we enable host liboffloadmic by default.  Otherwise
3099 # liboffloadmic is disabled by default.
3100 # Check whether --enable-liboffloadmic was given.
3101 if test "${enable_liboffloadmic+set}" = set; then :
3102   enableval=$enable_liboffloadmic; case "$enableval" in
3103   no | host | target)
3104     enable_liboffloadmic=$enableval ;;
3105   *)
3106     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107 esac
3108 else
3109   if test x"$enable_as_accelerator_for" != x; then
3110   case "${target}" in
3111     *-intelmic-* | *-intelmicemul-*)
3112       enable_liboffloadmic=target
3113       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114       ;;
3115     *)
3116       enable_liboffloadmic=no
3117       ;;
3118   esac
3119 else
3120   case "${enable_offload_targets}" in
3121     *-intelmic-* | *-intelmicemul-*)
3122       enable_liboffloadmic=host
3123       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124       ;;
3125     *)
3126       enable_liboffloadmic=no
3127       ;;
3128     esac
3129 fi
3130 fi
3131
3132
3133
3134 # Save it here so that, even in case of --enable-libgcj, if the Java
3135 # front-end isn't enabled, we still get libgcj disabled.
3136 libgcj_saved=$libgcj
3137 case $enable_libgcj in
3138 yes)
3139   # If we reset it here, it won't get added to noconfigdirs in the
3140   # target-specific build rules, so it will be forcibly enabled
3141   # (unless the Java language itself isn't enabled).
3142   libgcj=
3143   ;;
3144 no)
3145   # Make sure we get it printed in the list of not supported target libs.
3146   # Don't disable libffi, though, other languages use it.
3147   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3148   # Clear libgcj_saved so that even if java is enabled libffi won't be
3149   # built.
3150   libgcj_saved=
3151   ;;
3152 esac
3153
3154 # Check whether --enable-static-libjava was given.
3155 if test "${enable_static_libjava+set}" = set; then :
3156   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157 else
3158   ENABLE_STATIC_LIBJAVA=no
3159 fi
3160
3161 enable_static_libjava=
3162 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163   enable_static_libjava=yes
3164 fi
3165
3166 if test x$enable_static_libjava != xyes ; then
3167   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168 fi
3169
3170
3171 # Disable libgomp on non POSIX hosted systems.
3172 if test x$enable_libgomp = x ; then
3173     # Enable libgomp by default on hosted POSIX systems.
3174     case "${target}" in
3175     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3176         ;;
3177     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3178         ;;
3179     *-*-solaris2* | *-*-hpux11*)
3180         ;;
3181     *-*-darwin* | *-*-aix*)
3182         ;;
3183     *)
3184         noconfigdirs="$noconfigdirs target-libgomp"
3185         ;;
3186     esac
3187 fi
3188
3189 # Disable libatomic on unsupported systems.
3190 if test -d ${srcdir}/libatomic; then
3191     if test x$enable_libatomic = x; then
3192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193 $as_echo_n "checking for libatomic support... " >&6; }
3194         if (srcdir=${srcdir}/libatomic; \
3195                 . ${srcdir}/configure.tgt; \
3196                 test -n "$UNSUPPORTED")
3197         then
3198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200             noconfigdirs="$noconfigdirs target-libatomic"
3201         else
3202             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204         fi
3205     fi
3206 fi
3207
3208 # Disable libcilkrts on unsupported systems.
3209 if test -d ${srcdir}/libcilkrts; then
3210     if test x$enable_libcilkrts = x; then
3211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212 $as_echo_n "checking for libcilkrts support... " >&6; }
3213         if (srcdir=${srcdir}/libcilkrts; \
3214                 . ${srcdir}/configure.tgt; \
3215                 test -n "$UNSUPPORTED")
3216         then
3217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219             noconfigdirs="$noconfigdirs target-libcilkrts"
3220         else
3221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3223         fi
3224     fi
3225 fi
3226
3227 # Disable liboffloadmic on unsupported systems.
3228 if test -d ${srcdir}/liboffloadmic; then
3229     if test x$enable_liboffloadmic != xno; then
3230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231 $as_echo_n "checking for liboffloadmic support... " >&6; }
3232         if (srcdir=${srcdir}/liboffloadmic; \
3233                 . ${srcdir}/configure.tgt; \
3234                 test -n "$UNSUPPORTED")
3235         then
3236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238             noconfigdirs="$noconfigdirs target-liboffloadmic"
3239         else
3240             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242         fi
3243     fi
3244 fi
3245
3246 # Disable libitm on unsupported systems.
3247 if test -d ${srcdir}/libitm; then
3248     if test x$enable_libitm = x; then
3249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250 $as_echo_n "checking for libitm support... " >&6; }
3251         if (srcdir=${srcdir}/libitm; \
3252                 . ${srcdir}/configure.tgt; \
3253                 test -n "$UNSUPPORTED")
3254         then
3255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257             noconfigdirs="$noconfigdirs target-libitm"
3258         else
3259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261         fi
3262     fi
3263 fi
3264
3265 # Disable libsanitizer on unsupported systems.
3266 if test -d ${srcdir}/libsanitizer; then
3267     if test x$enable_libsanitizer = x; then
3268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269 $as_echo_n "checking for libsanitizer support... " >&6; }
3270         if (srcdir=${srcdir}/libsanitizer; \
3271                 . ${srcdir}/configure.tgt; \
3272                 test -n "$UNSUPPORTED")
3273         then
3274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276             noconfigdirs="$noconfigdirs target-libsanitizer"
3277         else
3278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280         fi
3281     fi
3282 fi
3283
3284 # Disable libvtv on unsupported systems.
3285 if test -d ${srcdir}/libvtv; then
3286     if test x$enable_libvtv = x; then
3287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288 $as_echo_n "checking for libvtv support... " >&6; }
3289         if (srcdir=${srcdir}/libvtv; \
3290                 . ${srcdir}/configure.tgt; \
3291                 test "$VTV_SUPPORTED" != "yes")
3292         then
3293             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295             noconfigdirs="$noconfigdirs target-libvtv"
3296         else
3297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299         fi
3300     fi
3301 fi
3302
3303
3304 # Enable libmpx on supported systems by request.
3305 if test -d ${srcdir}/libmpx; then
3306     if test x$enable_libmpx = xyes; then
3307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308 $as_echo_n "checking for libmpx support... " >&6; }
3309        if (srcdir=${srcdir}/libmpx; \
3310                . ${srcdir}/configure.tgt; \
3311                test "$LIBMPX_SUPPORTED" != "yes")
3312        then
3313            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315            noconfigdirs="$noconfigdirs target-libmpx"
3316        else
3317            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319        fi
3320     else
3321        noconfigdirs="$noconfigdirs target-libmpx"
3322     fi
3323 fi
3324
3325
3326
3327 # Disable libquadmath for some systems.
3328 case "${target}" in
3329   avr-*-*)
3330     noconfigdirs="$noconfigdirs target-libquadmath"
3331     ;;
3332   # libquadmath is unused on AIX and libquadmath build process use of
3333   # LD_LIBRARY_PATH can break AIX bootstrap.
3334   powerpc-*-aix* | rs6000-*-aix*)
3335     noconfigdirs="$noconfigdirs target-libquadmath"
3336     ;;
3337 esac
3338
3339 # Disable libssp for some systems.
3340 case "${target}" in
3341   avr-*-*)
3342     # No hosted I/O support.
3343     noconfigdirs="$noconfigdirs target-libssp"
3344     ;;
3345   powerpc-*-aix* | rs6000-*-aix*)
3346     noconfigdirs="$noconfigdirs target-libssp"
3347     ;;
3348   rl78-*-*)
3349     # libssp uses a misaligned load to trigger a fault, but the RL78
3350     # doesn't fault for those - instead, it gives a build-time error
3351     # for explicit misaligned loads.
3352     noconfigdirs="$noconfigdirs target-libssp"
3353     ;;
3354   visium-*-*)
3355     # No hosted I/O support.
3356     noconfigdirs="$noconfigdirs target-libssp"
3357     ;;
3358 esac
3359
3360 # Disable libstdc++-v3 for some systems.
3361 # Allow user to override this if they pass --enable-libstdc++-v3
3362 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363   case "${target}" in
3364     *-*-vxworks*)
3365       # VxWorks uses the Dinkumware C++ library.
3366       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367       ;;
3368     arm*-wince-pe*)
3369       # the C++ libraries don't build on top of CE's C libraries
3370       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371       ;;
3372     avr-*-*)
3373       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374       ;;
3375     ft32-*-*)
3376       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377       ;;
3378   esac
3379 fi
3380
3381 # Disable Fortran for some systems.
3382 case "${target}" in
3383   mmix-*-*)
3384     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3385     unsupported_languages="$unsupported_languages fortran"
3386     ;;
3387 esac
3388
3389 # Disable Java if libffi is not supported.
3390 case "${target}" in
3391   aarch64-*-*)
3392     ;;
3393   alpha*-*-*)
3394     ;;
3395   arm*-*-*)
3396     ;;
3397   cris-*-*)
3398     ;;
3399   frv-*-*)
3400     ;;
3401   hppa*-*-linux*)
3402     ;;
3403   hppa*-*-hpux*)
3404     ;;
3405   i?86-*-*)
3406     ;;
3407   ia64*-*-*)
3408     ;;
3409   m32r*-*-*)
3410     ;;
3411   m68k-*-*)
3412     ;;
3413   mips*-*-rtems*)
3414     ;;
3415   mips*-*-linux*)
3416     ;;
3417   powerpc*-*-linux*)
3418     ;;
3419   powerpc-*-darwin*)
3420     ;;
3421   powerpc-*-aix* | rs6000-*-aix*)
3422     ;;
3423   powerpc-*-freebsd*)
3424     ;;
3425   powerpc64-*-freebsd*)
3426     ;;
3427   powerpc*-*-rtems*)
3428     ;;
3429   s390-*-* | s390x-*-*)
3430     ;;
3431   sh-*-* | sh[34]*-*-*)
3432     ;;
3433   sh64-*-* | sh5*-*-*)
3434     ;;
3435   sparc*-*-*)
3436     ;;
3437   x86_64-*-*)
3438     ;;
3439   *-*-*)
3440     unsupported_languages="$unsupported_languages java"
3441     ;;
3442 esac
3443
3444 # Disable Java, libgcj or related libraries for some systems.
3445 case "${target}" in
3446   powerpc-*-darwin*)
3447     ;;
3448   i[3456789]86-*-darwin*)
3449     ;;
3450   x86_64-*-darwin[912]*)
3451     ;;
3452   *-*-darwin*)
3453     noconfigdirs="$noconfigdirs ${libgcj}"
3454     ;;
3455   *-*-netware*)
3456     noconfigdirs="$noconfigdirs ${libgcj}"
3457     ;;
3458   *-*-rtems*)
3459     noconfigdirs="$noconfigdirs ${libgcj}"
3460     ;;
3461   *-*-tpf*)
3462     noconfigdirs="$noconfigdirs ${libgcj}"
3463     ;;
3464   *-*-uclinux*)
3465     noconfigdirs="$noconfigdirs ${libgcj}"
3466     ;;
3467   *-*-vxworks*)
3468     noconfigdirs="$noconfigdirs ${libgcj}"
3469     ;;
3470   alpha*-*-*vms*)
3471     noconfigdirs="$noconfigdirs ${libgcj}"
3472     ;;
3473   arm*-*-freebsd*)
3474     noconfigdirs="$noconfigdirs ${libgcj}"
3475     ;;
3476   arm-wince-pe)
3477     noconfigdirs="$noconfigdirs ${libgcj}"
3478     ;;
3479   arm*-*-symbianelf*)
3480     noconfigdirs="$noconfigdirs ${libgcj}"
3481     ;;
3482   bfin-*-*)
3483     noconfigdirs="$noconfigdirs target-boehm-gc"
3484     ;;
3485   cris-*-* | crisv32-*-*)
3486     unsupported_languages="$unsupported_languages java"
3487     case "${target}" in
3488       *-*-linux*)
3489         ;;
3490       *) # See PR46792 regarding target-libffi.
3491         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3492     esac
3493     ;;
3494   hppa*64*-*-linux*)
3495     # In this case, it's because the hppa64-linux target is for
3496     # the kernel only at this point and has no libc, and thus no
3497     # headers, crt*.o, etc., all of which are needed by these.
3498     unsupported_languages="$unsupported_languages java"
3499     ;;
3500   hppa*64*-*-hpux*)
3501     noconfigdirs="$noconfigdirs ${libgcj}"
3502     ;;
3503   hppa*-hp-hpux11*)
3504     ;;
3505   hppa*-*-hpux*)
3506     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3507     # build on HP-UX 10.20.
3508     noconfigdirs="$noconfigdirs ${libgcj}"
3509     ;;
3510   ia64*-*-*vms*)
3511     noconfigdirs="$noconfigdirs ${libgcj}"
3512     ;;
3513   i[3456789]86-w64-mingw*)
3514     noconfigdirs="$noconfigdirs ${libgcj}"
3515     ;;
3516   i[3456789]86-*-mingw*)
3517     noconfigdirs="$noconfigdirs ${libgcj}"
3518     ;;
3519   x86_64-*-mingw*)
3520     noconfigdirs="$noconfigdirs ${libgcj}"
3521     ;;
3522   mmix-*-*)
3523     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3524     ;;
3525   powerpc-*-aix*)
3526     # copied from rs6000-*-* entry
3527     noconfigdirs="$noconfigdirs ${libgcj}"
3528     ;;
3529   rs6000-*-aix*)
3530     noconfigdirs="$noconfigdirs ${libgcj}"
3531     ;;
3532   ft32-*-*)
3533     noconfigdirs="$noconfigdirs ${libgcj}"
3534     ;;
3535   *-*-lynxos*)
3536     noconfigdirs="$noconfigdirs ${libgcj}"
3537     ;;
3538 esac
3539
3540 # Disable the go frontend on systems where it is known to not work. Please keep
3541 # this in sync with contrib/config-list.mk.
3542 case "${target}" in
3543 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3544     unsupported_languages="$unsupported_languages go"
3545     ;;
3546 esac
3547
3548 # Disable libgo for some systems where it is known to not work.
3549 # For testing, you can easily override this with --enable-libgo.
3550 if test x$enable_libgo = x; then
3551     case "${target}" in
3552     *-*-darwin*)
3553         # PR 46986
3554         noconfigdirs="$noconfigdirs target-libgo"
3555         ;;
3556     *-*-cygwin* | *-*-mingw*)
3557         noconfigdirs="$noconfigdirs target-libgo"
3558         ;;
3559     *-*-aix*)
3560         noconfigdirs="$noconfigdirs target-libgo"
3561         ;;
3562     esac
3563 fi
3564
3565 # Default libgloss CPU subdirectory.
3566 libgloss_dir="$target_cpu"
3567
3568 case "${target}" in
3569   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3570     libgloss_dir=wince
3571     ;;
3572   aarch64*-*-* )
3573     libgloss_dir=aarch64
3574     ;;
3575   arm*-*-*)
3576     libgloss_dir=arm
3577     ;;
3578   cris-*-* | crisv32-*-*)
3579     libgloss_dir=cris
3580     ;;
3581   hppa*-*-*)
3582     libgloss_dir=pa
3583     ;;
3584   i[3456789]86-*-*)
3585     libgloss_dir=i386
3586     ;;
3587   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3588     libgloss_dir=m68hc11
3589     ;;
3590   m68*-*-* | fido-*-*)
3591     libgloss_dir=m68k
3592     ;;
3593   mips*-*-*)
3594     libgloss_dir=mips
3595     ;;
3596   powerpc*-*-*)
3597     libgloss_dir=rs6000
3598     ;;
3599   sparc*-*-*)
3600     libgloss_dir=sparc
3601     ;;
3602 esac
3603
3604 # Disable newlib and libgloss for various target OSes.
3605 case "${target}" in
3606   alpha*-dec-osf*)
3607     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608     ;;
3609   i[3456789]86-*-linux*)
3610     # This section makes it possible to build newlib natively on linux.
3611     # If we are using a cross compiler then don't configure newlib.
3612     if test x${is_cross_compiler} != xno ; then
3613       noconfigdirs="$noconfigdirs target-newlib"
3614     fi
3615     noconfigdirs="$noconfigdirs target-libgloss"
3616     # If we are not using a cross compiler, do configure newlib.
3617     # Note however, that newlib will only be configured in this situation
3618     # if the --with-newlib option has been given, because otherwise
3619     # 'target-newlib' will appear in skipdirs.
3620     ;;
3621   i[3456789]86-*-rdos*)
3622     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623     ;;
3624   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3625     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626     ;;
3627   sparc-*-sunos4*)
3628     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629     ;;
3630   *-*-aix*)
3631     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632     ;;
3633   *-*-beos*)
3634     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635     ;;
3636   *-*-chorusos)
3637     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638     ;;
3639   *-*-dragonfly*)
3640     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641     ;;
3642   *-*-freebsd*)
3643     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644     ;;
3645   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3646     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647     ;;
3648   *-*-lynxos*)
3649     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650     ;;
3651   *-*-mingw*)
3652     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653     ;;
3654   *-*-netbsd*)
3655     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656     ;;
3657   *-*-netware*)
3658     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659     ;;
3660   *-*-tpf*)
3661     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662     ;;
3663   *-*-uclinux*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666   *-*-vxworks*)
3667     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668     ;;
3669 esac
3670
3671 case "${target}" in
3672   *-*-chorusos)
3673     ;;
3674   powerpc-*-darwin*)
3675     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676     noconfigdirs="$noconfigdirs sim target-rda"
3677     ;;
3678   i[3456789]86-*-darwin*)
3679     noconfigdirs="$noconfigdirs ld gprof"
3680     noconfigdirs="$noconfigdirs sim target-rda"
3681     ;;
3682   x86_64-*-darwin[912]*)
3683     noconfigdirs="$noconfigdirs ld gas gprof"
3684     noconfigdirs="$noconfigdirs sim target-rda"
3685     ;;
3686   *-*-darwin*)
3687     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3688     noconfigdirs="$noconfigdirs sim target-rda"
3689     ;;
3690   *-*-dragonfly*)
3691     ;;
3692   *-*-freebsd*)
3693     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3694         && test -f /usr/local/include/gmp.h; then
3695       with_gmp=/usr/local
3696     fi
3697     ;;
3698   *-*-kaos*)
3699     # Remove unsupported stuff on all kaOS configurations.
3700     noconfigdirs="$noconfigdirs target-libgloss"
3701     ;;
3702   *-*-netbsd*)
3703     ;;
3704   *-*-netware*)
3705     ;;
3706   *-*-rtems*)
3707     noconfigdirs="$noconfigdirs target-libgloss"
3708     # this is not caught below because this stanza matches earlier
3709     case $target in
3710       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3711     esac
3712     ;;
3713     # The tpf target doesn't support gdb yet.
3714   *-*-tpf*)
3715     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3716     ;;
3717   *-*-uclinux*)
3718     noconfigdirs="$noconfigdirs target-rda"
3719     ;;
3720   *-*-vxworks*)
3721     ;;
3722   alpha*-dec-osf*)
3723     # ld works, but does not support shared libraries.
3724     # gas doesn't generate exception information.
3725     noconfigdirs="$noconfigdirs gas ld"
3726     ;;
3727   alpha*-*-*vms*)
3728     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3729     ;;
3730   alpha*-*-*)
3731     # newlib is not 64 bit ready
3732     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733     ;;
3734   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3735     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3736     ;;
3737   arc-*-*|arceb-*-*)
3738     noconfigdirs="$noconfigdirs target-libgloss"
3739     ;;
3740   arm-*-pe*)
3741     noconfigdirs="$noconfigdirs target-libgloss"
3742     ;;
3743   arm-*-riscix*)
3744     noconfigdirs="$noconfigdirs ld target-libgloss"
3745     ;;
3746   avr-*-rtems*)
3747     ;;
3748   avr-*-*)
3749     if test x${with_avrlibc} != xno; then
3750       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751     fi
3752     ;;
3753   c4x-*-* | tic4x-*-*)
3754     noconfigdirs="$noconfigdirs target-libgloss"
3755     ;;
3756   tic54x-*-*)
3757     noconfigdirs="$noconfigdirs target-libgloss gdb"
3758     ;;
3759   d10v-*-*)
3760     noconfigdirs="$noconfigdirs target-libgloss"
3761     ;;
3762   d30v-*-*)
3763     noconfigdirs="$noconfigdirs gdb"
3764     ;;
3765   fr30-*-elf*)
3766     noconfigdirs="$noconfigdirs gdb"
3767     ;;
3768   ft32-*-*)
3769     noconfigdirs="$noconfigdirs target-rda gprof"
3770     ;;
3771   moxie-*-*)
3772     noconfigdirs="$noconfigdirs"
3773     ;;
3774   h8300*-*-*)
3775     noconfigdirs="$noconfigdirs target-libgloss"
3776     ;;
3777   h8500-*-*)
3778     noconfigdirs="$noconfigdirs target-libgloss"
3779     ;;
3780   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3781     ;;
3782   hppa*64*-*-hpux*)
3783     noconfigdirs="$noconfigdirs gdb"
3784     ;;
3785   hppa*-*-hpux11*)
3786     noconfigdirs="$noconfigdirs gdb ld"
3787     ;;
3788   hppa*64*-*-linux*)
3789     ;;
3790   hppa*-*-linux*)
3791     ;;
3792   hppa*-*-*elf* | \
3793   hppa*-*-lites* | \
3794   hppa*-*-openbsd* | \
3795   hppa*64*-*-*)
3796     ;;
3797   hppa*-*-pro*)
3798     ;;
3799   hppa*-*-*)
3800     noconfigdirs="$noconfigdirs ld"
3801     ;;
3802   i960-*-*)
3803     noconfigdirs="$noconfigdirs gdb"
3804     ;;
3805   ia64*-*-elf*)
3806     # No gdb support yet.
3807     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3808     ;;
3809   ia64*-**-hpux*)
3810     # No ld support yet.
3811     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3812     ;;
3813   ia64*-*-*vms*)
3814     # No ld support yet.
3815     noconfigdirs="$noconfigdirs libgui itcl ld"
3816     ;;
3817   i[3456789]86-w64-mingw*)
3818     ;;
3819   i[3456789]86-*-mingw*)
3820     target_configdirs="$target_configdirs target-winsup"
3821     ;;
3822   *-*-cygwin*)
3823     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3824     noconfigdirs="$noconfigdirs target-libgloss"
3825     # always build newlib if winsup directory is present.
3826     if test -d "$srcdir/winsup/cygwin"; then
3827       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3828     elif test -d "$srcdir/newlib"; then
3829       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3830     fi
3831     ;;
3832   i[3456789]86-*-pe)
3833     noconfigdirs="$noconfigdirs target-libgloss"
3834     ;;
3835   i[3456789]86-*-sco3.2v5*)
3836     # The linker does not yet know about weak symbols in COFF,
3837     # and is not configured to handle mixed ELF and COFF.
3838     noconfigdirs="$noconfigdirs ld target-libgloss"
3839     ;;
3840   i[3456789]86-*-sco*)
3841     noconfigdirs="$noconfigdirs gprof target-libgloss"
3842     ;;
3843   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3844     noconfigdirs="$noconfigdirs target-libgloss"
3845     ;;
3846   i[3456789]86-*-sysv4*)
3847     noconfigdirs="$noconfigdirs target-libgloss"
3848     ;;
3849   i[3456789]86-*-beos*)
3850     noconfigdirs="$noconfigdirs gdb"
3851     ;;
3852   i[3456789]86-*-rdos*)
3853     noconfigdirs="$noconfigdirs gdb"
3854     ;;
3855   mmix-*-*)
3856     noconfigdirs="$noconfigdirs gdb"
3857     ;;
3858   mt-*-*)
3859     noconfigdirs="$noconfigdirs sim"
3860     ;;
3861   powerpc-*-aix*)
3862     # copied from rs6000-*-* entry
3863     noconfigdirs="$noconfigdirs gprof"
3864     ;;
3865   powerpc*-*-winnt* | powerpc*-*-pe*)
3866     target_configdirs="$target_configdirs target-winsup"
3867     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3868     # always build newlib.
3869     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3870     ;;
3871     # This is temporary until we can link against shared libraries
3872   powerpcle-*-solaris*)
3873     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3874     ;;
3875   powerpc-*-beos*)
3876     noconfigdirs="$noconfigdirs gdb"
3877     ;;
3878   rs6000-*-lynxos*)
3879     noconfigdirs="$noconfigdirs gprof"
3880     ;;
3881   rs6000-*-aix*)
3882     noconfigdirs="$noconfigdirs gprof"
3883     ;;
3884   rs6000-*-*)
3885     noconfigdirs="$noconfigdirs gprof"
3886     ;;
3887   m68k-apollo-*)
3888     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3889     ;;
3890   microblaze*)
3891     noconfigdirs="$noconfigdirs gprof"
3892     ;;
3893   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3894     if test x$with_newlib = xyes; then
3895       noconfigdirs="$noconfigdirs gprof"
3896     fi
3897     ;;
3898   mips*-*-irix5*)
3899     noconfigdirs="$noconfigdirs gprof target-libgloss"
3900     ;;
3901   mips*-*-irix6*)
3902     noconfigdirs="$noconfigdirs gprof target-libgloss"
3903     ;;
3904   mips*-*-bsd*)
3905     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3906     ;;
3907   mips*-*-linux*)
3908     ;;
3909   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3910   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3911     noconfigdirs="$noconfigdirs ld gas gprof"
3912     ;;
3913   mips*-*-*)
3914     noconfigdirs="$noconfigdirs gprof"
3915     ;;
3916   nds32*-*-*)
3917     noconfigdirs="$noconfigdirs gdb"
3918     ;;
3919   nvptx*-*-*)
3920     # nvptx is just a compiler
3921     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3922     ;;
3923   or1k*-*-*)
3924     noconfigdirs="$noconfigdirs gdb"
3925     ;;
3926   sh-*-* | sh64-*-*)
3927     case "${target}" in
3928       sh*-*-elf)
3929          ;;
3930       *)
3931          noconfigdirs="$noconfigdirs target-libgloss" ;;
3932     esac
3933     ;;
3934   sparc-*-sunos4*)
3935     if test x${is_cross_compiler} = xno ; then
3936            use_gnu_ld=no
3937     fi
3938     ;;
3939   tic6x-*-*)
3940     noconfigdirs="$noconfigdirs sim"
3941     ;;
3942   tilepro*-*-* | tilegx*-*-*)
3943     noconfigdirs="$noconfigdirs sim"
3944     ;;
3945   v810-*-*)
3946     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3947     ;;
3948   vax-*-*)
3949     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3950     ;;
3951 esac
3952
3953 # If we aren't building newlib, then don't build libgloss, since libgloss
3954 # depends upon some newlib header files.
3955 case "${noconfigdirs}" in
3956   *target-libgloss*) ;;
3957   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3958 esac
3959
3960 # Work in distributions that contain no compiler tools, like Autoconf.
3961 host_makefile_frag=/dev/null
3962 if test -d ${srcdir}/config ; then
3963 case "${host}" in
3964   i[3456789]86-*-msdosdjgpp*)
3965     host_makefile_frag="config/mh-djgpp"
3966     ;;
3967   *-cygwin*)
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3970 $as_echo_n "checking to see if cat works as expected... " >&6; }
3971 echo a >cygwin-cat-check
3972 if test `cat cygwin-cat-check` = a ; then
3973   rm cygwin-cat-check
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 $as_echo "yes" >&6; }
3976 else
3977   rm cygwin-cat-check
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980   as_fn_error "The cat command does not ignore carriage return characters.
3981   Please either mount the build directory in binary mode or run the following
3982   commands before running any configure script:
3983 set -o igncr
3984 export SHELLOPTS
3985   " "$LINENO" 5
3986 fi
3987
3988     host_makefile_frag="config/mh-cygwin"
3989     ;;
3990   *-mingw*)
3991     host_makefile_frag="config/mh-mingw"
3992     ;;
3993   alpha*-linux*)
3994     host_makefile_frag="config/mh-alpha-linux"
3995     ;;
3996   hppa*-hp-hpux10*)
3997     host_makefile_frag="config/mh-pa-hpux10"
3998     ;;
3999   hppa*-hp-hpux*)
4000     host_makefile_frag="config/mh-pa"
4001     ;;
4002   hppa*-*)
4003     host_makefile_frag="config/mh-pa"
4004     ;;
4005   *-*-darwin*)
4006     host_makefile_frag="config/mh-darwin"
4007     ;;
4008   powerpc-*-aix*)
4009     host_makefile_frag="config/mh-ppc-aix"
4010     ;;
4011   rs6000-*-aix*)
4012     host_makefile_frag="config/mh-ppc-aix"
4013     ;;
4014 esac
4015 fi
4016
4017 if test "${build}" != "${host}" ; then
4018   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4019   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4020   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4021   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4022   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4023   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4024   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4025   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4026   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4027   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4028   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4029   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4030   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4031 else
4032   AR_FOR_BUILD="\$(AR)"
4033   AS_FOR_BUILD="\$(AS)"
4034   CC_FOR_BUILD="\$(CC)"
4035   CXX_FOR_BUILD="\$(CXX)"
4036   GCJ_FOR_BUILD="\$(GCJ)"
4037   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4038   GOC_FOR_BUILD="\$(GOC)"
4039   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4040   LD_FOR_BUILD="\$(LD)"
4041   NM_FOR_BUILD="\$(NM)"
4042   RANLIB_FOR_BUILD="\$(RANLIB)"
4043   WINDRES_FOR_BUILD="\$(WINDRES)"
4044   WINDMC_FOR_BUILD="\$(WINDMC)"
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CC+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -n "$CC"; then
4061   ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 fi
4091 if test -z "$ac_cv_prog_CC"; then
4092   ac_ct_CC=$CC
4093   # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if test -n "$ac_ct_CC"; then
4101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110     ac_cv_prog_ac_ct_CC="gcc"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 $as_echo "$ac_ct_CC" >&6; }
4124 else
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129   if test "x$ac_ct_CC" = x; then
4130     CC=""
4131   else
4132     case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138     CC=$ac_ct_CC
4139   fi
4140 else
4141   CC="$ac_cv_prog_CC"
4142 fi
4143
4144 if test -z "$CC"; then
4145           if test -n "$ac_tool_prefix"; then
4146     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}cc; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if test "${ac_cv_prog_CC+set}" = set; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   if test -n "$CC"; then
4154   ac_cv_prog_CC="$CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159   IFS=$as_save_IFS
4160   test -z "$as_dir" && as_dir=.
4161     for ac_exec_ext in '' $ac_executable_extensions; do
4162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163     ac_cv_prog_CC="${ac_tool_prefix}cc"
4164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165     break 2
4166   fi
4167 done
4168   done
4169 IFS=$as_save_IFS
4170
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183   fi
4184 fi
4185 if test -z "$CC"; then
4186   # Extract the first word of "cc", so it can be a program name with args.
4187 set dummy cc; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_CC+set}" = set; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -n "$CC"; then
4194   ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196   ac_prog_rejected=no
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205        ac_prog_rejected=yes
4206        continue
4207      fi
4208     ac_cv_prog_CC="cc"
4209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213   done
4214 IFS=$as_save_IFS
4215
4216 if test $ac_prog_rejected = yes; then
4217   # We found a bogon in the path, so make sure we never use it.
4218   set dummy $ac_cv_prog_CC
4219   shift
4220   if test $# != 0; then
4221     # We chose a different compiler from the bogus one.
4222     # However, it has the same basename, so the bogon will be chosen
4223     # first if we set CC to just the basename; use the full file name.
4224     shift
4225     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4226   fi
4227 fi
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4234 else
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239
4240 fi
4241 if test -z "$CC"; then
4242   if test -n "$ac_tool_prefix"; then
4243   for ac_prog in cl.exe
4244   do
4245     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if test "${ac_cv_prog_CC+set}" = set; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   if test -n "$CC"; then
4253   ac_cv_prog_CC="$CC" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260     for ac_exec_ext in '' $ac_executable_extensions; do
4261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264     break 2
4265   fi
4266 done
4267   done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 $as_echo "$CC" >&6; }
4276 else
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281
4282     test -n "$CC" && break
4283   done
4284 fi
4285 if test -z "$CC"; then
4286   ac_ct_CC=$CC
4287   for ac_prog in cl.exe
4288 do
4289   # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if test -n "$ac_ct_CC"; then
4297   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304     for ac_exec_ext in '' $ac_executable_extensions; do
4305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306     ac_cv_prog_ac_ct_CC="$ac_prog"
4307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311   done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317 if test -n "$ac_ct_CC"; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319 $as_echo "$ac_ct_CC" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326   test -n "$ac_ct_CC" && break
4327 done
4328
4329   if test "x$ac_ct_CC" = x; then
4330     CC=""
4331   else
4332     case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338     CC=$ac_ct_CC
4339   fi
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error "no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details." "$LINENO" 5; }
4349
4350 # Provide some information about the compiler.
4351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352 set X $ac_compile
4353 ac_compiler=$2
4354 for ac_option in --version -v -V -qversion; do
4355   { { ac_try="$ac_compiler $ac_option >&5"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363   ac_status=$?
4364   if test -s conftest.err; then
4365     sed '10a\
4366 ... rest of stderr output deleted ...
4367          10q' conftest.err >conftest.er1
4368     cat conftest.er1 >&5
4369     rm -f conftest.er1 conftest.err
4370   fi
4371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; }
4373 done
4374
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4392 $as_echo_n "checking for C compiler default output file name... " >&6; }
4393 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394
4395 # The possible output files:
4396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4397
4398 ac_rmfiles=
4399 for ac_file in $ac_files
4400 do
4401   case $ac_file in
4402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4403     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4404   esac
4405 done
4406 rm -f $ac_rmfiles
4407
4408 if { { ac_try="$ac_link_default"
4409 case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415   (eval "$ac_link_default") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; }; then :
4419   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4421 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4422 # so that the user can short-circuit this test for compilers unknown to
4423 # Autoconf.
4424 for ac_file in $ac_files ''
4425 do
4426   test -f "$ac_file" || continue
4427   case $ac_file in
4428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4429         ;;
4430     [ab].out )
4431         # We found the default executable, but exeext='' is most
4432         # certainly right.
4433         break;;
4434     *.* )
4435         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4436         then :; else
4437            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4438         fi
4439         # We set ac_cv_exeext here because the later test for it is not
4440         # safe: cross compilers may not add the suffix if given an `-o'
4441         # argument, so we may need to know it at that point already.
4442         # Even if this section looks crufty: it has the advantage of
4443         # actually working.
4444         break;;
4445     * )
4446         break;;
4447   esac
4448 done
4449 test "$ac_cv_exeext" = no && ac_cv_exeext=
4450
4451 else
4452   ac_file=''
4453 fi
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4455 $as_echo "$ac_file" >&6; }
4456 if test -z "$ac_file"; then :
4457   $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4462 { as_fn_set_status 77
4463 as_fn_error "C compiler cannot create executables
4464 See \`config.log' for more details." "$LINENO" 5; }; }
4465 fi
4466 ac_exeext=$ac_cv_exeext
4467
4468 # Check that the compiler produces executables we can run.  If not, either
4469 # the compiler is broken, or we cross compile.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471 $as_echo_n "checking whether the C compiler works... " >&6; }
4472 # If not cross compiling, check that we can run a simple program.
4473 if test "$cross_compiling" != yes; then
4474   if { ac_try='./$ac_file'
4475   { { case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 $as_echo "$ac_try_echo"; } >&5
4481   (eval "$ac_try") 2>&5
4482   ac_status=$?
4483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484   test $ac_status = 0; }; }; then
4485     cross_compiling=no
4486   else
4487     if test "$cross_compiling" = maybe; then
4488         cross_compiling=yes
4489     else
4490         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4492 as_fn_error "cannot run C compiled programs.
4493 If you meant to cross compile, use \`--host'.
4494 See \`config.log' for more details." "$LINENO" 5; }
4495     fi
4496   fi
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499 $as_echo "yes" >&6; }
4500
4501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4502 ac_clean_files=$ac_clean_files_save
4503 # Check that the compiler produces executables we can run.  If not, either
4504 # the compiler is broken, or we cross compile.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4506 $as_echo_n "checking whether we are cross compiling... " >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4511 $as_echo_n "checking for suffix of executables... " >&6; }
4512 if { { ac_try="$ac_link"
4513 case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519   (eval "$ac_link") 2>&5
4520   ac_status=$?
4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522   test $ac_status = 0; }; then :
4523   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4524 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4525 # work properly (i.e., refer to `conftest.exe'), while it won't with
4526 # `rm'.
4527 for ac_file in conftest.exe conftest conftest.*; do
4528   test -f "$ac_file" || continue
4529   case $ac_file in
4530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4531     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532           break;;
4533     * ) break;;
4534   esac
4535 done
4536 else
4537   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error "cannot compute suffix of executables: cannot compile and link
4540 See \`config.log' for more details." "$LINENO" 5; }
4541 fi
4542 rm -f conftest$ac_cv_exeext
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4544 $as_echo "$ac_cv_exeext" >&6; }
4545
4546 rm -f conftest.$ac_ext
4547 EXEEXT=$ac_cv_exeext
4548 ac_exeext=$EXEEXT
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4550 $as_echo_n "checking for suffix of object files... " >&6; }
4551 if test "${ac_cv_objext+set}" = set; then :
4552   $as_echo_n "(cached) " >&6
4553 else
4554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556
4557 int
4558 main ()
4559 {
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.o conftest.obj
4566 if { { ac_try="$ac_compile"
4567 case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573   (eval "$ac_compile") 2>&5
4574   ac_status=$?
4575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576   test $ac_status = 0; }; then :
4577   for ac_file in conftest.o conftest.obj conftest.*; do
4578   test -f "$ac_file" || continue;
4579   case $ac_file in
4580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4581     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4582        break;;
4583   esac
4584 done
4585 else
4586   $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error "cannot compute suffix of object files: cannot compile
4592 See \`config.log' for more details." "$LINENO" 5; }
4593 fi
4594 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4597 $as_echo "$ac_cv_objext" >&6; }
4598 OBJEXT=$ac_cv_objext
4599 ac_objext=$OBJEXT
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607
4608 int
4609 main ()
4610 {
4611 #ifndef __GNUC__
4612        choke me
4613 #endif
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620   ac_compiler_gnu=yes
4621 else
4622   ac_compiler_gnu=no
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630 if test $ac_compiler_gnu = yes; then
4631   GCC=yes
4632 else
4633   GCC=
4634 fi
4635 ac_test_CFLAGS=${CFLAGS+set}
4636 ac_save_CFLAGS=$CFLAGS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4639 if test "${ac_cv_prog_cc_g+set}" = set; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642   ac_save_c_werror_flag=$ac_c_werror_flag
4643    ac_c_werror_flag=yes
4644    ac_cv_prog_cc_g=no
4645    CFLAGS="-g"
4646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h.  */
4648
4649 int
4650 main ()
4651 {
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658   ac_cv_prog_cc_g=yes
4659 else
4660   CFLAGS=""
4661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663
4664 int
4665 main ()
4666 {
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673
4674 else
4675   ac_c_werror_flag=$ac_save_c_werror_flag
4676          CFLAGS="-g"
4677          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679
4680 int
4681 main ()
4682 {
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_cv_prog_cc_g=yes
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696    ac_c_werror_flag=$ac_save_c_werror_flag
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699 $as_echo "$ac_cv_prog_cc_g" >&6; }
4700 if test "$ac_test_CFLAGS" = set; then
4701   CFLAGS=$ac_save_CFLAGS
4702 elif test $ac_cv_prog_cc_g = yes; then
4703   if test "$GCC" = yes; then
4704     CFLAGS="-g -O2"
4705   else
4706     CFLAGS="-g"
4707   fi
4708 else
4709   if test "$GCC" = yes; then
4710     CFLAGS="-O2"
4711   else
4712     CFLAGS=
4713   fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   ac_cv_prog_cc_c89=no
4721 ac_save_CC=$CC
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <stdarg.h>
4725 #include <stdio.h>
4726 #include <sys/types.h>
4727 #include <sys/stat.h>
4728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4729 struct buf { int x; };
4730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731 static char *e (p, i)
4732      char **p;
4733      int i;
4734 {
4735   return p[i];
4736 }
4737 static char *f (char * (*g) (char **, int), char **p, ...)
4738 {
4739   char *s;
4740   va_list v;
4741   va_start (v,p);
4742   s = g (p, va_arg (v,int));
4743   va_end (v);
4744   return s;
4745 }
4746
4747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4748    function prototypes and stuff, but not '\xHH' hex character constants.
4749    These don't provoke an error unfortunately, instead are silently treated
4750    as 'x'.  The following induces an error, until -std is added to get
4751    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4752    array size at least.  It's necessary to write '\x00'==0 to get something
4753    that's true only with -std.  */
4754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4755
4756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4757    inside strings and character constants.  */
4758 #define FOO(x) 'x'
4759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4760
4761 int test (int i, double x);
4762 struct s1 {int (*f) (int a);};
4763 struct s2 {int (*f) (double a);};
4764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765 int argc;
4766 char **argv;
4767 int
4768 main ()
4769 {
4770 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4776         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4777 do
4778   CC="$ac_save_CC $ac_arg"
4779   if ac_fn_c_try_compile "$LINENO"; then :
4780   ac_cv_prog_cc_c89=$ac_arg
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext
4783   test "x$ac_cv_prog_cc_c89" != "xno" && break
4784 done
4785 rm -f conftest.$ac_ext
4786 CC=$ac_save_CC
4787
4788 fi
4789 # AC_CACHE_VAL
4790 case "x$ac_cv_prog_cc_c89" in
4791   x)
4792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4793 $as_echo "none needed" >&6; } ;;
4794   xno)
4795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4796 $as_echo "unsupported" >&6; } ;;
4797   *)
4798     CC="$CC $ac_cv_prog_cc_c89"
4799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4801 esac
4802 if test "x$ac_cv_prog_cc_c89" != xno; then :
4803
4804 fi
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812 ac_ext=cpp
4813 ac_cpp='$CXXCPP $CPPFLAGS'
4814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4817 if test -z "$CXX"; then
4818   if test -n "$CCC"; then
4819     CXX=$CCC
4820   else
4821     if test -n "$ac_tool_prefix"; then
4822   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4823   do
4824     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_CXX+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -n "$CXX"; then
4832   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 CXX=$ac_cv_prog_CXX
4852 if test -n "$CXX"; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4854 $as_echo "$CXX" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861     test -n "$CXX" && break
4862   done
4863 fi
4864 if test -z "$CXX"; then
4865   ac_ct_CXX=$CXX
4866   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4867 do
4868   # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -n "$ac_ct_CXX"; then
4876   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885     ac_cv_prog_ac_ct_CXX="$ac_prog"
4886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4896 if test -n "$ac_ct_CXX"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4898 $as_echo "$ac_ct_CXX" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905   test -n "$ac_ct_CXX" && break
4906 done
4907
4908   if test "x$ac_ct_CXX" = x; then
4909     CXX="g++"
4910   else
4911     case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917     CXX=$ac_ct_CXX
4918   fi
4919 fi
4920
4921   fi
4922 fi
4923 # Provide some information about the compiler.
4924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4925 set X $ac_compile
4926 ac_compiler=$2
4927 for ac_option in --version -v -V -qversion; do
4928   { { ac_try="$ac_compiler $ac_option >&5"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4936   ac_status=$?
4937   if test -s conftest.err; then
4938     sed '10a\
4939 ... rest of stderr output deleted ...
4940          10q' conftest.err >conftest.er1
4941     cat conftest.er1 >&5
4942     rm -f conftest.er1 conftest.err
4943   fi
4944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945   test $ac_status = 0; }
4946 done
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4949 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h.  */
4955
4956 int
4957 main ()
4958 {
4959 #ifndef __GNUC__
4960        choke me
4961 #endif
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_cxx_try_compile "$LINENO"; then :
4968   ac_compiler_gnu=yes
4969 else
4970   ac_compiler_gnu=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4974
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4977 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4978 if test $ac_compiler_gnu = yes; then
4979   GXX=yes
4980 else
4981   GXX=
4982 fi
4983 ac_test_CXXFLAGS=${CXXFLAGS+set}
4984 ac_save_CXXFLAGS=$CXXFLAGS
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4986 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4987 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4991    ac_cxx_werror_flag=yes
4992    ac_cv_prog_cxx_g=no
4993    CXXFLAGS="-g"
4994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h.  */
4996
4997 int
4998 main ()
4999 {
5000
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_cxx_try_compile "$LINENO"; then :
5006   ac_cv_prog_cxx_g=yes
5007 else
5008   CXXFLAGS=""
5009       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011
5012 int
5013 main ()
5014 {
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_cxx_try_compile "$LINENO"; then :
5021
5022 else
5023   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024          CXXFLAGS="-g"
5025          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h.  */
5027
5028 int
5029 main ()
5030 {
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_cxx_try_compile "$LINENO"; then :
5037   ac_cv_prog_cxx_g=yes
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5047 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5048 if test "$ac_test_CXXFLAGS" = set; then
5049   CXXFLAGS=$ac_save_CXXFLAGS
5050 elif test $ac_cv_prog_cxx_g = yes; then
5051   if test "$GXX" = yes; then
5052     CXXFLAGS="-g -O2"
5053   else
5054     CXXFLAGS="-g"
5055   fi
5056 else
5057   if test "$GXX" = yes; then
5058     CXXFLAGS="-O2"
5059   else
5060     CXXFLAGS=
5061   fi
5062 fi
5063 ac_ext=c
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068
5069
5070 # We must set the default linker to the linker used by gcc for the correct
5071 # operation of libtool.  If LD is not defined and we are using gcc, try to
5072 # set the LD default to the ld used by gcc.
5073 if test -z "$LD"; then
5074   if test "$GCC" = yes; then
5075     case $build in
5076     *-*-mingw*)
5077       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5078     *)
5079       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5080     esac
5081     case $gcc_prog_ld in
5082     # Accept absolute paths.
5083     [\\/]* | [A-Za-z]:[\\/]*)
5084       LD="$gcc_prog_ld" ;;
5085     esac
5086   fi
5087 fi
5088
5089 # Check whether -static-libstdc++ -static-libgcc is supported.
5090 have_static_libs=no
5091 if test "$GCC" = yes; then
5092   saved_LDFLAGS="$LDFLAGS"
5093
5094   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5096 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5097   ac_ext=cpp
5098 ac_cpp='$CXXCPP $CPPFLAGS'
5099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5102
5103
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h.  */
5106
5107 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5108 #error -static-libstdc++ not implemented
5109 #endif
5110 int main() {}
5111 _ACEOF
5112 if ac_fn_cxx_try_link "$LINENO"; then :
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114 $as_echo "yes" >&6; }; have_static_libs=yes
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext \
5120     conftest$ac_exeext conftest.$ac_ext
5121   ac_ext=c
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127
5128   LDFLAGS="$saved_LDFLAGS"
5129 fi
5130
5131
5132
5133
5134 if test -n "$ac_tool_prefix"; then
5135   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$GNATBIND"; then
5143   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 GNATBIND=$ac_cv_prog_GNATBIND
5163 if test -n "$GNATBIND"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5165 $as_echo "$GNATBIND" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 fi
5173 if test -z "$ac_cv_prog_GNATBIND"; then
5174   ac_ct_GNATBIND=$GNATBIND
5175   # Extract the first word of "gnatbind", so it can be a program name with args.
5176 set dummy gnatbind; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   if test -n "$ac_ct_GNATBIND"; then
5183   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197   done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5203 if test -n "$ac_ct_GNATBIND"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5205 $as_echo "$ac_ct_GNATBIND" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211   if test "x$ac_ct_GNATBIND" = x; then
5212     GNATBIND="no"
5213   else
5214     case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220     GNATBIND=$ac_ct_GNATBIND
5221   fi
5222 else
5223   GNATBIND="$ac_cv_prog_GNATBIND"
5224 fi
5225
5226 if test -n "$ac_tool_prefix"; then
5227   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5228 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$GNATMAKE"; then
5235   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 GNATMAKE=$ac_cv_prog_GNATMAKE
5255 if test -n "$GNATMAKE"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5257 $as_echo "$GNATMAKE" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 fi
5265 if test -z "$ac_cv_prog_GNATMAKE"; then
5266   ac_ct_GNATMAKE=$GNATMAKE
5267   # Extract the first word of "gnatmake", so it can be a program name with args.
5268 set dummy gnatmake; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$ac_ct_GNATMAKE"; then
5275   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5295 if test -n "$ac_ct_GNATMAKE"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5297 $as_echo "$ac_ct_GNATMAKE" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303   if test "x$ac_ct_GNATMAKE" = x; then
5304     GNATMAKE="no"
5305   else
5306     case $cross_compiling:$ac_tool_warned in
5307 yes:)
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310 ac_tool_warned=yes ;;
5311 esac
5312     GNATMAKE=$ac_ct_GNATMAKE
5313   fi
5314 else
5315   GNATMAKE="$ac_cv_prog_GNATMAKE"
5316 fi
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5319 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5320 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   cat >conftest.adb <<EOF
5324 procedure conftest is begin null; end conftest;
5325 EOF
5326 acx_cv_cc_gcc_supports_ada=no
5327 # There is a bug in old released versions of GCC which causes the
5328 # driver to exit successfully when the appropriate language module
5329 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5330 # Therefore we must check for the error message as well as an
5331 # unsuccessful exit.
5332 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5333 # given a .adb file, but produce no object file.  So we must check
5334 # if an object file was really produced to guard against this.
5335 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5336 if test x"$errors" = x && test -f conftest.$ac_objext; then
5337   acx_cv_cc_gcc_supports_ada=yes
5338 fi
5339 rm -f conftest.*
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5342 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5343
5344 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5345   have_gnat=yes
5346 else
5347   have_gnat=no
5348 fi
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5351 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5352 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355    echo abfoo >t1
5356   echo cdfoo >t2
5357   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5358   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5359     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5360       :
5361     else
5362       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5363     fi
5364   fi
5365   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5366     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5367       :
5368     else
5369       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5370     fi
5371   fi
5372   rm t1 t2
5373
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5376 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5377 do_compare="$gcc_cv_prog_cmp_skip"
5378
5379
5380
5381 # Check whether --enable-bootstrap was given.
5382 if test "${enable_bootstrap+set}" = set; then :
5383   enableval=$enable_bootstrap;
5384 else
5385   enable_bootstrap=default
5386 fi
5387
5388
5389 # Issue errors and warnings for invalid/strange bootstrap combinations.
5390 if test -r $srcdir/gcc/configure; then
5391   have_compiler=yes
5392 else
5393   have_compiler=no
5394 fi
5395
5396 case "$have_compiler:$host:$target:$enable_bootstrap" in
5397   *:*:*:no) ;;
5398
5399   # Default behavior.  Enable bootstrap if we have a compiler
5400   # and we are in a native configuration.
5401   yes:$build:$build:default)
5402     enable_bootstrap=yes ;;
5403
5404   *:*:*:default)
5405     enable_bootstrap=no ;;
5406
5407   # We have a compiler and we are in a native configuration, bootstrap is ok
5408   yes:$build:$build:yes)
5409     ;;
5410
5411   # Other configurations, but we have a compiler.  Assume the user knows
5412   # what he's doing.
5413   yes:*:*:yes)
5414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5415 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5416     ;;
5417
5418   # No compiler: if they passed --enable-bootstrap explicitly, fail
5419   no:*:*:yes)
5420     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5421
5422   # Fail if wrong command line
5423   *)
5424     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5425     ;;
5426 esac
5427
5428 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5429 # C++98 compiler can still start the bootstrap.
5430 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5431   CXX="$CXX -std=gnu++98"
5432 fi
5433
5434 # Used for setting $lt_cv_objdir
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5436 $as_echo_n "checking for objdir... " >&6; }
5437 if test "${lt_cv_objdir+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   rm -f .libs 2>/dev/null
5441 mkdir .libs 2>/dev/null
5442 if test -d .libs; then
5443   lt_cv_objdir=.libs
5444 else
5445   # MS-DOS does not allow filenames that begin with a dot.
5446   lt_cv_objdir=_libs
5447 fi
5448 rmdir .libs 2>/dev/null
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5451 $as_echo "$lt_cv_objdir" >&6; }
5452 objdir=$lt_cv_objdir
5453
5454
5455
5456
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define LT_OBJDIR "$lt_cv_objdir/"
5460 _ACEOF
5461
5462
5463
5464 # Check for GMP, MPFR and MPC
5465 gmplibs="-lmpc -lmpfr -lgmp"
5466 gmpinc=
5467 have_gmp=no
5468
5469 # Specify a location for mpc
5470 # check for this first so it ends up on the link line before mpfr.
5471
5472 # Check whether --with-mpc was given.
5473 if test "${with_mpc+set}" = set; then :
5474   withval=$with_mpc;
5475 fi
5476
5477
5478 # Check whether --with-mpc-include was given.
5479 if test "${with_mpc_include+set}" = set; then :
5480   withval=$with_mpc_include;
5481 fi
5482
5483
5484 # Check whether --with-mpc-lib was given.
5485 if test "${with_mpc_lib+set}" = set; then :
5486   withval=$with_mpc_lib;
5487 fi
5488
5489
5490 if test "x$with_mpc" != x; then
5491   gmplibs="-L$with_mpc/lib $gmplibs"
5492   gmpinc="-I$with_mpc/include $gmpinc"
5493 fi
5494 if test "x$with_mpc_include" != x; then
5495   gmpinc="-I$with_mpc_include $gmpinc"
5496 fi
5497 if test "x$with_mpc_lib" != x; then
5498   gmplibs="-L$with_mpc_lib $gmplibs"
5499 fi
5500 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5501   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5502   gmpinc='-I$$s/mpc/src '"$gmpinc"
5503   # Do not test the mpc version.  Assume that it is sufficient, since
5504   # it is in the source tree, and the library has not been built yet
5505   # but it would be included on the link line in the version check below
5506   # hence making the test fail.
5507   have_gmp=yes
5508 fi
5509
5510 # Specify a location for mpfr
5511 # check for this first so it ends up on the link line before gmp.
5512
5513 # Check whether --with-mpfr-dir was given.
5514 if test "${with_mpfr_dir+set}" = set; then :
5515   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5516 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5517 fi
5518
5519
5520
5521 # Check whether --with-mpfr was given.
5522 if test "${with_mpfr+set}" = set; then :
5523   withval=$with_mpfr;
5524 fi
5525
5526
5527 # Check whether --with-mpfr-include was given.
5528 if test "${with_mpfr_include+set}" = set; then :
5529   withval=$with_mpfr_include;
5530 fi
5531
5532
5533 # Check whether --with-mpfr-lib was given.
5534 if test "${with_mpfr_lib+set}" = set; then :
5535   withval=$with_mpfr_lib;
5536 fi
5537
5538
5539 if test "x$with_mpfr" != x; then
5540   gmplibs="-L$with_mpfr/lib $gmplibs"
5541   gmpinc="-I$with_mpfr/include $gmpinc"
5542 fi
5543 if test "x$with_mpfr_include" != x; then
5544   gmpinc="-I$with_mpfr_include $gmpinc"
5545 fi
5546 if test "x$with_mpfr_lib" != x; then
5547   gmplibs="-L$with_mpfr_lib $gmplibs"
5548 fi
5549 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5550   # MPFR v3.1.0 moved the sources into a src sub-directory.
5551   if test -d ${srcdir}/mpfr/src; then
5552     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5553     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5554     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5555   else
5556     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5557     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5558     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5559   fi
5560   # Do not test the mpfr version.  Assume that it is sufficient, since
5561   # it is in the source tree, and the library has not been built yet
5562   # but it would be included on the link line in the version check below
5563   # hence making the test fail.
5564   have_gmp=yes
5565 fi
5566
5567 # Specify a location for gmp
5568
5569 # Check whether --with-gmp-dir was given.
5570 if test "${with_gmp_dir+set}" = set; then :
5571   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5572 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5573 fi
5574
5575
5576
5577 # Check whether --with-gmp was given.
5578 if test "${with_gmp+set}" = set; then :
5579   withval=$with_gmp;
5580 fi
5581
5582
5583 # Check whether --with-gmp-include was given.
5584 if test "${with_gmp_include+set}" = set; then :
5585   withval=$with_gmp_include;
5586 fi
5587
5588
5589 # Check whether --with-gmp-lib was given.
5590 if test "${with_gmp_lib+set}" = set; then :
5591   withval=$with_gmp_lib;
5592 fi
5593
5594
5595
5596 if test "x$with_gmp" != x; then
5597   gmplibs="-L$with_gmp/lib $gmplibs"
5598   gmpinc="-I$with_gmp/include $gmpinc"
5599 fi
5600 if test "x$with_gmp_include" != x; then
5601   gmpinc="-I$with_gmp_include $gmpinc"
5602 fi
5603 if test "x$with_gmp_lib" != x; then
5604   gmplibs="-L$with_gmp_lib $gmplibs"
5605 fi
5606 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5607   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5608   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5609   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5610   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5611   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5612   # Do not test the gmp version.  Assume that it is sufficient, since
5613   # it is in the source tree, and the library has not been built yet
5614   # but it would be included on the link line in the version check below
5615   # hence making the test fail.
5616   have_gmp=yes
5617 fi
5618
5619 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5620   have_gmp=yes
5621   saved_CFLAGS="$CFLAGS"
5622   CFLAGS="$CFLAGS $gmpinc"
5623   # Check for the recommended and required versions of GMP.
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5625 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5626
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include "gmp.h"
5630 int
5631 main ()
5632 {
5633
5634   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5635   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5636   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5637   choke me
5638   #endif
5639
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647 #include <gmp.h>
5648 int
5649 main ()
5650 {
5651
5652   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5653   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5654   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5655   choke me
5656   #endif
5657
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664 $as_echo "yes" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5667 $as_echo "buggy but acceptable" >&6; }
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }; have_gmp=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675
5676   # If we have GMP, check the MPFR version.
5677   if test x"$have_gmp" = xyes; then
5678     # Check for the recommended and required versions of MPFR.
5679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5680 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h.  */
5683 #include <gmp.h>
5684     #include <mpfr.h>
5685 int
5686 main ()
5687 {
5688
5689     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5690     choke me
5691     #endif
5692
5693   ;
5694   return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h.  */
5700 #include <gmp.h>
5701     #include <mpfr.h>
5702 int
5703 main ()
5704 {
5705
5706     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5707     choke me
5708     #endif
5709
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 else
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5719 $as_echo "buggy but acceptable" >&6; }
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }; have_gmp=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727   fi
5728
5729   # Check for the MPC header version.
5730   if test x"$have_gmp" = xyes ; then
5731     # Check for the recommended and required versions of MPC.
5732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5733 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h.  */
5736 #include <mpc.h>
5737 int
5738 main ()
5739 {
5740
5741     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5742     choke me
5743     #endif
5744
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h.  */
5752 #include <mpc.h>
5753 int
5754 main ()
5755 {
5756
5757     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5758     choke me
5759     #endif
5760
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767 $as_echo "yes" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5770 $as_echo "buggy but acceptable" >&6; }
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }; have_gmp=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778   fi
5779
5780   # Now check the MPFR library.
5781   if test x"$have_gmp" = xyes; then
5782     saved_LIBS="$LIBS"
5783     LIBS="$LIBS $gmplibs"
5784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5785 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h.  */
5788 #include <mpc.h>
5789 int
5790 main ()
5791 {
5792
5793     mpfr_t n;
5794     mpfr_t x;
5795     mpc_t c;
5796     int t;
5797     mpfr_init (n);
5798     mpfr_init (x);
5799     mpfr_atan2 (n, n, x, GMP_RNDN);
5800     mpfr_erfc (n, x, GMP_RNDN);
5801     mpfr_subnormalize (x, t, GMP_RNDN);
5802     mpfr_clear(n);
5803     mpfr_clear(x);
5804     mpc_init2 (c, 53);
5805     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5806     mpc_cosh (c, c, MPC_RNDNN);
5807     mpc_pow (c, c, c, MPC_RNDNN);
5808     mpc_acosh (c, c, MPC_RNDNN);
5809     mpc_clear (c);
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5817 $as_echo "yes" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }; have_gmp=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext \
5823     conftest$ac_exeext conftest.$ac_ext
5824     LIBS="$saved_LIBS"
5825   fi
5826
5827   CFLAGS="$saved_CFLAGS"
5828
5829 # The library versions listed in the error message below should match
5830 # the HARD-minimums enforced above.
5831   if test x$have_gmp != xyes; then
5832     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5833 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5834 their locations.  Source code for these libraries can be found at
5835 their respective hosting sites as well as at
5836 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5837 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5838 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5839 make sure that you have installed both the libraries and the header
5840 files.  They may be located in separate packages." "$LINENO" 5
5841   fi
5842 fi
5843
5844 # Flags needed for both GMP, MPFR and/or MPC.
5845
5846
5847
5848
5849
5850
5851
5852 # Allow host libstdc++ to be specified for static linking with PPL.
5853
5854 # Check whether --with-host-libstdcxx was given.
5855 if test "${with_host_libstdcxx+set}" = set; then :
5856   withval=$with_host_libstdcxx;
5857 fi
5858
5859
5860 case $with_host_libstdcxx in
5861   no|yes)
5862     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5863     ;;
5864 esac
5865
5866 # Libraries to use for stage1 or when not bootstrapping.
5867
5868 # Check whether --with-stage1-libs was given.
5869 if test "${with_stage1_libs+set}" = set; then :
5870   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5871    stage1_libs=
5872  else
5873    stage1_libs=$withval
5874  fi
5875 else
5876   stage1_libs=$with_host_libstdcxx
5877 fi
5878
5879
5880
5881 # Linker flags to use for stage1 or when not bootstrapping.
5882
5883 # Check whether --with-stage1-ldflags was given.
5884 if test "${with_stage1_ldflags+set}" = set; then :
5885   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5886    stage1_ldflags=
5887  else
5888    stage1_ldflags=$withval
5889  fi
5890 else
5891   stage1_ldflags=
5892  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5893  # if supported.  But if the user explicitly specified the libraries to use,
5894  # trust that they are doing what they want.
5895  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5896    stage1_ldflags="-static-libstdc++ -static-libgcc"
5897  fi
5898 fi
5899
5900
5901
5902 # Libraries to use for stage2 and later builds.  This defaults to the
5903 # argument passed to --with-host-libstdcxx.
5904
5905 # Check whether --with-boot-libs was given.
5906 if test "${with_boot_libs+set}" = set; then :
5907   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5908    poststage1_libs=
5909  else
5910    poststage1_libs=$withval
5911  fi
5912 else
5913   poststage1_libs=$with_host_libstdcxx
5914 fi
5915
5916
5917
5918 # Linker flags to use for stage2 and later builds.
5919
5920 # Check whether --with-boot-ldflags was given.
5921 if test "${with_boot_ldflags+set}" = set; then :
5922   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5923    poststage1_ldflags=
5924  else
5925    poststage1_ldflags=$withval
5926  fi
5927 else
5928   poststage1_ldflags=
5929  # In stages 2 and 3, default to linking libstdc++ and libgcc
5930  # statically.  But if the user explicitly specified the libraries to
5931  # use, trust that they are doing what they want.
5932  if test "$poststage1_libs" = ""; then
5933    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5934  fi
5935 fi
5936
5937
5938
5939 # GCC GRAPHITE dependency ISL.
5940 # Basic setup is inlined here, actual checks are in config/isl.m4
5941
5942
5943 # Check whether --with-isl was given.
5944 if test "${with_isl+set}" = set; then :
5945   withval=$with_isl;
5946 fi
5947
5948
5949 # Treat --without-isl as a request to disable
5950 # GRAPHITE support and skip all following checks.
5951 if test "x$with_isl" != "xno"; then
5952   # Check for ISL
5953
5954
5955 # Check whether --with-isl-include was given.
5956 if test "${with_isl_include+set}" = set; then :
5957   withval=$with_isl_include;
5958 fi
5959
5960
5961 # Check whether --with-isl-lib was given.
5962 if test "${with_isl_lib+set}" = set; then :
5963   withval=$with_isl_lib;
5964 fi
5965
5966
5967   # Check whether --enable-isl-version-check was given.
5968 if test "${enable_isl_version_check+set}" = set; then :
5969   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5970 else
5971   ENABLE_ISL_CHECK=yes
5972 fi
5973
5974
5975   # Initialize isllibs and islinc.
5976   case $with_isl in
5977     no)
5978       isllibs=
5979       islinc=
5980       ;;
5981     "" | yes)
5982       ;;
5983     *)
5984       isllibs="-L$with_isl/lib"
5985       islinc="-I$with_isl/include"
5986       ;;
5987   esac
5988   if test "x${with_isl_include}" != x ; then
5989     islinc="-I$with_isl_include"
5990   fi
5991   if test "x${with_isl_lib}" != x; then
5992     isllibs="-L$with_isl_lib"
5993   fi
5994         if test "x${islinc}" = x && test "x${isllibs}" = x \
5995      && test -d ${srcdir}/isl; then
5996     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5997     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5998     ENABLE_ISL_CHECK=no
5999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
6000 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
6001   fi
6002
6003   isllibs="${isllibs} -lisl"
6004
6005
6006
6007   if test "${ENABLE_ISL_CHECK}" = yes ; then
6008     _isl_saved_CFLAGS=$CFLAGS
6009     _isl_saved_LDFLAGS=$LDFLAGS
6010     _isl_saved_LIBS=$LIBS
6011
6012     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6013     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6014     LIBS="${_isl_saved_LIBS} -lisl"
6015
6016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6017 $as_echo_n "checking for compatible ISL... " >&6; }
6018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h.  */
6020 #include <isl/val.h>
6021 int
6022 main ()
6023 {
6024 ;
6025   ;
6026   return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_c_try_link "$LINENO"; then :
6030   gcc_cv_isl=yes
6031 else
6032   gcc_cv_isl=no
6033 fi
6034 rm -f core conftest.err conftest.$ac_objext \
6035     conftest$ac_exeext conftest.$ac_ext
6036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6037 $as_echo "$gcc_cv_isl" >&6; }
6038
6039     CFLAGS=$_isl_saved_CFLAGS
6040     LDFLAGS=$_isl_saved_LDFLAGS
6041     LIBS=$_isl_saved_LIBS
6042   fi
6043
6044
6045
6046
6047
6048
6049   if test "x${with_isl}" = xno; then
6050     graphite_requested=no
6051   elif test "x${with_isl}" != x \
6052     || test "x${with_isl_include}" != x \
6053     || test "x${with_isl_lib}" != x ; then
6054     graphite_requested=yes
6055   else
6056     graphite_requested=no
6057   fi
6058
6059
6060
6061   if test "${gcc_cv_isl}" = no ; then
6062     isllibs=
6063     islinc=
6064   fi
6065
6066   if test "${graphite_requested}" = yes \
6067     && test "x${isllibs}" = x \
6068     && test "x${islinc}" = x ; then
6069
6070     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
6071   fi
6072
6073
6074 fi
6075
6076 # If the ISL check failed, disable builds of in-tree variant of ISL
6077 if test "x$with_isl" = xno ||
6078    test "x$gcc_cv_isl" = xno; then
6079   noconfigdirs="$noconfigdirs isl"
6080   islinc=
6081 fi
6082
6083
6084
6085
6086 # Check for LTO support.
6087 # Check whether --enable-lto was given.
6088 if test "${enable_lto+set}" = set; then :
6089   enableval=$enable_lto; enable_lto=$enableval
6090 else
6091   enable_lto=yes; default_enable_lto=yes
6092 fi
6093
6094
6095
6096
6097
6098 target_elf=no
6099 case $target in
6100   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6101   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6102   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6103   nvptx-*-none)
6104     target_elf=no
6105     ;;
6106   *)
6107     target_elf=yes
6108     ;;
6109 esac
6110
6111 if test $target_elf = yes; then :
6112   # ELF platforms build the lto-plugin always.
6113   build_lto_plugin=yes
6114
6115 else
6116   if test x"$default_enable_lto" = x"yes" ; then
6117     case $target in
6118       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6119       # On other non-ELF platforms, LTO has yet to be validated.
6120       *) enable_lto=no ;;
6121     esac
6122   else
6123   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6124   # It would also be nice to check the binutils support, but we don't
6125   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6126   # warn during gcc/ subconfigure; unless you're bootstrapping with
6127   # -flto it won't be needed until after installation anyway.
6128     case $target in
6129       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6130       *) if test x"$enable_lto" = x"yes"; then
6131         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6132         fi
6133       ;;
6134     esac
6135   fi
6136   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6137   # Build it unless LTO was explicitly disabled.
6138   case $target in
6139     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6140     *) ;;
6141   esac
6142
6143 fi
6144
6145
6146 # Check whether --enable-linker-plugin-configure-flags was given.
6147 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6148   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6149 else
6150   extra_linker_plugin_configure_flags=
6151 fi
6152
6153
6154 # Check whether --enable-linker-plugin-flags was given.
6155 if test "${enable_linker_plugin_flags+set}" = set; then :
6156   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6157 else
6158   extra_linker_plugin_flags=
6159 fi
6160
6161
6162
6163
6164 # By default, C and C++ are the only stage 1 languages.
6165 stage1_languages=,c,
6166
6167 # Target libraries that we bootstrap.
6168 bootstrap_target_libs=,target-libgcc,
6169
6170 # Figure out what language subdirectories are present.
6171 # Look if the user specified --enable-languages="..."; if not, use
6172 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6173 # go away some day.
6174 # NB:  embedded tabs in this IF block -- do not untabify
6175 if test -d ${srcdir}/gcc; then
6176   if test x"${enable_languages+set}" != xset; then
6177     if test x"${LANGUAGES+set}" = xset; then
6178       enable_languages="${LANGUAGES}"
6179         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6180     else
6181       enable_languages=all
6182     fi
6183   else
6184     if test x"${enable_languages}" = x ||
6185        test x"${enable_languages}" = xyes;
6186        then
6187       echo configure.in: --enable-languages needs at least one language argument 1>&2
6188       exit 1
6189     fi
6190   fi
6191   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6192
6193   # 'f95' is the old name for the 'fortran' language. We issue a warning
6194   # and make the substitution.
6195   case ,${enable_languages}, in
6196     *,f95,*)
6197       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6198       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6199       ;;
6200   esac
6201
6202   # If bootstrapping, C++ must be enabled.
6203   case ",$enable_languages,:$enable_bootstrap" in
6204     *,c++,*:*) ;;
6205     *:yes)
6206       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6207         enable_languages="${enable_languages},c++"
6208       else
6209         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6210       fi
6211       ;;
6212   esac
6213
6214   # First scan to see if an enabled language requires some other language.
6215   # We assume that a given config-lang.in will list all the language
6216   # front ends it requires, even if some are required indirectly.
6217   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6218     case ${lang_frag} in
6219       ..) ;;
6220       # The odd quoting in the next line works around
6221       # an apparent bug in bash 1.12 on linux.
6222       ${srcdir}/gcc/[*]/config-lang.in) ;;
6223       *)
6224         # From the config-lang.in, get $language, $lang_requires, and
6225         # $lang_requires_boot_languages.
6226         language=
6227         lang_requires=
6228         lang_requires_boot_languages=
6229         . ${lang_frag}
6230         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6231           case ,${enable_languages}, in
6232             *,$other,*) ;;
6233             *,all,*) ;;
6234             *,$language,*)
6235               echo " \`$other' language required by \`$language'; enabling" 1>&2
6236               enable_languages="${enable_languages},${other}"
6237               ;;
6238           esac
6239         done
6240         for other in ${lang_requires_boot_languages} ; do
6241           if test "$other" != "c"; then
6242             case ,${enable_stage1_languages}, in
6243               *,$other,*) ;;
6244               *,all,*) ;;
6245               *)
6246                 case ,${enable_languages}, in
6247                   *,$language,*)
6248                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6249                     enable_stage1_languages="$enable_stage1_languages,${other}"
6250                     ;;
6251                 esac
6252                 ;;
6253             esac
6254           fi
6255         done
6256         ;;
6257     esac
6258   done
6259
6260   new_enable_languages=,c,
6261
6262   # If LTO is enabled, add the LTO front end.
6263   if test "$enable_lto" = "yes" ; then
6264     case ,${enable_languages}, in
6265       *,lto,*) ;;
6266       *) enable_languages="${enable_languages},lto" ;;
6267     esac
6268     if test "${build_lto_plugin}" = "yes" ; then
6269       configdirs="$configdirs lto-plugin"
6270     fi
6271   fi
6272
6273   # If we're building an offloading compiler, add the LTO front end.
6274   if test x"$enable_as_accelerator_for" != x ; then
6275     case ,${enable_languages}, in
6276       *,lto,*) ;;
6277       *) enable_languages="${enable_languages},lto" ;;
6278     esac
6279   fi
6280
6281   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6282   potential_languages=,c,
6283
6284   enabled_target_libs=
6285   disabled_target_libs=
6286
6287   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6288     case ${lang_frag} in
6289       ..) ;;
6290       # The odd quoting in the next line works around
6291       # an apparent bug in bash 1.12 on linux.
6292       ${srcdir}/gcc/[*]/config-lang.in) ;;
6293       *)
6294         # From the config-lang.in, get $language, $target_libs,
6295         # $lang_dirs, $boot_language, and $build_by_default
6296         language=
6297         target_libs=
6298         lang_dirs=
6299         subdir_requires=
6300         boot_language=no
6301         build_by_default=yes
6302         . ${lang_frag}
6303         if test x${language} = x; then
6304           echo "${lang_frag} doesn't set \$language." 1>&2
6305           exit 1
6306         fi
6307
6308         if test "$language" = "c++"; then
6309           boot_language=yes
6310         fi
6311
6312         add_this_lang=no
6313         case ,${enable_languages}, in
6314           *,${language},*)
6315             # Language was explicitly selected; include it
6316             # unless it is C, which is enabled by default.
6317             if test "$language" != "c"; then
6318               add_this_lang=yes
6319             fi
6320             ;;
6321           *,all,*)
6322             # 'all' was selected, select it if it is a default language
6323             if test "$language" != "c"; then
6324               add_this_lang=${build_by_default}
6325             fi
6326             ;;
6327         esac
6328
6329         # Disable languages that need other directories if these aren't available.
6330         for i in $subdir_requires; do
6331           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6332           case ,${enable_languages}, in
6333             *,${language},*)
6334               # Specifically requested language; tell them.
6335               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6336               ;;
6337             *)
6338               # Silently disable.
6339               add_this_lang=unsupported
6340               ;;
6341           esac
6342         done
6343
6344         # Disable Ada if no preexisting GNAT is available.
6345         case ,${enable_languages},:${language}:${have_gnat} in
6346           *,${language},*:ada:no)
6347             # Specifically requested language; tell them.
6348             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6349             ;;
6350           *:ada:no)
6351             # Silently disable.
6352             add_this_lang=unsupported
6353             ;;
6354         esac
6355
6356         # Disable a language that is unsupported by the target.
6357         case " $unsupported_languages " in
6358           *" $language "*)
6359             add_this_lang=unsupported
6360             ;;
6361         esac
6362
6363         case $add_this_lang in
6364           unsupported)
6365             # Remove language-dependent dirs.
6366             disabled_target_libs="$disabled_target_libs $target_libs"
6367             noconfigdirs="$noconfigdirs $lang_dirs"
6368             ;;
6369           no)
6370             # Remove language-dependent dirs; still show language as supported.
6371             disabled_target_libs="$disabled_target_libs $target_libs"
6372             noconfigdirs="$noconfigdirs $lang_dirs"
6373             potential_languages="${potential_languages}${language},"
6374             ;;
6375           yes)
6376             new_enable_languages="${new_enable_languages}${language},"
6377             potential_languages="${potential_languages}${language},"
6378             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6379             enabled_target_libs="$enabled_target_libs $target_libs"
6380             case "${boot_language}:,$enable_stage1_languages," in
6381               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6382                 # Add to (comma-separated) list of stage 1 languages.
6383                 case ",$stage1_languages," in
6384                   *,$language,* | ,yes, | ,all,) ;;
6385                   *) stage1_languages="${stage1_languages}${language}," ;;
6386                 esac
6387                 # We need to bootstrap any supporting libraries.
6388                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6389                 ;;
6390             esac
6391             ;;
6392         esac
6393         ;;
6394     esac
6395   done
6396
6397   # Add target libraries which are only needed for disabled languages
6398   # to noconfigdirs.
6399   if test -n "$disabled_target_libs"; then
6400     for dir in $disabled_target_libs; do
6401       case " $enabled_target_libs " in
6402       *" ${dir} "*) ;;
6403       *) noconfigdirs="$noconfigdirs $dir" ;;
6404       esac
6405     done
6406   fi
6407
6408   # Check whether --enable-stage1-languages was given.
6409 if test "${enable_stage1_languages+set}" = set; then :
6410   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6411     ,no,|,,)
6412       # Set it to something that will have no effect in the loop below
6413       enable_stage1_languages=c ;;
6414     ,yes,)
6415       enable_stage1_languages=`echo $new_enable_languages | \
6416         sed -e "s/^,//" -e "s/,$//" ` ;;
6417     *,all,*)
6418       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6419         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6420   esac
6421
6422   # Add "good" languages from enable_stage1_languages to stage1_languages,
6423   # while "bad" languages go in missing_languages.  Leave no duplicates.
6424   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6425     case $potential_languages in
6426       *,$i,*)
6427         case $stage1_languages in
6428           *,$i,*) ;;
6429           *) stage1_languages="$stage1_languages$i," ;;
6430         esac ;;
6431       *)
6432         case $missing_languages in
6433           *,$i,*) ;;
6434           *) missing_languages="$missing_languages$i," ;;
6435         esac ;;
6436      esac
6437   done
6438 fi
6439
6440
6441   # Remove leading/trailing commas that were added for simplicity
6442   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6443   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6444   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6445   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6446
6447   if test "x$missing_languages" != x; then
6448     as_fn_error "
6449 The following requested languages could not be built: ${missing_languages}
6450 Supported languages are: ${potential_languages}" "$LINENO" 5
6451   fi
6452   if test "x$new_enable_languages" != "x$enable_languages"; then
6453     echo The following languages will be built: ${new_enable_languages}
6454     enable_languages="$new_enable_languages"
6455   fi
6456
6457
6458   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6459 fi
6460
6461 # Handle --disable-<component> generically.
6462 for dir in $configdirs $build_configdirs $target_configdirs ; do
6463   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6464   varname=`echo $dirname | sed -e s/+/_/g`
6465   if eval test x\${enable_${varname}} "=" xno ; then
6466     noconfigdirs="$noconfigdirs $dir"
6467   fi
6468 done
6469
6470 # Check for Boehm's garbage collector
6471 # Check whether --enable-objc-gc was given.
6472 if test "${enable_objc_gc+set}" = set; then :
6473   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6474   *,objc,*:*:yes:*target-boehm-gc*)
6475     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6476     ;;
6477 esac
6478 fi
6479
6480
6481 # Make sure we only build Boehm's garbage collector if required.
6482 case ,${enable_languages},:${enable_objc_gc} in
6483   *,objc,*:yes)
6484     # Keep target-boehm-gc if requested for Objective-C.
6485     ;;
6486   *)
6487     # Otherwise remove target-boehm-gc depending on target-libjava.
6488     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6489       noconfigdirs="$noconfigdirs target-boehm-gc"
6490     fi
6491     ;;
6492 esac
6493
6494 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6495 case ,${enable_languages}, in
6496   *,c++,*)
6497     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6498     case "${noconfigdirs}" in
6499       *target-libstdc++-v3*)
6500         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6501         ;;
6502       *) ;;
6503     esac
6504     ;;
6505   *)
6506     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6507     ;;
6508 esac
6509
6510 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6511 # $build_configdirs and $target_configdirs.
6512 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6513
6514 notsupp=""
6515 for dir in . $skipdirs $noconfigdirs ; do
6516   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6517   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6519     if test -r $srcdir/$dirname/configure ; then
6520       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6521         true
6522       else
6523         notsupp="$notsupp $dir"
6524       fi
6525     fi
6526   fi
6527   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6528     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6529     if test -r $srcdir/$dirname/configure ; then
6530       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6531         true
6532       else
6533         notsupp="$notsupp $dir"
6534       fi
6535     fi
6536   fi
6537   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6538     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6539     if test -r $srcdir/$dirname/configure ; then
6540       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6541         true
6542       else
6543         notsupp="$notsupp $dir"
6544       fi
6545     fi
6546   fi
6547 done
6548
6549 # Quietly strip out all directories which aren't configurable in this tree.
6550 # This relies on all configurable subdirectories being autoconfiscated, which
6551 # is now the case.
6552 build_configdirs_all="$build_configdirs"
6553 build_configdirs=
6554 for i in ${build_configdirs_all} ; do
6555   j=`echo $i | sed -e s/build-//g`
6556   if test -f ${srcdir}/$j/configure ; then
6557     build_configdirs="${build_configdirs} $i"
6558   fi
6559 done
6560
6561 configdirs_all="$configdirs"
6562 configdirs=
6563 for i in ${configdirs_all} ; do
6564   if test -f ${srcdir}/$i/configure ; then
6565     configdirs="${configdirs} $i"
6566   fi
6567 done
6568
6569 target_configdirs_all="$target_configdirs"
6570 target_configdirs=
6571 for i in ${target_configdirs_all} ; do
6572   j=`echo $i | sed -e s/target-//g`
6573   if test -f ${srcdir}/$j/configure ; then
6574     target_configdirs="${target_configdirs} $i"
6575   fi
6576 done
6577
6578 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6579 # so we have to add it after the preceding checks.
6580 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6581 then
6582   case " $configdirs " in
6583     *" libiberty "*)
6584       # If we can build libiberty, we can also build libiberty-linker-plugin.
6585       configdirs="$configdirs libiberty-linker-plugin"
6586       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6587         --with-libiberty=../libiberty-linker-plugin";;
6588     *)
6589       as_fn_error "libiberty missing" "$LINENO" 5;;
6590   esac
6591 fi
6592
6593 # Sometimes we have special requirements for the host libiberty.
6594 extra_host_libiberty_configure_flags=
6595 extra_host_zlib_configure_flags=
6596 case " $configdirs " in
6597   *" lto-plugin "* | *" libcc1 "*)
6598     # When these are to be built as shared libraries, the same applies to
6599     # libiberty.
6600     extra_host_libiberty_configure_flags=--enable-shared
6601     ;;
6602   *" bfd "*)
6603     # When bfd is to be built as a shared library, the same applies to
6604     # zlib.
6605     if test "$enable_shared" = "yes"; then
6606       extra_host_zlib_configure_flags=--enable-host-shared
6607     fi
6608     ;;
6609 esac
6610
6611
6612
6613 # Produce a warning message for the subdirs we can't configure.
6614 # This isn't especially interesting in the Cygnus tree, but in the individual
6615 # FSF releases, it's important to let people know when their machine isn't
6616 # supported by the one or two programs in a package.
6617
6618 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6619   # If $appdirs is non-empty, at least one of those directories must still
6620   # be configured, or we error out.  (E.g., if the gas release supports a
6621   # specified target in some subdirs but not the gas subdir, we shouldn't
6622   # pretend that all is well.)
6623   if test -n "$appdirs" ; then
6624     for dir in $appdirs ; do
6625       if test -r $dir/Makefile.in ; then
6626         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6627           appdirs=""
6628           break
6629         fi
6630         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6631           appdirs=""
6632           break
6633         fi
6634       fi
6635     done
6636     if test -n "$appdirs" ; then
6637       echo "*** This configuration is not supported by this package." 1>&2
6638       exit 1
6639     fi
6640   fi
6641   # Okay, some application will build, or we don't care to check.  Still
6642   # notify of subdirs not getting built.
6643   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6644   echo "    ${notsupp}" 1>&2
6645   echo "    (Any other directories should still work fine.)" 1>&2
6646 fi
6647
6648 case "$host" in
6649   *msdosdjgpp*)
6650     enable_gdbtk=no ;;
6651 esac
6652
6653 # To find our prefix, in gcc_cv_tool_prefix.
6654
6655 # The user is always right.
6656 if test "${PATH_SEPARATOR+set}" != set; then
6657   echo "#! /bin/sh" >conf$$.sh
6658   echo  "exit 0"   >>conf$$.sh
6659   chmod +x conf$$.sh
6660   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6661     PATH_SEPARATOR=';'
6662   else
6663     PATH_SEPARATOR=:
6664   fi
6665   rm -f conf$$.sh
6666 fi
6667
6668
6669
6670 if test "x$exec_prefix" = xNONE; then
6671         if test "x$prefix" = xNONE; then
6672                 gcc_cv_tool_prefix=$ac_default_prefix
6673         else
6674                 gcc_cv_tool_prefix=$prefix
6675         fi
6676 else
6677         gcc_cv_tool_prefix=$exec_prefix
6678 fi
6679
6680 # If there is no compiler in the tree, use the PATH only.  In any
6681 # case, if there is no compiler in the tree nobody should use
6682 # AS_FOR_TARGET and LD_FOR_TARGET.
6683 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6684     gcc_version=`cat $srcdir/gcc/BASE-VER`
6685     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6686     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6687     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6688     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6689     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6690     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6691 else
6692     gcc_cv_tool_dirs=
6693 fi
6694
6695 if test x$build = x$target && test -n "$md_exec_prefix"; then
6696         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6697 fi
6698
6699
6700
6701 copy_dirs=
6702
6703
6704 # Check whether --with-build-sysroot was given.
6705 if test "${with_build_sysroot+set}" = set; then :
6706   withval=$with_build_sysroot; if test x"$withval" != x ; then
6707      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6708    fi
6709 else
6710   SYSROOT_CFLAGS_FOR_TARGET=
6711 fi
6712
6713
6714
6715
6716 # Check whether --with-debug-prefix-map was given.
6717 if test "${with_debug_prefix_map+set}" = set; then :
6718   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6719      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6720      for debug_map in $withval; do
6721        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6722      done
6723    fi
6724 else
6725   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6726 fi
6727
6728
6729
6730 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6731 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6732 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6733 # We want to ensure that TARGET libraries (which we know are built with
6734 # gcc) are built with "-O2 -g", so include those options when setting
6735 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6736 if test "x$CFLAGS_FOR_TARGET" = x; then
6737   if test "x${is_cross_compiler}" = xyes; then
6738     CFLAGS_FOR_TARGET="-g -O2"
6739   else
6740     CFLAGS_FOR_TARGET=$CFLAGS
6741     case " $CFLAGS " in
6742       *" -O2 "*) ;;
6743       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6744     esac
6745     case " $CFLAGS " in
6746       *" -g "* | *" -g3 "*) ;;
6747       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6748     esac
6749   fi
6750 fi
6751
6752
6753 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6754   if test "x${is_cross_compiler}" = xyes; then
6755     CXXFLAGS_FOR_TARGET="-g -O2"
6756   else
6757     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6758     case " $CXXFLAGS " in
6759       *" -O2 "*) ;;
6760       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6761     esac
6762     case " $CXXFLAGS " in
6763       *" -g "* | *" -g3 "*) ;;
6764       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6765     esac
6766   fi
6767 fi
6768
6769
6770
6771
6772 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6773 # the named directory are copied to $(tooldir)/sys-include.
6774 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6775   if test x${is_cross_compiler} = xno ; then
6776     echo 1>&2 '***' --with-headers is only supported when cross compiling
6777     exit 1
6778   fi
6779   if test x"${with_headers}" != xyes ; then
6780     x=${gcc_cv_tool_prefix}
6781     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6782   fi
6783 fi
6784
6785 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6786 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6787 # are permitted.
6788 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6789   if test x${is_cross_compiler} = xno ; then
6790     echo 1>&2 '***' --with-libs is only supported when cross compiling
6791     exit 1
6792   fi
6793   if test x"${with_libs}" != xyes ; then
6794     # Copy the libraries in reverse order, so that files in the first named
6795     # library override files in subsequent libraries.
6796     x=${gcc_cv_tool_prefix}
6797     for l in ${with_libs}; do
6798       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6799     done
6800   fi
6801 fi
6802
6803 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6804 #
6805 # This is done by determining whether or not the appropriate directory
6806 # is available, and by checking whether or not specific configurations
6807 # have requested that this magic not happen.
6808 #
6809 # The command line options always override the explicit settings in
6810 # configure.in, and the settings in configure.in override this magic.
6811 #
6812 # If the default for a toolchain is to use GNU as and ld, and you don't
6813 # want to do that, then you should use the --without-gnu-as and
6814 # --without-gnu-ld options for the configure script.  Similarly, if
6815 # the default is to use the included zlib and you don't want to do that,
6816 # you should use the --with-system-zlib option for the configure script.
6817
6818 if test x${use_gnu_as} = x &&
6819    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6820   with_gnu_as=yes
6821   extra_host_args="$extra_host_args --with-gnu-as"
6822 fi
6823
6824 if test x${use_gnu_ld} = x &&
6825    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6826   with_gnu_ld=yes
6827   extra_host_args="$extra_host_args --with-gnu-ld"
6828 fi
6829
6830 if test x${use_included_zlib} = x &&
6831    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6832   :
6833 else
6834   with_system_zlib=yes
6835   extra_host_args="$extra_host_args --with-system-zlib"
6836 fi
6837
6838 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6839 # can detect this case.
6840
6841 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6842   with_newlib=yes
6843   extra_host_args="$extra_host_args --with-newlib"
6844 fi
6845
6846 # Handle ${copy_dirs}
6847 set fnord ${copy_dirs}
6848 shift
6849 while test $# != 0 ; do
6850   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6851     :
6852   else
6853     echo Copying $1 to $2
6854
6855     # Use the install script to create the directory and all required
6856     # parent directories.
6857     if test -d $2 ; then
6858       :
6859     else
6860       echo >config.temp
6861       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6862     fi
6863
6864     # Copy the directory, assuming we have tar.
6865     # FIXME: Should we use B in the second tar?  Not all systems support it.
6866     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6867
6868     # It is the responsibility of the user to correctly adjust all
6869     # symlinks.  If somebody can figure out how to handle them correctly
6870     # here, feel free to add the code.
6871
6872     echo $1 > $2/COPIED
6873   fi
6874   shift; shift
6875 done
6876
6877 # Determine a target-dependent exec_prefix that the installed
6878 # gcc will search in.  Keep this list sorted by triplet, with
6879 # the *-*-osname triplets last.
6880 md_exec_prefix=
6881 case "${target}" in
6882   i[34567]86-pc-msdosdjgpp*)
6883     md_exec_prefix=/dev/env/DJDIR/bin
6884     ;;
6885   *-*-hpux* | \
6886   *-*-nto-qnx* | \
6887   *-*-solaris2*)
6888     md_exec_prefix=/usr/ccs/bin
6889     ;;
6890 esac
6891
6892 extra_arflags_for_target=
6893 extra_nmflags_for_target=
6894 extra_ranlibflags_for_target=
6895 target_makefile_frag=/dev/null
6896 case "${target}" in
6897   spu-*-*)
6898     target_makefile_frag="config/mt-spu"
6899     ;;
6900   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6901     target_makefile_frag="config/mt-sde"
6902     ;;
6903   mipsisa*-*-elfoabi*)
6904     target_makefile_frag="config/mt-mips-elfoabi"
6905     ;;
6906   mips*-*-*linux* | mips*-*-gnu*)
6907     target_makefile_frag="config/mt-mips-gnu"
6908     ;;
6909   nios2-*-elf*)
6910     target_makefile_frag="config/mt-nios2-elf"
6911     ;;
6912   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6913     target_makefile_frag="config/mt-gnu"
6914     ;;
6915   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6916     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6917     # commands to handle both 32-bit and 64-bit objects.  These flags are
6918     # harmless if we're using GNU nm or ar.
6919     extra_arflags_for_target=" -X32_64"
6920     extra_nmflags_for_target=" -B -X32_64"
6921     ;;
6922 esac
6923
6924 alphaieee_frag=/dev/null
6925 case $target in
6926   alpha*-*-*)
6927     # This just makes sure to use the -mieee option to build target libs.
6928     # This should probably be set individually by each library.
6929     alphaieee_frag="config/mt-alphaieee"
6930     ;;
6931 esac
6932
6933 # If --enable-target-optspace always use -Os instead of -O2 to build
6934 # the target libraries, similarly if it is not specified, use -Os
6935 # on selected platforms.
6936 ospace_frag=/dev/null
6937 case "${enable_target_optspace}:${target}" in
6938   yes:*)
6939     ospace_frag="config/mt-ospace"
6940     ;;
6941   :d30v-*)
6942     ospace_frag="config/mt-d30v"
6943     ;;
6944   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6945     ospace_frag="config/mt-ospace"
6946     ;;
6947   no:* | :*)
6948     ;;
6949   *)
6950     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6951     ;;
6952 esac
6953
6954 # Some systems (e.g., one of the i386-aix systems the gas testers are
6955 # using) don't handle "\$" correctly, so don't use it here.
6956 tooldir='${exec_prefix}'/${target_noncanonical}
6957 build_tooldir=${tooldir}
6958
6959 # Create a .gdbinit file which runs the one in srcdir
6960 # and tells GDB to look there for source files.
6961
6962 if test -r ${srcdir}/.gdbinit ; then
6963   case ${srcdir} in
6964     .) ;;
6965     *) cat > ./.gdbinit <<EOF
6966 # ${NO_EDIT}
6967 dir ${srcdir}
6968 dir .
6969 source ${srcdir}/.gdbinit
6970 EOF
6971     ;;
6972   esac
6973 fi
6974
6975 # Make sure that the compiler is able to generate an executable.  If it
6976 # can't, we are probably in trouble.  We don't care whether we can run the
6977 # executable--we might be using a cross compiler--we only care whether it
6978 # can be created.  At this point the main configure script has set CC.
6979 we_are_ok=no
6980 echo "int main () { return 0; }" > conftest.c
6981 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6982 if test $? = 0 ; then
6983   if test -s conftest || test -s conftest.exe ; then
6984     we_are_ok=yes
6985   fi
6986 fi
6987 case $we_are_ok in
6988   no)
6989     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6990     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6991     rm -f conftest*
6992     exit 1
6993     ;;
6994 esac
6995 rm -f conftest*
6996
6997 # Decide which environment variable is used to find dynamic libraries.
6998 case "${host}" in
6999   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7000   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7001   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7002   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7003 esac
7004
7005 # On systems where the dynamic library environment variable is PATH,
7006 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7007 # built executables to PATH.
7008 if test "$RPATH_ENVVAR" = PATH; then
7009   GCC_SHLIB_SUBDIR=/shlib
7010 else
7011   GCC_SHLIB_SUBDIR=
7012 fi
7013
7014 # Adjust the toplevel makefile according to whether bootstrap was selected.
7015 case $enable_bootstrap in
7016   yes)
7017     bootstrap_suffix=bootstrap
7018     BUILD_CONFIG=bootstrap-debug
7019     ;;
7020   no)
7021     bootstrap_suffix=no-bootstrap
7022     BUILD_CONFIG=
7023     ;;
7024 esac
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7027 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7028
7029
7030 # Check whether --with-build-config was given.
7031 if test "${with_build_config+set}" = set; then :
7032   withval=$with_build_config; case $with_build_config in
7033    yes) with_build_config= ;;
7034    no) with_build_config= BUILD_CONFIG= ;;
7035    esac
7036 fi
7037
7038
7039 if test "x${with_build_config}" != x; then
7040   BUILD_CONFIG=$with_build_config
7041 else
7042   case $BUILD_CONFIG in
7043   bootstrap-debug)
7044     if echo "int f (void) { return 0; }" > conftest.c &&
7045        ${CC} -c conftest.c &&
7046        mv conftest.o conftest.o.g0 &&
7047        ${CC} -c -g conftest.c &&
7048        mv conftest.o conftest.o.g &&
7049        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7050       :
7051     else
7052       BUILD_CONFIG=
7053     fi
7054     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7055     ;;
7056   esac
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7059 $as_echo "$BUILD_CONFIG" >&6; }
7060
7061
7062 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7064 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7065 # Check whether --enable-vtable-verify was given.
7066 if test "${enable_vtable_verify+set}" = set; then :
7067   enableval=$enable_vtable_verify; case "$enableval" in
7068  yes) enable_vtable_verify=yes ;;
7069  no)  enable_vtable_verify=no ;;
7070  *)   enable_vtable_verify=no;;
7071  esac
7072 else
7073   enable_vtable_verify=no
7074 fi
7075
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7077 $as_echo "$enable_vtable_verify" >&6; }
7078
7079 # Record target_configdirs and the configure arguments for target and
7080 # build configuration in Makefile.
7081 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7082 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7083 bootstrap_fixincludes=no
7084
7085 # If we are building libgomp, bootstrap it.
7086 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7087   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7088 fi
7089
7090 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7091 # or bootstrap-ubsan, bootstrap it.
7092 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7093   case "$BUILD_CONFIG" in
7094     *bootstrap-asan* | *bootstrap-ubsan* )
7095       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7096       bootstrap_fixincludes=yes
7097       ;;
7098   esac
7099 fi
7100
7101 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7102 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7103    test "$enable_vtable_verify" != no; then
7104   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7105 fi
7106
7107 # If we are building libmpx, bootstrap it.
7108 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7109   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7110 fi
7111
7112 # Determine whether gdb needs tk/tcl or not.
7113 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7114 # and in that case we want gdb to be built without tk.  Ugh!
7115 # In fact I believe gdb is the *only* package directly dependent on tk,
7116 # so we should be able to put the 'maybe's in unconditionally and
7117 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7118 # 100% sure that that's safe though.
7119
7120 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7121 case "$enable_gdbtk" in
7122   no)
7123     GDB_TK="" ;;
7124   yes)
7125     GDB_TK="${gdb_tk}" ;;
7126   *)
7127     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7128     # distro.  Eventually someone will fix this and move Insight, nee
7129     # gdbtk to a separate directory.
7130     if test -d ${srcdir}/gdb/gdbtk ; then
7131       GDB_TK="${gdb_tk}"
7132     else
7133       GDB_TK=""
7134     fi
7135     ;;
7136 esac
7137 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7138 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7139
7140 # Strip out unwanted targets.
7141
7142 # While at that, we remove Makefiles if we were started for recursive
7143 # configuration, so that the top-level Makefile reconfigures them,
7144 # like we used to do when configure itself was recursive.
7145
7146 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7147 # but now we're fixing up the Makefile ourselves with the additional
7148 # commands passed to AC_CONFIG_FILES.  Use separate variables
7149 # extrasub-{build,host,target} not because there is any reason to split
7150 # the substitutions up that way, but only to remain below the limit of
7151 # 99 commands in a script, for HP-UX sed.
7152 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7153
7154 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7155   yes:yes:*\ gold\ *:*,c++,*) ;;
7156   yes:yes:*\ gold\ *:*)
7157     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7158     ;;
7159 esac
7160
7161 extrasub_build=
7162 for module in ${build_configdirs} ; do
7163   if test -z "${no_recursion}" \
7164      && test -f ${build_subdir}/${module}/Makefile; then
7165     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7166     rm -f ${build_subdir}/${module}/Makefile
7167   fi
7168   extrasub_build="$extrasub_build
7169 /^@if build-$module\$/d
7170 /^@endif build-$module\$/d
7171 /^@if build-$module-$bootstrap_suffix\$/d
7172 /^@endif build-$module-$bootstrap_suffix\$/d"
7173 done
7174 extrasub_host=
7175 for module in ${configdirs} ; do
7176   if test -z "${no_recursion}"; then
7177     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7178       if test -f ${file}; then
7179         echo 1>&2 "*** removing ${file} to force reconfigure"
7180         rm -f ${file}
7181       fi
7182     done
7183   fi
7184   case ${module},${bootstrap_fixincludes} in
7185     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7186     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7187   esac
7188   extrasub_host="$extrasub_host
7189 /^@if $module\$/d
7190 /^@endif $module\$/d
7191 /^@if $module-$host_bootstrap_suffix\$/d
7192 /^@endif $module-$host_bootstrap_suffix\$/d"
7193 done
7194 extrasub_target=
7195 for module in ${target_configdirs} ; do
7196   if test -z "${no_recursion}" \
7197      && test -f ${target_subdir}/${module}/Makefile; then
7198     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7199     rm -f ${target_subdir}/${module}/Makefile
7200   fi
7201
7202   # We only bootstrap target libraries listed in bootstrap_target_libs.
7203   case $bootstrap_target_libs in
7204     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7205     *) target_bootstrap_suffix=no-bootstrap ;;
7206   esac
7207
7208   extrasub_target="$extrasub_target
7209 /^@if target-$module\$/d
7210 /^@endif target-$module\$/d
7211 /^@if target-$module-$target_bootstrap_suffix\$/d
7212 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7213 done
7214
7215 # Do the final fixup along with target modules.
7216 extrasub_target="$extrasub_target
7217 /^@if /,/^@endif /d"
7218
7219 # Create the serialization dependencies.  This uses a temporary file.
7220
7221 # Check whether --enable-serial-configure was given.
7222 if test "${enable_serial_configure+set}" = set; then :
7223   enableval=$enable_serial_configure;
7224 fi
7225
7226
7227 case ${enable_serial_configure} in
7228   yes)
7229     enable_serial_build_configure=yes
7230     enable_serial_host_configure=yes
7231     enable_serial_target_configure=yes
7232     ;;
7233 esac
7234
7235 # These force 'configure's to be done one at a time, to avoid problems
7236 # with contention over a shared config.cache.
7237 rm -f serdep.tmp
7238 echo '# serdep.tmp' > serdep.tmp
7239 olditem=
7240 test "x${enable_serial_build_configure}" = xyes &&
7241 for item in ${build_configdirs} ; do
7242   case ${olditem} in
7243     "") ;;
7244     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7245   esac
7246   olditem=${item}
7247 done
7248 olditem=
7249 test "x${enable_serial_host_configure}" = xyes &&
7250 for item in ${configdirs} ; do
7251   case ${olditem} in
7252     "") ;;
7253     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7254   esac
7255   olditem=${item}
7256 done
7257 olditem=
7258 test "x${enable_serial_target_configure}" = xyes &&
7259 for item in ${target_configdirs} ; do
7260   case ${olditem} in
7261     "") ;;
7262     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7263   esac
7264   olditem=${item}
7265 done
7266 serialization_dependencies=serdep.tmp
7267
7268
7269 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7270 # target, nonopt, and variable assignments.  These are the ones we
7271 # might not want to pass down to subconfigures.  The exception being
7272 # --cache-file=/dev/null, which is used to turn off the use of cache
7273 # files altogether, and which should be passed on to subconfigures.
7274 # Also strip program-prefix, program-suffix, and program-transform-name,
7275 # so that we can pass down a consistent program-transform-name.
7276 baseargs=
7277 tbaseargs=
7278 keep_next=no
7279 skip_next=no
7280 eval "set -- $ac_configure_args"
7281 for ac_arg
7282 do
7283   if test X"$skip_next" = X"yes"; then
7284     skip_next=no
7285     continue
7286   fi
7287   if test X"$keep_next" = X"yes"; then
7288     case $ac_arg in
7289       *\'*)
7290         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7291     esac
7292     baseargs="$baseargs '$ac_arg'"
7293     tbaseargs="$tbaseargs '$ac_arg'"
7294     keep_next=no
7295     continue
7296   fi
7297
7298   # Handle separated arguments.  Based on the logic generated by
7299   # autoconf 2.59.
7300   case $ac_arg in
7301     *=* | --config-cache | -C | -disable-* | --disable-* \
7302       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7303       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7304       | -with-* | --with-* | -without-* | --without-* | --x)
7305       separate_arg=no
7306       ;;
7307     -*)
7308       separate_arg=yes
7309       ;;
7310     *)
7311       separate_arg=no
7312       ;;
7313   esac
7314
7315   skip_targ=no
7316   case $ac_arg in
7317
7318   --with-* | --without-*)
7319     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7320
7321     case $libopt in
7322     *[-_]include)
7323       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7324       ;;
7325     *[-_]lib)
7326       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7327       ;;
7328     *)
7329       lib=$libopt
7330       ;;
7331     esac
7332
7333
7334     case $lib in
7335     mpc | mpfr | gmp | isl)
7336       # If we're processing --with-$lib, --with-$lib-include or
7337       # --with-$lib-lib, for one of the libs above, and target is
7338       # different from host, don't pass the current argument to any
7339       # target library's configure.
7340       if test x$is_cross_compiler = xyes; then
7341         skip_targ=yes
7342       fi
7343       ;;
7344     esac
7345     ;;
7346   esac
7347
7348   case "$ac_arg" in
7349     --cache-file=/dev/null | \
7350     -cache-file=/dev/null )
7351       # Handled here to avoid the test to skip args below.
7352       baseargs="$baseargs '$ac_arg'"
7353       tbaseargs="$tbaseargs '$ac_arg'"
7354       # Assert: $separate_arg should always be no.
7355       keep_next=$separate_arg
7356       ;;
7357     --no*)
7358       continue
7359       ;;
7360     --c* | \
7361     --sr* | \
7362     --ho* | \
7363     --bu* | \
7364     --t* | \
7365     --program-* | \
7366     -cache_file* | \
7367     -srcdir* | \
7368     -host* | \
7369     -build* | \
7370     -target* | \
7371     -program-prefix* | \
7372     -program-suffix* | \
7373     -program-transform-name* )
7374       skip_next=$separate_arg
7375       continue
7376       ;;
7377     -*)
7378       # An option.  Add it.
7379       case $ac_arg in
7380         *\'*)
7381           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7382       esac
7383       baseargs="$baseargs '$ac_arg'"
7384       if test X"$skip_targ" = Xno; then
7385         tbaseargs="$tbaseargs '$ac_arg'"
7386       fi
7387       keep_next=$separate_arg
7388       ;;
7389     *)
7390       # Either a variable assignment, or a nonopt (triplet).  Don't
7391       # pass it down; let the Makefile handle this.
7392       continue
7393       ;;
7394   esac
7395 done
7396 # Remove the initial space we just introduced and, as these will be
7397 # expanded by make, quote '$'.
7398 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7399
7400 # Add in --program-transform-name, after --program-prefix and
7401 # --program-suffix have been applied to it.  Autoconf has already
7402 # doubled dollar signs and backslashes in program_transform_name; we want
7403 # the backslashes un-doubled, and then the entire thing wrapped in single
7404 # quotes, because this will be expanded first by make and then by the shell.
7405 # Also, because we want to override the logic in subdir configure scripts to
7406 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7407 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7408 ${program_transform_name}
7409 EOF_SED
7410 gcc_transform_name=`cat conftestsed.out`
7411 rm -f conftestsed.out
7412 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7413 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7414 if test "$silent" = yes; then
7415   baseargs="$baseargs --silent"
7416   tbaseargs="$tbaseargs --silent"
7417 fi
7418 baseargs="$baseargs --disable-option-checking"
7419 tbaseargs="$tbaseargs --disable-option-checking"
7420
7421 # Record and document user additions to sub configure arguments.
7422
7423
7424
7425
7426 # For the build-side libraries, we just need to pretend we're native,
7427 # and not use the same cache file.  Multilibs are neither needed nor
7428 # desired.  We can't even use the same cache file for all build-side
7429 # libraries, as they're compiled differently; some with C, some with
7430 # C++ or with different feature-enabling options.
7431 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7432
7433 # For host modules, accept cache file option, or specification as blank.
7434 case "${cache_file}" in
7435 "") # empty
7436   cache_file_option="" ;;
7437 /* | [A-Za-z]:[\\/]* ) # absolute path
7438   cache_file_option="--cache-file=${cache_file}" ;;
7439 *) # relative path
7440   cache_file_option="--cache-file=../${cache_file}" ;;
7441 esac
7442
7443 # Host dirs don't like to share a cache file either, horribly enough.
7444 # This seems to be due to autoconf 2.5x stupidity.
7445 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7446
7447 target_configargs="$target_configargs ${tbaseargs}"
7448
7449 # Passing a --with-cross-host argument lets the target libraries know
7450 # whether they are being built with a cross-compiler or being built
7451 # native.  However, it would be better to use other mechanisms to make the
7452 # sorts of decisions they want to make on this basis.  Please consider
7453 # this option to be deprecated.  FIXME.
7454 if test x${is_cross_compiler} = xyes ; then
7455   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7456 fi
7457
7458 # Special user-friendly check for native x86_64-linux build, if
7459 # multilib is not explicitly enabled.
7460 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7461   x86_64-*linux*:yes:$build:$build:)
7462     # Make sure we have a development environment that handles 32-bit
7463     dev64=no
7464     echo "int main () { return 0; }" > conftest.c
7465     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7466     if test $? = 0 ; then
7467       if test -s conftest || test -s conftest.exe ; then
7468         dev64=yes
7469       fi
7470     fi
7471     rm -f conftest*
7472     if test x${dev64} != xyes ; then
7473       as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7474     fi
7475     ;;
7476 esac
7477
7478 # Default to --enable-multilib.
7479 if test x${enable_multilib} = x ; then
7480   target_configargs="--enable-multilib ${target_configargs}"
7481 fi
7482
7483 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7484 # changed from the earlier setting of with_newlib.
7485 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7486   target_configargs="--with-newlib ${target_configargs}"
7487 fi
7488
7489 # Different target subdirs use different values of certain variables
7490 # (notably CXX).  Worse, multilibs use *lots* of different values.
7491 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7492 # it doesn't automatically accept command-line overrides of them.
7493 # This means it's not safe for target subdirs to share a cache file,
7494 # which is disgusting, but there you have it.  Hopefully this can be
7495 # fixed in future.  It's still worthwhile to use a cache file for each
7496 # directory.  I think.
7497
7498 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7499 # We need to pass --target, as newer autoconf's requires consistency
7500 # for target_alias and gcc doesn't manage it consistently.
7501 target_configargs="--cache-file=./config.cache ${target_configargs}"
7502
7503 FLAGS_FOR_TARGET=
7504 case " $target_configdirs " in
7505  *" newlib "*)
7506   case " $target_configargs " in
7507   *" --with-newlib "*)
7508    case "$target" in
7509     *-cygwin*)
7510       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7511       ;;
7512    esac
7513
7514    # If we're not building GCC, don't discard standard headers.
7515    if test -d ${srcdir}/gcc; then
7516      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7517
7518      if test "${build}" != "${host}"; then
7519        # On Canadian crosses, CC_FOR_TARGET will have already been set
7520        # by `configure', so we won't have an opportunity to add -Bgcc/
7521        # to it.  This is right: we don't want to search that directory
7522        # for binaries, but we want the header files in there, so add
7523        # them explicitly.
7524        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7525
7526        # Someone might think of using the pre-installed headers on
7527        # Canadian crosses, in case the installed compiler is not fully
7528        # compatible with the compiler being built.  In this case, it
7529        # would be better to flag an error than risking having
7530        # incompatible object files being constructed.  We can't
7531        # guarantee that an error will be flagged, but let's hope the
7532        # compiler will do it, when presented with incompatible header
7533        # files.
7534      fi
7535    fi
7536
7537    case "${target}-${is_cross_compiler}" in
7538    i[3456789]86-*-linux*-no)
7539       # Here host == target, so we don't need to build gcc,
7540       # so we don't want to discard standard headers.
7541       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7542       ;;
7543    *)
7544       # If we're building newlib, use its generic headers last, but search
7545       # for any libc-related directories first (so make it the last -B
7546       # switch).
7547       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7548
7549       # If we're building libgloss, find the startup file, simulator library
7550       # and linker script.
7551       case " $target_configdirs " in
7552         *" libgloss "*)
7553         # Look for startup file, simulator library and maybe linker script.
7554         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7555         # Look for libnosys.a in case the target needs it.
7556         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7557         # Most targets have the linker script in the source directory.
7558         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7559         ;;
7560       esac
7561       ;;
7562    esac
7563    ;;
7564   esac
7565   ;;
7566 esac
7567
7568 case "$target" in
7569   x86_64-*mingw* | *-w64-mingw*)
7570   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7571   # however, use a symlink named 'mingw' in ${prefix} .
7572     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7573     ;;
7574   *-mingw*)
7575   # MinGW can't be handled as Cygwin above since it does not use newlib.
7576     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'
7577     ;;
7578 esac
7579
7580 # Allow the user to override the flags for
7581 # our build compiler if desired.
7582 if test x"${build}" = x"${host}" ; then
7583   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7584   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7585   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7586 fi
7587
7588 # On Canadian crosses, we'll be searching the right directories for
7589 # the previously-installed cross compiler, so don't bother to add
7590 # flags for directories within the install tree of the compiler
7591 # being built; programs in there won't even run.
7592 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7593   # Search for pre-installed headers if nothing else fits.
7594   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7595 fi
7596
7597 if test "x${use_gnu_ld}" = x &&
7598    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7599   # Arrange for us to find uninstalled linker scripts.
7600   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7601 fi
7602
7603 # Search for other target-specific linker scripts and such.
7604 case "${target}" in
7605   mep*)
7606     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7607     ;;
7608 esac
7609
7610 # Makefile fragments.
7611 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7612 do
7613   eval fragval=\$$frag
7614   if test $fragval != /dev/null; then
7615     eval $frag=${srcdir}/$fragval
7616   fi
7617 done
7618
7619
7620
7621
7622
7623 # Miscellanea: directories, flags, etc.
7624
7625
7626
7627
7628
7629
7630
7631
7632 # Build module lists & subconfigure args.
7633
7634
7635
7636 # Host module lists & subconfigure args.
7637
7638
7639
7640
7641 # Target module lists & subconfigure args.
7642
7643
7644
7645 # Build tools.
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663 # Generate default definitions for YACC, M4, LEX and other programs that run
7664 # on the build machine.  These are used if the Makefile can't locate these
7665 # programs in objdir.
7666 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7667
7668 for ac_prog in 'bison -y' byacc yacc
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_YACC+set}" = set; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$YACC"; then
7678   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_prog_YACC="$ac_prog"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 YACC=$ac_cv_prog_YACC
7698 if test -n "$YACC"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7700 $as_echo "$YACC" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707   test -n "$YACC" && break
7708 done
7709 test -n "$YACC" || YACC="$MISSING bison -y"
7710
7711 case " $build_configdirs " in
7712   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7713 esac
7714
7715 for ac_prog in bison
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_BISON+set}" = set; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$BISON"; then
7725   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_BISON="$ac_prog"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 BISON=$ac_cv_prog_BISON
7745 if test -n "$BISON"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747 $as_echo "$BISON" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   test -n "$BISON" && break
7755 done
7756 test -n "$BISON" || BISON="$MISSING bison"
7757
7758 case " $build_configdirs " in
7759   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7760 esac
7761
7762 for ac_prog in gm4 gnum4 m4
7763 do
7764   # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_M4+set}" = set; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   if test -n "$M4"; then
7772   ac_cv_prog_M4="$M4" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779     for ac_exec_ext in '' $ac_executable_extensions; do
7780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781     ac_cv_prog_M4="$ac_prog"
7782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786   done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 M4=$ac_cv_prog_M4
7792 if test -n "$M4"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7794 $as_echo "$M4" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801   test -n "$M4" && break
7802 done
7803 test -n "$M4" || M4="$MISSING m4"
7804
7805 case " $build_configdirs " in
7806   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7807 esac
7808
7809 for ac_prog in flex lex
7810 do
7811   # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_LEX+set}" = set; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -n "$LEX"; then
7819   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826     for ac_exec_ext in '' $ac_executable_extensions; do
7827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828     ac_cv_prog_LEX="$ac_prog"
7829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833   done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 LEX=$ac_cv_prog_LEX
7839 if test -n "$LEX"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7841 $as_echo "$LEX" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848   test -n "$LEX" && break
7849 done
7850 test -n "$LEX" || LEX="$MISSING flex"
7851
7852 case " $build_configdirs " in
7853   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7855 esac
7856
7857 for ac_prog in flex
7858 do
7859   # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_FLEX+set}" = set; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   if test -n "$FLEX"; then
7867   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872   IFS=$as_save_IFS
7873   test -z "$as_dir" && as_dir=.
7874     for ac_exec_ext in '' $ac_executable_extensions; do
7875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876     ac_cv_prog_FLEX="$ac_prog"
7877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878     break 2
7879   fi
7880 done
7881   done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 FLEX=$ac_cv_prog_FLEX
7887 if test -n "$FLEX"; then
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7889 $as_echo "$FLEX" >&6; }
7890 else
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895
7896   test -n "$FLEX" && break
7897 done
7898 test -n "$FLEX" || FLEX="$MISSING flex"
7899
7900 case " $build_configdirs " in
7901   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7902 esac
7903
7904 for ac_prog in makeinfo
7905 do
7906   # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$MAKEINFO"; then
7914   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_MAKEINFO="$ac_prog"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 MAKEINFO=$ac_cv_prog_MAKEINFO
7934 if test -n "$MAKEINFO"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7936 $as_echo "$MAKEINFO" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943   test -n "$MAKEINFO" && break
7944 done
7945 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7946
7947 case " $build_configdirs " in
7948   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7949   *)
7950
7951     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7952     # higher, else we use the "missing" dummy.
7953     if ${MAKEINFO} --version \
7954        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7955       :
7956     else
7957       MAKEINFO="$MISSING makeinfo"
7958     fi
7959     ;;
7960
7961 esac
7962
7963 # FIXME: expect and dejagnu may become build tools?
7964
7965 for ac_prog in expect
7966 do
7967   # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   if test -n "$EXPECT"; then
7975   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984     ac_cv_prog_EXPECT="$ac_prog"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 EXPECT=$ac_cv_prog_EXPECT
7995 if test -n "$EXPECT"; then
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7997 $as_echo "$EXPECT" >&6; }
7998 else
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004   test -n "$EXPECT" && break
8005 done
8006 test -n "$EXPECT" || EXPECT="expect"
8007
8008 case " $configdirs " in
8009   *" expect "*)
8010     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8011     ;;
8012 esac
8013
8014 for ac_prog in runtest
8015 do
8016   # Extract the first word of "$ac_prog", so it can be a program name with args.
8017 set dummy $ac_prog; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   if test -n "$RUNTEST"; then
8024   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031     for ac_exec_ext in '' $ac_executable_extensions; do
8032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033     ac_cv_prog_RUNTEST="$ac_prog"
8034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038   done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 RUNTEST=$ac_cv_prog_RUNTEST
8044 if test -n "$RUNTEST"; then
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8046 $as_echo "$RUNTEST" >&6; }
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053   test -n "$RUNTEST" && break
8054 done
8055 test -n "$RUNTEST" || RUNTEST="runtest"
8056
8057 case " $configdirs " in
8058   *" dejagnu "*)
8059     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8060     ;;
8061 esac
8062
8063
8064 # Host tools.
8065 ncn_tool_prefix=
8066 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8067 ncn_target_tool_prefix=
8068 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8069
8070
8071
8072 if test -n "$AR"; then
8073   ac_cv_prog_AR=$AR
8074 elif test -n "$ac_cv_prog_AR"; then
8075   AR=$ac_cv_prog_AR
8076 fi
8077
8078 if test -n "$ac_cv_prog_AR"; then
8079   for ncn_progname in ar; do
8080     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081 set dummy ${ncn_progname}; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_prog_AR+set}" = set; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$AR"; then
8088   ac_cv_prog_AR="$AR" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097     ac_cv_prog_AR="${ncn_progname}"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 AR=$ac_cv_prog_AR
8108 if test -n "$AR"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116
8117   done
8118 fi
8119
8120 for ncn_progname in ar; do
8121   if test -n "$ncn_tool_prefix"; then
8122     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8123 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   if test -n "$AR"; then
8130   ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   test -z "$as_dir" && as_dir=.
8137     for ac_exec_ext in '' $ac_executable_extensions; do
8138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141     break 2
8142   fi
8143 done
8144   done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152 $as_echo "$AR" >&6; }
8153 else
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158
8159   fi
8160   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8161     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_progname}; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_AR+set}" = set; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   if test -n "$AR"; then
8169   ac_cv_prog_AR="$AR" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174   IFS=$as_save_IFS
8175   test -z "$as_dir" && as_dir=.
8176     for ac_exec_ext in '' $ac_executable_extensions; do
8177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178     ac_cv_prog_AR="${ncn_progname}"
8179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180     break 2
8181   fi
8182 done
8183   done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 AR=$ac_cv_prog_AR
8189 if test -n "$AR"; then
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8191 $as_echo "$AR" >&6; }
8192 else
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198   fi
8199   test -n "$ac_cv_prog_AR" && break
8200 done
8201
8202 if test -z "$ac_cv_prog_AR" ; then
8203   set dummy ar
8204   if test $build = $host ; then
8205     AR="$2"
8206   else
8207     AR="${ncn_tool_prefix}$2"
8208   fi
8209 fi
8210
8211
8212
8213 if test -n "$AS"; then
8214   ac_cv_prog_AS=$AS
8215 elif test -n "$ac_cv_prog_AS"; then
8216   AS=$ac_cv_prog_AS
8217 fi
8218
8219 if test -n "$ac_cv_prog_AS"; then
8220   for ncn_progname in as; do
8221     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222 set dummy ${ncn_progname}; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if test "${ac_cv_prog_AS+set}" = set; then :
8226   $as_echo_n "(cached) " >&6
8227 else
8228   if test -n "$AS"; then
8229   ac_cv_prog_AS="$AS" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234   IFS=$as_save_IFS
8235   test -z "$as_dir" && as_dir=.
8236     for ac_exec_ext in '' $ac_executable_extensions; do
8237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238     ac_cv_prog_AS="${ncn_progname}"
8239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240     break 2
8241   fi
8242 done
8243   done
8244 IFS=$as_save_IFS
8245
8246 fi
8247 fi
8248 AS=$ac_cv_prog_AS
8249 if test -n "$AS"; then
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8251 $as_echo "$AS" >&6; }
8252 else
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8255 fi
8256
8257
8258   done
8259 fi
8260
8261 for ncn_progname in as; do
8262   if test -n "$ncn_tool_prefix"; then
8263     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8264 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_AS+set}" = set; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   if test -n "$AS"; then
8271   ac_cv_prog_AS="$AS" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278     for ac_exec_ext in '' $ac_executable_extensions; do
8279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285   done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 AS=$ac_cv_prog_AS
8291 if test -n "$AS"; then
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8293 $as_echo "$AS" >&6; }
8294 else
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300   fi
8301   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8302     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303 set dummy ${ncn_progname}; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_AS+set}" = set; then :
8307   $as_echo_n "(cached) " >&6
8308 else
8309   if test -n "$AS"; then
8310   ac_cv_prog_AS="$AS" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315   IFS=$as_save_IFS
8316   test -z "$as_dir" && as_dir=.
8317     for ac_exec_ext in '' $ac_executable_extensions; do
8318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319     ac_cv_prog_AS="${ncn_progname}"
8320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321     break 2
8322   fi
8323 done
8324   done
8325 IFS=$as_save_IFS
8326
8327 fi
8328 fi
8329 AS=$ac_cv_prog_AS
8330 if test -n "$AS"; then
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8332 $as_echo "$AS" >&6; }
8333 else
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339   fi
8340   test -n "$ac_cv_prog_AS" && break
8341 done
8342
8343 if test -z "$ac_cv_prog_AS" ; then
8344   set dummy as
8345   if test $build = $host ; then
8346     AS="$2"
8347   else
8348     AS="${ncn_tool_prefix}$2"
8349   fi
8350 fi
8351
8352
8353
8354 if test -n "$DLLTOOL"; then
8355   ac_cv_prog_DLLTOOL=$DLLTOOL
8356 elif test -n "$ac_cv_prog_DLLTOOL"; then
8357   DLLTOOL=$ac_cv_prog_DLLTOOL
8358 fi
8359
8360 if test -n "$ac_cv_prog_DLLTOOL"; then
8361   for ncn_progname in dlltool; do
8362     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8363 set dummy ${ncn_progname}; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -n "$DLLTOOL"; then
8370   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377     for ac_exec_ext in '' $ac_executable_extensions; do
8378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379     ac_cv_prog_DLLTOOL="${ncn_progname}"
8380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384   done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 DLLTOOL=$ac_cv_prog_DLLTOOL
8390 if test -n "$DLLTOOL"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8392 $as_echo "$DLLTOOL" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399   done
8400 fi
8401
8402 for ncn_progname in dlltool; do
8403   if test -n "$ncn_tool_prefix"; then
8404     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   if test -n "$DLLTOOL"; then
8412   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419     for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426   done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 DLLTOOL=$ac_cv_prog_DLLTOOL
8432 if test -n "$DLLTOOL"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8434 $as_echo "$DLLTOOL" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441   fi
8442   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8443     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_progname}; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   if test -n "$DLLTOOL"; then
8451   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456   IFS=$as_save_IFS
8457   test -z "$as_dir" && as_dir=.
8458     for ac_exec_ext in '' $ac_executable_extensions; do
8459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460     ac_cv_prog_DLLTOOL="${ncn_progname}"
8461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462     break 2
8463   fi
8464 done
8465   done
8466 IFS=$as_save_IFS
8467
8468 fi
8469 fi
8470 DLLTOOL=$ac_cv_prog_DLLTOOL
8471 if test -n "$DLLTOOL"; then
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473 $as_echo "$DLLTOOL" >&6; }
8474 else
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480   fi
8481   test -n "$ac_cv_prog_DLLTOOL" && break
8482 done
8483
8484 if test -z "$ac_cv_prog_DLLTOOL" ; then
8485   set dummy dlltool
8486   if test $build = $host ; then
8487     DLLTOOL="$2"
8488   else
8489     DLLTOOL="${ncn_tool_prefix}$2"
8490   fi
8491 fi
8492
8493
8494
8495 if test -n "$LD"; then
8496   ac_cv_prog_LD=$LD
8497 elif test -n "$ac_cv_prog_LD"; then
8498   LD=$ac_cv_prog_LD
8499 fi
8500
8501 if test -n "$ac_cv_prog_LD"; then
8502   for ncn_progname in ld; do
8503     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504 set dummy ${ncn_progname}; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_LD+set}" = set; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   if test -n "$LD"; then
8511   ac_cv_prog_LD="$LD" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516   IFS=$as_save_IFS
8517   test -z "$as_dir" && as_dir=.
8518     for ac_exec_ext in '' $ac_executable_extensions; do
8519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520     ac_cv_prog_LD="${ncn_progname}"
8521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522     break 2
8523   fi
8524 done
8525   done
8526 IFS=$as_save_IFS
8527
8528 fi
8529 fi
8530 LD=$ac_cv_prog_LD
8531 if test -n "$LD"; then
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8533 $as_echo "$LD" >&6; }
8534 else
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 fi
8538
8539
8540   done
8541 fi
8542
8543 for ncn_progname in ld; do
8544   if test -n "$ncn_tool_prefix"; then
8545     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_prog_LD+set}" = set; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   if test -n "$LD"; then
8553   ac_cv_prog_LD="$LD" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558   IFS=$as_save_IFS
8559   test -z "$as_dir" && as_dir=.
8560     for ac_exec_ext in '' $ac_executable_extensions; do
8561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564     break 2
8565   fi
8566 done
8567   done
8568 IFS=$as_save_IFS
8569
8570 fi
8571 fi
8572 LD=$ac_cv_prog_LD
8573 if test -n "$LD"; then
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8575 $as_echo "$LD" >&6; }
8576 else
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 fi
8580
8581
8582   fi
8583   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8584     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_progname}; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_LD+set}" = set; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   if test -n "$LD"; then
8592   ac_cv_prog_LD="$LD" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599     for ac_exec_ext in '' $ac_executable_extensions; do
8600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601     ac_cv_prog_LD="${ncn_progname}"
8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606   done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 LD=$ac_cv_prog_LD
8612 if test -n "$LD"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8614 $as_echo "$LD" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621   fi
8622   test -n "$ac_cv_prog_LD" && break
8623 done
8624
8625 if test -z "$ac_cv_prog_LD" ; then
8626   set dummy ld
8627   if test $build = $host ; then
8628     LD="$2"
8629   else
8630     LD="${ncn_tool_prefix}$2"
8631   fi
8632 fi
8633
8634
8635
8636 if test -n "$LIPO"; then
8637   ac_cv_prog_LIPO=$LIPO
8638 elif test -n "$ac_cv_prog_LIPO"; then
8639   LIPO=$ac_cv_prog_LIPO
8640 fi
8641
8642 if test -n "$ac_cv_prog_LIPO"; then
8643   for ncn_progname in lipo; do
8644     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8645 set dummy ${ncn_progname}; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_LIPO+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   if test -n "$LIPO"; then
8652   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661     ac_cv_prog_LIPO="${ncn_progname}"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 LIPO=$ac_cv_prog_LIPO
8672 if test -n "$LIPO"; then
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674 $as_echo "$LIPO" >&6; }
8675 else
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681   done
8682 fi
8683
8684 for ncn_progname in lipo; do
8685   if test -n "$ncn_tool_prefix"; then
8686     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_LIPO+set}" = set; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   if test -n "$LIPO"; then
8694   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699   IFS=$as_save_IFS
8700   test -z "$as_dir" && as_dir=.
8701     for ac_exec_ext in '' $ac_executable_extensions; do
8702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705     break 2
8706   fi
8707 done
8708   done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 LIPO=$ac_cv_prog_LIPO
8714 if test -n "$LIPO"; then
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8716 $as_echo "$LIPO" >&6; }
8717 else
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723   fi
8724   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8725     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8726 set dummy ${ncn_progname}; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_LIPO+set}" = set; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   if test -n "$LIPO"; then
8733   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738   IFS=$as_save_IFS
8739   test -z "$as_dir" && as_dir=.
8740     for ac_exec_ext in '' $ac_executable_extensions; do
8741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742     ac_cv_prog_LIPO="${ncn_progname}"
8743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744     break 2
8745   fi
8746 done
8747   done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 LIPO=$ac_cv_prog_LIPO
8753 if test -n "$LIPO"; then
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8755 $as_echo "$LIPO" >&6; }
8756 else
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762   fi
8763   test -n "$ac_cv_prog_LIPO" && break
8764 done
8765
8766 if test -z "$ac_cv_prog_LIPO" ; then
8767   set dummy lipo
8768   if test $build = $host ; then
8769     LIPO="$2"
8770   else
8771     LIPO="${ncn_tool_prefix}$2"
8772   fi
8773 fi
8774
8775
8776
8777 if test -n "$NM"; then
8778   ac_cv_prog_NM=$NM
8779 elif test -n "$ac_cv_prog_NM"; then
8780   NM=$ac_cv_prog_NM
8781 fi
8782
8783 if test -n "$ac_cv_prog_NM"; then
8784   for ncn_progname in nm; do
8785     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8786 set dummy ${ncn_progname}; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if test "${ac_cv_prog_NM+set}" = set; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   if test -n "$NM"; then
8793   ac_cv_prog_NM="$NM" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798   IFS=$as_save_IFS
8799   test -z "$as_dir" && as_dir=.
8800     for ac_exec_ext in '' $ac_executable_extensions; do
8801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802     ac_cv_prog_NM="${ncn_progname}"
8803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804     break 2
8805   fi
8806 done
8807   done
8808 IFS=$as_save_IFS
8809
8810 fi
8811 fi
8812 NM=$ac_cv_prog_NM
8813 if test -n "$NM"; then
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8815 $as_echo "$NM" >&6; }
8816 else
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8819 fi
8820
8821
8822   done
8823 fi
8824
8825 for ncn_progname in nm; do
8826   if test -n "$ncn_tool_prefix"; then
8827     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8828 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if test "${ac_cv_prog_NM+set}" = set; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   if test -n "$NM"; then
8835   ac_cv_prog_NM="$NM" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840   IFS=$as_save_IFS
8841   test -z "$as_dir" && as_dir=.
8842     for ac_exec_ext in '' $ac_executable_extensions; do
8843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846     break 2
8847   fi
8848 done
8849   done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 NM=$ac_cv_prog_NM
8855 if test -n "$NM"; then
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8857 $as_echo "$NM" >&6; }
8858 else
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863
8864   fi
8865   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8866     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_progname}; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if test "${ac_cv_prog_NM+set}" = set; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   if test -n "$NM"; then
8874   ac_cv_prog_NM="$NM" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881     for ac_exec_ext in '' $ac_executable_extensions; do
8882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883     ac_cv_prog_NM="${ncn_progname}"
8884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888   done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 NM=$ac_cv_prog_NM
8894 if test -n "$NM"; then
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8896 $as_echo "$NM" >&6; }
8897 else
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901
8902
8903   fi
8904   test -n "$ac_cv_prog_NM" && break
8905 done
8906
8907 if test -z "$ac_cv_prog_NM" ; then
8908   set dummy nm
8909   if test $build = $host ; then
8910     NM="$2"
8911   else
8912     NM="${ncn_tool_prefix}$2"
8913   fi
8914 fi
8915
8916
8917
8918 if test -n "$RANLIB"; then
8919   ac_cv_prog_RANLIB=$RANLIB
8920 elif test -n "$ac_cv_prog_RANLIB"; then
8921   RANLIB=$ac_cv_prog_RANLIB
8922 fi
8923
8924 if test -n "$ac_cv_prog_RANLIB"; then
8925   for ncn_progname in ranlib; do
8926     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927 set dummy ${ncn_progname}; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   if test -n "$RANLIB"; then
8934   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939   IFS=$as_save_IFS
8940   test -z "$as_dir" && as_dir=.
8941     for ac_exec_ext in '' $ac_executable_extensions; do
8942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943     ac_cv_prog_RANLIB="${ncn_progname}"
8944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945     break 2
8946   fi
8947 done
8948   done
8949 IFS=$as_save_IFS
8950
8951 fi
8952 fi
8953 RANLIB=$ac_cv_prog_RANLIB
8954 if test -n "$RANLIB"; then
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8956 $as_echo "$RANLIB" >&6; }
8957 else
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961
8962
8963   done
8964 fi
8965
8966 for ncn_progname in ranlib; do
8967   if test -n "$ncn_tool_prefix"; then
8968     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8969 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   if test -n "$RANLIB"; then
8976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981   IFS=$as_save_IFS
8982   test -z "$as_dir" && as_dir=.
8983     for ac_exec_ext in '' $ac_executable_extensions; do
8984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987     break 2
8988   fi
8989 done
8990   done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 RANLIB=$ac_cv_prog_RANLIB
8996 if test -n "$RANLIB"; then
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8998 $as_echo "$RANLIB" >&6; }
8999 else
9000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005   fi
9006   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9007     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008 set dummy ${ncn_progname}; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9012   $as_echo_n "(cached) " >&6
9013 else
9014   if test -n "$RANLIB"; then
9015   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020   IFS=$as_save_IFS
9021   test -z "$as_dir" && as_dir=.
9022     for ac_exec_ext in '' $ac_executable_extensions; do
9023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024     ac_cv_prog_RANLIB="${ncn_progname}"
9025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026     break 2
9027   fi
9028 done
9029   done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 RANLIB=$ac_cv_prog_RANLIB
9035 if test -n "$RANLIB"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9037 $as_echo "$RANLIB" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042
9043
9044   fi
9045   test -n "$ac_cv_prog_RANLIB" && break
9046 done
9047
9048 if test -z "$ac_cv_prog_RANLIB" ; then
9049   RANLIB="true"
9050 fi
9051
9052
9053
9054 if test -n "$STRIP"; then
9055   ac_cv_prog_STRIP=$STRIP
9056 elif test -n "$ac_cv_prog_STRIP"; then
9057   STRIP=$ac_cv_prog_STRIP
9058 fi
9059
9060 if test -n "$ac_cv_prog_STRIP"; then
9061   for ncn_progname in strip; do
9062     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063 set dummy ${ncn_progname}; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_STRIP+set}" = set; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   if test -n "$STRIP"; then
9070   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075   IFS=$as_save_IFS
9076   test -z "$as_dir" && as_dir=.
9077     for ac_exec_ext in '' $ac_executable_extensions; do
9078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079     ac_cv_prog_STRIP="${ncn_progname}"
9080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081     break 2
9082   fi
9083 done
9084   done
9085 IFS=$as_save_IFS
9086
9087 fi
9088 fi
9089 STRIP=$ac_cv_prog_STRIP
9090 if test -n "$STRIP"; then
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9092 $as_echo "$STRIP" >&6; }
9093 else
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099   done
9100 fi
9101
9102 for ncn_progname in strip; do
9103   if test -n "$ncn_tool_prefix"; then
9104     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_prog_STRIP+set}" = set; then :
9109   $as_echo_n "(cached) " >&6
9110 else
9111   if test -n "$STRIP"; then
9112   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9113 else
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9116 do
9117   IFS=$as_save_IFS
9118   test -z "$as_dir" && as_dir=.
9119     for ac_exec_ext in '' $ac_executable_extensions; do
9120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9121     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123     break 2
9124   fi
9125 done
9126   done
9127 IFS=$as_save_IFS
9128
9129 fi
9130 fi
9131 STRIP=$ac_cv_prog_STRIP
9132 if test -n "$STRIP"; then
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9134 $as_echo "$STRIP" >&6; }
9135 else
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138 fi
9139
9140
9141   fi
9142   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9143     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144 set dummy ${ncn_progname}; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if test "${ac_cv_prog_STRIP+set}" = set; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   if test -n "$STRIP"; then
9151   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156   IFS=$as_save_IFS
9157   test -z "$as_dir" && as_dir=.
9158     for ac_exec_ext in '' $ac_executable_extensions; do
9159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160     ac_cv_prog_STRIP="${ncn_progname}"
9161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162     break 2
9163   fi
9164 done
9165   done
9166 IFS=$as_save_IFS
9167
9168 fi
9169 fi
9170 STRIP=$ac_cv_prog_STRIP
9171 if test -n "$STRIP"; then
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9173 $as_echo "$STRIP" >&6; }
9174 else
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 fi
9178
9179
9180   fi
9181   test -n "$ac_cv_prog_STRIP" && break
9182 done
9183
9184 if test -z "$ac_cv_prog_STRIP" ; then
9185   STRIP="true"
9186 fi
9187
9188
9189
9190 if test -n "$WINDRES"; then
9191   ac_cv_prog_WINDRES=$WINDRES
9192 elif test -n "$ac_cv_prog_WINDRES"; then
9193   WINDRES=$ac_cv_prog_WINDRES
9194 fi
9195
9196 if test -n "$ac_cv_prog_WINDRES"; then
9197   for ncn_progname in windres; do
9198     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   if test -n "$WINDRES"; then
9206   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211   IFS=$as_save_IFS
9212   test -z "$as_dir" && as_dir=.
9213     for ac_exec_ext in '' $ac_executable_extensions; do
9214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215     ac_cv_prog_WINDRES="${ncn_progname}"
9216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217     break 2
9218   fi
9219 done
9220   done
9221 IFS=$as_save_IFS
9222
9223 fi
9224 fi
9225 WINDRES=$ac_cv_prog_WINDRES
9226 if test -n "$WINDRES"; then
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9228 $as_echo "$WINDRES" >&6; }
9229 else
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234
9235   done
9236 fi
9237
9238 for ncn_progname in windres; do
9239   if test -n "$ncn_tool_prefix"; then
9240     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   if test -n "$WINDRES"; then
9248   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9252 do
9253   IFS=$as_save_IFS
9254   test -z "$as_dir" && as_dir=.
9255     for ac_exec_ext in '' $ac_executable_extensions; do
9256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259     break 2
9260   fi
9261 done
9262   done
9263 IFS=$as_save_IFS
9264
9265 fi
9266 fi
9267 WINDRES=$ac_cv_prog_WINDRES
9268 if test -n "$WINDRES"; then
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9270 $as_echo "$WINDRES" >&6; }
9271 else
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277   fi
9278   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9279     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9280 set dummy ${ncn_progname}; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   if test -n "$WINDRES"; then
9287   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292   IFS=$as_save_IFS
9293   test -z "$as_dir" && as_dir=.
9294     for ac_exec_ext in '' $ac_executable_extensions; do
9295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296     ac_cv_prog_WINDRES="${ncn_progname}"
9297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298     break 2
9299   fi
9300 done
9301   done
9302 IFS=$as_save_IFS
9303
9304 fi
9305 fi
9306 WINDRES=$ac_cv_prog_WINDRES
9307 if test -n "$WINDRES"; then
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9309 $as_echo "$WINDRES" >&6; }
9310 else
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9313 fi
9314
9315
9316   fi
9317   test -n "$ac_cv_prog_WINDRES" && break
9318 done
9319
9320 if test -z "$ac_cv_prog_WINDRES" ; then
9321   set dummy windres
9322   if test $build = $host ; then
9323     WINDRES="$2"
9324   else
9325     WINDRES="${ncn_tool_prefix}$2"
9326   fi
9327 fi
9328
9329
9330
9331 if test -n "$WINDMC"; then
9332   ac_cv_prog_WINDMC=$WINDMC
9333 elif test -n "$ac_cv_prog_WINDMC"; then
9334   WINDMC=$ac_cv_prog_WINDMC
9335 fi
9336
9337 if test -n "$ac_cv_prog_WINDMC"; then
9338   for ncn_progname in windmc; do
9339     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340 set dummy ${ncn_progname}; ac_word=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9344   $as_echo_n "(cached) " >&6
9345 else
9346   if test -n "$WINDMC"; then
9347   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9348 else
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9351 do
9352   IFS=$as_save_IFS
9353   test -z "$as_dir" && as_dir=.
9354     for ac_exec_ext in '' $ac_executable_extensions; do
9355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356     ac_cv_prog_WINDMC="${ncn_progname}"
9357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358     break 2
9359   fi
9360 done
9361   done
9362 IFS=$as_save_IFS
9363
9364 fi
9365 fi
9366 WINDMC=$ac_cv_prog_WINDMC
9367 if test -n "$WINDMC"; then
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9369 $as_echo "$WINDMC" >&6; }
9370 else
9371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9373 fi
9374
9375
9376   done
9377 fi
9378
9379 for ncn_progname in windmc; do
9380   if test -n "$ncn_tool_prefix"; then
9381     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   if test -n "$WINDMC"; then
9389   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394   IFS=$as_save_IFS
9395   test -z "$as_dir" && as_dir=.
9396     for ac_exec_ext in '' $ac_executable_extensions; do
9397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9398     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400     break 2
9401   fi
9402 done
9403   done
9404 IFS=$as_save_IFS
9405
9406 fi
9407 fi
9408 WINDMC=$ac_cv_prog_WINDMC
9409 if test -n "$WINDMC"; then
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9411 $as_echo "$WINDMC" >&6; }
9412 else
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418   fi
9419   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9420     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9421 set dummy ${ncn_progname}; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   if test -n "$WINDMC"; then
9428   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433   IFS=$as_save_IFS
9434   test -z "$as_dir" && as_dir=.
9435     for ac_exec_ext in '' $ac_executable_extensions; do
9436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437     ac_cv_prog_WINDMC="${ncn_progname}"
9438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439     break 2
9440   fi
9441 done
9442   done
9443 IFS=$as_save_IFS
9444
9445 fi
9446 fi
9447 WINDMC=$ac_cv_prog_WINDMC
9448 if test -n "$WINDMC"; then
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9450 $as_echo "$WINDMC" >&6; }
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457   fi
9458   test -n "$ac_cv_prog_WINDMC" && break
9459 done
9460
9461 if test -z "$ac_cv_prog_WINDMC" ; then
9462   set dummy windmc
9463   if test $build = $host ; then
9464     WINDMC="$2"
9465   else
9466     WINDMC="${ncn_tool_prefix}$2"
9467   fi
9468 fi
9469
9470
9471
9472 if test -n "$OBJCOPY"; then
9473   ac_cv_prog_OBJCOPY=$OBJCOPY
9474 elif test -n "$ac_cv_prog_OBJCOPY"; then
9475   OBJCOPY=$ac_cv_prog_OBJCOPY
9476 fi
9477
9478 if test -n "$ac_cv_prog_OBJCOPY"; then
9479   for ncn_progname in objcopy; do
9480     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481 set dummy ${ncn_progname}; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   if test -n "$OBJCOPY"; then
9488   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9492 do
9493   IFS=$as_save_IFS
9494   test -z "$as_dir" && as_dir=.
9495     for ac_exec_ext in '' $ac_executable_extensions; do
9496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497     ac_cv_prog_OBJCOPY="${ncn_progname}"
9498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499     break 2
9500   fi
9501 done
9502   done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 OBJCOPY=$ac_cv_prog_OBJCOPY
9508 if test -n "$OBJCOPY"; then
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9510 $as_echo "$OBJCOPY" >&6; }
9511 else
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9514 fi
9515
9516
9517   done
9518 fi
9519
9520 for ncn_progname in objcopy; do
9521   if test -n "$ncn_tool_prefix"; then
9522     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9523 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9527   $as_echo_n "(cached) " >&6
9528 else
9529   if test -n "$OBJCOPY"; then
9530   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9531 else
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9534 do
9535   IFS=$as_save_IFS
9536   test -z "$as_dir" && as_dir=.
9537     for ac_exec_ext in '' $ac_executable_extensions; do
9538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541     break 2
9542   fi
9543 done
9544   done
9545 IFS=$as_save_IFS
9546
9547 fi
9548 fi
9549 OBJCOPY=$ac_cv_prog_OBJCOPY
9550 if test -n "$OBJCOPY"; then
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9552 $as_echo "$OBJCOPY" >&6; }
9553 else
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557
9558
9559   fi
9560   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9561     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9562 set dummy ${ncn_progname}; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   if test -n "$OBJCOPY"; then
9569   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9570 else
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9573 do
9574   IFS=$as_save_IFS
9575   test -z "$as_dir" && as_dir=.
9576     for ac_exec_ext in '' $ac_executable_extensions; do
9577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578     ac_cv_prog_OBJCOPY="${ncn_progname}"
9579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580     break 2
9581   fi
9582 done
9583   done
9584 IFS=$as_save_IFS
9585
9586 fi
9587 fi
9588 OBJCOPY=$ac_cv_prog_OBJCOPY
9589 if test -n "$OBJCOPY"; then
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9591 $as_echo "$OBJCOPY" >&6; }
9592 else
9593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 fi
9596
9597
9598   fi
9599   test -n "$ac_cv_prog_OBJCOPY" && break
9600 done
9601
9602 if test -z "$ac_cv_prog_OBJCOPY" ; then
9603   set dummy objcopy
9604   if test $build = $host ; then
9605     OBJCOPY="$2"
9606   else
9607     OBJCOPY="${ncn_tool_prefix}$2"
9608   fi
9609 fi
9610
9611
9612
9613 if test -n "$OBJDUMP"; then
9614   ac_cv_prog_OBJDUMP=$OBJDUMP
9615 elif test -n "$ac_cv_prog_OBJDUMP"; then
9616   OBJDUMP=$ac_cv_prog_OBJDUMP
9617 fi
9618
9619 if test -n "$ac_cv_prog_OBJDUMP"; then
9620   for ncn_progname in objdump; do
9621     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9622 set dummy ${ncn_progname}; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   if test -n "$OBJDUMP"; then
9629   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9633 do
9634   IFS=$as_save_IFS
9635   test -z "$as_dir" && as_dir=.
9636     for ac_exec_ext in '' $ac_executable_extensions; do
9637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638     ac_cv_prog_OBJDUMP="${ncn_progname}"
9639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640     break 2
9641   fi
9642 done
9643   done
9644 IFS=$as_save_IFS
9645
9646 fi
9647 fi
9648 OBJDUMP=$ac_cv_prog_OBJDUMP
9649 if test -n "$OBJDUMP"; then
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9651 $as_echo "$OBJDUMP" >&6; }
9652 else
9653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9655 fi
9656
9657
9658   done
9659 fi
9660
9661 for ncn_progname in objdump; do
9662   if test -n "$ncn_tool_prefix"; then
9663     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9668   $as_echo_n "(cached) " >&6
9669 else
9670   if test -n "$OBJDUMP"; then
9671   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9675 do
9676   IFS=$as_save_IFS
9677   test -z "$as_dir" && as_dir=.
9678     for ac_exec_ext in '' $ac_executable_extensions; do
9679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682     break 2
9683   fi
9684 done
9685   done
9686 IFS=$as_save_IFS
9687
9688 fi
9689 fi
9690 OBJDUMP=$ac_cv_prog_OBJDUMP
9691 if test -n "$OBJDUMP"; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9693 $as_echo "$OBJDUMP" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698
9699
9700   fi
9701   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9702     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   if test -n "$OBJDUMP"; then
9710   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715   IFS=$as_save_IFS
9716   test -z "$as_dir" && as_dir=.
9717     for ac_exec_ext in '' $ac_executable_extensions; do
9718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719     ac_cv_prog_OBJDUMP="${ncn_progname}"
9720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721     break 2
9722   fi
9723 done
9724   done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 OBJDUMP=$ac_cv_prog_OBJDUMP
9730 if test -n "$OBJDUMP"; then
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9732 $as_echo "$OBJDUMP" >&6; }
9733 else
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739   fi
9740   test -n "$ac_cv_prog_OBJDUMP" && break
9741 done
9742
9743 if test -z "$ac_cv_prog_OBJDUMP" ; then
9744   set dummy objdump
9745   if test $build = $host ; then
9746     OBJDUMP="$2"
9747   else
9748     OBJDUMP="${ncn_tool_prefix}$2"
9749   fi
9750 fi
9751
9752
9753
9754 if test -n "$READELF"; then
9755   ac_cv_prog_READELF=$READELF
9756 elif test -n "$ac_cv_prog_READELF"; then
9757   READELF=$ac_cv_prog_READELF
9758 fi
9759
9760 if test -n "$ac_cv_prog_READELF"; then
9761   for ncn_progname in readelf; do
9762     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763 set dummy ${ncn_progname}; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if test "${ac_cv_prog_READELF+set}" = set; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   if test -n "$READELF"; then
9770   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777     for ac_exec_ext in '' $ac_executable_extensions; do
9778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779     ac_cv_prog_READELF="${ncn_progname}"
9780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781     break 2
9782   fi
9783 done
9784   done
9785 IFS=$as_save_IFS
9786
9787 fi
9788 fi
9789 READELF=$ac_cv_prog_READELF
9790 if test -n "$READELF"; then
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9792 $as_echo "$READELF" >&6; }
9793 else
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9796 fi
9797
9798
9799   done
9800 fi
9801
9802 for ncn_progname in readelf; do
9803   if test -n "$ncn_tool_prefix"; then
9804     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9805 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if test "${ac_cv_prog_READELF+set}" = set; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   if test -n "$READELF"; then
9812   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817   IFS=$as_save_IFS
9818   test -z "$as_dir" && as_dir=.
9819     for ac_exec_ext in '' $ac_executable_extensions; do
9820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823     break 2
9824   fi
9825 done
9826   done
9827 IFS=$as_save_IFS
9828
9829 fi
9830 fi
9831 READELF=$ac_cv_prog_READELF
9832 if test -n "$READELF"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9834 $as_echo "$READELF" >&6; }
9835 else
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839
9840
9841   fi
9842   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9843     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9844 set dummy ${ncn_progname}; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if test "${ac_cv_prog_READELF+set}" = set; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   if test -n "$READELF"; then
9851   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856   IFS=$as_save_IFS
9857   test -z "$as_dir" && as_dir=.
9858     for ac_exec_ext in '' $ac_executable_extensions; do
9859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860     ac_cv_prog_READELF="${ncn_progname}"
9861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862     break 2
9863   fi
9864 done
9865   done
9866 IFS=$as_save_IFS
9867
9868 fi
9869 fi
9870 READELF=$ac_cv_prog_READELF
9871 if test -n "$READELF"; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9873 $as_echo "$READELF" >&6; }
9874 else
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878
9879
9880   fi
9881   test -n "$ac_cv_prog_READELF" && break
9882 done
9883
9884 if test -z "$ac_cv_prog_READELF" ; then
9885   set dummy readelf
9886   if test $build = $host ; then
9887     READELF="$2"
9888   else
9889     READELF="${ncn_tool_prefix}$2"
9890   fi
9891 fi
9892
9893
9894
9895
9896
9897
9898 # Target tools.
9899
9900 # Check whether --with-build-time-tools was given.
9901 if test "${with_build_time_tools+set}" = set; then :
9902   withval=$with_build_time_tools; case x"$withval" in
9903      x/*) ;;
9904      *)
9905        with_build_time_tools=
9906        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9907 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9908        ;;
9909    esac
9910 else
9911   with_build_time_tools=
9912 fi
9913
9914
9915
9916
9917 if test -n "$CC_FOR_TARGET"; then
9918   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9919 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9920   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9921 fi
9922
9923 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9924   for ncn_progname in cc gcc; do
9925     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926 set dummy ${ncn_progname}; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   if test -n "$CC_FOR_TARGET"; then
9933   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938   IFS=$as_save_IFS
9939   test -z "$as_dir" && as_dir=.
9940     for ac_exec_ext in '' $ac_executable_extensions; do
9941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944     break 2
9945   fi
9946 done
9947   done
9948 IFS=$as_save_IFS
9949
9950 fi
9951 fi
9952 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9953 if test -n "$CC_FOR_TARGET"; then
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9955 $as_echo "$CC_FOR_TARGET" >&6; }
9956 else
9957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962   done
9963 fi
9964
9965 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9966   for ncn_progname in cc gcc; do
9967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9969     if test -x $with_build_time_tools/${ncn_progname}; then
9970       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9972 $as_echo "yes" >&6; }
9973       break
9974     else
9975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9977     fi
9978   done
9979 fi
9980
9981 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9982   for ncn_progname in cc gcc; do
9983     if test -n "$ncn_target_tool_prefix"; then
9984       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9989   $as_echo_n "(cached) " >&6
9990 else
9991   if test -n "$CC_FOR_TARGET"; then
9992   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997   IFS=$as_save_IFS
9998   test -z "$as_dir" && as_dir=.
9999     for ac_exec_ext in '' $ac_executable_extensions; do
10000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003     break 2
10004   fi
10005 done
10006   done
10007 IFS=$as_save_IFS
10008
10009 fi
10010 fi
10011 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10012 if test -n "$CC_FOR_TARGET"; then
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10014 $as_echo "$CC_FOR_TARGET" >&6; }
10015 else
10016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019
10020
10021     fi
10022     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10023       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10024 set dummy ${ncn_progname}; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   if test -n "$CC_FOR_TARGET"; then
10031   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10032 else
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10035 do
10036   IFS=$as_save_IFS
10037   test -z "$as_dir" && as_dir=.
10038     for ac_exec_ext in '' $ac_executable_extensions; do
10039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042     break 2
10043   fi
10044 done
10045   done
10046 IFS=$as_save_IFS
10047
10048 fi
10049 fi
10050 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10051 if test -n "$CC_FOR_TARGET"; then
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10053 $as_echo "$CC_FOR_TARGET" >&6; }
10054 else
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 fi
10058
10059
10060     fi
10061     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10062   done
10063 fi
10064
10065 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10066   set dummy cc gcc
10067   if test $build = $target ; then
10068     CC_FOR_TARGET="$2"
10069   else
10070     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10071   fi
10072 else
10073   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10074 fi
10075
10076
10077
10078 if test -n "$CXX_FOR_TARGET"; then
10079   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10080 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10081   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10082 fi
10083
10084 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10085   for ncn_progname in c++ g++ cxx gxx; do
10086     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   if test -n "$CXX_FOR_TARGET"; then
10094   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099   IFS=$as_save_IFS
10100   test -z "$as_dir" && as_dir=.
10101     for ac_exec_ext in '' $ac_executable_extensions; do
10102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105     break 2
10106   fi
10107 done
10108   done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10114 if test -n "$CXX_FOR_TARGET"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10116 $as_echo "$CXX_FOR_TARGET" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123   done
10124 fi
10125
10126 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10127   for ncn_progname in c++ g++ cxx gxx; do
10128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10130     if test -x $with_build_time_tools/${ncn_progname}; then
10131       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10133 $as_echo "yes" >&6; }
10134       break
10135     else
10136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138     fi
10139   done
10140 fi
10141
10142 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10143   for ncn_progname in c++ g++ cxx gxx; do
10144     if test -n "$ncn_target_tool_prefix"; then
10145       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152   if test -n "$CXX_FOR_TARGET"; then
10153   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10154 else
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158   IFS=$as_save_IFS
10159   test -z "$as_dir" && as_dir=.
10160     for ac_exec_ext in '' $ac_executable_extensions; do
10161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164     break 2
10165   fi
10166 done
10167   done
10168 IFS=$as_save_IFS
10169
10170 fi
10171 fi
10172 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10173 if test -n "$CXX_FOR_TARGET"; then
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10175 $as_echo "$CXX_FOR_TARGET" >&6; }
10176 else
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180
10181
10182     fi
10183     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10184       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185 set dummy ${ncn_progname}; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   if test -n "$CXX_FOR_TARGET"; then
10192   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197   IFS=$as_save_IFS
10198   test -z "$as_dir" && as_dir=.
10199     for ac_exec_ext in '' $ac_executable_extensions; do
10200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203     break 2
10204   fi
10205 done
10206   done
10207 IFS=$as_save_IFS
10208
10209 fi
10210 fi
10211 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10212 if test -n "$CXX_FOR_TARGET"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10214 $as_echo "$CXX_FOR_TARGET" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221     fi
10222     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10223   done
10224 fi
10225
10226 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10227   set dummy c++ g++ cxx gxx
10228   if test $build = $target ; then
10229     CXX_FOR_TARGET="$2"
10230   else
10231     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10232   fi
10233 else
10234   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10235 fi
10236
10237
10238
10239 if test -n "$GCC_FOR_TARGET"; then
10240   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10241 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10242   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10243 fi
10244
10245 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10246   for ncn_progname in gcc; do
10247     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10248 set dummy ${ncn_progname}; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   if test -n "$GCC_FOR_TARGET"; then
10255   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10275 if test -n "$GCC_FOR_TARGET"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10277 $as_echo "$GCC_FOR_TARGET" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284   done
10285 fi
10286
10287 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10288   for ncn_progname in gcc; do
10289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10290 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10291     if test -x $with_build_time_tools/${ncn_progname}; then
10292       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10293       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; }
10295       break
10296     else
10297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10299     fi
10300   done
10301 fi
10302
10303 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10304   for ncn_progname in gcc; do
10305     if test -n "$ncn_target_tool_prefix"; then
10306       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10307 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   if test -n "$GCC_FOR_TARGET"; then
10314   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319   IFS=$as_save_IFS
10320   test -z "$as_dir" && as_dir=.
10321     for ac_exec_ext in '' $ac_executable_extensions; do
10322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325     break 2
10326   fi
10327 done
10328   done
10329 IFS=$as_save_IFS
10330
10331 fi
10332 fi
10333 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10334 if test -n "$GCC_FOR_TARGET"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10336 $as_echo "$GCC_FOR_TARGET" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342
10343     fi
10344     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10345       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10346 set dummy ${ncn_progname}; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -n "$GCC_FOR_TARGET"; then
10353   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10373 if test -n "$GCC_FOR_TARGET"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10375 $as_echo "$GCC_FOR_TARGET" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382     fi
10383     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10384   done
10385 fi
10386
10387 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10388   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10389 else
10390   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10391 fi
10392
10393
10394
10395 if test -n "$GCJ_FOR_TARGET"; then
10396   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10397 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10398   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10399 fi
10400
10401 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10402   for ncn_progname in gcj; do
10403     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10404 set dummy ${ncn_progname}; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   if test -n "$GCJ_FOR_TARGET"; then
10411   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10415 do
10416   IFS=$as_save_IFS
10417   test -z "$as_dir" && as_dir=.
10418     for ac_exec_ext in '' $ac_executable_extensions; do
10419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422     break 2
10423   fi
10424 done
10425   done
10426 IFS=$as_save_IFS
10427
10428 fi
10429 fi
10430 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10431 if test -n "$GCJ_FOR_TARGET"; then
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10433 $as_echo "$GCJ_FOR_TARGET" >&6; }
10434 else
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 fi
10438
10439
10440   done
10441 fi
10442
10443 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10444   for ncn_progname in gcj; do
10445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10447     if test -x $with_build_time_tools/${ncn_progname}; then
10448       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450 $as_echo "yes" >&6; }
10451       break
10452     else
10453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10455     fi
10456   done
10457 fi
10458
10459 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10460   for ncn_progname in gcj; do
10461     if test -n "$ncn_target_tool_prefix"; then
10462       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   if test -n "$GCJ_FOR_TARGET"; then
10470   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475   IFS=$as_save_IFS
10476   test -z "$as_dir" && as_dir=.
10477     for ac_exec_ext in '' $ac_executable_extensions; do
10478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481     break 2
10482   fi
10483 done
10484   done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10490 if test -n "$GCJ_FOR_TARGET"; then
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10492 $as_echo "$GCJ_FOR_TARGET" >&6; }
10493 else
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499     fi
10500     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10501       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10502 set dummy ${ncn_progname}; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10506   $as_echo_n "(cached) " >&6
10507 else
10508   if test -n "$GCJ_FOR_TARGET"; then
10509   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10510 else
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10513 do
10514   IFS=$as_save_IFS
10515   test -z "$as_dir" && as_dir=.
10516     for ac_exec_ext in '' $ac_executable_extensions; do
10517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10518     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520     break 2
10521   fi
10522 done
10523   done
10524 IFS=$as_save_IFS
10525
10526 fi
10527 fi
10528 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10529 if test -n "$GCJ_FOR_TARGET"; then
10530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10531 $as_echo "$GCJ_FOR_TARGET" >&6; }
10532 else
10533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10535 fi
10536
10537
10538     fi
10539     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10540   done
10541 fi
10542
10543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10544   set dummy gcj
10545   if test $build = $target ; then
10546     GCJ_FOR_TARGET="$2"
10547   else
10548     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10549   fi
10550 else
10551   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10552 fi
10553
10554
10555
10556 if test -n "$GFORTRAN_FOR_TARGET"; then
10557   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10558 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10559   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10560 fi
10561
10562 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10563   for ncn_progname in gfortran; do
10564     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565 set dummy ${ncn_progname}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   if test -n "$GFORTRAN_FOR_TARGET"; then
10572   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577   IFS=$as_save_IFS
10578   test -z "$as_dir" && as_dir=.
10579     for ac_exec_ext in '' $ac_executable_extensions; do
10580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583     break 2
10584   fi
10585 done
10586   done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10592 if test -n "$GFORTRAN_FOR_TARGET"; then
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10594 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10595 else
10596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600
10601   done
10602 fi
10603
10604 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605   for ncn_progname in gfortran; do
10606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10608     if test -x $with_build_time_tools/${ncn_progname}; then
10609       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612       break
10613     else
10614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616     fi
10617   done
10618 fi
10619
10620 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10621   for ncn_progname in gfortran; do
10622     if test -n "$ncn_target_tool_prefix"; then
10623       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   if test -n "$GFORTRAN_FOR_TARGET"; then
10631   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636   IFS=$as_save_IFS
10637   test -z "$as_dir" && as_dir=.
10638     for ac_exec_ext in '' $ac_executable_extensions; do
10639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642     break 2
10643   fi
10644 done
10645   done
10646 IFS=$as_save_IFS
10647
10648 fi
10649 fi
10650 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10651 if test -n "$GFORTRAN_FOR_TARGET"; then
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10653 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10654 else
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658
10659
10660     fi
10661     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10662       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663 set dummy ${ncn_progname}; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   if test -n "$GFORTRAN_FOR_TARGET"; then
10670   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10674 do
10675   IFS=$as_save_IFS
10676   test -z "$as_dir" && as_dir=.
10677     for ac_exec_ext in '' $ac_executable_extensions; do
10678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10679     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681     break 2
10682   fi
10683 done
10684   done
10685 IFS=$as_save_IFS
10686
10687 fi
10688 fi
10689 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10690 if test -n "$GFORTRAN_FOR_TARGET"; then
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10692 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10693 else
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 fi
10697
10698
10699     fi
10700     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10701   done
10702 fi
10703
10704 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10705   set dummy gfortran
10706   if test $build = $target ; then
10707     GFORTRAN_FOR_TARGET="$2"
10708   else
10709     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10710   fi
10711 else
10712   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10713 fi
10714
10715
10716
10717 if test -n "$GOC_FOR_TARGET"; then
10718   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10719 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10720   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10721 fi
10722
10723 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10724   for ncn_progname in gccgo; do
10725     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10726 set dummy ${ncn_progname}; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   if test -n "$GOC_FOR_TARGET"; then
10733   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10734 else
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10737 do
10738   IFS=$as_save_IFS
10739   test -z "$as_dir" && as_dir=.
10740     for ac_exec_ext in '' $ac_executable_extensions; do
10741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744     break 2
10745   fi
10746 done
10747   done
10748 IFS=$as_save_IFS
10749
10750 fi
10751 fi
10752 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10753 if test -n "$GOC_FOR_TARGET"; then
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10755 $as_echo "$GOC_FOR_TARGET" >&6; }
10756 else
10757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10759 fi
10760
10761
10762   done
10763 fi
10764
10765 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10766   for ncn_progname in gccgo; do
10767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10768 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10769     if test -x $with_build_time_tools/${ncn_progname}; then
10770       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; }
10773       break
10774     else
10775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10777     fi
10778   done
10779 fi
10780
10781 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10782   for ncn_progname in gccgo; do
10783     if test -n "$ncn_target_tool_prefix"; then
10784       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   if test -n "$GOC_FOR_TARGET"; then
10792   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797   IFS=$as_save_IFS
10798   test -z "$as_dir" && as_dir=.
10799     for ac_exec_ext in '' $ac_executable_extensions; do
10800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803     break 2
10804   fi
10805 done
10806   done
10807 IFS=$as_save_IFS
10808
10809 fi
10810 fi
10811 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10812 if test -n "$GOC_FOR_TARGET"; then
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10814 $as_echo "$GOC_FOR_TARGET" >&6; }
10815 else
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10818 fi
10819
10820
10821     fi
10822     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10823       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830   if test -n "$GOC_FOR_TARGET"; then
10831   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10835 do
10836   IFS=$as_save_IFS
10837   test -z "$as_dir" && as_dir=.
10838     for ac_exec_ext in '' $ac_executable_extensions; do
10839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842     break 2
10843   fi
10844 done
10845   done
10846 IFS=$as_save_IFS
10847
10848 fi
10849 fi
10850 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10851 if test -n "$GOC_FOR_TARGET"; then
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10853 $as_echo "$GOC_FOR_TARGET" >&6; }
10854 else
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857 fi
10858
10859
10860     fi
10861     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10862   done
10863 fi
10864
10865 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10866   set dummy gccgo
10867   if test $build = $target ; then
10868     GOC_FOR_TARGET="$2"
10869   else
10870     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10871   fi
10872 else
10873   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10874 fi
10875
10876
10877
10878 cat > conftest.c << \EOF
10879 #ifdef __GNUC__
10880   gcc_yay;
10881 #endif
10882 EOF
10883 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10884   have_gcc_for_target=yes
10885 else
10886   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10887   have_gcc_for_target=no
10888 fi
10889 rm conftest.c
10890
10891
10892
10893
10894 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10895   if test -n "$with_build_time_tools"; then
10896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10897 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10898     if test -x $with_build_time_tools/ar; then
10899       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10900       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10902 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10903     else
10904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906     fi
10907   elif test $build != $host && test $have_gcc_for_target = yes; then
10908     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10909     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10910     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10911   fi
10912 fi
10913 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10914   # Extract the first word of "ar", so it can be a program name with args.
10915 set dummy ar; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   case $AR_FOR_TARGET in
10922   [\\/]* | ?:[\\/]*)
10923   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10924   ;;
10925   *)
10926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $gcc_cv_tool_dirs
10928 do
10929   IFS=$as_save_IFS
10930   test -z "$as_dir" && as_dir=.
10931     for ac_exec_ext in '' $ac_executable_extensions; do
10932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10933     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935     break 2
10936   fi
10937 done
10938   done
10939 IFS=$as_save_IFS
10940
10941   ;;
10942 esac
10943 fi
10944 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10945 if test -n "$AR_FOR_TARGET"; then
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10947 $as_echo "$AR_FOR_TARGET" >&6; }
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952
10953
10954 fi
10955 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10956
10957
10958 if test -n "$AR_FOR_TARGET"; then
10959   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10960 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10961   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10962 fi
10963
10964 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10965   for ncn_progname in ar; do
10966     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967 set dummy ${ncn_progname}; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   if test -n "$AR_FOR_TARGET"; then
10974   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10975 else
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979   IFS=$as_save_IFS
10980   test -z "$as_dir" && as_dir=.
10981     for ac_exec_ext in '' $ac_executable_extensions; do
10982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985     break 2
10986   fi
10987 done
10988   done
10989 IFS=$as_save_IFS
10990
10991 fi
10992 fi
10993 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10994 if test -n "$AR_FOR_TARGET"; then
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10996 $as_echo "$AR_FOR_TARGET" >&6; }
10997 else
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11000 fi
11001
11002
11003   done
11004 fi
11005
11006 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11007   for ncn_progname in ar; do
11008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11010     if test -x $with_build_time_tools/${ncn_progname}; then
11011       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11013 $as_echo "yes" >&6; }
11014       break
11015     else
11016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11018     fi
11019   done
11020 fi
11021
11022 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11023   for ncn_progname in ar; do
11024     if test -n "$ncn_target_tool_prefix"; then
11025       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11030   $as_echo_n "(cached) " >&6
11031 else
11032   if test -n "$AR_FOR_TARGET"; then
11033   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11034 else
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040     for ac_exec_ext in '' $ac_executable_extensions; do
11041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044     break 2
11045   fi
11046 done
11047   done
11048 IFS=$as_save_IFS
11049
11050 fi
11051 fi
11052 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11053 if test -n "$AR_FOR_TARGET"; then
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11055 $as_echo "$AR_FOR_TARGET" >&6; }
11056 else
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11059 fi
11060
11061
11062     fi
11063     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11064       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11065 set dummy ${ncn_progname}; ac_word=$2
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067 $as_echo_n "checking for $ac_word... " >&6; }
11068 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11069   $as_echo_n "(cached) " >&6
11070 else
11071   if test -n "$AR_FOR_TARGET"; then
11072   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11073 else
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077   IFS=$as_save_IFS
11078   test -z "$as_dir" && as_dir=.
11079     for ac_exec_ext in '' $ac_executable_extensions; do
11080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083     break 2
11084   fi
11085 done
11086   done
11087 IFS=$as_save_IFS
11088
11089 fi
11090 fi
11091 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11092 if test -n "$AR_FOR_TARGET"; then
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11094 $as_echo "$AR_FOR_TARGET" >&6; }
11095 else
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 fi
11099
11100
11101     fi
11102     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11103   done
11104 fi
11105
11106 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11107   set dummy ar
11108   if test $build = $target ; then
11109     AR_FOR_TARGET="$2"
11110   else
11111     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11112   fi
11113 else
11114   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11115 fi
11116
11117 else
11118   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11119 fi
11120
11121
11122
11123
11124 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11125   if test -n "$with_build_time_tools"; then
11126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11127 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11128     if test -x $with_build_time_tools/as; then
11129       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11130       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11132 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11133     else
11134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136     fi
11137   elif test $build != $host && test $have_gcc_for_target = yes; then
11138     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11139     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11140     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11141   fi
11142 fi
11143 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11144   # Extract the first word of "as", so it can be a program name with args.
11145 set dummy as; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147 $as_echo_n "checking for $ac_word... " >&6; }
11148 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   case $AS_FOR_TARGET in
11152   [\\/]* | ?:[\\/]*)
11153   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11154   ;;
11155   *)
11156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $gcc_cv_tool_dirs
11158 do
11159   IFS=$as_save_IFS
11160   test -z "$as_dir" && as_dir=.
11161     for ac_exec_ext in '' $ac_executable_extensions; do
11162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165     break 2
11166   fi
11167 done
11168   done
11169 IFS=$as_save_IFS
11170
11171   ;;
11172 esac
11173 fi
11174 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11175 if test -n "$AS_FOR_TARGET"; then
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11177 $as_echo "$AS_FOR_TARGET" >&6; }
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 fi
11182
11183
11184 fi
11185 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11186
11187
11188 if test -n "$AS_FOR_TARGET"; then
11189   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11190 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11191   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11192 fi
11193
11194 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11195   for ncn_progname in as; do
11196     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_progname}; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   if test -n "$AS_FOR_TARGET"; then
11204   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11205 else
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209   IFS=$as_save_IFS
11210   test -z "$as_dir" && as_dir=.
11211     for ac_exec_ext in '' $ac_executable_extensions; do
11212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11213     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215     break 2
11216   fi
11217 done
11218   done
11219 IFS=$as_save_IFS
11220
11221 fi
11222 fi
11223 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11224 if test -n "$AS_FOR_TARGET"; then
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11226 $as_echo "$AS_FOR_TARGET" >&6; }
11227 else
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 fi
11231
11232
11233   done
11234 fi
11235
11236 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11237   for ncn_progname in as; do
11238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11239 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11240     if test -x $with_build_time_tools/${ncn_progname}; then
11241       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11243 $as_echo "yes" >&6; }
11244       break
11245     else
11246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248     fi
11249   done
11250 fi
11251
11252 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11253   for ncn_progname in as; do
11254     if test -n "$ncn_target_tool_prefix"; then
11255       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   if test -n "$AS_FOR_TARGET"; then
11263   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270     for ac_exec_ext in '' $ac_executable_extensions; do
11271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11272     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277   done
11278 IFS=$as_save_IFS
11279
11280 fi
11281 fi
11282 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11283 if test -n "$AS_FOR_TARGET"; then
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11285 $as_echo "$AS_FOR_TARGET" >&6; }
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290
11291
11292     fi
11293     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11294       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11295 set dummy ${ncn_progname}; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   if test -n "$AS_FOR_TARGET"; then
11302   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11311     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318
11319 fi
11320 fi
11321 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11322 if test -n "$AS_FOR_TARGET"; then
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11324 $as_echo "$AS_FOR_TARGET" >&6; }
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328 fi
11329
11330
11331     fi
11332     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11333   done
11334 fi
11335
11336 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11337   set dummy as
11338   if test $build = $target ; then
11339     AS_FOR_TARGET="$2"
11340   else
11341     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11342   fi
11343 else
11344   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11345 fi
11346
11347 else
11348   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11349 fi
11350
11351
11352
11353
11354 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11355   if test -n "$with_build_time_tools"; then
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11357 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11358     if test -x $with_build_time_tools/dlltool; then
11359       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11360       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11362 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11363     else
11364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366     fi
11367   elif test $build != $host && test $have_gcc_for_target = yes; then
11368     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11369     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11370     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11371   fi
11372 fi
11373 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11374   # Extract the first word of "dlltool", so it can be a program name with args.
11375 set dummy dlltool; ac_word=$2
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11377 $as_echo_n "checking for $ac_word... " >&6; }
11378 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   case $DLLTOOL_FOR_TARGET in
11382   [\\/]* | ?:[\\/]*)
11383   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11384   ;;
11385   *)
11386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387 for as_dir in $gcc_cv_tool_dirs
11388 do
11389   IFS=$as_save_IFS
11390   test -z "$as_dir" && as_dir=.
11391     for ac_exec_ext in '' $ac_executable_extensions; do
11392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11393     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395     break 2
11396   fi
11397 done
11398   done
11399 IFS=$as_save_IFS
11400
11401   ;;
11402 esac
11403 fi
11404 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11405 if test -n "$DLLTOOL_FOR_TARGET"; then
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11407 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412
11413
11414 fi
11415 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11416
11417
11418 if test -n "$DLLTOOL_FOR_TARGET"; then
11419   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11420 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11421   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11422 fi
11423
11424 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11425   for ncn_progname in dlltool; do
11426     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11431   $as_echo_n "(cached) " >&6
11432 else
11433   if test -n "$DLLTOOL_FOR_TARGET"; then
11434   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11435 else
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439   IFS=$as_save_IFS
11440   test -z "$as_dir" && as_dir=.
11441     for ac_exec_ext in '' $ac_executable_extensions; do
11442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445     break 2
11446   fi
11447 done
11448   done
11449 IFS=$as_save_IFS
11450
11451 fi
11452 fi
11453 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11454 if test -n "$DLLTOOL_FOR_TARGET"; then
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11456 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11457 else
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463   done
11464 fi
11465
11466 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11467   for ncn_progname in dlltool; do
11468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11470     if test -x $with_build_time_tools/${ncn_progname}; then
11471       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11473 $as_echo "yes" >&6; }
11474       break
11475     else
11476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478     fi
11479   done
11480 fi
11481
11482 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11483   for ncn_progname in dlltool; do
11484     if test -n "$ncn_target_tool_prefix"; then
11485       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11490   $as_echo_n "(cached) " >&6
11491 else
11492   if test -n "$DLLTOOL_FOR_TARGET"; then
11493   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11494 else
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498   IFS=$as_save_IFS
11499   test -z "$as_dir" && as_dir=.
11500     for ac_exec_ext in '' $ac_executable_extensions; do
11501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504     break 2
11505   fi
11506 done
11507   done
11508 IFS=$as_save_IFS
11509
11510 fi
11511 fi
11512 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11513 if test -n "$DLLTOOL_FOR_TARGET"; then
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11515 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11516 else
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 fi
11520
11521
11522     fi
11523     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11524       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11525 set dummy ${ncn_progname}; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531   if test -n "$DLLTOOL_FOR_TARGET"; then
11532   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11533 else
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11536 do
11537   IFS=$as_save_IFS
11538   test -z "$as_dir" && as_dir=.
11539     for ac_exec_ext in '' $ac_executable_extensions; do
11540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543     break 2
11544   fi
11545 done
11546   done
11547 IFS=$as_save_IFS
11548
11549 fi
11550 fi
11551 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11552 if test -n "$DLLTOOL_FOR_TARGET"; then
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11554 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11555 else
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 fi
11559
11560
11561     fi
11562     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11563   done
11564 fi
11565
11566 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11567   set dummy dlltool
11568   if test $build = $target ; then
11569     DLLTOOL_FOR_TARGET="$2"
11570   else
11571     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11572   fi
11573 else
11574   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11575 fi
11576
11577 else
11578   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11579 fi
11580
11581
11582
11583
11584 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11585   if test -n "$with_build_time_tools"; then
11586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11587 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11588     if test -x $with_build_time_tools/ld; then
11589       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11590       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11592 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11593     else
11594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596     fi
11597   elif test $build != $host && test $have_gcc_for_target = yes; then
11598     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11599     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11600     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11601   fi
11602 fi
11603 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11604   # Extract the first word of "ld", so it can be a program name with args.
11605 set dummy ld; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   case $LD_FOR_TARGET in
11612   [\\/]* | ?:[\\/]*)
11613   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11614   ;;
11615   *)
11616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $gcc_cv_tool_dirs
11618 do
11619   IFS=$as_save_IFS
11620   test -z "$as_dir" && as_dir=.
11621     for ac_exec_ext in '' $ac_executable_extensions; do
11622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625     break 2
11626   fi
11627 done
11628   done
11629 IFS=$as_save_IFS
11630
11631   ;;
11632 esac
11633 fi
11634 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11635 if test -n "$LD_FOR_TARGET"; then
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11637 $as_echo "$LD_FOR_TARGET" >&6; }
11638 else
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 fi
11642
11643
11644 fi
11645 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11646
11647
11648 if test -n "$LD_FOR_TARGET"; then
11649   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11650 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11651   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11652 fi
11653
11654 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11655   for ncn_progname in ld; do
11656     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11657 set dummy ${ncn_progname}; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   if test -n "$LD_FOR_TARGET"; then
11664   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11665 else
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680
11681 fi
11682 fi
11683 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11684 if test -n "$LD_FOR_TARGET"; then
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11686 $as_echo "$LD_FOR_TARGET" >&6; }
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11690 fi
11691
11692
11693   done
11694 fi
11695
11696 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11697   for ncn_progname in ld; do
11698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11699 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11700     if test -x $with_build_time_tools/${ncn_progname}; then
11701       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704       break
11705     else
11706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11708     fi
11709   done
11710 fi
11711
11712 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11713   for ncn_progname in ld; do
11714     if test -n "$ncn_target_tool_prefix"; then
11715       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   if test -n "$LD_FOR_TARGET"; then
11723   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730     for ac_exec_ext in '' $ac_executable_extensions; do
11731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734     break 2
11735   fi
11736 done
11737   done
11738 IFS=$as_save_IFS
11739
11740 fi
11741 fi
11742 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11743 if test -n "$LD_FOR_TARGET"; then
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11745 $as_echo "$LD_FOR_TARGET" >&6; }
11746 else
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749 fi
11750
11751
11752     fi
11753     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11754       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11755 set dummy ${ncn_progname}; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   if test -n "$LD_FOR_TARGET"; then
11762   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767   IFS=$as_save_IFS
11768   test -z "$as_dir" && as_dir=.
11769     for ac_exec_ext in '' $ac_executable_extensions; do
11770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773     break 2
11774   fi
11775 done
11776   done
11777 IFS=$as_save_IFS
11778
11779 fi
11780 fi
11781 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11782 if test -n "$LD_FOR_TARGET"; then
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11784 $as_echo "$LD_FOR_TARGET" >&6; }
11785 else
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11788 fi
11789
11790
11791     fi
11792     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11793   done
11794 fi
11795
11796 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11797   set dummy ld
11798   if test $build = $target ; then
11799     LD_FOR_TARGET="$2"
11800   else
11801     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11802   fi
11803 else
11804   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11805 fi
11806
11807 else
11808   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11809 fi
11810
11811
11812
11813
11814 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11815   if test -n "$with_build_time_tools"; then
11816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11817 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11818     if test -x $with_build_time_tools/lipo; then
11819       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11820       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11822 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11823     else
11824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826     fi
11827   elif test $build != $host && test $have_gcc_for_target = yes; then
11828     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11829     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11830     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11831   fi
11832 fi
11833 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11834   # Extract the first word of "lipo", so it can be a program name with args.
11835 set dummy lipo; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   case $LIPO_FOR_TARGET in
11842   [\\/]* | ?:[\\/]*)
11843   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11844   ;;
11845   *)
11846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $gcc_cv_tool_dirs
11848 do
11849   IFS=$as_save_IFS
11850   test -z "$as_dir" && as_dir=.
11851     for ac_exec_ext in '' $ac_executable_extensions; do
11852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855     break 2
11856   fi
11857 done
11858   done
11859 IFS=$as_save_IFS
11860
11861   ;;
11862 esac
11863 fi
11864 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11865 if test -n "$LIPO_FOR_TARGET"; then
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11867 $as_echo "$LIPO_FOR_TARGET" >&6; }
11868 else
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 fi
11872
11873
11874 fi
11875 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11876
11877
11878 if test -n "$LIPO_FOR_TARGET"; then
11879   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11880 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11881   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11882 fi
11883
11884 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11885   for ncn_progname in lipo; do
11886     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11887 set dummy ${ncn_progname}; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   if test -n "$LIPO_FOR_TARGET"; then
11894   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11895 else
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11898 do
11899   IFS=$as_save_IFS
11900   test -z "$as_dir" && as_dir=.
11901     for ac_exec_ext in '' $ac_executable_extensions; do
11902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905     break 2
11906   fi
11907 done
11908   done
11909 IFS=$as_save_IFS
11910
11911 fi
11912 fi
11913 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11914 if test -n "$LIPO_FOR_TARGET"; then
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11916 $as_echo "$LIPO_FOR_TARGET" >&6; }
11917 else
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921
11922
11923   done
11924 fi
11925
11926 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11927   for ncn_progname in lipo; do
11928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11929 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11930     if test -x $with_build_time_tools/${ncn_progname}; then
11931       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11934       break
11935     else
11936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938     fi
11939   done
11940 fi
11941
11942 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11943   for ncn_progname in lipo; do
11944     if test -n "$ncn_target_tool_prefix"; then
11945       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11950   $as_echo_n "(cached) " >&6
11951 else
11952   if test -n "$LIPO_FOR_TARGET"; then
11953   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11957 do
11958   IFS=$as_save_IFS
11959   test -z "$as_dir" && as_dir=.
11960     for ac_exec_ext in '' $ac_executable_extensions; do
11961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964     break 2
11965   fi
11966 done
11967   done
11968 IFS=$as_save_IFS
11969
11970 fi
11971 fi
11972 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11973 if test -n "$LIPO_FOR_TARGET"; then
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11975 $as_echo "$LIPO_FOR_TARGET" >&6; }
11976 else
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980
11981
11982     fi
11983     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11984       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11985 set dummy ${ncn_progname}; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if test -n "$LIPO_FOR_TARGET"; then
11992   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997   IFS=$as_save_IFS
11998   test -z "$as_dir" && as_dir=.
11999     for ac_exec_ext in '' $ac_executable_extensions; do
12000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003     break 2
12004   fi
12005 done
12006   done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12012 if test -n "$LIPO_FOR_TARGET"; then
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12014 $as_echo "$LIPO_FOR_TARGET" >&6; }
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021     fi
12022     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12023   done
12024 fi
12025
12026 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12027   set dummy lipo
12028   if test $build = $target ; then
12029     LIPO_FOR_TARGET="$2"
12030   else
12031     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12032   fi
12033 else
12034   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12035 fi
12036
12037 else
12038   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12039 fi
12040
12041
12042
12043
12044 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12045   if test -n "$with_build_time_tools"; then
12046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12047 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12048     if test -x $with_build_time_tools/nm; then
12049       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12050       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12052 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12053     else
12054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056     fi
12057   elif test $build != $host && test $have_gcc_for_target = yes; then
12058     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12059     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12060     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12061   fi
12062 fi
12063 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12064   # Extract the first word of "nm", so it can be a program name with args.
12065 set dummy nm; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   case $NM_FOR_TARGET in
12072   [\\/]* | ?:[\\/]*)
12073   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12074   ;;
12075   *)
12076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $gcc_cv_tool_dirs
12078 do
12079   IFS=$as_save_IFS
12080   test -z "$as_dir" && as_dir=.
12081     for ac_exec_ext in '' $ac_executable_extensions; do
12082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12083     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085     break 2
12086   fi
12087 done
12088   done
12089 IFS=$as_save_IFS
12090
12091   ;;
12092 esac
12093 fi
12094 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12095 if test -n "$NM_FOR_TARGET"; then
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12097 $as_echo "$NM_FOR_TARGET" >&6; }
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102
12103
12104 fi
12105 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12106
12107
12108 if test -n "$NM_FOR_TARGET"; then
12109   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12110 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12111   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12112 fi
12113
12114 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12115   for ncn_progname in nm; do
12116     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12117 set dummy ${ncn_progname}; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   if test -n "$NM_FOR_TARGET"; then
12124   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12125 else
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12128 do
12129   IFS=$as_save_IFS
12130   test -z "$as_dir" && as_dir=.
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138   done
12139 IFS=$as_save_IFS
12140
12141 fi
12142 fi
12143 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12144 if test -n "$NM_FOR_TARGET"; then
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12146 $as_echo "$NM_FOR_TARGET" >&6; }
12147 else
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12150 fi
12151
12152
12153   done
12154 fi
12155
12156 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12157   for ncn_progname in nm; do
12158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12159 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12160     if test -x $with_build_time_tools/${ncn_progname}; then
12161       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12163 $as_echo "yes" >&6; }
12164       break
12165     else
12166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168     fi
12169   done
12170 fi
12171
12172 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12173   for ncn_progname in nm; do
12174     if test -n "$ncn_target_tool_prefix"; then
12175       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12176 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   if test -n "$NM_FOR_TARGET"; then
12183   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12187 do
12188   IFS=$as_save_IFS
12189   test -z "$as_dir" && as_dir=.
12190     for ac_exec_ext in '' $ac_executable_extensions; do
12191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12192     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194     break 2
12195   fi
12196 done
12197   done
12198 IFS=$as_save_IFS
12199
12200 fi
12201 fi
12202 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12203 if test -n "$NM_FOR_TARGET"; then
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12205 $as_echo "$NM_FOR_TARGET" >&6; }
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211
12212     fi
12213     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12214       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12215 set dummy ${ncn_progname}; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   if test -n "$NM_FOR_TARGET"; then
12222   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12242 if test -n "$NM_FOR_TARGET"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12244 $as_echo "$NM_FOR_TARGET" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251     fi
12252     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12253   done
12254 fi
12255
12256 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12257   set dummy nm
12258   if test $build = $target ; then
12259     NM_FOR_TARGET="$2"
12260   else
12261     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12262   fi
12263 else
12264   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12265 fi
12266
12267 else
12268   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12269 fi
12270
12271
12272
12273
12274 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12275   if test -n "$with_build_time_tools"; then
12276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12277 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12278     if test -x $with_build_time_tools/objcopy; then
12279       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12280       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12282 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12283     else
12284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286     fi
12287   elif test $build != $host && test $have_gcc_for_target = yes; then
12288     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12289     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12290     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12291   fi
12292 fi
12293 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12294   # Extract the first word of "objcopy", so it can be a program name with args.
12295 set dummy objcopy; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12299   $as_echo_n "(cached) " >&6
12300 else
12301   case $OBJCOPY_FOR_TARGET in
12302   [\\/]* | ?:[\\/]*)
12303   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12304   ;;
12305   *)
12306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $gcc_cv_tool_dirs
12308 do
12309   IFS=$as_save_IFS
12310   test -z "$as_dir" && as_dir=.
12311     for ac_exec_ext in '' $ac_executable_extensions; do
12312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315     break 2
12316   fi
12317 done
12318   done
12319 IFS=$as_save_IFS
12320
12321   ;;
12322 esac
12323 fi
12324 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12325 if test -n "$OBJCOPY_FOR_TARGET"; then
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12327 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12328 else
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332
12333
12334 fi
12335 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12336
12337
12338 if test -n "$OBJCOPY_FOR_TARGET"; then
12339   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12340 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12341   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12342 fi
12343
12344 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12345   for ncn_progname in objcopy; do
12346     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12347 set dummy ${ncn_progname}; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353   if test -n "$OBJCOPY_FOR_TARGET"; then
12354   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361     for ac_exec_ext in '' $ac_executable_extensions; do
12362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368   done
12369 IFS=$as_save_IFS
12370
12371 fi
12372 fi
12373 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12374 if test -n "$OBJCOPY_FOR_TARGET"; then
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12376 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12377 else
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381
12382
12383   done
12384 fi
12385
12386 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12387   for ncn_progname in objcopy; do
12388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12389 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12390     if test -x $with_build_time_tools/${ncn_progname}; then
12391       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12393 $as_echo "yes" >&6; }
12394       break
12395     else
12396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398     fi
12399   done
12400 fi
12401
12402 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12403   for ncn_progname in objcopy; do
12404     if test -n "$ncn_target_tool_prefix"; then
12405       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12406 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   if test -n "$OBJCOPY_FOR_TARGET"; then
12413   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12417 do
12418   IFS=$as_save_IFS
12419   test -z "$as_dir" && as_dir=.
12420     for ac_exec_ext in '' $ac_executable_extensions; do
12421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424     break 2
12425   fi
12426 done
12427   done
12428 IFS=$as_save_IFS
12429
12430 fi
12431 fi
12432 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12433 if test -n "$OBJCOPY_FOR_TARGET"; then
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12435 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12436 else
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441
12442     fi
12443     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12444       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12445 set dummy ${ncn_progname}; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   if test -n "$OBJCOPY_FOR_TARGET"; then
12452   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12453 else
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457   IFS=$as_save_IFS
12458   test -z "$as_dir" && as_dir=.
12459     for ac_exec_ext in '' $ac_executable_extensions; do
12460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463     break 2
12464   fi
12465 done
12466   done
12467 IFS=$as_save_IFS
12468
12469 fi
12470 fi
12471 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12472 if test -n "$OBJCOPY_FOR_TARGET"; then
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12474 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12475 else
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478 fi
12479
12480
12481     fi
12482     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12483   done
12484 fi
12485
12486 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12487   set dummy objcopy
12488   if test $build = $target ; then
12489     OBJCOPY_FOR_TARGET="$2"
12490   else
12491     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12492   fi
12493 else
12494   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12495 fi
12496
12497 else
12498   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12499 fi
12500
12501
12502
12503
12504 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12505   if test -n "$with_build_time_tools"; then
12506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12507 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12508     if test -x $with_build_time_tools/objdump; then
12509       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12510       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12512 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12513     else
12514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516     fi
12517   elif test $build != $host && test $have_gcc_for_target = yes; then
12518     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12519     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12520     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12521   fi
12522 fi
12523 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12524   # Extract the first word of "objdump", so it can be a program name with args.
12525 set dummy objdump; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12529   $as_echo_n "(cached) " >&6
12530 else
12531   case $OBJDUMP_FOR_TARGET in
12532   [\\/]* | ?:[\\/]*)
12533   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12534   ;;
12535   *)
12536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $gcc_cv_tool_dirs
12538 do
12539   IFS=$as_save_IFS
12540   test -z "$as_dir" && as_dir=.
12541     for ac_exec_ext in '' $ac_executable_extensions; do
12542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545     break 2
12546   fi
12547 done
12548   done
12549 IFS=$as_save_IFS
12550
12551   ;;
12552 esac
12553 fi
12554 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12555 if test -n "$OBJDUMP_FOR_TARGET"; then
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12557 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12558 else
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562
12563
12564 fi
12565 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12566
12567
12568 if test -n "$OBJDUMP_FOR_TARGET"; then
12569   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12570 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12571   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12572 fi
12573
12574 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12575   for ncn_progname in objdump; do
12576     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12577 set dummy ${ncn_progname}; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12581   $as_echo_n "(cached) " >&6
12582 else
12583   if test -n "$OBJDUMP_FOR_TARGET"; then
12584   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12585 else
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589   IFS=$as_save_IFS
12590   test -z "$as_dir" && as_dir=.
12591     for ac_exec_ext in '' $ac_executable_extensions; do
12592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595     break 2
12596   fi
12597 done
12598   done
12599 IFS=$as_save_IFS
12600
12601 fi
12602 fi
12603 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12604 if test -n "$OBJDUMP_FOR_TARGET"; then
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12606 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12607 else
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610 fi
12611
12612
12613   done
12614 fi
12615
12616 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12617   for ncn_progname in objdump; do
12618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12619 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12620     if test -x $with_build_time_tools/${ncn_progname}; then
12621       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623 $as_echo "yes" >&6; }
12624       break
12625     else
12626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628     fi
12629   done
12630 fi
12631
12632 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12633   for ncn_progname in objdump; do
12634     if test -n "$ncn_target_tool_prefix"; then
12635       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   if test -n "$OBJDUMP_FOR_TARGET"; then
12643   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659
12660 fi
12661 fi
12662 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12663 if test -n "$OBJDUMP_FOR_TARGET"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12665 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670
12671
12672     fi
12673     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12674       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12675 set dummy ${ncn_progname}; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12679   $as_echo_n "(cached) " >&6
12680 else
12681   if test -n "$OBJDUMP_FOR_TARGET"; then
12682   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687   IFS=$as_save_IFS
12688   test -z "$as_dir" && as_dir=.
12689     for ac_exec_ext in '' $ac_executable_extensions; do
12690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12691     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693     break 2
12694   fi
12695 done
12696   done
12697 IFS=$as_save_IFS
12698
12699 fi
12700 fi
12701 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12702 if test -n "$OBJDUMP_FOR_TARGET"; then
12703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12704 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12705 else
12706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711     fi
12712     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12713   done
12714 fi
12715
12716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12717   set dummy objdump
12718   if test $build = $target ; then
12719     OBJDUMP_FOR_TARGET="$2"
12720   else
12721     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12722   fi
12723 else
12724   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12725 fi
12726
12727 else
12728   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12729 fi
12730
12731
12732
12733
12734 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12735   if test -n "$with_build_time_tools"; then
12736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12737 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12738     if test -x $with_build_time_tools/ranlib; then
12739       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12740       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12742 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12743     else
12744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746     fi
12747   elif test $build != $host && test $have_gcc_for_target = yes; then
12748     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12749     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12750     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12751   fi
12752 fi
12753 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12754   # Extract the first word of "ranlib", so it can be a program name with args.
12755 set dummy ranlib; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12759   $as_echo_n "(cached) " >&6
12760 else
12761   case $RANLIB_FOR_TARGET in
12762   [\\/]* | ?:[\\/]*)
12763   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12764   ;;
12765   *)
12766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $gcc_cv_tool_dirs
12768 do
12769   IFS=$as_save_IFS
12770   test -z "$as_dir" && as_dir=.
12771     for ac_exec_ext in '' $ac_executable_extensions; do
12772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12773     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775     break 2
12776   fi
12777 done
12778   done
12779 IFS=$as_save_IFS
12780
12781   ;;
12782 esac
12783 fi
12784 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12785 if test -n "$RANLIB_FOR_TARGET"; then
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12787 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12788 else
12789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 fi
12792
12793
12794 fi
12795 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12796
12797
12798 if test -n "$RANLIB_FOR_TARGET"; then
12799   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12800 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12801   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12802 fi
12803
12804 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12805   for ncn_progname in ranlib; do
12806     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12807 set dummy ${ncn_progname}; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   if test -n "$RANLIB_FOR_TARGET"; then
12814   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12815 else
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12818 do
12819   IFS=$as_save_IFS
12820   test -z "$as_dir" && as_dir=.
12821     for ac_exec_ext in '' $ac_executable_extensions; do
12822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12823     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825     break 2
12826   fi
12827 done
12828   done
12829 IFS=$as_save_IFS
12830
12831 fi
12832 fi
12833 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12834 if test -n "$RANLIB_FOR_TARGET"; then
12835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12836 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12837 else
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12840 fi
12841
12842
12843   done
12844 fi
12845
12846 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12847   for ncn_progname in ranlib; do
12848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12849 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12850     if test -x $with_build_time_tools/${ncn_progname}; then
12851       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853 $as_echo "yes" >&6; }
12854       break
12855     else
12856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858     fi
12859   done
12860 fi
12861
12862 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12863   for ncn_progname in ranlib; do
12864     if test -n "$ncn_target_tool_prefix"; then
12865       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   if test -n "$RANLIB_FOR_TARGET"; then
12873   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12874 else
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12877 do
12878   IFS=$as_save_IFS
12879   test -z "$as_dir" && as_dir=.
12880     for ac_exec_ext in '' $ac_executable_extensions; do
12881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884     break 2
12885   fi
12886 done
12887   done
12888 IFS=$as_save_IFS
12889
12890 fi
12891 fi
12892 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12893 if test -n "$RANLIB_FOR_TARGET"; then
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12895 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12896 else
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900
12901
12902     fi
12903     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12904       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12905 set dummy ${ncn_progname}; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   if test -n "$RANLIB_FOR_TARGET"; then
12912   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919     for ac_exec_ext in '' $ac_executable_extensions; do
12920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926   done
12927 IFS=$as_save_IFS
12928
12929 fi
12930 fi
12931 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12932 if test -n "$RANLIB_FOR_TARGET"; then
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12934 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12935 else
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940
12941     fi
12942     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12943   done
12944 fi
12945
12946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12947   set dummy ranlib
12948   if test $build = $target ; then
12949     RANLIB_FOR_TARGET="$2"
12950   else
12951     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12952   fi
12953 else
12954   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12955 fi
12956
12957 else
12958   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12959 fi
12960
12961
12962
12963
12964 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12965   if test -n "$with_build_time_tools"; then
12966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12967 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12968     if test -x $with_build_time_tools/readelf; then
12969       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12970       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12972 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12973     else
12974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976     fi
12977   elif test $build != $host && test $have_gcc_for_target = yes; then
12978     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12979     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12980     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12981   fi
12982 fi
12983 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12984   # Extract the first word of "readelf", so it can be a program name with args.
12985 set dummy readelf; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12989   $as_echo_n "(cached) " >&6
12990 else
12991   case $READELF_FOR_TARGET in
12992   [\\/]* | ?:[\\/]*)
12993   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12994   ;;
12995   *)
12996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $gcc_cv_tool_dirs
12998 do
12999   IFS=$as_save_IFS
13000   test -z "$as_dir" && as_dir=.
13001     for ac_exec_ext in '' $ac_executable_extensions; do
13002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13003     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005     break 2
13006   fi
13007 done
13008   done
13009 IFS=$as_save_IFS
13010
13011   ;;
13012 esac
13013 fi
13014 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13015 if test -n "$READELF_FOR_TARGET"; then
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13017 $as_echo "$READELF_FOR_TARGET" >&6; }
13018 else
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022
13023
13024 fi
13025 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13026
13027
13028 if test -n "$READELF_FOR_TARGET"; then
13029   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13030 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13031   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13032 fi
13033
13034 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13035   for ncn_progname in readelf; do
13036     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13037 set dummy ${ncn_progname}; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043   if test -n "$READELF_FOR_TARGET"; then
13044   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13048 do
13049   IFS=$as_save_IFS
13050   test -z "$as_dir" && as_dir=.
13051     for ac_exec_ext in '' $ac_executable_extensions; do
13052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055     break 2
13056   fi
13057 done
13058   done
13059 IFS=$as_save_IFS
13060
13061 fi
13062 fi
13063 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13064 if test -n "$READELF_FOR_TARGET"; then
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13066 $as_echo "$READELF_FOR_TARGET" >&6; }
13067 else
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071
13072
13073   done
13074 fi
13075
13076 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13077   for ncn_progname in readelf; do
13078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13080     if test -x $with_build_time_tools/${ncn_progname}; then
13081       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084       break
13085     else
13086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088     fi
13089   done
13090 fi
13091
13092 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13093   for ncn_progname in readelf; do
13094     if test -n "$ncn_target_tool_prefix"; then
13095       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13100   $as_echo_n "(cached) " >&6
13101 else
13102   if test -n "$READELF_FOR_TARGET"; then
13103   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13107 do
13108   IFS=$as_save_IFS
13109   test -z "$as_dir" && as_dir=.
13110     for ac_exec_ext in '' $ac_executable_extensions; do
13111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114     break 2
13115   fi
13116 done
13117   done
13118 IFS=$as_save_IFS
13119
13120 fi
13121 fi
13122 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13123 if test -n "$READELF_FOR_TARGET"; then
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13125 $as_echo "$READELF_FOR_TARGET" >&6; }
13126 else
13127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 fi
13130
13131
13132     fi
13133     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13134       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13135 set dummy ${ncn_progname}; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141   if test -n "$READELF_FOR_TARGET"; then
13142   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149     for ac_exec_ext in '' $ac_executable_extensions; do
13150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153     break 2
13154   fi
13155 done
13156   done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13162 if test -n "$READELF_FOR_TARGET"; then
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13164 $as_echo "$READELF_FOR_TARGET" >&6; }
13165 else
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171     fi
13172     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13173   done
13174 fi
13175
13176 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13177   set dummy readelf
13178   if test $build = $target ; then
13179     READELF_FOR_TARGET="$2"
13180   else
13181     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13182   fi
13183 else
13184   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13185 fi
13186
13187 else
13188   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13189 fi
13190
13191
13192
13193
13194 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13195   if test -n "$with_build_time_tools"; then
13196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13197 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13198     if test -x $with_build_time_tools/strip; then
13199       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13200       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13202 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13203     else
13204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206     fi
13207   elif test $build != $host && test $have_gcc_for_target = yes; then
13208     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13209     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13210     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13211   fi
13212 fi
13213 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13214   # Extract the first word of "strip", so it can be a program name with args.
13215 set dummy strip; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   case $STRIP_FOR_TARGET in
13222   [\\/]* | ?:[\\/]*)
13223   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13224   ;;
13225   *)
13226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $gcc_cv_tool_dirs
13228 do
13229   IFS=$as_save_IFS
13230   test -z "$as_dir" && as_dir=.
13231     for ac_exec_ext in '' $ac_executable_extensions; do
13232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235     break 2
13236   fi
13237 done
13238   done
13239 IFS=$as_save_IFS
13240
13241   ;;
13242 esac
13243 fi
13244 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13245 if test -n "$STRIP_FOR_TARGET"; then
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13247 $as_echo "$STRIP_FOR_TARGET" >&6; }
13248 else
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252
13253
13254 fi
13255 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13256
13257
13258 if test -n "$STRIP_FOR_TARGET"; then
13259   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13260 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13261   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13262 fi
13263
13264 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13265   for ncn_progname in strip; do
13266     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13267 set dummy ${ncn_progname}; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13271   $as_echo_n "(cached) " >&6
13272 else
13273   if test -n "$STRIP_FOR_TARGET"; then
13274   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279   IFS=$as_save_IFS
13280   test -z "$as_dir" && as_dir=.
13281     for ac_exec_ext in '' $ac_executable_extensions; do
13282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285     break 2
13286   fi
13287 done
13288   done
13289 IFS=$as_save_IFS
13290
13291 fi
13292 fi
13293 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13294 if test -n "$STRIP_FOR_TARGET"; then
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13296 $as_echo "$STRIP_FOR_TARGET" >&6; }
13297 else
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301
13302
13303   done
13304 fi
13305
13306 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13307   for ncn_progname in strip; do
13308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13309 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13310     if test -x $with_build_time_tools/${ncn_progname}; then
13311       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13313 $as_echo "yes" >&6; }
13314       break
13315     else
13316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13318     fi
13319   done
13320 fi
13321
13322 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13323   for ncn_progname in strip; do
13324     if test -n "$ncn_target_tool_prefix"; then
13325       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13330   $as_echo_n "(cached) " >&6
13331 else
13332   if test -n "$STRIP_FOR_TARGET"; then
13333   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13334 else
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13337 do
13338   IFS=$as_save_IFS
13339   test -z "$as_dir" && as_dir=.
13340     for ac_exec_ext in '' $ac_executable_extensions; do
13341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344     break 2
13345   fi
13346 done
13347   done
13348 IFS=$as_save_IFS
13349
13350 fi
13351 fi
13352 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13353 if test -n "$STRIP_FOR_TARGET"; then
13354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13355 $as_echo "$STRIP_FOR_TARGET" >&6; }
13356 else
13357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13359 fi
13360
13361
13362     fi
13363     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13364       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13365 set dummy ${ncn_progname}; ac_word=$2
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367 $as_echo_n "checking for $ac_word... " >&6; }
13368 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13369   $as_echo_n "(cached) " >&6
13370 else
13371   if test -n "$STRIP_FOR_TARGET"; then
13372   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13373 else
13374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13375 for as_dir in $PATH
13376 do
13377   IFS=$as_save_IFS
13378   test -z "$as_dir" && as_dir=.
13379     for ac_exec_ext in '' $ac_executable_extensions; do
13380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13381     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13383     break 2
13384   fi
13385 done
13386   done
13387 IFS=$as_save_IFS
13388
13389 fi
13390 fi
13391 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13392 if test -n "$STRIP_FOR_TARGET"; then
13393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13394 $as_echo "$STRIP_FOR_TARGET" >&6; }
13395 else
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397 $as_echo "no" >&6; }
13398 fi
13399
13400
13401     fi
13402     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13403   done
13404 fi
13405
13406 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13407   set dummy strip
13408   if test $build = $target ; then
13409     STRIP_FOR_TARGET="$2"
13410   else
13411     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13412   fi
13413 else
13414   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13415 fi
13416
13417 else
13418   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13419 fi
13420
13421
13422
13423
13424 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13425   if test -n "$with_build_time_tools"; then
13426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13427 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13428     if test -x $with_build_time_tools/windres; then
13429       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13430       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13432 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13433     else
13434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436     fi
13437   elif test $build != $host && test $have_gcc_for_target = yes; then
13438     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13439     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13440     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13441   fi
13442 fi
13443 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13444   # Extract the first word of "windres", so it can be a program name with args.
13445 set dummy windres; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   case $WINDRES_FOR_TARGET in
13452   [\\/]* | ?:[\\/]*)
13453   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13454   ;;
13455   *)
13456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $gcc_cv_tool_dirs
13458 do
13459   IFS=$as_save_IFS
13460   test -z "$as_dir" && as_dir=.
13461     for ac_exec_ext in '' $ac_executable_extensions; do
13462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465     break 2
13466   fi
13467 done
13468   done
13469 IFS=$as_save_IFS
13470
13471   ;;
13472 esac
13473 fi
13474 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13475 if test -n "$WINDRES_FOR_TARGET"; then
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13477 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13478 else
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482
13483
13484 fi
13485 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13486
13487
13488 if test -n "$WINDRES_FOR_TARGET"; then
13489   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13490 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13491   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13492 fi
13493
13494 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13495   for ncn_progname in windres; do
13496     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13497 set dummy ${ncn_progname}; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13501   $as_echo_n "(cached) " >&6
13502 else
13503   if test -n "$WINDRES_FOR_TARGET"; then
13504   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13505 else
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13508 do
13509   IFS=$as_save_IFS
13510   test -z "$as_dir" && as_dir=.
13511     for ac_exec_ext in '' $ac_executable_extensions; do
13512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13513     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515     break 2
13516   fi
13517 done
13518   done
13519 IFS=$as_save_IFS
13520
13521 fi
13522 fi
13523 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13524 if test -n "$WINDRES_FOR_TARGET"; then
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13526 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13527 else
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13530 fi
13531
13532
13533   done
13534 fi
13535
13536 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13537   for ncn_progname in windres; do
13538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13540     if test -x $with_build_time_tools/${ncn_progname}; then
13541       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13543 $as_echo "yes" >&6; }
13544       break
13545     else
13546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13548     fi
13549   done
13550 fi
13551
13552 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13553   for ncn_progname in windres; do
13554     if test -n "$ncn_target_tool_prefix"; then
13555       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562   if test -n "$WINDRES_FOR_TARGET"; then
13563   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568   IFS=$as_save_IFS
13569   test -z "$as_dir" && as_dir=.
13570     for ac_exec_ext in '' $ac_executable_extensions; do
13571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574     break 2
13575   fi
13576 done
13577   done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13583 if test -n "$WINDRES_FOR_TARGET"; then
13584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13585 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13586 else
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591
13592     fi
13593     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13594       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13595 set dummy ${ncn_progname}; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   if test -n "$WINDRES_FOR_TARGET"; then
13602   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13603 else
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13606 do
13607   IFS=$as_save_IFS
13608   test -z "$as_dir" && as_dir=.
13609     for ac_exec_ext in '' $ac_executable_extensions; do
13610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13611     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613     break 2
13614   fi
13615 done
13616   done
13617 IFS=$as_save_IFS
13618
13619 fi
13620 fi
13621 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13622 if test -n "$WINDRES_FOR_TARGET"; then
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13624 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13625 else
13626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13628 fi
13629
13630
13631     fi
13632     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13633   done
13634 fi
13635
13636 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13637   set dummy windres
13638   if test $build = $target ; then
13639     WINDRES_FOR_TARGET="$2"
13640   else
13641     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13642   fi
13643 else
13644   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13645 fi
13646
13647 else
13648   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13649 fi
13650
13651
13652
13653
13654 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13655   if test -n "$with_build_time_tools"; then
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13657 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13658     if test -x $with_build_time_tools/windmc; then
13659       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13660       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13662 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13663     else
13664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13666     fi
13667   elif test $build != $host && test $have_gcc_for_target = yes; then
13668     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13669     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13670     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13671   fi
13672 fi
13673 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13674   # Extract the first word of "windmc", so it can be a program name with args.
13675 set dummy windmc; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13679   $as_echo_n "(cached) " >&6
13680 else
13681   case $WINDMC_FOR_TARGET in
13682   [\\/]* | ?:[\\/]*)
13683   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13684   ;;
13685   *)
13686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $gcc_cv_tool_dirs
13688 do
13689   IFS=$as_save_IFS
13690   test -z "$as_dir" && as_dir=.
13691     for ac_exec_ext in '' $ac_executable_extensions; do
13692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13693     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695     break 2
13696   fi
13697 done
13698   done
13699 IFS=$as_save_IFS
13700
13701   ;;
13702 esac
13703 fi
13704 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13705 if test -n "$WINDMC_FOR_TARGET"; then
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13707 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13708 else
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13711 fi
13712
13713
13714 fi
13715 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13716
13717
13718 if test -n "$WINDMC_FOR_TARGET"; then
13719   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13720 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13721   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13722 fi
13723
13724 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13725   for ncn_progname in windmc; do
13726     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13727 set dummy ${ncn_progname}; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   if test -n "$WINDMC_FOR_TARGET"; then
13734   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13735 else
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13738 do
13739   IFS=$as_save_IFS
13740   test -z "$as_dir" && as_dir=.
13741     for ac_exec_ext in '' $ac_executable_extensions; do
13742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745     break 2
13746   fi
13747 done
13748   done
13749 IFS=$as_save_IFS
13750
13751 fi
13752 fi
13753 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13754 if test -n "$WINDMC_FOR_TARGET"; then
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13756 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13757 else
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760 fi
13761
13762
13763   done
13764 fi
13765
13766 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13767   for ncn_progname in windmc; do
13768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13769 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13770     if test -x $with_build_time_tools/${ncn_progname}; then
13771       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13773 $as_echo "yes" >&6; }
13774       break
13775     else
13776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778     fi
13779   done
13780 fi
13781
13782 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13783   for ncn_progname in windmc; do
13784     if test -n "$ncn_target_tool_prefix"; then
13785       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13786 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13790   $as_echo_n "(cached) " >&6
13791 else
13792   if test -n "$WINDMC_FOR_TARGET"; then
13793   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13794 else
13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13797 do
13798   IFS=$as_save_IFS
13799   test -z "$as_dir" && as_dir=.
13800     for ac_exec_ext in '' $ac_executable_extensions; do
13801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804     break 2
13805   fi
13806 done
13807   done
13808 IFS=$as_save_IFS
13809
13810 fi
13811 fi
13812 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13813 if test -n "$WINDMC_FOR_TARGET"; then
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13815 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13816 else
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13819 fi
13820
13821
13822     fi
13823     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13824       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13825 set dummy ${ncn_progname}; ac_word=$2
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827 $as_echo_n "checking for $ac_word... " >&6; }
13828 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   if test -n "$WINDMC_FOR_TARGET"; then
13832   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13833 else
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13836 do
13837   IFS=$as_save_IFS
13838   test -z "$as_dir" && as_dir=.
13839     for ac_exec_ext in '' $ac_executable_extensions; do
13840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13841     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843     break 2
13844   fi
13845 done
13846   done
13847 IFS=$as_save_IFS
13848
13849 fi
13850 fi
13851 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13852 if test -n "$WINDMC_FOR_TARGET"; then
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13854 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13855 else
13856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13858 fi
13859
13860
13861     fi
13862     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13863   done
13864 fi
13865
13866 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13867   set dummy windmc
13868   if test $build = $target ; then
13869     WINDMC_FOR_TARGET="$2"
13870   else
13871     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13872   fi
13873 else
13874   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13875 fi
13876
13877 else
13878   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13879 fi
13880
13881
13882 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13885 $as_echo_n "checking where to find the target ar... " >&6; }
13886 if test "x${build}" != "x${host}" ; then
13887   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13888     # We already found the complete path
13889     ac_dir=`dirname $AR_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; }
13892   else
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; }
13896   fi
13897 else
13898   ok=yes
13899   case " ${configdirs} " in
13900     *" binutils "*) ;;
13901     *) ok=no ;;
13902   esac
13903
13904   if test $ok = yes; then
13905     # An in-tree tool is available and we can use it
13906     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908 $as_echo "just compiled" >&6; }
13909   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13910     # We already found the complete path
13911     ac_dir=`dirname $AR_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     AR_FOR_TARGET='$(AR)'
13917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918 $as_echo "host tool" >&6; }
13919   else
13920     # We need a cross tool
13921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922 $as_echo "pre-installed" >&6; }
13923   fi
13924 fi
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13927 $as_echo_n "checking where to find the target as... " >&6; }
13928 if test "x${build}" != "x${host}" ; then
13929   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13930     # We already found the complete path
13931     ac_dir=`dirname $AS_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; }
13934   else
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; }
13938   fi
13939 else
13940   ok=yes
13941   case " ${configdirs} " in
13942     *" gas "*) ;;
13943     *) ok=no ;;
13944   esac
13945
13946   if test $ok = yes; then
13947     # An in-tree tool is available and we can use it
13948     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950 $as_echo "just compiled" >&6; }
13951   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13952     # We already found the complete path
13953     ac_dir=`dirname $AS_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     AS_FOR_TARGET='$(AS)'
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960 $as_echo "host tool" >&6; }
13961   else
13962     # We need a cross tool
13963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13965   fi
13966 fi
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13969 $as_echo_n "checking where to find the target cc... " >&6; }
13970 if test "x${build}" != "x${host}" ; then
13971   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13972     # We already found the complete path
13973     ac_dir=`dirname $CC_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; }
13976   else
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; }
13980   fi
13981 else
13982   ok=yes
13983   case " ${configdirs} " in
13984     *" gcc "*) ;;
13985     *) ok=no ;;
13986   esac
13987
13988   if test $ok = yes; then
13989     # An in-tree tool is available and we can use it
13990     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992 $as_echo "just compiled" >&6; }
13993   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13994     # We already found the complete path
13995     ac_dir=`dirname $CC_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     CC_FOR_TARGET='$(CC)'
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002 $as_echo "host tool" >&6; }
14003   else
14004     # We need a cross tool
14005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14007   fi
14008 fi
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14011 $as_echo_n "checking where to find the target c++... " >&6; }
14012 if test "x${build}" != "x${host}" ; then
14013   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14014     # We already found the complete path
14015     ac_dir=`dirname $CXX_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; }
14018   else
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; }
14022   fi
14023 else
14024   ok=yes
14025   case " ${configdirs} " in
14026     *" gcc "*) ;;
14027     *) ok=no ;;
14028   esac
14029   case ,${enable_languages}, in
14030     *,c++,*) ;;
14031     *) ok=no ;;
14032   esac
14033   if test $ok = yes; then
14034     # An in-tree tool is available and we can use it
14035     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14037 $as_echo "just compiled" >&6; }
14038   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14039     # We already found the complete path
14040     ac_dir=`dirname $CXX_FOR_TARGET`
14041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14042 $as_echo "pre-installed in $ac_dir" >&6; }
14043   elif test "x$target" = "x$host"; then
14044     # We can use an host tool
14045     CXX_FOR_TARGET='$(CXX)'
14046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14047 $as_echo "host tool" >&6; }
14048   else
14049     # We need a cross tool
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14052   fi
14053 fi
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14056 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14057 if test "x${build}" != "x${host}" ; then
14058   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14059     # We already found the complete path
14060     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063   else
14064     # Canadian cross, just use what we found
14065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14067   fi
14068 else
14069   ok=yes
14070   case " ${configdirs} " in
14071     *" gcc "*) ;;
14072     *) ok=no ;;
14073   esac
14074   case ,${enable_languages}, in
14075     *,c++,*) ;;
14076     *) ok=no ;;
14077   esac
14078   if test $ok = yes; then
14079     # An in-tree tool is available and we can use it
14080     RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14082 $as_echo "just compiled" >&6; }
14083   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14084     # We already found the complete path
14085     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14087 $as_echo "pre-installed in $ac_dir" >&6; }
14088   elif test "x$target" = "x$host"; then
14089     # We can use an host tool
14090     RAW_CXX_FOR_TARGET='$(CXX)'
14091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14092 $as_echo "host tool" >&6; }
14093   else
14094     # We need a cross tool
14095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14096 $as_echo "pre-installed" >&6; }
14097   fi
14098 fi
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14101 $as_echo_n "checking where to find the target dlltool... " >&6; }
14102 if test "x${build}" != "x${host}" ; then
14103   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14104     # We already found the complete path
14105     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107 $as_echo "pre-installed in $ac_dir" >&6; }
14108   else
14109     # Canadian cross, just use what we found
14110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14112   fi
14113 else
14114   ok=yes
14115   case " ${configdirs} " in
14116     *" binutils "*) ;;
14117     *) ok=no ;;
14118   esac
14119
14120   if test $ok = yes; then
14121     # An in-tree tool is available and we can use it
14122     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14124 $as_echo "just compiled" >&6; }
14125   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14126     # We already found the complete path
14127     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14129 $as_echo "pre-installed in $ac_dir" >&6; }
14130   elif test "x$target" = "x$host"; then
14131     # We can use an host tool
14132     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14134 $as_echo "host tool" >&6; }
14135   else
14136     # We need a cross tool
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14138 $as_echo "pre-installed" >&6; }
14139   fi
14140 fi
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14143 $as_echo_n "checking where to find the target gcc... " >&6; }
14144 if test "x${build}" != "x${host}" ; then
14145   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14146     # We already found the complete path
14147     ac_dir=`dirname $GCC_FOR_TARGET`
14148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14149 $as_echo "pre-installed in $ac_dir" >&6; }
14150   else
14151     # Canadian cross, just use what we found
14152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14153 $as_echo "pre-installed" >&6; }
14154   fi
14155 else
14156   ok=yes
14157   case " ${configdirs} " in
14158     *" gcc "*) ;;
14159     *) ok=no ;;
14160   esac
14161
14162   if test $ok = yes; then
14163     # An in-tree tool is available and we can use it
14164     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14166 $as_echo "just compiled" >&6; }
14167   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14168     # We already found the complete path
14169     ac_dir=`dirname $GCC_FOR_TARGET`
14170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14171 $as_echo "pre-installed in $ac_dir" >&6; }
14172   elif test "x$target" = "x$host"; then
14173     # We can use an host tool
14174     GCC_FOR_TARGET='$()'
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14176 $as_echo "host tool" >&6; }
14177   else
14178     # We need a cross tool
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14180 $as_echo "pre-installed" >&6; }
14181   fi
14182 fi
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14185 $as_echo_n "checking where to find the target gcj... " >&6; }
14186 if test "x${build}" != "x${host}" ; then
14187   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14188     # We already found the complete path
14189     ac_dir=`dirname $GCJ_FOR_TARGET`
14190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14191 $as_echo "pre-installed in $ac_dir" >&6; }
14192   else
14193     # Canadian cross, just use what we found
14194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14195 $as_echo "pre-installed" >&6; }
14196   fi
14197 else
14198   ok=yes
14199   case " ${configdirs} " in
14200     *" gcc "*) ;;
14201     *) ok=no ;;
14202   esac
14203   case ,${enable_languages}, in
14204     *,java,*) ;;
14205     *) ok=no ;;
14206   esac
14207   if test $ok = yes; then
14208     # An in-tree tool is available and we can use it
14209     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14211 $as_echo "just compiled" >&6; }
14212   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14213     # We already found the complete path
14214     ac_dir=`dirname $GCJ_FOR_TARGET`
14215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217   elif test "x$target" = "x$host"; then
14218     # We can use an host tool
14219     GCJ_FOR_TARGET='$(GCJ)'
14220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14221 $as_echo "host tool" >&6; }
14222   else
14223     # We need a cross tool
14224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225 $as_echo "pre-installed" >&6; }
14226   fi
14227 fi
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14230 $as_echo_n "checking where to find the target gfortran... " >&6; }
14231 if test "x${build}" != "x${host}" ; then
14232   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14233     # We already found the complete path
14234     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237   else
14238     # Canadian cross, just use what we found
14239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240 $as_echo "pre-installed" >&6; }
14241   fi
14242 else
14243   ok=yes
14244   case " ${configdirs} " in
14245     *" gcc "*) ;;
14246     *) ok=no ;;
14247   esac
14248   case ,${enable_languages}, in
14249     *,fortran,*) ;;
14250     *) ok=no ;;
14251   esac
14252   if test $ok = yes; then
14253     # An in-tree tool is available and we can use it
14254     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14256 $as_echo "just compiled" >&6; }
14257   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14258     # We already found the complete path
14259     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261 $as_echo "pre-installed in $ac_dir" >&6; }
14262   elif test "x$target" = "x$host"; then
14263     # We can use an host tool
14264     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14266 $as_echo "host tool" >&6; }
14267   else
14268     # We need a cross tool
14269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14270 $as_echo "pre-installed" >&6; }
14271   fi
14272 fi
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14275 $as_echo_n "checking where to find the target gccgo... " >&6; }
14276 if test "x${build}" != "x${host}" ; then
14277   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14278     # We already found the complete path
14279     ac_dir=`dirname $GOC_FOR_TARGET`
14280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281 $as_echo "pre-installed in $ac_dir" >&6; }
14282   else
14283     # Canadian cross, just use what we found
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285 $as_echo "pre-installed" >&6; }
14286   fi
14287 else
14288   ok=yes
14289   case " ${configdirs} " in
14290     *" gcc "*) ;;
14291     *) ok=no ;;
14292   esac
14293   case ,${enable_languages}, in
14294     *,go,*) ;;
14295     *) ok=no ;;
14296   esac
14297   if test $ok = yes; then
14298     # An in-tree tool is available and we can use it
14299     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14301 $as_echo "just compiled" >&6; }
14302   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14303     # We already found the complete path
14304     ac_dir=`dirname $GOC_FOR_TARGET`
14305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14306 $as_echo "pre-installed in $ac_dir" >&6; }
14307   elif test "x$target" = "x$host"; then
14308     # We can use an host tool
14309     GOC_FOR_TARGET='$(GOC)'
14310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14311 $as_echo "host tool" >&6; }
14312   else
14313     # We need a cross tool
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14316   fi
14317 fi
14318
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14320 $as_echo_n "checking where to find the target ld... " >&6; }
14321 if test "x${build}" != "x${host}" ; then
14322   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14323     # We already found the complete path
14324     ac_dir=`dirname $LD_FOR_TARGET`
14325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14326 $as_echo "pre-installed in $ac_dir" >&6; }
14327   else
14328     # Canadian cross, just use what we found
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14330 $as_echo "pre-installed" >&6; }
14331   fi
14332 else
14333   ok=yes
14334   case " ${configdirs} " in
14335     *" ld "*) ;;
14336     *) ok=no ;;
14337   esac
14338
14339   if test $ok = yes; then
14340     # An in-tree tool is available and we can use it
14341     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14343 $as_echo "just compiled" >&6; }
14344   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14345     # We already found the complete path
14346     ac_dir=`dirname $LD_FOR_TARGET`
14347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14348 $as_echo "pre-installed in $ac_dir" >&6; }
14349   elif test "x$target" = "x$host"; then
14350     # We can use an host tool
14351     LD_FOR_TARGET='$(LD)'
14352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14353 $as_echo "host tool" >&6; }
14354   else
14355     # We need a cross tool
14356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357 $as_echo "pre-installed" >&6; }
14358   fi
14359 fi
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14362 $as_echo_n "checking where to find the target lipo... " >&6; }
14363 if test "x${build}" != "x${host}" ; then
14364   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14365     # We already found the complete path
14366     ac_dir=`dirname $LIPO_FOR_TARGET`
14367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14368 $as_echo "pre-installed in $ac_dir" >&6; }
14369   else
14370     # Canadian cross, just use what we found
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14372 $as_echo "pre-installed" >&6; }
14373   fi
14374 else
14375   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14376     # We already found the complete path
14377     ac_dir=`dirname $LIPO_FOR_TARGET`
14378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379 $as_echo "pre-installed in $ac_dir" >&6; }
14380   elif test "x$target" = "x$host"; then
14381     # We can use an host tool
14382     LIPO_FOR_TARGET='$(LIPO)'
14383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384 $as_echo "host tool" >&6; }
14385   else
14386     # We need a cross tool
14387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14389   fi
14390 fi
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14393 $as_echo_n "checking where to find the target nm... " >&6; }
14394 if test "x${build}" != "x${host}" ; then
14395   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14396     # We already found the complete path
14397     ac_dir=`dirname $NM_FOR_TARGET`
14398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399 $as_echo "pre-installed in $ac_dir" >&6; }
14400   else
14401     # Canadian cross, just use what we found
14402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14404   fi
14405 else
14406   ok=yes
14407   case " ${configdirs} " in
14408     *" binutils "*) ;;
14409     *) ok=no ;;
14410   esac
14411
14412   if test $ok = yes; then
14413     # An in-tree tool is available and we can use it
14414     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14416 $as_echo "just compiled" >&6; }
14417   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14418     # We already found the complete path
14419     ac_dir=`dirname $NM_FOR_TARGET`
14420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14421 $as_echo "pre-installed in $ac_dir" >&6; }
14422   elif test "x$target" = "x$host"; then
14423     # We can use an host tool
14424     NM_FOR_TARGET='$(NM)'
14425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14426 $as_echo "host tool" >&6; }
14427   else
14428     # We need a cross tool
14429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14431   fi
14432 fi
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14435 $as_echo_n "checking where to find the target objcopy... " >&6; }
14436 if test "x${build}" != "x${host}" ; then
14437   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14438     # We already found the complete path
14439     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14441 $as_echo "pre-installed in $ac_dir" >&6; }
14442   else
14443     # Canadian cross, just use what we found
14444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445 $as_echo "pre-installed" >&6; }
14446   fi
14447 else
14448   ok=yes
14449   case " ${configdirs} " in
14450     *" binutils "*) ;;
14451     *) ok=no ;;
14452   esac
14453
14454   if test $ok = yes; then
14455     # An in-tree tool is available and we can use it
14456     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14458 $as_echo "just compiled" >&6; }
14459   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14460     # We already found the complete path
14461     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14463 $as_echo "pre-installed in $ac_dir" >&6; }
14464   elif test "x$target" = "x$host"; then
14465     # We can use an host tool
14466     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14468 $as_echo "host tool" >&6; }
14469   else
14470     # We need a cross tool
14471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472 $as_echo "pre-installed" >&6; }
14473   fi
14474 fi
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14477 $as_echo_n "checking where to find the target objdump... " >&6; }
14478 if test "x${build}" != "x${host}" ; then
14479   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14480     # We already found the complete path
14481     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14483 $as_echo "pre-installed in $ac_dir" >&6; }
14484   else
14485     # Canadian cross, just use what we found
14486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14487 $as_echo "pre-installed" >&6; }
14488   fi
14489 else
14490   ok=yes
14491   case " ${configdirs} " in
14492     *" binutils "*) ;;
14493     *) ok=no ;;
14494   esac
14495
14496   if test $ok = yes; then
14497     # An in-tree tool is available and we can use it
14498     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14500 $as_echo "just compiled" >&6; }
14501   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14502     # We already found the complete path
14503     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14505 $as_echo "pre-installed in $ac_dir" >&6; }
14506   elif test "x$target" = "x$host"; then
14507     # We can use an host tool
14508     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14510 $as_echo "host tool" >&6; }
14511   else
14512     # We need a cross tool
14513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14514 $as_echo "pre-installed" >&6; }
14515   fi
14516 fi
14517
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14519 $as_echo_n "checking where to find the target ranlib... " >&6; }
14520 if test "x${build}" != "x${host}" ; then
14521   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14522     # We already found the complete path
14523     ac_dir=`dirname $RANLIB_FOR_TARGET`
14524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14525 $as_echo "pre-installed in $ac_dir" >&6; }
14526   else
14527     # Canadian cross, just use what we found
14528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14529 $as_echo "pre-installed" >&6; }
14530   fi
14531 else
14532   ok=yes
14533   case " ${configdirs} " in
14534     *" binutils "*) ;;
14535     *) ok=no ;;
14536   esac
14537
14538   if test $ok = yes; then
14539     # An in-tree tool is available and we can use it
14540     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14542 $as_echo "just compiled" >&6; }
14543   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14544     # We already found the complete path
14545     ac_dir=`dirname $RANLIB_FOR_TARGET`
14546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547 $as_echo "pre-installed in $ac_dir" >&6; }
14548   elif test "x$target" = "x$host"; then
14549     # We can use an host tool
14550     RANLIB_FOR_TARGET='$(RANLIB)'
14551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14552 $as_echo "host tool" >&6; }
14553   else
14554     # We need a cross tool
14555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14556 $as_echo "pre-installed" >&6; }
14557   fi
14558 fi
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14561 $as_echo_n "checking where to find the target readelf... " >&6; }
14562 if test "x${build}" != "x${host}" ; then
14563   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14564     # We already found the complete path
14565     ac_dir=`dirname $READELF_FOR_TARGET`
14566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14567 $as_echo "pre-installed in $ac_dir" >&6; }
14568   else
14569     # Canadian cross, just use what we found
14570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14571 $as_echo "pre-installed" >&6; }
14572   fi
14573 else
14574   ok=yes
14575   case " ${configdirs} " in
14576     *" binutils "*) ;;
14577     *) ok=no ;;
14578   esac
14579
14580   if test $ok = yes; then
14581     # An in-tree tool is available and we can use it
14582     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14584 $as_echo "just compiled" >&6; }
14585   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14586     # We already found the complete path
14587     ac_dir=`dirname $READELF_FOR_TARGET`
14588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14589 $as_echo "pre-installed in $ac_dir" >&6; }
14590   elif test "x$target" = "x$host"; then
14591     # We can use an host tool
14592     READELF_FOR_TARGET='$(READELF)'
14593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14594 $as_echo "host tool" >&6; }
14595   else
14596     # We need a cross tool
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14598 $as_echo "pre-installed" >&6; }
14599   fi
14600 fi
14601
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14603 $as_echo_n "checking where to find the target strip... " >&6; }
14604 if test "x${build}" != "x${host}" ; then
14605   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14606     # We already found the complete path
14607     ac_dir=`dirname $STRIP_FOR_TARGET`
14608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14609 $as_echo "pre-installed in $ac_dir" >&6; }
14610   else
14611     # Canadian cross, just use what we found
14612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14613 $as_echo "pre-installed" >&6; }
14614   fi
14615 else
14616   ok=yes
14617   case " ${configdirs} " in
14618     *" binutils "*) ;;
14619     *) ok=no ;;
14620   esac
14621
14622   if test $ok = yes; then
14623     # An in-tree tool is available and we can use it
14624     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14626 $as_echo "just compiled" >&6; }
14627   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14628     # We already found the complete path
14629     ac_dir=`dirname $STRIP_FOR_TARGET`
14630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14631 $as_echo "pre-installed in $ac_dir" >&6; }
14632   elif test "x$target" = "x$host"; then
14633     # We can use an host tool
14634     STRIP_FOR_TARGET='$(STRIP)'
14635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14636 $as_echo "host tool" >&6; }
14637   else
14638     # We need a cross tool
14639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14640 $as_echo "pre-installed" >&6; }
14641   fi
14642 fi
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14645 $as_echo_n "checking where to find the target windres... " >&6; }
14646 if test "x${build}" != "x${host}" ; then
14647   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14648     # We already found the complete path
14649     ac_dir=`dirname $WINDRES_FOR_TARGET`
14650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14651 $as_echo "pre-installed in $ac_dir" >&6; }
14652   else
14653     # Canadian cross, just use what we found
14654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14655 $as_echo "pre-installed" >&6; }
14656   fi
14657 else
14658   ok=yes
14659   case " ${configdirs} " in
14660     *" binutils "*) ;;
14661     *) ok=no ;;
14662   esac
14663
14664   if test $ok = yes; then
14665     # An in-tree tool is available and we can use it
14666     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14668 $as_echo "just compiled" >&6; }
14669   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14670     # We already found the complete path
14671     ac_dir=`dirname $WINDRES_FOR_TARGET`
14672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14673 $as_echo "pre-installed in $ac_dir" >&6; }
14674   elif test "x$target" = "x$host"; then
14675     # We can use an host tool
14676     WINDRES_FOR_TARGET='$(WINDRES)'
14677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14678 $as_echo "host tool" >&6; }
14679   else
14680     # We need a cross tool
14681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14682 $as_echo "pre-installed" >&6; }
14683   fi
14684 fi
14685
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14687 $as_echo_n "checking where to find the target windmc... " >&6; }
14688 if test "x${build}" != "x${host}" ; then
14689   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14690     # We already found the complete path
14691     ac_dir=`dirname $WINDMC_FOR_TARGET`
14692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14693 $as_echo "pre-installed in $ac_dir" >&6; }
14694   else
14695     # Canadian cross, just use what we found
14696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14697 $as_echo "pre-installed" >&6; }
14698   fi
14699 else
14700   ok=yes
14701   case " ${configdirs} " in
14702     *" binutils "*) ;;
14703     *) ok=no ;;
14704   esac
14705
14706   if test $ok = yes; then
14707     # An in-tree tool is available and we can use it
14708     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14710 $as_echo "just compiled" >&6; }
14711   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14712     # We already found the complete path
14713     ac_dir=`dirname $WINDMC_FOR_TARGET`
14714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14715 $as_echo "pre-installed in $ac_dir" >&6; }
14716   elif test "x$target" = "x$host"; then
14717     # We can use an host tool
14718     WINDMC_FOR_TARGET='$(WINDMC)'
14719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14720 $as_echo "host tool" >&6; }
14721   else
14722     # We need a cross tool
14723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14724 $as_echo "pre-installed" >&6; }
14725   fi
14726 fi
14727
14728
14729
14730
14731
14732 # Certain tools may need extra flags.
14733 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14734 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14735 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14736
14737 # When building target libraries, except in a Canadian cross, we use
14738 # the same toolchain as the compiler we just built.
14739 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14740 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14741 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14742 if test $host = $build; then
14743   case " $configdirs " in
14744     *" gcc "*)
14745       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14746       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14747       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14748       ;;
14749   esac
14750 fi
14751
14752
14753
14754
14755
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14757 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14758 # Check whether --enable-maintainer-mode was given.
14759 if test "${enable_maintainer_mode+set}" = set; then :
14760   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14761 else
14762   USE_MAINTAINER_MODE=no
14763 fi
14764
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14766 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14767
14768
14769 if test "$USE_MAINTAINER_MODE" = yes; then
14770   MAINTAINER_MODE_TRUE=
14771   MAINTAINER_MODE_FALSE='#'
14772 else
14773   MAINTAINER_MODE_TRUE='#'
14774   MAINTAINER_MODE_FALSE=
14775 fi
14776 MAINT=$MAINTAINER_MODE_TRUE
14777
14778 # ---------------------
14779 # GCC bootstrap support
14780 # ---------------------
14781
14782 # Stage specific cflags for build.
14783 stage1_cflags="-g"
14784 case $build in
14785   vax-*-*)
14786     case ${GCC} in
14787       yes) stage1_cflags="-g -Wa,-J" ;;
14788       *) stage1_cflags="-g -J" ;;
14789     esac ;;
14790 esac
14791
14792
14793
14794 # Enable --enable-checking in stage1 of the compiler.
14795 # Check whether --enable-stage1-checking was given.
14796 if test "${enable_stage1_checking+set}" = set; then :
14797   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14798 else
14799   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14800   # For --disable-checking or implicit --enable-checking=release, avoid
14801   # setting --enable-checking=gc in the default stage1 checking for LTO
14802   # bootstraps.  See PR62077.
14803   stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14804   case $BUILD_CONFIG in
14805     *lto*)
14806       if test "x$enable_checking" = x && \
14807          test -d ${srcdir}/gcc && \
14808          test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14809         stage1_checking=--enable-checking=yes,types
14810       fi;;
14811     *) stage1_checking=--enable-checking=yes,types;;
14812   esac
14813 else
14814   stage1_checking=--enable-checking=$enable_checking,types
14815 fi
14816 fi
14817
14818
14819
14820 # Enable -Werror in bootstrap stage2 and later.
14821 # Check whether --enable-werror was given.
14822 if test "${enable_werror+set}" = set; then :
14823   enableval=$enable_werror;
14824 else
14825   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14826   enable_werror=yes
14827 else
14828   enable_werror=no
14829 fi
14830 fi
14831
14832 case ${enable_werror} in
14833   yes) stage2_werror_flag="--enable-werror-always" ;;
14834   *) stage2_werror_flag="" ;;
14835 esac
14836
14837
14838 # Enable --enable-host-shared.
14839 # Check whether --enable-host-shared was given.
14840 if test "${enable_host_shared+set}" = set; then :
14841   enableval=$enable_host_shared; host_shared=$enableval
14842 else
14843   host_shared=no
14844 fi
14845
14846
14847
14848 # PR jit/64780: Require the user to explicitly specify
14849 # --enable-host-shared if the jit is enabled, hinting
14850 # that they might want to do a separate configure/build of
14851 # the jit, to avoid users from slowing down the rest of the
14852 # compiler by enabling the jit.
14853 if test ${host_shared} = "no" ; then
14854   case "${enable_languages}" in
14855     *jit*)
14856       as_fn_error "
14857 Enabling language \"jit\" requires --enable-host-shared.
14858
14859 --enable-host-shared typically slows the rest of the compiler down by
14860 a few %, so you must explicitly enable it.
14861
14862 If you want to build both the jit and the regular compiler, it is often
14863 best to do this via two separate configure/builds, in separate
14864 directories, to avoid imposing the performance cost of
14865 --enable-host-shared on the regular compiler." "$LINENO" 5
14866       ;;
14867     *)
14868       ;;
14869   esac
14870 fi
14871
14872 # Specify what files to not compare during bootstrap.
14873
14874 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14875 case "$target" in
14876   hppa*64*-*-hpux*) ;;
14877   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14878   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14879 esac
14880
14881
14882 ac_config_files="$ac_config_files Makefile"
14883
14884 cat >confcache <<\_ACEOF
14885 # This file is a shell script that caches the results of configure
14886 # tests run on this system so they can be shared between configure
14887 # scripts and configure runs, see configure's option --config-cache.
14888 # It is not useful on other systems.  If it contains results you don't
14889 # want to keep, you may remove or edit it.
14890 #
14891 # config.status only pays attention to the cache file if you give it
14892 # the --recheck option to rerun configure.
14893 #
14894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14896 # following values.
14897
14898 _ACEOF
14899
14900 # The following way of writing the cache mishandles newlines in values,
14901 # but we know of no workaround that is simple, portable, and efficient.
14902 # So, we kill variables containing newlines.
14903 # Ultrix sh set writes to stderr and can't be redirected directly,
14904 # and sets the high bit in the cache file unless we assign to the vars.
14905 (
14906   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14907     eval ac_val=\$$ac_var
14908     case $ac_val in #(
14909     *${as_nl}*)
14910       case $ac_var in #(
14911       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14913       esac
14914       case $ac_var in #(
14915       _ | IFS | as_nl) ;; #(
14916       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14917       *) { eval $ac_var=; unset $ac_var;} ;;
14918       esac ;;
14919     esac
14920   done
14921
14922   (set) 2>&1 |
14923     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14924     *${as_nl}ac_space=\ *)
14925       # `set' does not quote correctly, so add quotes: double-quote
14926       # substitution turns \\\\ into \\, and sed turns \\ into \.
14927       sed -n \
14928         "s/'/'\\\\''/g;
14929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14930       ;; #(
14931     *)
14932       # `set' quotes correctly as required by POSIX, so do not add quotes.
14933       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14934       ;;
14935     esac |
14936     sort
14937 ) |
14938   sed '
14939      /^ac_cv_env_/b end
14940      t clear
14941      :clear
14942      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14943      t end
14944      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14945      :end' >>confcache
14946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14947   if test -w "$cache_file"; then
14948     test "x$cache_file" != "x/dev/null" &&
14949       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14950 $as_echo "$as_me: updating cache $cache_file" >&6;}
14951     cat confcache >$cache_file
14952   else
14953     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14954 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14955   fi
14956 fi
14957 rm -f confcache
14958
14959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14960 # Let make expand exec_prefix.
14961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14962
14963 # Transform confdefs.h into DEFS.
14964 # Protect against shell expansion while executing Makefile rules.
14965 # Protect against Makefile macro expansion.
14966 #
14967 # If the first sed substitution is executed (which looks for macros that
14968 # take arguments), then branch to the quote section.  Otherwise,
14969 # look for a macro that doesn't take arguments.
14970 ac_script='
14971 :mline
14972 /\\$/{
14973  N
14974  s,\\\n,,
14975  b mline
14976 }
14977 t clear
14978 :clear
14979 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14980 t quote
14981 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14982 t quote
14983 b any
14984 :quote
14985 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14986 s/\[/\\&/g
14987 s/\]/\\&/g
14988 s/\$/$$/g
14989 H
14990 :any
14991 ${
14992         g
14993         s/^\n//
14994         s/\n/ /g
14995         p
14996 }
14997 '
14998 DEFS=`sed -n "$ac_script" confdefs.h`
14999
15000
15001 ac_libobjs=
15002 ac_ltlibobjs=
15003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15004   # 1. Remove the extension, and $U if already installed.
15005   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15006   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15007   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15008   #    will be set to the directory where LIBOBJS objects are built.
15009   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15010   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15011 done
15012 LIBOBJS=$ac_libobjs
15013
15014 LTLIBOBJS=$ac_ltlibobjs
15015
15016
15017
15018 : ${CONFIG_STATUS=./config.status}
15019 ac_write_fail=0
15020 ac_clean_files_save=$ac_clean_files
15021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15024 as_write_fail=0
15025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15026 #! $SHELL
15027 # Generated by $as_me.
15028 # Run this file to recreate the current configuration.
15029 # Compiler output produced by configure, useful for debugging
15030 # configure, is in config.log if it exists.
15031
15032 debug=false
15033 ac_cs_recheck=false
15034 ac_cs_silent=false
15035
15036 SHELL=\${CONFIG_SHELL-$SHELL}
15037 export SHELL
15038 _ASEOF
15039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15040 ## -------------------- ##
15041 ## M4sh Initialization. ##
15042 ## -------------------- ##
15043
15044 # Be more Bourne compatible
15045 DUALCASE=1; export DUALCASE # for MKS sh
15046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15047   emulate sh
15048   NULLCMD=:
15049   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15050   # is contrary to our usage.  Disable this feature.
15051   alias -g '${1+"$@"}'='"$@"'
15052   setopt NO_GLOB_SUBST
15053 else
15054   case `(set -o) 2>/dev/null` in #(
15055   *posix*) :
15056     set -o posix ;; #(
15057   *) :
15058      ;;
15059 esac
15060 fi
15061
15062
15063 as_nl='
15064 '
15065 export as_nl
15066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15070 # Prefer a ksh shell builtin over an external printf program on Solaris,
15071 # but without wasting forks for bash or zsh.
15072 if test -z "$BASH_VERSION$ZSH_VERSION" \
15073     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15074   as_echo='print -r --'
15075   as_echo_n='print -rn --'
15076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15077   as_echo='printf %s\n'
15078   as_echo_n='printf %s'
15079 else
15080   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15081     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15082     as_echo_n='/usr/ucb/echo -n'
15083   else
15084     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15085     as_echo_n_body='eval
15086       arg=$1;
15087       case $arg in #(
15088       *"$as_nl"*)
15089         expr "X$arg" : "X\\(.*\\)$as_nl";
15090         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15091       esac;
15092       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15093     '
15094     export as_echo_n_body
15095     as_echo_n='sh -c $as_echo_n_body as_echo'
15096   fi
15097   export as_echo_body
15098   as_echo='sh -c $as_echo_body as_echo'
15099 fi
15100
15101 # The user is always right.
15102 if test "${PATH_SEPARATOR+set}" != set; then
15103   PATH_SEPARATOR=:
15104   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15105     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15106       PATH_SEPARATOR=';'
15107   }
15108 fi
15109
15110
15111 # IFS
15112 # We need space, tab and new line, in precisely that order.  Quoting is
15113 # there to prevent editors from complaining about space-tab.
15114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15115 # splitting by setting IFS to empty value.)
15116 IFS=" ""        $as_nl"
15117
15118 # Find who we are.  Look in the path if we contain no directory separator.
15119 case $0 in #((
15120   *[\\/]* ) as_myself=$0 ;;
15121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15123 do
15124   IFS=$as_save_IFS
15125   test -z "$as_dir" && as_dir=.
15126     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15127   done
15128 IFS=$as_save_IFS
15129
15130      ;;
15131 esac
15132 # We did not find ourselves, most probably we were run as `sh COMMAND'
15133 # in which case we are not to be found in the path.
15134 if test "x$as_myself" = x; then
15135   as_myself=$0
15136 fi
15137 if test ! -f "$as_myself"; then
15138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15139   exit 1
15140 fi
15141
15142 # Unset variables that we do not need and which cause bugs (e.g. in
15143 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15144 # suppresses any "Segmentation fault" message there.  '((' could
15145 # trigger a bug in pdksh 5.2.14.
15146 for as_var in BASH_ENV ENV MAIL MAILPATH
15147 do eval test x\${$as_var+set} = xset \
15148   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15149 done
15150 PS1='$ '
15151 PS2='> '
15152 PS4='+ '
15153
15154 # NLS nuisances.
15155 LC_ALL=C
15156 export LC_ALL
15157 LANGUAGE=C
15158 export LANGUAGE
15159
15160 # CDPATH.
15161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15162
15163
15164 # as_fn_error ERROR [LINENO LOG_FD]
15165 # ---------------------------------
15166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15168 # script with status $?, using 1 if that was 0.
15169 as_fn_error ()
15170 {
15171   as_status=$?; test $as_status -eq 0 && as_status=1
15172   if test "$3"; then
15173     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15174     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15175   fi
15176   $as_echo "$as_me: error: $1" >&2
15177   as_fn_exit $as_status
15178 } # as_fn_error
15179
15180
15181 # as_fn_set_status STATUS
15182 # -----------------------
15183 # Set $? to STATUS, without forking.
15184 as_fn_set_status ()
15185 {
15186   return $1
15187 } # as_fn_set_status
15188
15189 # as_fn_exit STATUS
15190 # -----------------
15191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15192 as_fn_exit ()
15193 {
15194   set +e
15195   as_fn_set_status $1
15196   exit $1
15197 } # as_fn_exit
15198
15199 # as_fn_unset VAR
15200 # ---------------
15201 # Portably unset VAR.
15202 as_fn_unset ()
15203 {
15204   { eval $1=; unset $1;}
15205 }
15206 as_unset=as_fn_unset
15207 # as_fn_append VAR VALUE
15208 # ----------------------
15209 # Append the text in VALUE to the end of the definition contained in VAR. Take
15210 # advantage of any shell optimizations that allow amortized linear growth over
15211 # repeated appends, instead of the typical quadratic growth present in naive
15212 # implementations.
15213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15214   eval 'as_fn_append ()
15215   {
15216     eval $1+=\$2
15217   }'
15218 else
15219   as_fn_append ()
15220   {
15221     eval $1=\$$1\$2
15222   }
15223 fi # as_fn_append
15224
15225 # as_fn_arith ARG...
15226 # ------------------
15227 # Perform arithmetic evaluation on the ARGs, and store the result in the
15228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15229 # must be portable across $(()) and expr.
15230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15231   eval 'as_fn_arith ()
15232   {
15233     as_val=$(( $* ))
15234   }'
15235 else
15236   as_fn_arith ()
15237   {
15238     as_val=`expr "$@" || test $? -eq 1`
15239   }
15240 fi # as_fn_arith
15241
15242
15243 if expr a : '\(a\)' >/dev/null 2>&1 &&
15244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15245   as_expr=expr
15246 else
15247   as_expr=false
15248 fi
15249
15250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15251   as_basename=basename
15252 else
15253   as_basename=false
15254 fi
15255
15256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15257   as_dirname=dirname
15258 else
15259   as_dirname=false
15260 fi
15261
15262 as_me=`$as_basename -- "$0" ||
15263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15264          X"$0" : 'X\(//\)$' \| \
15265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15266 $as_echo X/"$0" |
15267     sed '/^.*\/\([^/][^/]*\)\/*$/{
15268             s//\1/
15269             q
15270           }
15271           /^X\/\(\/\/\)$/{
15272             s//\1/
15273             q
15274           }
15275           /^X\/\(\/\).*/{
15276             s//\1/
15277             q
15278           }
15279           s/.*/./; q'`
15280
15281 # Avoid depending upon Character Ranges.
15282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15285 as_cr_digits='0123456789'
15286 as_cr_alnum=$as_cr_Letters$as_cr_digits
15287
15288 ECHO_C= ECHO_N= ECHO_T=
15289 case `echo -n x` in #(((((
15290 -n*)
15291   case `echo 'xy\c'` in
15292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15293   xy)  ECHO_C='\c';;
15294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15295        ECHO_T=' ';;
15296   esac;;
15297 *)
15298   ECHO_N='-n';;
15299 esac
15300
15301 rm -f conf$$ conf$$.exe conf$$.file
15302 if test -d conf$$.dir; then
15303   rm -f conf$$.dir/conf$$.file
15304 else
15305   rm -f conf$$.dir
15306   mkdir conf$$.dir 2>/dev/null
15307 fi
15308 if (echo >conf$$.file) 2>/dev/null; then
15309   if ln -s conf$$.file conf$$ 2>/dev/null; then
15310     as_ln_s='ln -s'
15311     # ... but there are two gotchas:
15312     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15313     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15314     # In both cases, we have to default to `cp -p'.
15315     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15316       as_ln_s='cp -p'
15317   elif ln conf$$.file conf$$ 2>/dev/null; then
15318     as_ln_s=ln
15319   else
15320     as_ln_s='cp -p'
15321   fi
15322 else
15323   as_ln_s='cp -p'
15324 fi
15325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15326 rmdir conf$$.dir 2>/dev/null
15327
15328
15329 # as_fn_mkdir_p
15330 # -------------
15331 # Create "$as_dir" as a directory, including parents if necessary.
15332 as_fn_mkdir_p ()
15333 {
15334
15335   case $as_dir in #(
15336   -*) as_dir=./$as_dir;;
15337   esac
15338   test -d "$as_dir" || eval $as_mkdir_p || {
15339     as_dirs=
15340     while :; do
15341       case $as_dir in #(
15342       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15343       *) as_qdir=$as_dir;;
15344       esac
15345       as_dirs="'$as_qdir' $as_dirs"
15346       as_dir=`$as_dirname -- "$as_dir" ||
15347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15348          X"$as_dir" : 'X\(//\)[^/]' \| \
15349          X"$as_dir" : 'X\(//\)$' \| \
15350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15351 $as_echo X"$as_dir" |
15352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15353             s//\1/
15354             q
15355           }
15356           /^X\(\/\/\)[^/].*/{
15357             s//\1/
15358             q
15359           }
15360           /^X\(\/\/\)$/{
15361             s//\1/
15362             q
15363           }
15364           /^X\(\/\).*/{
15365             s//\1/
15366             q
15367           }
15368           s/.*/./; q'`
15369       test -d "$as_dir" && break
15370     done
15371     test -z "$as_dirs" || eval "mkdir $as_dirs"
15372   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15373
15374
15375 } # as_fn_mkdir_p
15376 if mkdir -p . 2>/dev/null; then
15377   as_mkdir_p='mkdir -p "$as_dir"'
15378 else
15379   test -d ./-p && rmdir ./-p
15380   as_mkdir_p=false
15381 fi
15382
15383 if test -x / >/dev/null 2>&1; then
15384   as_test_x='test -x'
15385 else
15386   if ls -dL / >/dev/null 2>&1; then
15387     as_ls_L_option=L
15388   else
15389     as_ls_L_option=
15390   fi
15391   as_test_x='
15392     eval sh -c '\''
15393       if test -d "$1"; then
15394         test -d "$1/.";
15395       else
15396         case $1 in #(
15397         -*)set "./$1";;
15398         esac;
15399         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15400         ???[sx]*):;;*)false;;esac;fi
15401     '\'' sh
15402   '
15403 fi
15404 as_executable_p=$as_test_x
15405
15406 # Sed expression to map a string onto a valid CPP name.
15407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15408
15409 # Sed expression to map a string onto a valid variable name.
15410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15411
15412
15413 exec 6>&1
15414 ## ----------------------------------- ##
15415 ## Main body of $CONFIG_STATUS script. ##
15416 ## ----------------------------------- ##
15417 _ASEOF
15418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15419
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421 # Save the log message, to keep $0 and so on meaningful, and to
15422 # report actual input values of CONFIG_FILES etc. instead of their
15423 # values after options handling.
15424 ac_log="
15425 This file was extended by $as_me, which was
15426 generated by GNU Autoconf 2.64.  Invocation command line was
15427
15428   CONFIG_FILES    = $CONFIG_FILES
15429   CONFIG_HEADERS  = $CONFIG_HEADERS
15430   CONFIG_LINKS    = $CONFIG_LINKS
15431   CONFIG_COMMANDS = $CONFIG_COMMANDS
15432   $ $0 $@
15433
15434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15435 "
15436
15437 _ACEOF
15438
15439 case $ac_config_files in *"
15440 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15441 esac
15442
15443
15444
15445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446 # Files that config.status was made for.
15447 config_files="$ac_config_files"
15448
15449 _ACEOF
15450
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 ac_cs_usage="\
15453 \`$as_me' instantiates files and other configuration actions
15454 from templates according to the current configuration.  Unless the files
15455 and actions are specified as TAGs, all are instantiated by default.
15456
15457 Usage: $0 [OPTION]... [TAG]...
15458
15459   -h, --help       print this help, then exit
15460   -V, --version    print version number and configuration settings, then exit
15461   -q, --quiet, --silent
15462                    do not print progress messages
15463   -d, --debug      don't remove temporary files
15464       --recheck    update $as_me by reconfiguring in the same conditions
15465       --file=FILE[:TEMPLATE]
15466                    instantiate the configuration file FILE
15467
15468 Configuration files:
15469 $config_files
15470
15471 Report bugs to the package provider."
15472
15473 _ACEOF
15474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15475 ac_cs_version="\\
15476 config.status
15477 configured by $0, generated by GNU Autoconf 2.64,
15478   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15479
15480 Copyright (C) 2009 Free Software Foundation, Inc.
15481 This config.status script is free software; the Free Software Foundation
15482 gives unlimited permission to copy, distribute and modify it."
15483
15484 ac_pwd='$ac_pwd'
15485 srcdir='$srcdir'
15486 INSTALL='$INSTALL'
15487 AWK='$AWK'
15488 test -n "\$AWK" || AWK=awk
15489 _ACEOF
15490
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 # The default lists apply if the user does not specify any file.
15493 ac_need_defaults=:
15494 while test $# != 0
15495 do
15496   case $1 in
15497   --*=*)
15498     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15499     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15500     ac_shift=:
15501     ;;
15502   *)
15503     ac_option=$1
15504     ac_optarg=$2
15505     ac_shift=shift
15506     ;;
15507   esac
15508
15509   case $ac_option in
15510   # Handling of the options.
15511   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15512     ac_cs_recheck=: ;;
15513   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15514     $as_echo "$ac_cs_version"; exit ;;
15515   --debug | --debu | --deb | --de | --d | -d )
15516     debug=: ;;
15517   --file | --fil | --fi | --f )
15518     $ac_shift
15519     case $ac_optarg in
15520     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15521     esac
15522     as_fn_append CONFIG_FILES " '$ac_optarg'"
15523     ac_need_defaults=false;;
15524   --he | --h |  --help | --hel | -h )
15525     $as_echo "$ac_cs_usage"; exit ;;
15526   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15527   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15528     ac_cs_silent=: ;;
15529
15530   # This is an error.
15531   -*) as_fn_error "unrecognized option: \`$1'
15532 Try \`$0 --help' for more information." ;;
15533
15534   *) as_fn_append ac_config_targets " $1"
15535      ac_need_defaults=false ;;
15536
15537   esac
15538   shift
15539 done
15540
15541 ac_configure_extra_args=
15542
15543 if $ac_cs_silent; then
15544   exec 6>/dev/null
15545   ac_configure_extra_args="$ac_configure_extra_args --silent"
15546 fi
15547
15548 _ACEOF
15549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 if \$ac_cs_recheck; then
15551   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15552   shift
15553   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15554   CONFIG_SHELL='$SHELL'
15555   export CONFIG_SHELL
15556   exec "\$@"
15557 fi
15558
15559 _ACEOF
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 exec 5>>config.log
15562 {
15563   echo
15564   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15565 ## Running $as_me. ##
15566 _ASBOX
15567   $as_echo "$ac_log"
15568 } >&5
15569
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 #
15573 # INIT-COMMANDS
15574 #
15575 extrasub_build="$extrasub_build"
15576    extrasub_host="$extrasub_host"
15577    extrasub_target="$extrasub_target"
15578
15579 _ACEOF
15580
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582
15583 # Handling of arguments.
15584 for ac_config_target in $ac_config_targets
15585 do
15586   case $ac_config_target in
15587     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15588
15589   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15590   esac
15591 done
15592
15593
15594 # If the user did not use the arguments to specify the items to instantiate,
15595 # then the envvar interface is used.  Set only those that are not.
15596 # We use the long form for the default assignment because of an extremely
15597 # bizarre bug on SunOS 4.1.3.
15598 if $ac_need_defaults; then
15599   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15600 fi
15601
15602 # Have a temporary directory for convenience.  Make it in the build tree
15603 # simply because there is no reason against having it here, and in addition,
15604 # creating and moving files from /tmp can sometimes cause problems.
15605 # Hook for its removal unless debugging.
15606 # Note that there is a small window in which the directory will not be cleaned:
15607 # after its creation but before its name has been assigned to `$tmp'.
15608 $debug ||
15609 {
15610   tmp=
15611   trap 'exit_status=$?
15612   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15613 ' 0
15614   trap 'as_fn_exit 1' 1 2 13 15
15615 }
15616 # Create a (secure) tmp directory for tmp files.
15617
15618 {
15619   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15620   test -n "$tmp" && test -d "$tmp"
15621 }  ||
15622 {
15623   tmp=./conf$$-$RANDOM
15624   (umask 077 && mkdir "$tmp")
15625 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15626
15627 # Set up the scripts for CONFIG_FILES section.
15628 # No need to generate them if there are no CONFIG_FILES.
15629 # This happens for instance with `./config.status config.h'.
15630 if test -n "$CONFIG_FILES"; then
15631
15632 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15633   ac_cs_awk_getline=:
15634   ac_cs_awk_pipe_init=
15635   ac_cs_awk_read_file='
15636       while ((getline aline < (F[key])) > 0)
15637         print(aline)
15638       close(F[key])'
15639   ac_cs_awk_pipe_fini=
15640 else
15641   ac_cs_awk_getline=false
15642   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15643   ac_cs_awk_read_file='
15644       print "|#_!!_#|"
15645       print "cat " F[key] " &&"
15646       '$ac_cs_awk_pipe_init
15647   # The final `:' finishes the AND list.
15648   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15649 fi
15650 ac_cr=`echo X | tr X '\015'`
15651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15652 # But we know of no other shell where ac_cr would be empty at this
15653 # point, so we can use a bashism as a fallback.
15654 if test "x$ac_cr" = x; then
15655   eval ac_cr=\$\'\\r\'
15656 fi
15657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15659   ac_cs_awk_cr='\r'
15660 else
15661   ac_cs_awk_cr=$ac_cr
15662 fi
15663
15664 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15665 _ACEOF
15666
15667 # Create commands to substitute file output variables.
15668 {
15669   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15670   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15671   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15672   echo "_ACAWK" &&
15673   echo "_ACEOF"
15674 } >conf$$files.sh &&
15675 . ./conf$$files.sh ||
15676   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15677 rm -f conf$$files.sh
15678
15679 {
15680   echo "cat >conf$$subs.awk <<_ACEOF" &&
15681   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15682   echo "_ACEOF"
15683 } >conf$$subs.sh ||
15684   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15685 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15686 ac_delim='%!_!# '
15687 for ac_last_try in false false false false false :; do
15688   . ./conf$$subs.sh ||
15689     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15690
15691   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15692   if test $ac_delim_n = $ac_delim_num; then
15693     break
15694   elif $ac_last_try; then
15695     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15696   else
15697     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15698   fi
15699 done
15700 rm -f conf$$subs.sh
15701
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15704 _ACEOF
15705 sed -n '
15706 h
15707 s/^/S["/; s/!.*/"]=/
15708 p
15709 g
15710 s/^[^!]*!//
15711 :repl
15712 t repl
15713 s/'"$ac_delim"'$//
15714 t delim
15715 :nl
15716 h
15717 s/\(.\{148\}\).*/\1/
15718 t more1
15719 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15720 p
15721 n
15722 b repl
15723 :more1
15724 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15725 p
15726 g
15727 s/.\{148\}//
15728 t nl
15729 :delim
15730 h
15731 s/\(.\{148\}\).*/\1/
15732 t more2
15733 s/["\\]/\\&/g; s/^/"/; s/$/"/
15734 p
15735 b
15736 :more2
15737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15738 p
15739 g
15740 s/.\{148\}//
15741 t delim
15742 ' <conf$$subs.awk | sed '
15743 /^[^""]/{
15744   N
15745   s/\n//
15746 }
15747 ' >>$CONFIG_STATUS || ac_write_fail=1
15748 rm -f conf$$subs.awk
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 _ACAWK
15751 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15752   for (key in S) S_is_set[key] = 1
15753   FS = "\a"
15754   \$ac_cs_awk_pipe_init
15755 }
15756 {
15757   line = $ 0
15758   nfields = split(line, field, "@")
15759   substed = 0
15760   len = length(field[1])
15761   for (i = 2; i < nfields; i++) {
15762     key = field[i]
15763     keylen = length(key)
15764     if (S_is_set[key]) {
15765       value = S[key]
15766       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15767       len += length(value) + length(field[++i])
15768       substed = 1
15769     } else
15770       len += 1 + keylen
15771   }
15772   if (nfields == 3 && !substed) {
15773     key = field[2]
15774     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15775       \$ac_cs_awk_read_file
15776       next
15777     }
15778   }
15779   print line
15780 }
15781 \$ac_cs_awk_pipe_fini
15782 _ACAWK
15783 _ACEOF
15784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15786   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15787 else
15788   cat
15789 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15790   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15791 _ACEOF
15792
15793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15795 # trailing colons and then remove the whole line if VPATH becomes empty
15796 # (actually we leave an empty line to preserve line numbers).
15797 if test "x$srcdir" = x.; then
15798   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15799 s/:*\$(srcdir):*/:/
15800 s/:*\${srcdir}:*/:/
15801 s/:*@srcdir@:*/:/
15802 s/^\([^=]*=[     ]*\):*/\1/
15803 s/:*$//
15804 s/^[^=]*=[       ]*$//
15805 }'
15806 fi
15807
15808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15809 fi # test -n "$CONFIG_FILES"
15810
15811
15812 eval set X "  :F $CONFIG_FILES      "
15813 shift
15814 for ac_tag
15815 do
15816   case $ac_tag in
15817   :[FHLC]) ac_mode=$ac_tag; continue;;
15818   esac
15819   case $ac_mode$ac_tag in
15820   :[FHL]*:*);;
15821   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15822   :[FH]-) ac_tag=-:-;;
15823   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15824   esac
15825   ac_save_IFS=$IFS
15826   IFS=:
15827   set x $ac_tag
15828   IFS=$ac_save_IFS
15829   shift
15830   ac_file=$1
15831   shift
15832
15833   case $ac_mode in
15834   :L) ac_source=$1;;
15835   :[FH])
15836     ac_file_inputs=
15837     for ac_f
15838     do
15839       case $ac_f in
15840       -) ac_f="$tmp/stdin";;
15841       *) # Look for the file first in the build tree, then in the source tree
15842          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15843          # because $ac_f cannot contain `:'.
15844          test -f "$ac_f" ||
15845            case $ac_f in
15846            [\\/$]*) false;;
15847            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15848            esac ||
15849            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15850       esac
15851       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15852       as_fn_append ac_file_inputs " '$ac_f'"
15853     done
15854
15855     # Let's still pretend it is `configure' which instantiates (i.e., don't
15856     # use $as_me), people would be surprised to read:
15857     #    /* config.h.  Generated by config.status.  */
15858     configure_input='Generated from '`
15859           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15860         `' by configure.'
15861     if test x"$ac_file" != x-; then
15862       configure_input="$ac_file.  $configure_input"
15863       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15864 $as_echo "$as_me: creating $ac_file" >&6;}
15865     fi
15866     # Neutralize special characters interpreted by sed in replacement strings.
15867     case $configure_input in #(
15868     *\&* | *\|* | *\\* )
15869        ac_sed_conf_input=`$as_echo "$configure_input" |
15870        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15871     *) ac_sed_conf_input=$configure_input;;
15872     esac
15873
15874     case $ac_tag in
15875     *:-:* | *:-) cat >"$tmp/stdin" \
15876       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15877     esac
15878     ;;
15879   esac
15880
15881   ac_dir=`$as_dirname -- "$ac_file" ||
15882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15883          X"$ac_file" : 'X\(//\)[^/]' \| \
15884          X"$ac_file" : 'X\(//\)$' \| \
15885          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15886 $as_echo X"$ac_file" |
15887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15888             s//\1/
15889             q
15890           }
15891           /^X\(\/\/\)[^/].*/{
15892             s//\1/
15893             q
15894           }
15895           /^X\(\/\/\)$/{
15896             s//\1/
15897             q
15898           }
15899           /^X\(\/\).*/{
15900             s//\1/
15901             q
15902           }
15903           s/.*/./; q'`
15904   as_dir="$ac_dir"; as_fn_mkdir_p
15905   ac_builddir=.
15906
15907 case "$ac_dir" in
15908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15909 *)
15910   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15911   # A ".." for each directory in $ac_dir_suffix.
15912   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15913   case $ac_top_builddir_sub in
15914   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15915   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15916   esac ;;
15917 esac
15918 ac_abs_top_builddir=$ac_pwd
15919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15920 # for backward compatibility:
15921 ac_top_builddir=$ac_top_build_prefix
15922
15923 case $srcdir in
15924   .)  # We are building in place.
15925     ac_srcdir=.
15926     ac_top_srcdir=$ac_top_builddir_sub
15927     ac_abs_top_srcdir=$ac_pwd ;;
15928   [\\/]* | ?:[\\/]* )  # Absolute name.
15929     ac_srcdir=$srcdir$ac_dir_suffix;
15930     ac_top_srcdir=$srcdir
15931     ac_abs_top_srcdir=$srcdir ;;
15932   *) # Relative name.
15933     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15934     ac_top_srcdir=$ac_top_build_prefix$srcdir
15935     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15936 esac
15937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15938
15939
15940   case $ac_mode in
15941   :F)
15942   #
15943   # CONFIG_FILE
15944   #
15945
15946   case $INSTALL in
15947   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15948   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15949   esac
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 # If the template does not know about datarootdir, expand it.
15954 # FIXME: This hack should be removed a few years after 2.60.
15955 ac_datarootdir_hack=; ac_datarootdir_seen=
15956 ac_sed_dataroot='
15957 /datarootdir/ {
15958   p
15959   q
15960 }
15961 /@datadir@/p
15962 /@docdir@/p
15963 /@infodir@/p
15964 /@localedir@/p
15965 /@mandir@/p'
15966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15967 *datarootdir*) ac_datarootdir_seen=yes;;
15968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973   ac_datarootdir_hack='
15974   s&@datadir@&$datadir&g
15975   s&@docdir@&$docdir&g
15976   s&@infodir@&$infodir&g
15977   s&@localedir@&$localedir&g
15978   s&@mandir@&$mandir&g
15979   s&\\\${datarootdir}&$datarootdir&g' ;;
15980 esac
15981 _ACEOF
15982
15983 # Neutralize VPATH when `$srcdir' = `.'.
15984 # Shell code in configure.ac might set extrasub.
15985 # FIXME: do we really want to maintain this feature?
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987 ac_sed_extra="$ac_vpsub
15988 $extrasub
15989 _ACEOF
15990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 :t
15992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15993 s|@configure_input@|$ac_sed_conf_input|;t t
15994 s&@top_builddir@&$ac_top_builddir_sub&;t t
15995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15996 s&@srcdir@&$ac_srcdir&;t t
15997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15998 s&@top_srcdir@&$ac_top_srcdir&;t t
15999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16000 s&@builddir@&$ac_builddir&;t t
16001 s&@abs_builddir@&$ac_abs_builddir&;t t
16002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16003 s&@INSTALL@&$ac_INSTALL&;t t
16004 $ac_datarootdir_hack
16005 "
16006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16007 if $ac_cs_awk_getline; then
16008   $AWK -f "$tmp/subs.awk"
16009 else
16010   $AWK -f "$tmp/subs.awk" | $SHELL
16011 fi >$tmp/out \
16012   || as_fn_error "could not create $ac_file" "$LINENO" 5
16013
16014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16015   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16016   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16017   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16018 which seems to be undefined.  Please make sure it is defined." >&5
16019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16020 which seems to be undefined.  Please make sure it is defined." >&2;}
16021
16022   rm -f "$tmp/stdin"
16023   case $ac_file in
16024   -) cat "$tmp/out" && rm -f "$tmp/out";;
16025   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16026   esac \
16027   || as_fn_error "could not create $ac_file" "$LINENO" 5
16028  ;;
16029
16030
16031
16032   esac
16033
16034
16035   case $ac_file$ac_mode in
16036     "Makefile":F) sed "$extrasub_build" Makefile |
16037    sed "$extrasub_host" |
16038    sed "$extrasub_target" > mf$$
16039    mv -f mf$$ Makefile ;;
16040
16041   esac
16042 done # for ac_tag
16043
16044
16045 as_fn_exit 0
16046 _ACEOF
16047 ac_clean_files=$ac_clean_files_save
16048
16049 test $ac_write_fail = 0 ||
16050   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16051
16052
16053 # configure is writing to config.log, and then calls config.status.
16054 # config.status does its own redirection, appending to config.log.
16055 # Unfortunately, on DOS this fails, as config.log is still kept open
16056 # by configure, so config.status won't be able to write to it; its
16057 # output is simply discarded.  So we exec the FD to /dev/null,
16058 # effectively closing config.log, so it can be properly (re)opened and
16059 # appended to by config.status.  When coming back to configure, we
16060 # need to make the FD available again.
16061 if test "$no_create" != yes; then
16062   ac_cs_success=:
16063   ac_config_status_args=
16064   test "$silent" = yes &&
16065     ac_config_status_args="$ac_config_status_args --quiet"
16066   exec 5>/dev/null
16067   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16068   exec 5>>config.log
16069   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16070   # would make configure fail if this is the last instruction.
16071   $ac_cs_success || as_fn_exit $?
16072 fi
16073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16074   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16076 fi
16077