configure.ac: Add ARC support to libgloss.
[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 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
683 AWK
684 SED
685 LN_S
686 LN
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 with_system_zlib
753 enable_as_accelerator_for
754 enable_offload_targets
755 enable_gold
756 enable_ld
757 enable_compressed_debug_sections
758 enable_libquadmath
759 enable_libquadmath_support
760 enable_libada
761 enable_libssp
762 enable_libstdcxx
763 enable_liboffloadmic
764 enable_static_libjava
765 enable_bootstrap
766 with_mpc
767 with_mpc_include
768 with_mpc_lib
769 with_mpfr_dir
770 with_mpfr
771 with_mpfr_include
772 with_mpfr_lib
773 with_gmp_dir
774 with_gmp
775 with_gmp_include
776 with_gmp_lib
777 with_stage1_libs
778 with_stage1_ldflags
779 with_boot_libs
780 with_boot_ldflags
781 with_isl
782 with_isl_include
783 with_isl_lib
784 enable_isl_version_check
785 enable_lto
786 enable_linker_plugin_configure_flags
787 enable_linker_plugin_flags
788 enable_stage1_languages
789 enable_objc_gc
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
798 enable_werror
799 enable_host_shared
800 '
801       ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CXX
810 CXXFLAGS
811 CCC
812 build_configargs
813 host_configargs
814 target_configargs
815 AR
816 AS
817 DLLTOOL
818 LD
819 LIPO
820 NM
821 RANLIB
822 STRIP
823 WINDRES
824 WINDMC
825 OBJCOPY
826 OBJDUMP
827 READELF
828 CC_FOR_TARGET
829 CXX_FOR_TARGET
830 GCC_FOR_TARGET
831 GCJ_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
896
897 ac_prev=
898 ac_dashdash=
899 for ac_option
900 do
901   # If the previous option needs an argument, assign it.
902   if test -n "$ac_prev"; then
903     eval $ac_prev=\$ac_option
904     ac_prev=
905     continue
906   fi
907
908   case $ac_option in
909   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910   *)    ac_optarg=yes ;;
911   esac
912
913   # Accept the important Cygnus configure options, so we can diagnose typos.
914
915   case $ac_dashdash$ac_option in
916   --)
917     ac_dashdash=yes ;;
918
919   -bindir | --bindir | --bindi | --bind | --bin | --bi)
920     ac_prev=bindir ;;
921   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922     bindir=$ac_optarg ;;
923
924   -build | --build | --buil | --bui | --bu)
925     ac_prev=build_alias ;;
926   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927     build_alias=$ac_optarg ;;
928
929   -cache-file | --cache-file | --cache-fil | --cache-fi \
930   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931     ac_prev=cache_file ;;
932   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934     cache_file=$ac_optarg ;;
935
936   --config-cache | -C)
937     cache_file=config.cache ;;
938
939   -datadir | --datadir | --datadi | --datad)
940     ac_prev=datadir ;;
941   -datadir=* | --datadir=* | --datadi=* | --datad=*)
942     datadir=$ac_optarg ;;
943
944   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945   | --dataroo | --dataro | --datar)
946     ac_prev=datarootdir ;;
947   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949     datarootdir=$ac_optarg ;;
950
951   -disable-* | --disable-*)
952     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955       as_fn_error "invalid feature name: $ac_useropt"
956     ac_useropt_orig=$ac_useropt
957     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958     case $ac_user_opts in
959       *"
960 "enable_$ac_useropt"
961 "*) ;;
962       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963          ac_unrecognized_sep=', ';;
964     esac
965     eval enable_$ac_useropt=no ;;
966
967   -docdir | --docdir | --docdi | --doc | --do)
968     ac_prev=docdir ;;
969   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970     docdir=$ac_optarg ;;
971
972   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973     ac_prev=dvidir ;;
974   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975     dvidir=$ac_optarg ;;
976
977   -enable-* | --enable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=\$ac_optarg ;;
992
993   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995   | --exec | --exe | --ex)
996     ac_prev=exec_prefix ;;
997   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999   | --exec=* | --exe=* | --ex=*)
1000     exec_prefix=$ac_optarg ;;
1001
1002   -gas | --gas | --ga | --g)
1003     # Obsolete; use --with-gas.
1004     with_gas=yes ;;
1005
1006   -help | --help | --hel | --he | -h)
1007     ac_init_help=long ;;
1008   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009     ac_init_help=recursive ;;
1010   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011     ac_init_help=short ;;
1012
1013   -host | --host | --hos | --ho)
1014     ac_prev=host_alias ;;
1015   -host=* | --host=* | --hos=* | --ho=*)
1016     host_alias=$ac_optarg ;;
1017
1018   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019     ac_prev=htmldir ;;
1020   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021   | --ht=*)
1022     htmldir=$ac_optarg ;;
1023
1024   -includedir | --includedir | --includedi | --included | --include \
1025   | --includ | --inclu | --incl | --inc)
1026     ac_prev=includedir ;;
1027   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028   | --includ=* | --inclu=* | --incl=* | --inc=*)
1029     includedir=$ac_optarg ;;
1030
1031   -infodir | --infodir | --infodi | --infod | --info | --inf)
1032     ac_prev=infodir ;;
1033   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034     infodir=$ac_optarg ;;
1035
1036   -libdir | --libdir | --libdi | --libd)
1037     ac_prev=libdir ;;
1038   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039     libdir=$ac_optarg ;;
1040
1041   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042   | --libexe | --libex | --libe)
1043     ac_prev=libexecdir ;;
1044   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045   | --libexe=* | --libex=* | --libe=*)
1046     libexecdir=$ac_optarg ;;
1047
1048   -localedir | --localedir | --localedi | --localed | --locale)
1049     ac_prev=localedir ;;
1050   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051     localedir=$ac_optarg ;;
1052
1053   -localstatedir | --localstatedir | --localstatedi | --localstated \
1054   | --localstate | --localstat | --localsta | --localst | --locals)
1055     ac_prev=localstatedir ;;
1056   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058     localstatedir=$ac_optarg ;;
1059
1060   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061     ac_prev=mandir ;;
1062   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063     mandir=$ac_optarg ;;
1064
1065   -nfp | --nfp | --nf)
1066     # Obsolete; use --without-fp.
1067     with_fp=no ;;
1068
1069   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070   | --no-cr | --no-c | -n)
1071     no_create=yes ;;
1072
1073   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075     no_recursion=yes ;;
1076
1077   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079   | --oldin | --oldi | --old | --ol | --o)
1080     ac_prev=oldincludedir ;;
1081   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084     oldincludedir=$ac_optarg ;;
1085
1086   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087     ac_prev=prefix ;;
1088   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089     prefix=$ac_optarg ;;
1090
1091   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092   | --program-pre | --program-pr | --program-p)
1093     ac_prev=program_prefix ;;
1094   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096     program_prefix=$ac_optarg ;;
1097
1098   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099   | --program-suf | --program-su | --program-s)
1100     ac_prev=program_suffix ;;
1101   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103     program_suffix=$ac_optarg ;;
1104
1105   -program-transform-name | --program-transform-name \
1106   | --program-transform-nam | --program-transform-na \
1107   | --program-transform-n | --program-transform- \
1108   | --program-transform | --program-transfor \
1109   | --program-transfo | --program-transf \
1110   | --program-trans | --program-tran \
1111   | --progr-tra | --program-tr | --program-t)
1112     ac_prev=program_transform_name ;;
1113   -program-transform-name=* | --program-transform-name=* \
1114   | --program-transform-nam=* | --program-transform-na=* \
1115   | --program-transform-n=* | --program-transform-=* \
1116   | --program-transform=* | --program-transfor=* \
1117   | --program-transfo=* | --program-transf=* \
1118   | --program-trans=* | --program-tran=* \
1119   | --progr-tra=* | --program-tr=* | --program-t=*)
1120     program_transform_name=$ac_optarg ;;
1121
1122   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123     ac_prev=pdfdir ;;
1124   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125     pdfdir=$ac_optarg ;;
1126
1127   -psdir | --psdir | --psdi | --psd | --ps)
1128     ac_prev=psdir ;;
1129   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130     psdir=$ac_optarg ;;
1131
1132   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133   | -silent | --silent | --silen | --sile | --sil)
1134     silent=yes ;;
1135
1136   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137     ac_prev=sbindir ;;
1138   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139   | --sbi=* | --sb=*)
1140     sbindir=$ac_optarg ;;
1141
1142   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144   | --sharedst | --shareds | --shared | --share | --shar \
1145   | --sha | --sh)
1146     ac_prev=sharedstatedir ;;
1147   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150   | --sha=* | --sh=*)
1151     sharedstatedir=$ac_optarg ;;
1152
1153   -site | --site | --sit)
1154     ac_prev=site ;;
1155   -site=* | --site=* | --sit=*)
1156     site=$ac_optarg ;;
1157
1158   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159     ac_prev=srcdir ;;
1160   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161     srcdir=$ac_optarg ;;
1162
1163   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164   | --syscon | --sysco | --sysc | --sys | --sy)
1165     ac_prev=sysconfdir ;;
1166   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168     sysconfdir=$ac_optarg ;;
1169
1170   -target | --target | --targe | --targ | --tar | --ta | --t)
1171     ac_prev=target_alias ;;
1172   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173     target_alias=$ac_optarg ;;
1174
1175   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176     verbose=yes ;;
1177
1178   -version | --version | --versio | --versi | --vers | -V)
1179     ac_init_version=: ;;
1180
1181   -with-* | --with-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=\$ac_optarg ;;
1196
1197   -without-* | --without-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       as_fn_error "invalid package name: $ac_useropt"
1202     ac_useropt_orig=$ac_useropt
1203     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204     case $ac_user_opts in
1205       *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209          ac_unrecognized_sep=', ';;
1210     esac
1211     eval with_$ac_useropt=no ;;
1212
1213   --x)
1214     # Obsolete; use --with-x.
1215     with_x=yes ;;
1216
1217   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218   | --x-incl | --x-inc | --x-in | --x-i)
1219     ac_prev=x_includes ;;
1220   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222     x_includes=$ac_optarg ;;
1223
1224   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226     ac_prev=x_libraries ;;
1227   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229     x_libraries=$ac_optarg ;;
1230
1231   -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     case $ac_envvar in #(
1239       '' | [0-9]* | *[!_$as_cr_alnum]* )
1240       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241     esac
1242     eval $ac_envvar=\$ac_optarg
1243     export $ac_envvar ;;
1244
1245   *)
1246     # FIXME: should be removed in autoconf 3.0.
1247     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251     ;;
1252
1253   esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258   as_fn_error "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262   case $enable_option_checking in
1263     no) ;;
1264     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266   esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271                 datadir sysconfdir sharedstatedir localstatedir includedir \
1272                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273                 libdir localedir mandir
1274 do
1275   eval ac_val=\$$ac_var
1276   # Remove trailing slashes.
1277   case $ac_val in
1278     */ )
1279       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280       eval $ac_var=\$ac_val;;
1281   esac
1282   # Be sure to have absolute directory names.
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302     If a cross compiler is detected then cross compile mode will be used." >&2
1303   elif test "x$build_alias" != "x$host_alias"; then
1304     cross_compiling=yes
1305   fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317   as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319   as_fn_error "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324   ac_srcdir_defaulted=yes
1325   # Try the directory containing this script, then the parent directory.
1326   ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328          X"$as_myself" : 'X\(//\)[^/]' \| \
1329          X"$as_myself" : 'X\(//\)$' \| \
1330          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)[^/].*/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)$/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\).*/{
1345             s//\1/
1346             q
1347           }
1348           s/.*/./; q'`
1349   srcdir=$ac_confdir
1350   if test ! -r "$srcdir/$ac_unique_file"; then
1351     srcdir=..
1352   fi
1353 else
1354   ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363         pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366   srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375   *" "*)
1376     as_fn_error "path to source, $srcdir, contains spaces"
1377     ;;
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
1381 for ac_var in $ac_precious_vars; do
1382   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_env_${ac_var}_value=\$${ac_var}
1384   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392   # Omit some internal or obsolete options to make the list less imposing.
1393   # This message is too long to be a string in the A/UX 3.1 sh.
1394   cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405   -h, --help              display this help and exit
1406       --help=short        display options specific to this package
1407       --help=recursive    display the short help of all the included packages
1408   -V, --version           display version information and exit
1409   -q, --quiet, --silent   do not print \`checking...' messages
1410       --cache-file=FILE   cache test results in FILE [disabled]
1411   -C, --config-cache      alias for \`--cache-file=config.cache'
1412   -n, --no-create         do not create output files
1413       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416   --prefix=PREFIX         install architecture-independent files in PREFIX
1417                           [$ac_default_prefix]
1418   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                           [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429   --bindir=DIR            user executables [EPREFIX/bin]
1430   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1431   --libexecdir=DIR        program executables [EPREFIX/libexec]
1432   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1433   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1434   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1435   --libdir=DIR            object code libraries [EPREFIX/lib]
1436   --includedir=DIR        C header files [PREFIX/include]
1437   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1438   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1439   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1440   --infodir=DIR           info documentation [DATAROOTDIR/info]
1441   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1442   --mandir=DIR            man documentation [DATAROOTDIR/man]
1443   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1444   --htmldir=DIR           html documentation [DOCDIR]
1445   --dvidir=DIR            dvi documentation [DOCDIR]
1446   --pdfdir=DIR            pdf documentation [DOCDIR]
1447   --psdir=DIR             ps documentation [DOCDIR]
1448 _ACEOF
1449
1450   cat <<\_ACEOF
1451
1452 Program names:
1453   --program-prefix=PREFIX            prepend PREFIX to installed program names
1454   --program-suffix=SUFFIX            append SUFFIX to installed program names
1455   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457 System types:
1458   --build=BUILD     configure for building on BUILD [guessed]
1459   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460   --target=TARGET   configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-option-checking  ignore unrecognized --enable/--with options
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --enable-as-accelerator-for=ARG
1473                           build as offload target compiler. Specify offload
1474                           host triple by ARG
1475   --enable-offload-targets=LIST
1476                           enable offloading to devices from comma-separated
1477                           LIST of TARGET[=DIR]. Use optional path to find
1478                           offload target compiler during the build
1479   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1480   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1481   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482                           Enable compressed debug sections for gas, gold or ld
1483                           by default
1484   --disable-libquadmath   do not build libquadmath directory
1485   --disable-libquadmath-support
1486                           disable libquadmath support for Fortran
1487   --enable-libada         build libada directory
1488   --enable-libssp         build libssp directory
1489   --disable-libstdcxx     do not build libstdc++-v3 directory
1490   --enable-liboffloadmic=ARG
1491                           build liboffloadmic [ARG={no,host,target}]
1492   --enable-static-libjava[=ARG]
1493                           build static libjava [default=no]
1494   --enable-bootstrap      enable bootstrapping [yes if native build]
1495   --disable-isl-version-check
1496                           disable check for isl version
1497   --enable-lto            enable link time optimization support
1498   --enable-linker-plugin-configure-flags=FLAGS
1499                           additional flags for configuring linker plugins
1500                           [none]
1501   --enable-linker-plugin-flags=FLAGS
1502                           additional flags for configuring and building linker
1503                           plugins [none]
1504   --enable-stage1-languages[=all]
1505                           choose additional languages to build during stage1.
1506                           Mostly useful for compiler development
1507   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1508                           Objective-C runtime
1509   --enable-vtable-verify  Enable vtable verification feature
1510   --enable-serial-[{host,target,build}-]configure
1511                           force sequential configuration of sub-packages for
1512                           the host, target or build machine, or all
1513                           sub-packages
1514   --enable-maintainer-mode
1515                           enable make rules and dependencies not useful (and
1516                           sometimes confusing) to the casual installer
1517   --enable-stage1-checking[=all]
1518                           choose additional checking for stage1 of the
1519                           compiler
1520   --enable-werror         enable -Werror in bootstrap stage2 and later
1521   --enable-host-shared    build host code as shared libraries
1522
1523 Optional Packages:
1524   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1527   --with-system-zlib      use installed libz
1528   --with-mpc=PATH         specify prefix directory for installed MPC package.
1529                           Equivalent to --with-mpc-include=PATH/include plus
1530                           --with-mpc-lib=PATH/lib
1531   --with-mpc-include=PATH specify directory for installed MPC include files
1532   --with-mpc-lib=PATH     specify directory for the installed MPC library
1533   --with-mpfr-dir=PATH    this option has been REMOVED
1534   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1535                           Equivalent to --with-mpfr-include=PATH/include plus
1536                           --with-mpfr-lib=PATH/lib
1537   --with-mpfr-include=PATH
1538                           specify directory for installed MPFR include files
1539   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1540   --with-gmp-dir=PATH     this option has been REMOVED
1541   --with-gmp=PATH         specify prefix directory for the installed GMP
1542                           package. Equivalent to
1543                           --with-gmp-include=PATH/include plus
1544                           --with-gmp-lib=PATH/lib
1545   --with-gmp-include=PATH specify directory for installed GMP include files
1546   --with-gmp-lib=PATH     specify directory for the installed GMP library
1547   --with-stage1-libs=LIBS libraries for stage1
1548   --with-stage1-ldflags=FLAGS
1549                           linker flags for stage1
1550   --with-boot-libs=LIBS   libraries for stage2 and later
1551   --with-boot-ldflags=FLAGS
1552                           linker flags for stage2 and later
1553   --with-isl=PATH         Specify prefix directory for the installed isl
1554                           package. Equivalent to
1555                           --with-isl-include=PATH/include plus
1556                           --with-isl-lib=PATH/lib
1557   --with-isl-include=PATH Specify directory for installed isl include files
1558   --with-isl-lib=PATH     Specify the directory for the installed isl library
1559   --with-build-sysroot=SYSROOT
1560                           use sysroot as the system root during the build
1561   --with-debug-prefix-map='A=B C=D ...'
1562                           map A to B, C to D ... in debug information
1563   --with-build-config='NAME NAME2...'
1564                           use config/NAME.mk build configuration
1565   --with-build-time-tools=PATH
1566                           use given path to find target tools during the build
1567
1568 Some influential environment variables:
1569   CC          C compiler command
1570   CFLAGS      C compiler flags
1571   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572               nonstandard directory <lib dir>
1573   LIBS        libraries to pass to the linker, e.g. -l<library>
1574   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575               you have headers in a nonstandard directory <include dir>
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   build_configargs
1579               additional configure arguments for build directories
1580   host_configargs
1581               additional configure arguments for host directories
1582   target_configargs
1583               additional configure arguments for target directories
1584   AR          AR for the host
1585   AS          AS for the host
1586   DLLTOOL     DLLTOOL for the host
1587   LD          LD for the host
1588   LIPO        LIPO for the host
1589   NM          NM for the host
1590   RANLIB      RANLIB for the host
1591   STRIP       STRIP for the host
1592   WINDRES     WINDRES for the host
1593   WINDMC      WINDMC for the host
1594   OBJCOPY     OBJCOPY for the host
1595   OBJDUMP     OBJDUMP for the host
1596   READELF     READELF for the host
1597   CC_FOR_TARGET
1598               CC for the target
1599   CXX_FOR_TARGET
1600               CXX for the target
1601   GCC_FOR_TARGET
1602               GCC for the target
1603   GCJ_FOR_TARGET
1604               GCJ for the target
1605   GFORTRAN_FOR_TARGET
1606               GFORTRAN for the target
1607   GOC_FOR_TARGET
1608               GOC for the target
1609   AR_FOR_TARGET
1610               AR for the target
1611   AS_FOR_TARGET
1612               AS for the target
1613   DLLTOOL_FOR_TARGET
1614               DLLTOOL for the target
1615   LD_FOR_TARGET
1616               LD for the target
1617   LIPO_FOR_TARGET
1618               LIPO for the target
1619   NM_FOR_TARGET
1620               NM for the target
1621   OBJCOPY_FOR_TARGET
1622               OBJCOPY for the target
1623   OBJDUMP_FOR_TARGET
1624               OBJDUMP for the target
1625   RANLIB_FOR_TARGET
1626               RANLIB for the target
1627   READELF_FOR_TARGET
1628               READELF for the target
1629   STRIP_FOR_TARGET
1630               STRIP for the target
1631   WINDRES_FOR_TARGET
1632               WINDRES for the target
1633   WINDMC_FOR_TARGET
1634               WINDMC for the target
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" ||
1648       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649       continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.64
1704
1705 Copyright (C) 2009 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709   exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext
1723   if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_compile") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest.$ac_objext; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750   return $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext
1761   if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_compile") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_cxx_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest.$ac_objext; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785         ac_retval=1
1786 fi
1787   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788   return $ac_retval
1789
1790 } # ac_fn_cxx_try_compile
1791
1792 # ac_fn_cxx_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_link ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   rm -f conftest.$ac_objext conftest$ac_exeext
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } && {
1815          test -z "$ac_cxx_werror_flag" ||
1816          test ! -s conftest.err
1817        } && test -s conftest$ac_exeext && {
1818          test "$cross_compiling" = yes ||
1819          $as_test_x conftest$ac_exeext
1820        }; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830   # interfere with the next link command; also delete a directory that is
1831   # left behind by Apple's compiler.  We do this before executing the actions.
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   return $ac_retval
1835
1836 } # ac_fn_cxx_try_link
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext conftest$ac_exeext
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_c_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest$ac_exeext && {
1864          test "$cross_compiling" = yes ||
1865          $as_test_x conftest$ac_exeext
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876   # interfere with the next link command; also delete a directory that is
1877   # left behind by Apple's compiler.  We do this before executing the actions.
1878   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880   return $ac_retval
1881
1882 } # ac_fn_c_try_link
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by $as_me, which was
1888 generated by GNU Autoconf 2.64.  Invocation command line was
1889
1890   $ $0 $@
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1908
1909 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1910 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1913 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1914 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1915 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924     $as_echo "PATH: $as_dir"
1925   done
1926 IFS=$as_save_IFS
1927
1928 } >&5
1929
1930 cat >&5 <<_ACEOF
1931
1932
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1936
1937 _ACEOF
1938
1939
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951   for ac_arg
1952   do
1953     case $ac_arg in
1954     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956     | -silent | --silent | --silen | --sile | --sil)
1957       continue ;;
1958     *\'*)
1959       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     esac
1961     case $ac_pass in
1962     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963     2)
1964       as_fn_append ac_configure_args1 " '$ac_arg'"
1965       if test $ac_must_keep_next = true; then
1966         ac_must_keep_next=false # Got value, back to normal.
1967       else
1968         case $ac_arg in
1969           *=* | --config-cache | -C | -disable-* | --disable-* \
1970           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972           | -with-* | --with-* | -without-* | --without-* | --x)
1973             case "$ac_configure_args0 " in
1974               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975             esac
1976             ;;
1977           -* ) ac_must_keep_next=true ;;
1978         esac
1979       fi
1980       as_fn_append ac_configure_args " '$ac_arg'"
1981       ;;
1982     esac
1983   done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1987
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log.  We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994   # Save into config.log some information that might help in debugging.
1995   {
1996     echo
1997
1998     cat <<\_ASBOX
1999 ## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##
2002 _ASBOX
2003     echo
2004     # The following way of writing the cache mishandles newlines in values,
2005 (
2006   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007     eval ac_val=\$$ac_var
2008     case $ac_val in #(
2009     *${as_nl}*)
2010       case $ac_var in #(
2011       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013       esac
2014       case $ac_var in #(
2015       _ | IFS | as_nl) ;; #(
2016       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017       *) { eval $ac_var=; unset $ac_var;} ;;
2018       esac ;;
2019     esac
2020   done
2021   (set) 2>&1 |
2022     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023     *${as_nl}ac_space=\ *)
2024       sed -n \
2025         "s/'\''/'\''\\\\'\'''\''/g;
2026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027       ;; #(
2028     *)
2029       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030       ;;
2031     esac |
2032     sort
2033 )
2034     echo
2035
2036     cat <<\_ASBOX
2037 ## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##
2040 _ASBOX
2041     echo
2042     for ac_var in $ac_subst_vars
2043     do
2044       eval ac_val=\$$ac_var
2045       case $ac_val in
2046       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047       esac
2048       $as_echo "$ac_var='\''$ac_val'\''"
2049     done | sort
2050     echo
2051
2052     if test -n "$ac_subst_files"; then
2053       cat <<\_ASBOX
2054 ## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##
2057 _ASBOX
2058       echo
2059       for ac_var in $ac_subst_files
2060       do
2061         eval ac_val=\$$ac_var
2062         case $ac_val in
2063         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064         esac
2065         $as_echo "$ac_var='\''$ac_val'\''"
2066       done | sort
2067       echo
2068     fi
2069
2070     if test -s confdefs.h; then
2071       cat <<\_ASBOX
2072 ## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##
2075 _ASBOX
2076       echo
2077       cat confdefs.h
2078       echo
2079     fi
2080     test "$ac_signal" != 0 &&
2081       $as_echo "$as_me: caught signal $ac_signal"
2082     $as_echo "$as_me: exit $exit_status"
2083   } >&5
2084   rm -f core *.core core.conftest.* &&
2085     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086     exit $exit_status
2087 ' 0
2088 for ac_signal in 1 2 13 15; do
2089   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2092
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2095
2096 $as_echo "/* confdefs.h */" > confdefs.h
2097
2098 # Predefined preprocessor variables.
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130   ac_site_file1=$CONFIG_SITE
2131 elif test "x$prefix" != xNONE; then
2132   ac_site_file1=$prefix/share/config.site
2133   ac_site_file2=$prefix/etc/config.site
2134 else
2135   ac_site_file1=$ac_default_prefix/share/config.site
2136   ac_site_file2=$ac_default_prefix/etc/config.site
2137 fi
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 do
2140   test "x$ac_site_file" = xNONE && continue
2141   if test -r "$ac_site_file"; then
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144     sed 's/^/| /' "$ac_site_file" >&5
2145     . "$ac_site_file"
2146   fi
2147 done
2148
2149 if test -r "$cache_file"; then
2150   # Some versions of bash will fail to source /dev/null (special
2151   # files actually), so we avoid doing that.
2152   if test -f "$cache_file"; then
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155     case $cache_file in
2156       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157       *)                      . "./$cache_file";;
2158     esac
2159   fi
2160 else
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163   >$cache_file
2164 fi
2165
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171   eval ac_new_set=\$ac_env_${ac_var}_set
2172   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173   eval ac_new_val=\$ac_env_${ac_var}_value
2174   case $ac_old_set,$ac_new_set in
2175     set,)
2176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178       ac_cache_corrupted=: ;;
2179     ,set)
2180       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182       ac_cache_corrupted=: ;;
2183     ,);;
2184     *)
2185       if test "x$ac_old_val" != "x$ac_new_val"; then
2186         # differences in whitespace do not lead to failure.
2187         ac_old_val_w=`echo x $ac_old_val`
2188         ac_new_val_w=`echo x $ac_new_val`
2189         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192           ac_cache_corrupted=:
2193         else
2194           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196           eval $ac_var=\$ac_old_val
2197         fi
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2199 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2200         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2202       fi;;
2203   esac
2204   # Pass precious variables to config.status.
2205   if test "$ac_new_set" = set; then
2206     case $ac_new_val in
2207     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208     *) ac_arg=$ac_var=$ac_new_val ;;
2209     esac
2210     case " $ac_configure_args " in
2211       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2212       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213     esac
2214   fi
2215 done
2216 if $ac_cache_corrupted; then
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 fi
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2226
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241 progname=$0
2242 # if PWD already has a value, it is probably wrong.
2243 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245 # Export original configure arguments for use by sub-configures.
2246 # Quote arguments with shell meta charatcers.
2247 TOPLEVEL_CONFIGURE_ARGUMENTS=
2248 set -- "$progname" "$@"
2249 for ac_arg
2250 do
2251   case "$ac_arg" in
2252   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254     # if the argument is of the form -foo=baz, quote the baz part only
2255     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256   *) ;;
2257   esac
2258   # Add the quoted argument to the list.
2259   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260 done
2261 if test "$silent" = yes; then
2262   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263 fi
2264 # Remove the initial space we just introduced and, as these will be
2265 # expanded by make, quote '$'.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
2268
2269 # Find the build, host, and target systems.
2270 ac_aux_dir=
2271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272   for ac_t in install-sh install.sh shtool; do
2273     if test -f "$ac_dir/$ac_t"; then
2274       ac_aux_dir=$ac_dir
2275       ac_install_sh="$ac_aux_dir/$ac_t -c"
2276       break 2
2277     fi
2278   done
2279 done
2280 if test -z "$ac_aux_dir"; then
2281   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2291
2292
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if test "${ac_cv_build+set}" = set; then :
2300   $as_echo_n "(cached) " >&6
2301 else
2302   ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2329
2330
2331  case ${build_alias} in
2332   "") build_noncanonical=${build} ;;
2333   *) build_noncanonical=${build_alias} ;;
2334 esac
2335
2336
2337
2338  case ${host_alias} in
2339   "") host_noncanonical=${build_noncanonical} ;;
2340   *) host_noncanonical=${host_alias} ;;
2341 esac
2342
2343
2344
2345  case ${target_alias} in
2346   "") target_noncanonical=${host_noncanonical} ;;
2347   *) target_noncanonical=${target_alias} ;;
2348 esac
2349
2350
2351
2352
2353 test "$host_noncanonical" = "$target_noncanonical" &&
2354   test "$program_prefix$program_suffix$program_transform_name" = \
2355     NONENONEs,x,x, &&
2356   program_transform_name=s,y,y,
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359 $as_echo_n "checking host system type... " >&6; }
2360 if test "${ac_cv_host+set}" = set; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   if test "x$host_alias" = x; then
2364   ac_cv_host=$ac_cv_build
2365 else
2366   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368 fi
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372 $as_echo "$ac_cv_host" >&6; }
2373 case $ac_cv_host in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376 esac
2377 host=$ac_cv_host
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_host
2380 shift
2381 host_cpu=$1
2382 host_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 host_os=$*
2387 IFS=$ac_save_IFS
2388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392 $as_echo_n "checking target system type... " >&6; }
2393 if test "${ac_cv_target+set}" = set; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   if test "x$target_alias" = x; then
2397   ac_cv_target=$ac_cv_host
2398 else
2399   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405 $as_echo "$ac_cv_target" >&6; }
2406 case $ac_cv_target in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409 esac
2410 target=$ac_cv_target
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_target
2413 shift
2414 target_cpu=$1
2415 target_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 target_os=$*
2420 IFS=$ac_save_IFS
2421 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 # The aliases save the names the user supplied, while $host etc.
2425 # will get canonicalized.
2426 test -n "$target_alias" &&
2427   test "$program_prefix$program_suffix$program_transform_name" = \
2428     NONENONEs,x,x, &&
2429   program_prefix=${target_alias}-
2430
2431 test "$program_prefix" != NONE &&
2432   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440
2441
2442
2443 # Get 'install' or 'install-sh' and its variants.
2444 # Find a good install program.  We prefer a C program (faster),
2445 # so one script is as good as another.  But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469     # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471   ./ | .// | /[cC]/* | \
2472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474   /usr/ucb/* ) ;;
2475   *)
2476     # OSF1 and SCO ODT 3.0 have their own names for install.
2477     # Don't use installbsd from OSF since it installs stuff as root
2478     # by default.
2479     for ac_prog in ginstall scoinst install; do
2480       for ac_exec_ext in '' $ac_executable_extensions; do
2481         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482           if test $ac_prog = install &&
2483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484             # AIX install.  It has an incompatible calling convention.
2485             :
2486           elif test $ac_prog = install &&
2487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488             # program-specific install script used by HP pwplus--don't use.
2489             :
2490           else
2491             rm -rf conftest.one conftest.two conftest.dir
2492             echo one > conftest.one
2493             echo two > conftest.two
2494             mkdir conftest.dir
2495             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496               test -s conftest.one && test -s conftest.two &&
2497               test -s conftest.dir/conftest.one &&
2498               test -s conftest.dir/conftest.two
2499             then
2500               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501               break 3
2502             fi
2503           fi
2504         fi
2505       done
2506     done
2507     ;;
2508 esac
2509
2510   done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516   if test "${ac_cv_path_install+set}" = set; then
2517     INSTALL=$ac_cv_path_install
2518   else
2519     # As a last resort, use the slow shell script.  Don't cache a
2520     # value for INSTALL within a source directory, because that will
2521     # break other packages using the cache if that directory is
2522     # removed, or if the value is a relative name.
2523     INSTALL=$ac_install_sh
2524   fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538 $as_echo_n "checking whether ln works... " >&6; }
2539 if test "${acx_cv_prog_LN+set}" = set; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   rm -f conftestdata_t
2543 echo >conftestdata_f
2544 if ln conftestdata_f conftestdata_t 2>/dev/null
2545 then
2546   acx_cv_prog_LN=ln
2547 else
2548   acx_cv_prog_LN=no
2549 fi
2550 rm -f conftestdata_f conftestdata_t
2551
2552 fi
2553 if test $acx_cv_prog_LN = no; then
2554   LN="cp"
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556 $as_echo "no, using $LN" >&6; }
2557 else
2558   LN="$acx_cv_prog_LN"
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2561 fi
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564 $as_echo_n "checking whether ln -s works... " >&6; }
2565 LN_S=$as_ln_s
2566 if test "$LN_S" = "ln -s"; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571 $as_echo "no, using $LN_S" >&6; }
2572 fi
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576 if test "${ac_cv_path_SED+set}" = set; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580      for ac_i in 1 2 3 4 5 6 7; do
2581        ac_script="$ac_script$as_nl$ac_script"
2582      done
2583      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584      { ac_script=; unset ac_script;}
2585      if test -z "$SED"; then
2586   ac_path_SED_found=false
2587   # Loop through the user's path and test for each of PROGNAME-LIST
2588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     for ac_prog in sed gsed; do
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597 # Check for GNU ac_path_SED and select it if it is found.
2598   # Check for GNU $ac_path_SED
2599 case `"$ac_path_SED" --version 2>&1` in
2600 *GNU*)
2601   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602 *)
2603   ac_count=0
2604   $as_echo_n 0123456789 >"conftest.in"
2605   while :
2606   do
2607     cat "conftest.in" "conftest.in" >"conftest.tmp"
2608     mv "conftest.tmp" "conftest.in"
2609     cp "conftest.in" "conftest.nl"
2610     $as_echo '' >> "conftest.nl"
2611     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613     as_fn_arith $ac_count + 1 && ac_count=$as_val
2614     if test $ac_count -gt ${ac_path_SED_max-0}; then
2615       # Best one so far, save it but keep looking for a better one
2616       ac_cv_path_SED="$ac_path_SED"
2617       ac_path_SED_max=$ac_count
2618     fi
2619     # 10*(2^10) chars as input seems more than enough
2620     test $ac_count -gt 10 && break
2621   done
2622   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623 esac
2624
2625       $ac_path_SED_found && break 3
2626     done
2627   done
2628   done
2629 IFS=$as_save_IFS
2630   if test -z "$ac_cv_path_SED"; then
2631     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632   fi
2633 else
2634   ac_cv_path_SED=$SED
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639 $as_echo "$ac_cv_path_SED" >&6; }
2640  SED="$ac_cv_path_SED"
2641   rm -f conftest.sed
2642
2643 for ac_prog in gawk mawk nawk awk
2644 do
2645   # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_AWK+set}" = set; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   if test -n "$AWK"; then
2653   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660     for ac_exec_ext in '' $ac_executable_extensions; do
2661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662     ac_cv_prog_AWK="$ac_prog"
2663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664     break 2
2665   fi
2666 done
2667   done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682   test -n "$AWK" && break
2683 done
2684
2685
2686 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2689 # a relative path.
2690 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691   INSTALL="${srcpwd}/install-sh -c"
2692 fi
2693
2694 # Set srcdir to "." if that's what it is.
2695 # This is important for multilib support.
2696 pwd=`${PWDCMD-pwd}`
2697 if test "${pwd}" = "${srcpwd}" ; then
2698   srcdir=.
2699 fi
2700
2701 topsrcdir=$srcpwd
2702
2703 extra_host_args=
2704
2705 ### To add a new directory to the tree, first choose whether it is a target
2706 ### or a host dependent tool.  Then put it into the appropriate list
2707 ### (library or tools, host or target), doing a dependency sort.
2708
2709 # Subdirs will be configured in the order listed in build_configdirs,
2710 # configdirs, or target_configdirs; see the serialization section below.
2711
2712 # Dependency sorting is only needed when *configuration* must be done in
2713 # a particular order.  In all cases a dependency should be specified in
2714 # the Makefile, whether or not it's implicitly specified here.
2715
2716 # Double entries in build_configdirs, configdirs, or target_configdirs may
2717 # cause circular dependencies and break everything horribly.
2718
2719 # these library is used by various programs built for the build
2720 # environment
2721 #
2722 build_libs="build-libiberty build-libcpp"
2723
2724 # these tools are built for the build environment
2725 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2726
2727 # these libraries are used by various programs built for the host environment
2728 #f
2729 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2730
2731 # these tools are built for the host environment
2732 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733 # know that we are building the simulator.
2734 # binutils, gas and ld appear in that order because it makes sense to run
2735 # "make check" in that particular order.
2736 # If --enable-gold is used, "gold" may replace "ld".
2737 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"
2738
2739 # libgcj represents the runtime libraries only used by gcj.
2740 libgcj="target-libffi \
2741         target-zlib \
2742         target-libjava"
2743
2744 # these libraries are built for the target environment, and are built after
2745 # the host libraries and the host tools (which may be a cross compiler)
2746 # Note that libiberty is not a target library.
2747 target_libraries="target-libgcc \
2748                 target-libbacktrace \
2749                 target-libgloss \
2750                 target-newlib \
2751                 target-libgomp \
2752                 target-libcilkrts \
2753                 target-liboffloadmic \
2754                 target-libatomic \
2755                 target-libitm \
2756                 target-libstdc++-v3 \
2757                 target-libsanitizer \
2758                 target-libvtv \
2759                 target-libmpx \
2760                 target-libssp \
2761                 target-libquadmath \
2762                 target-libgfortran \
2763                 target-boehm-gc \
2764                 ${libgcj} \
2765                 target-libobjc \
2766                 target-libada \
2767                 target-libgo"
2768
2769 # these tools are built using the target libraries, and are intended to
2770 # run only in the target environment
2771 #
2772 # note: any program that *uses* libraries that are in the "target_libraries"
2773 # list belongs in this list.
2774 #
2775 target_tools="target-rda"
2776
2777 ################################################################################
2778
2779 ## All tools belong in one of the four categories, and are assigned above
2780 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2781 ## is important because configure will choke if they ever get through.
2782 ## ${configdirs} is directories we build using the host tools.
2783 ## ${target_configdirs} is directories we build using the target tools.
2784 configdirs=`echo ${host_libs} ${host_tools}`
2785 target_configdirs=`echo ${target_libraries} ${target_tools}`
2786 build_configdirs=`echo ${build_libs} ${build_tools}`
2787
2788
2789
2790 ################################################################################
2791
2792 srcname="gnu development package"
2793
2794 # This gets set non-empty for some net releases of packages.
2795 appdirs=""
2796
2797 # Define is_cross_compiler to save on calls to 'test'.
2798 is_cross_compiler=
2799 if test x"${host}" = x"${target}" ; then
2800   is_cross_compiler=no
2801 else
2802   is_cross_compiler=yes
2803 fi
2804
2805 # Find the build and target subdir names.
2806
2807 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808 # have matching libraries, they should use host libraries: Makefile.tpl
2809 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810 # However, they still use the build modules, because the corresponding
2811 # host modules (e.g. bison) are only built for the host when bootstrap
2812 # finishes. So:
2813 # - build_subdir is where we find build modules, and never changes.
2814 # - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816 # Prefix 'build-' so this never conflicts with target_subdir.
2817 build_subdir="build-${build_noncanonical}"
2818
2819 # Check whether --with-build-libsubdir was given.
2820 if test "${with_build_libsubdir+set}" = set; then :
2821   withval=$with_build_libsubdir; build_libsubdir="$withval"
2822 else
2823   build_libsubdir="$build_subdir"
2824 fi
2825
2826 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827 if ( test $srcdir = . && test -d gcc ) \
2828    || test -d $srcdir/../host-${host_noncanonical}; then
2829   host_subdir="host-${host_noncanonical}"
2830 else
2831   host_subdir=.
2832 fi
2833 # No prefix.
2834 target_subdir=${target_noncanonical}
2835
2836 # Be sure to cover against remnants of an in-tree build.
2837 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2838   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 fi
2841
2842 # Skipdirs are removed silently.
2843 skipdirs=
2844 # Noconfigdirs are removed loudly.
2845 noconfigdirs=""
2846
2847 use_gnu_ld=
2848 # Make sure we don't let GNU ld be added if we didn't want it.
2849 if test x$with_gnu_ld = xno ; then
2850   use_gnu_ld=no
2851   noconfigdirs="$noconfigdirs ld gold"
2852 fi
2853
2854 use_gnu_as=
2855 # Make sure we don't let GNU as be added if we didn't want it.
2856 if test x$with_gnu_as = xno ; then
2857   use_gnu_as=no
2858   noconfigdirs="$noconfigdirs gas"
2859 fi
2860
2861 use_included_zlib=
2862
2863 # Check whether --with-system-zlib was given.
2864 if test "${with_system_zlib+set}" = set; then :
2865   withval=$with_system_zlib;
2866 fi
2867
2868 # Make sure we don't let ZLIB be added if we didn't want it.
2869 if test x$with_system_zlib = xyes ; then
2870   use_included_zlib=no
2871   noconfigdirs="$noconfigdirs zlib"
2872 fi
2873
2874 # some tools are so dependent upon X11 that if we're not building with X,
2875 # it's not even worth trying to configure, much less build, that tool.
2876
2877 case ${with_x} in
2878   yes | "") ;; # the default value for this tree is that X11 is available
2879   no)
2880     skipdirs="${skipdirs} tk itcl libgui"
2881     # We won't be able to build gdbtk without X.
2882     enable_gdbtk=no
2883     ;;
2884   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 esac
2886
2887 # Some are only suitable for cross toolchains.
2888 # Remove these if host=target.
2889 cross_only="target-libgloss target-newlib target-opcodes"
2890
2891 case $is_cross_compiler in
2892   no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 esac
2894
2895 # If both --with-headers and --with-libs are specified, default to
2896 # --without-newlib.
2897 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2899   if test x"${with_newlib}" = x ; then
2900     with_newlib=no
2901   fi
2902 fi
2903
2904 # Recognize --with-newlib/--without-newlib.
2905 case ${with_newlib} in
2906   no) skipdirs="${skipdirs} target-newlib" ;;
2907   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 esac
2909
2910 # Check whether --enable-as-accelerator-for was given.
2911 if test "${enable_as_accelerator_for+set}" = set; then :
2912   enableval=$enable_as_accelerator_for;
2913 fi
2914
2915
2916 # Check whether --enable-offload-targets was given.
2917 if test "${enable_offload_targets+set}" = set; then :
2918   enableval=$enable_offload_targets;
2919   if test x"$enable_offload_targets" = x; then
2920     as_fn_error "no offload targets specified" "$LINENO" 5
2921   fi
2922
2923 else
2924   enable_offload_targets=
2925 fi
2926
2927
2928 # Handle --enable-gold, --enable-ld.
2929 # --disable-gold [--enable-ld]
2930 #     Build only ld.  Default option.
2931 # --enable-gold [--enable-ld]
2932 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2933 #     as "ld.bfd" and "ld".
2934 # --enable-gold=default [--enable-ld]
2935 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2936 #     install ld as "ld.bfd".
2937 # --enable-gold[=default] --disable-ld
2938 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2939 # --enable-gold --enable-ld=default
2940 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941 #     and ld.bfd).
2942 #     In other words, ld is default
2943 # --enable-gold=default --enable-ld=default
2944 #     Error.
2945
2946 default_ld=
2947 # Check whether --enable-gold was given.
2948 if test "${enable_gold+set}" = set; then :
2949   enableval=$enable_gold; ENABLE_GOLD=$enableval
2950 else
2951   ENABLE_GOLD=no
2952 fi
2953
2954 case "${ENABLE_GOLD}" in
2955   yes|default)
2956     # Check for ELF target.
2957     is_elf=no
2958     case "${target}" in
2959       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2960       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2961       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2962       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2963         case "${target}" in
2964           *-*-linux*aout* | *-*-linux*oldld*)
2965             ;;
2966           *)
2967             is_elf=yes
2968             ;;
2969         esac
2970     esac
2971
2972     if test "$is_elf" = "yes"; then
2973       # Check for target supported by gold.
2974       case "${target}" in
2975         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2977           configdirs="$configdirs gold"
2978           if test x${ENABLE_GOLD} = xdefault; then
2979             default_ld=gold
2980           fi
2981           ENABLE_GOLD=yes
2982           ;;
2983       esac
2984     fi
2985     ;;
2986   no)
2987     ;;
2988   *)
2989     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990     ;;
2991 esac
2992
2993 # Check whether --enable-ld was given.
2994 if test "${enable_ld+set}" = set; then :
2995   enableval=$enable_ld; ENABLE_LD=$enableval
2996 else
2997   ENABLE_LD=yes
2998 fi
2999
3000
3001 case "${ENABLE_LD}" in
3002   default)
3003     if test x${default_ld} != x; then
3004       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005     fi
3006     ;;
3007   yes)
3008     ;;
3009   no)
3010     if test x${ENABLE_GOLD} != xyes; then
3011       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013     fi
3014     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015     ;;
3016   *)
3017     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018     ;;
3019 esac
3020
3021 # PR gas/19109
3022 # Decide the default method for compressing debug sections.
3023 # Provide a configure time option to override our default.
3024 # Check whether --enable-compressed_debug_sections was given.
3025 if test "${enable_compressed_debug_sections+set}" = set; then :
3026   enableval=$enable_compressed_debug_sections;
3027   if test x"$enable_compressed_debug_sections" = xyes; then
3028     as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029   fi
3030
3031 else
3032   enable_compressed_debug_sections=
3033 fi
3034
3035
3036 # Configure extra directories which are host specific
3037
3038 case "${host}" in
3039   *-cygwin*)
3040     configdirs="$configdirs libtermcap" ;;
3041 esac
3042
3043 # A target can indicate whether a language isn't supported for some reason.
3044 # Only spaces may be used in this macro; not newlines or tabs.
3045 unsupported_languages=
3046
3047 # Remove more programs from consideration, based on the host or
3048 # target this usually means that a port of the program doesn't
3049 # exist yet.
3050
3051 case "${host}" in
3052   i[3456789]86-*-msdosdjgpp*)
3053     noconfigdirs="$noconfigdirs tcl tk itcl"
3054     ;;
3055 esac
3056
3057
3058 # Check whether --enable-libquadmath was given.
3059 if test "${enable_libquadmath+set}" = set; then :
3060   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061 else
3062   ENABLE_LIBQUADMATH=yes
3063 fi
3064
3065 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066   noconfigdirs="$noconfigdirs target-libquadmath"
3067 fi
3068
3069
3070 # Check whether --enable-libquadmath-support was given.
3071 if test "${enable_libquadmath_support+set}" = set; then :
3072   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073 else
3074   ENABLE_LIBQUADMATH_SUPPORT=yes
3075 fi
3076
3077 enable_libquadmath_support=
3078 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079   enable_libquadmath_support=no
3080 fi
3081
3082
3083 # Check whether --enable-libada was given.
3084 if test "${enable_libada+set}" = set; then :
3085   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3086 else
3087   ENABLE_LIBADA=yes
3088 fi
3089
3090 if test "${ENABLE_LIBADA}" != "yes" ; then
3091   noconfigdirs="$noconfigdirs gnattools"
3092 fi
3093
3094 # Check whether --enable-libssp was given.
3095 if test "${enable_libssp+set}" = set; then :
3096   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3097 else
3098   ENABLE_LIBSSP=yes
3099 fi
3100
3101
3102 # Check whether --enable-libstdcxx was given.
3103 if test "${enable_libstdcxx+set}" = set; then :
3104   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105 else
3106   ENABLE_LIBSTDCXX=default
3107 fi
3108
3109 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3110   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111 fi
3112
3113 # If this is accelerator compiler and its target is intelmic we enable
3114 # target liboffloadmic by default.  If this is compiler with offloading
3115 # for intelmic we enable host liboffloadmic by default.  Otherwise
3116 # liboffloadmic is disabled by default.
3117 # Check whether --enable-liboffloadmic was given.
3118 if test "${enable_liboffloadmic+set}" = set; then :
3119   enableval=$enable_liboffloadmic; case "$enableval" in
3120   no | host | target)
3121     enable_liboffloadmic=$enableval ;;
3122   *)
3123     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124 esac
3125 else
3126   if test x"$enable_as_accelerator_for" != x; then
3127   case "${target}" in
3128     *-intelmic-* | *-intelmicemul-*)
3129       enable_liboffloadmic=target
3130       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131       ;;
3132     *)
3133       enable_liboffloadmic=no
3134       ;;
3135   esac
3136 else
3137   case "${enable_offload_targets}" in
3138     *-intelmic-* | *-intelmicemul-*)
3139       enable_liboffloadmic=host
3140       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141       ;;
3142     *)
3143       enable_liboffloadmic=no
3144       ;;
3145     esac
3146 fi
3147 fi
3148
3149
3150
3151 # Save it here so that, even in case of --enable-libgcj, if the Java
3152 # front-end isn't enabled, we still get libgcj disabled.
3153 libgcj_saved=$libgcj
3154 case $enable_libgcj in
3155 yes)
3156   # If we reset it here, it won't get added to noconfigdirs in the
3157   # target-specific build rules, so it will be forcibly enabled
3158   # (unless the Java language itself isn't enabled).
3159   libgcj=
3160   ;;
3161 no)
3162   # Make sure we get it printed in the list of not supported target libs.
3163   # Don't disable libffi, though, other languages use it.
3164   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3165   # Clear libgcj_saved so that even if java is enabled libffi won't be
3166   # built.
3167   libgcj_saved=
3168   ;;
3169 esac
3170
3171 # Check whether --enable-static-libjava was given.
3172 if test "${enable_static_libjava+set}" = set; then :
3173   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174 else
3175   ENABLE_STATIC_LIBJAVA=no
3176 fi
3177
3178 enable_static_libjava=
3179 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180   enable_static_libjava=yes
3181 fi
3182
3183 if test x$enable_static_libjava != xyes ; then
3184   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185 fi
3186
3187
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3190     case "${target}" in
3191     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3192         ;;
3193     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3194         ;;
3195     *-*-solaris2* | *-*-hpux11*)
3196         ;;
3197     *-*-darwin* | *-*-aix*)
3198         ;;
3199     nvptx*-*-*)
3200         ;;
3201     *)
3202         noconfigdirs="$noconfigdirs target-libgomp"
3203         ;;
3204     esac
3205 fi
3206
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209     if test x$enable_libatomic = x; then
3210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212         if (srcdir=${srcdir}/libatomic; \
3213                 . ${srcdir}/configure.tgt; \
3214                 test -n "$UNSUPPORTED")
3215         then
3216             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218             noconfigdirs="$noconfigdirs target-libatomic"
3219         else
3220             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222         fi
3223     fi
3224 fi
3225
3226 # Disable libcilkrts on unsupported systems.
3227 if test -d ${srcdir}/libcilkrts; then
3228     if test x$enable_libcilkrts = x; then
3229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230 $as_echo_n "checking for libcilkrts support... " >&6; }
3231         if (srcdir=${srcdir}/libcilkrts; \
3232                 . ${srcdir}/configure.tgt; \
3233                 test -n "$UNSUPPORTED")
3234         then
3235             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237             noconfigdirs="$noconfigdirs target-libcilkrts"
3238         else
3239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241         fi
3242     fi
3243 fi
3244
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247     if test x$enable_liboffloadmic != xno; then
3248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250         if (srcdir=${srcdir}/liboffloadmic; \
3251                 . ${srcdir}/configure.tgt; \
3252                 test -n "$UNSUPPORTED")
3253         then
3254             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256             noconfigdirs="$noconfigdirs target-liboffloadmic"
3257         else
3258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260         fi
3261     fi
3262 fi
3263
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266     if test x$enable_libitm = x; then
3267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269         if (srcdir=${srcdir}/libitm; \
3270                 . ${srcdir}/configure.tgt; \
3271                 test -n "$UNSUPPORTED")
3272         then
3273             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275             noconfigdirs="$noconfigdirs target-libitm"
3276         else
3277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279         fi
3280     fi
3281 fi
3282
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285     if test x$enable_libsanitizer = x; then
3286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288         if (srcdir=${srcdir}/libsanitizer; \
3289                 . ${srcdir}/configure.tgt; \
3290                 test -n "$UNSUPPORTED")
3291         then
3292             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294             noconfigdirs="$noconfigdirs target-libsanitizer"
3295         else
3296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298         fi
3299     fi
3300 fi
3301
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304     if test x$enable_libvtv = x; then
3305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307         if (srcdir=${srcdir}/libvtv; \
3308                 . ${srcdir}/configure.tgt; \
3309                 test "$VTV_SUPPORTED" != "yes")
3310         then
3311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313             noconfigdirs="$noconfigdirs target-libvtv"
3314         else
3315             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317         fi
3318     fi
3319 fi
3320
3321
3322 # Enable libmpx on supported systems by request.
3323 if test -d ${srcdir}/libmpx; then
3324     if test x$enable_libmpx = x; then
3325        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326 $as_echo_n "checking for libmpx support... " >&6; }
3327        if (srcdir=${srcdir}/libmpx; \
3328                . ${srcdir}/configure.tgt; \
3329                test "$LIBMPX_SUPPORTED" != "yes")
3330        then
3331            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333            noconfigdirs="$noconfigdirs target-libmpx"
3334        else
3335            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337        fi
3338     fi
3339 fi
3340
3341
3342
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345   avr-*-*)
3346     noconfigdirs="$noconfigdirs target-libquadmath"
3347     ;;
3348   # libquadmath is unused on AIX and libquadmath build process use of
3349   # LD_LIBRARY_PATH can break AIX bootstrap.
3350   powerpc-*-aix* | rs6000-*-aix*)
3351     noconfigdirs="$noconfigdirs target-libquadmath"
3352     ;;
3353 esac
3354
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357   avr-*-*)
3358     # No hosted I/O support.
3359     noconfigdirs="$noconfigdirs target-libssp"
3360     ;;
3361   powerpc-*-aix* | rs6000-*-aix*)
3362     noconfigdirs="$noconfigdirs target-libssp"
3363     ;;
3364   rl78-*-*)
3365     # libssp uses a misaligned load to trigger a fault, but the RL78
3366     # doesn't fault for those - instead, it gives a build-time error
3367     # for explicit misaligned loads.
3368     noconfigdirs="$noconfigdirs target-libssp"
3369     ;;
3370   visium-*-*)
3371     # No hosted I/O support.
3372     noconfigdirs="$noconfigdirs target-libssp"
3373     ;;
3374 esac
3375
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379   case "${target}" in
3380     *-*-vxworks*)
3381       # VxWorks uses the Dinkumware C++ library.
3382       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383       ;;
3384     arm*-wince-pe*)
3385       # the C++ libraries don't build on top of CE's C libraries
3386       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387       ;;
3388     avr-*-*)
3389       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390       ;;
3391     ft32-*-*)
3392       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393       ;;
3394   esac
3395 fi
3396
3397 # Disable Fortran for some systems.
3398 case "${target}" in
3399   mmix-*-*)
3400     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401     unsupported_languages="$unsupported_languages fortran"
3402     ;;
3403 esac
3404
3405 # Disable Java if libffi is not supported.
3406 case "${target}" in
3407   aarch64-*-*)
3408     ;;
3409   alpha*-*-*)
3410     ;;
3411   arm*-*-*)
3412     ;;
3413   cris-*-*)
3414     ;;
3415   frv-*-*)
3416     ;;
3417   hppa*-*-linux*)
3418     ;;
3419   hppa*-*-hpux*)
3420     ;;
3421   i?86-*-*)
3422     ;;
3423   ia64*-*-*)
3424     ;;
3425   m32r*-*-*)
3426     ;;
3427   m68k-*-*)
3428     ;;
3429   mips*-*-rtems*)
3430     ;;
3431   mips*-*-linux*)
3432     ;;
3433   powerpc*-*-linux*)
3434     ;;
3435   powerpc-*-darwin*)
3436     ;;
3437   powerpc-*-aix* | rs6000-*-aix*)
3438     ;;
3439   powerpc-*-freebsd*)
3440     ;;
3441   powerpc64-*-freebsd*)
3442     ;;
3443   powerpc*-*-rtems*)
3444     ;;
3445   s390-*-* | s390x-*-*)
3446     ;;
3447   sh-*-* | sh[34]*-*-*)
3448     ;;
3449   sparc*-*-*)
3450     ;;
3451   x86_64-*-*)
3452     ;;
3453   *-*-*)
3454     unsupported_languages="$unsupported_languages java"
3455     ;;
3456 esac
3457
3458 # Disable Java, libgcj or related libraries for some systems.
3459 case "${target}" in
3460   powerpc-*-darwin*)
3461     ;;
3462   i[3456789]86-*-darwin*)
3463     ;;
3464   x86_64-*-darwin[912]*)
3465     ;;
3466   *-*-darwin*)
3467     noconfigdirs="$noconfigdirs ${libgcj}"
3468     ;;
3469   *-*-netware*)
3470     noconfigdirs="$noconfigdirs ${libgcj}"
3471     ;;
3472   *-*-rtems*)
3473     noconfigdirs="$noconfigdirs ${libgcj}"
3474     ;;
3475   *-*-tpf*)
3476     noconfigdirs="$noconfigdirs ${libgcj}"
3477     ;;
3478   *-*-uclinux*)
3479     noconfigdirs="$noconfigdirs ${libgcj}"
3480     ;;
3481   *-*-vxworks*)
3482     noconfigdirs="$noconfigdirs ${libgcj}"
3483     ;;
3484   alpha*-*-*vms*)
3485     noconfigdirs="$noconfigdirs ${libgcj}"
3486     ;;
3487   arm*-*-freebsd*)
3488     noconfigdirs="$noconfigdirs ${libgcj}"
3489     ;;
3490   arm-wince-pe)
3491     noconfigdirs="$noconfigdirs ${libgcj}"
3492     ;;
3493   arm*-*-symbianelf*)
3494     noconfigdirs="$noconfigdirs ${libgcj}"
3495     ;;
3496   bfin-*-*)
3497     noconfigdirs="$noconfigdirs target-boehm-gc"
3498     ;;
3499   cris-*-* | crisv32-*-*)
3500     unsupported_languages="$unsupported_languages java"
3501     case "${target}" in
3502       *-*-linux*)
3503         ;;
3504       *) # See PR46792 regarding target-libffi.
3505         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3506     esac
3507     ;;
3508   hppa*64*-*-linux*)
3509     # In this case, it's because the hppa64-linux target is for
3510     # the kernel only at this point and has no libc, and thus no
3511     # headers, crt*.o, etc., all of which are needed by these.
3512     unsupported_languages="$unsupported_languages java"
3513     ;;
3514   hppa*64*-*-hpux*)
3515     noconfigdirs="$noconfigdirs ${libgcj}"
3516     ;;
3517   hppa*-hp-hpux11*)
3518     ;;
3519   hppa*-*-hpux*)
3520     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3521     # build on HP-UX 10.20.
3522     noconfigdirs="$noconfigdirs ${libgcj}"
3523     ;;
3524   ia64*-*-*vms*)
3525     noconfigdirs="$noconfigdirs ${libgcj}"
3526     ;;
3527   i[3456789]86-w64-mingw*)
3528     noconfigdirs="$noconfigdirs ${libgcj}"
3529     ;;
3530   i[3456789]86-*-mingw*)
3531     noconfigdirs="$noconfigdirs ${libgcj}"
3532     ;;
3533   x86_64-*-mingw*)
3534     noconfigdirs="$noconfigdirs ${libgcj}"
3535     ;;
3536   mmix-*-*)
3537     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3538     ;;
3539   powerpc-*-aix*)
3540     # copied from rs6000-*-* entry
3541     noconfigdirs="$noconfigdirs ${libgcj}"
3542     ;;
3543   rs6000-*-aix*)
3544     noconfigdirs="$noconfigdirs ${libgcj}"
3545     ;;
3546   ft32-*-*)
3547     noconfigdirs="$noconfigdirs ${libgcj}"
3548     ;;
3549   *-*-lynxos*)
3550     noconfigdirs="$noconfigdirs ${libgcj}"
3551     ;;
3552 esac
3553
3554 # Disable the go frontend on systems where it is known to not work. Please keep
3555 # this in sync with contrib/config-list.mk.
3556 case "${target}" in
3557 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3558     unsupported_languages="$unsupported_languages go"
3559     ;;
3560 esac
3561
3562 # Disable libgo for some systems where it is known to not work.
3563 # For testing, you can easily override this with --enable-libgo.
3564 if test x$enable_libgo = x; then
3565     case "${target}" in
3566     *-*-darwin*)
3567         # PR 46986
3568         noconfigdirs="$noconfigdirs target-libgo"
3569         ;;
3570     *-*-cygwin* | *-*-mingw*)
3571         noconfigdirs="$noconfigdirs target-libgo"
3572         ;;
3573     *-*-aix*)
3574         noconfigdirs="$noconfigdirs target-libgo"
3575         ;;
3576     esac
3577 fi
3578
3579 # Default libgloss CPU subdirectory.
3580 libgloss_dir="$target_cpu"
3581
3582 case "${target}" in
3583   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3584     libgloss_dir=wince
3585     ;;
3586   aarch64*-*-* )
3587     libgloss_dir=aarch64
3588     ;;
3589   arm*-*-*)
3590     libgloss_dir=arm
3591     ;;
3592   cris-*-* | crisv32-*-*)
3593     libgloss_dir=cris
3594     ;;
3595   hppa*-*-*)
3596     libgloss_dir=pa
3597     ;;
3598   i[3456789]86-*-*)
3599     libgloss_dir=i386
3600     ;;
3601   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3602     libgloss_dir=m68hc11
3603     ;;
3604   m68*-*-* | fido-*-*)
3605     libgloss_dir=m68k
3606     ;;
3607   mips*-*-*)
3608     libgloss_dir=mips
3609     ;;
3610   powerpc*-*-*)
3611     libgloss_dir=rs6000
3612     ;;
3613   sparc*-*-*)
3614     libgloss_dir=sparc
3615     ;;
3616 esac
3617
3618 # Disable newlib and libgloss for various target OSes.
3619 case "${target}" in
3620   alpha*-dec-osf*)
3621     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622     ;;
3623   i[3456789]86-*-linux*)
3624     # This section makes it possible to build newlib natively on linux.
3625     # If we are using a cross compiler then don't configure newlib.
3626     if test x${is_cross_compiler} != xno ; then
3627       noconfigdirs="$noconfigdirs target-newlib"
3628     fi
3629     noconfigdirs="$noconfigdirs target-libgloss"
3630     # If we are not using a cross compiler, do configure newlib.
3631     # Note however, that newlib will only be configured in this situation
3632     # if the --with-newlib option has been given, because otherwise
3633     # 'target-newlib' will appear in skipdirs.
3634     ;;
3635   i[3456789]86-*-rdos*)
3636     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637     ;;
3638   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3639     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640     ;;
3641   sparc-*-sunos4*)
3642     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643     ;;
3644   *-*-aix*)
3645     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646     ;;
3647   *-*-beos*)
3648     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649     ;;
3650   *-*-chorusos)
3651     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652     ;;
3653   *-*-dragonfly*)
3654     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655     ;;
3656   *-*-freebsd*)
3657     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658     ;;
3659   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3660     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661     ;;
3662   *-*-lynxos*)
3663     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664     ;;
3665   *-*-mingw*)
3666     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667     ;;
3668   *-*-netbsd*)
3669     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670     ;;
3671   *-*-netware*)
3672     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673     ;;
3674   *-*-tpf*)
3675     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676     ;;
3677   *-*-uclinux*)
3678     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679     ;;
3680   *-*-vxworks*)
3681     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682     ;;
3683 esac
3684
3685 case "${target}" in
3686   *-*-chorusos)
3687     ;;
3688   aarch64-*-darwin*)
3689     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690     noconfigdirs="$noconfigdirs sim target-rda"
3691     ;;
3692   arm-*-darwin*)
3693     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694     noconfigdirs="$noconfigdirs sim target-rda"
3695     ;;
3696   powerpc-*-darwin*)
3697     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3698     noconfigdirs="$noconfigdirs sim target-rda"
3699     ;;
3700   i[3456789]86-*-darwin*)
3701     noconfigdirs="$noconfigdirs ld gprof"
3702     noconfigdirs="$noconfigdirs sim target-rda"
3703     ;;
3704   x86_64-*-darwin[912]*)
3705     noconfigdirs="$noconfigdirs ld gas gprof"
3706     noconfigdirs="$noconfigdirs sim target-rda"
3707     ;;
3708   *-*-darwin*)
3709     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3710     noconfigdirs="$noconfigdirs sim target-rda"
3711     ;;
3712   *-*-dragonfly*)
3713     ;;
3714   *-*-freebsd*)
3715     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3716         && test -f /usr/local/include/gmp.h; then
3717       with_gmp=/usr/local
3718     fi
3719     ;;
3720   *-*-kaos*)
3721     # Remove unsupported stuff on all kaOS configurations.
3722     noconfigdirs="$noconfigdirs target-libgloss"
3723     ;;
3724   *-*-netbsd*)
3725     ;;
3726   *-*-netware*)
3727     ;;
3728   *-*-rtems*)
3729     noconfigdirs="$noconfigdirs target-libgloss"
3730     # this is not caught below because this stanza matches earlier
3731     case $target in
3732       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3733     esac
3734     ;;
3735     # The tpf target doesn't support gdb yet.
3736   *-*-tpf*)
3737     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3738     ;;
3739   *-*-uclinux*)
3740     noconfigdirs="$noconfigdirs target-rda"
3741     ;;
3742   *-*-vxworks*)
3743     ;;
3744   alpha*-dec-osf*)
3745     # ld works, but does not support shared libraries.
3746     # gas doesn't generate exception information.
3747     noconfigdirs="$noconfigdirs gas ld"
3748     ;;
3749   alpha*-*-*vms*)
3750     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3751     ;;
3752   alpha*-*-*)
3753     # newlib is not 64 bit ready
3754     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755     ;;
3756   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3757     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3758     ;;
3759   arm-*-pe*)
3760     noconfigdirs="$noconfigdirs target-libgloss"
3761     ;;
3762   arm-*-riscix*)
3763     noconfigdirs="$noconfigdirs ld target-libgloss"
3764     ;;
3765   avr-*-rtems*)
3766     ;;
3767   avr-*-*)
3768     if test x${with_avrlibc} != xno; then
3769       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770     fi
3771     ;;
3772   c4x-*-* | tic4x-*-*)
3773     noconfigdirs="$noconfigdirs target-libgloss"
3774     ;;
3775   tic54x-*-*)
3776     noconfigdirs="$noconfigdirs target-libgloss gdb"
3777     ;;
3778   d10v-*-*)
3779     noconfigdirs="$noconfigdirs target-libgloss"
3780     ;;
3781   d30v-*-*)
3782     noconfigdirs="$noconfigdirs gdb"
3783     ;;
3784   fr30-*-elf*)
3785     noconfigdirs="$noconfigdirs gdb"
3786     ;;
3787   ft32-*-*)
3788     noconfigdirs="$noconfigdirs target-rda gprof"
3789     ;;
3790   moxie-*-*)
3791     noconfigdirs="$noconfigdirs"
3792     ;;
3793   h8300*-*-*)
3794     noconfigdirs="$noconfigdirs target-libgloss"
3795     ;;
3796   h8500-*-*)
3797     noconfigdirs="$noconfigdirs target-libgloss"
3798     ;;
3799   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3800     ;;
3801   hppa*64*-*-hpux*)
3802     noconfigdirs="$noconfigdirs gdb"
3803     ;;
3804   hppa*-*-hpux11*)
3805     noconfigdirs="$noconfigdirs gdb ld"
3806     ;;
3807   hppa*64*-*-linux*)
3808     ;;
3809   hppa*-*-linux*)
3810     ;;
3811   hppa*-*-*elf* | \
3812   hppa*-*-lites* | \
3813   hppa*-*-openbsd* | \
3814   hppa*64*-*-*)
3815     ;;
3816   hppa*-*-pro*)
3817     ;;
3818   hppa*-*-*)
3819     noconfigdirs="$noconfigdirs ld"
3820     ;;
3821   i960-*-*)
3822     noconfigdirs="$noconfigdirs gdb"
3823     ;;
3824   ia64*-*-elf*)
3825     # No gdb support yet.
3826     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3827     ;;
3828   ia64*-**-hpux*)
3829     # No ld support yet.
3830     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3831     ;;
3832   ia64*-*-*vms*)
3833     # No ld support yet.
3834     noconfigdirs="$noconfigdirs libgui itcl ld"
3835     ;;
3836   i[3456789]86-w64-mingw*)
3837     ;;
3838   i[3456789]86-*-mingw*)
3839     target_configdirs="$target_configdirs target-winsup"
3840     ;;
3841   *-*-cygwin*)
3842     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3843     noconfigdirs="$noconfigdirs target-libgloss"
3844     # always build newlib if winsup directory is present.
3845     if test -d "$srcdir/winsup/cygwin"; then
3846       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3847     elif test -d "$srcdir/newlib"; then
3848       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3849     fi
3850     ;;
3851   i[3456789]86-*-pe)
3852     noconfigdirs="$noconfigdirs target-libgloss"
3853     ;;
3854   i[3456789]86-*-sco3.2v5*)
3855     # The linker does not yet know about weak symbols in COFF,
3856     # and is not configured to handle mixed ELF and COFF.
3857     noconfigdirs="$noconfigdirs ld target-libgloss"
3858     ;;
3859   i[3456789]86-*-sco*)
3860     noconfigdirs="$noconfigdirs gprof target-libgloss"
3861     ;;
3862   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3863     noconfigdirs="$noconfigdirs target-libgloss"
3864     ;;
3865   i[3456789]86-*-sysv4*)
3866     noconfigdirs="$noconfigdirs target-libgloss"
3867     ;;
3868   i[3456789]86-*-beos*)
3869     noconfigdirs="$noconfigdirs gdb"
3870     ;;
3871   i[3456789]86-*-rdos*)
3872     noconfigdirs="$noconfigdirs gdb"
3873     ;;
3874   mmix-*-*)
3875     noconfigdirs="$noconfigdirs gdb"
3876     ;;
3877   mt-*-*)
3878     noconfigdirs="$noconfigdirs sim"
3879     ;;
3880   powerpc-*-aix*)
3881     # copied from rs6000-*-* entry
3882     noconfigdirs="$noconfigdirs gprof"
3883     ;;
3884   powerpc*-*-winnt* | powerpc*-*-pe*)
3885     target_configdirs="$target_configdirs target-winsup"
3886     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3887     # always build newlib.
3888     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889     ;;
3890     # This is temporary until we can link against shared libraries
3891   powerpcle-*-solaris*)
3892     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3893     ;;
3894   powerpc-*-beos*)
3895     noconfigdirs="$noconfigdirs gdb"
3896     ;;
3897   rs6000-*-lynxos*)
3898     noconfigdirs="$noconfigdirs gprof"
3899     ;;
3900   rs6000-*-aix*)
3901     noconfigdirs="$noconfigdirs gprof"
3902     ;;
3903   rs6000-*-*)
3904     noconfigdirs="$noconfigdirs gprof"
3905     ;;
3906   m68k-apollo-*)
3907     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3908     ;;
3909   microblaze*)
3910     noconfigdirs="$noconfigdirs gprof"
3911     ;;
3912   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3913     if test x$with_newlib = xyes; then
3914       noconfigdirs="$noconfigdirs gprof"
3915     fi
3916     ;;
3917   mips*-*-irix5*)
3918     noconfigdirs="$noconfigdirs gprof target-libgloss"
3919     ;;
3920   mips*-*-irix6*)
3921     noconfigdirs="$noconfigdirs gprof target-libgloss"
3922     ;;
3923   mips*-*-bsd*)
3924     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3925     ;;
3926   mips*-*-linux*)
3927     ;;
3928   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3929   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3930     noconfigdirs="$noconfigdirs ld gas gprof"
3931     ;;
3932   mips*-*-*)
3933     noconfigdirs="$noconfigdirs gprof"
3934     ;;
3935   nds32*-*-*)
3936     noconfigdirs="$noconfigdirs gdb"
3937     ;;
3938   nvptx*-*-*)
3939     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3940     ;;
3941   or1k*-*-*)
3942     noconfigdirs="$noconfigdirs gdb"
3943     ;;
3944   sh-*-*)
3945     case "${target}" in
3946       sh*-*-elf)
3947          ;;
3948       *)
3949          noconfigdirs="$noconfigdirs target-libgloss" ;;
3950     esac
3951     ;;
3952   sparc-*-sunos4*)
3953     if test x${is_cross_compiler} = xno ; then
3954            use_gnu_ld=no
3955     fi
3956     ;;
3957   tic6x-*-*)
3958     noconfigdirs="$noconfigdirs sim"
3959     ;;
3960   tilepro*-*-* | tilegx*-*-*)
3961     noconfigdirs="$noconfigdirs sim"
3962     ;;
3963   v810-*-*)
3964     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3965     ;;
3966   vax-*-*)
3967     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3968     ;;
3969 esac
3970
3971 # If we aren't building newlib, then don't build libgloss, since libgloss
3972 # depends upon some newlib header files.
3973 case "${noconfigdirs}" in
3974   *target-libgloss*) ;;
3975   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3976 esac
3977
3978 # Work in distributions that contain no compiler tools, like Autoconf.
3979 host_makefile_frag=/dev/null
3980 if test -d ${srcdir}/config ; then
3981 case "${host}" in
3982   i[3456789]86-*-msdosdjgpp*)
3983     host_makefile_frag="config/mh-djgpp"
3984     ;;
3985   *-cygwin*)
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988 $as_echo_n "checking to see if cat works as expected... " >&6; }
3989 echo a >cygwin-cat-check
3990 if test `cat cygwin-cat-check` = a ; then
3991   rm cygwin-cat-check
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995   rm cygwin-cat-check
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998   as_fn_error "The cat command does not ignore carriage return characters.
3999   Please either mount the build directory in binary mode or run the following
4000   commands before running any configure script:
4001 set -o igncr
4002 export SHELLOPTS
4003   " "$LINENO" 5
4004 fi
4005
4006     host_makefile_frag="config/mh-cygwin"
4007     ;;
4008   *-mingw*)
4009     host_makefile_frag="config/mh-mingw"
4010     ;;
4011   alpha*-linux*)
4012     host_makefile_frag="config/mh-alpha-linux"
4013     ;;
4014   hppa*-hp-hpux10*)
4015     host_makefile_frag="config/mh-pa-hpux10"
4016     ;;
4017   hppa*-hp-hpux*)
4018     host_makefile_frag="config/mh-pa"
4019     ;;
4020   hppa*-*)
4021     host_makefile_frag="config/mh-pa"
4022     ;;
4023   *-*-darwin*)
4024     host_makefile_frag="config/mh-darwin"
4025     ;;
4026   powerpc-*-aix*)
4027     host_makefile_frag="config/mh-ppc-aix"
4028     ;;
4029   rs6000-*-aix*)
4030     host_makefile_frag="config/mh-ppc-aix"
4031     ;;
4032 esac
4033 fi
4034
4035 if test "${build}" != "${host}" ; then
4036   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4037   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4038   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4039   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4040   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4041   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4042   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4043   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4044   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4045   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4046   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4047   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4048   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4049 else
4050   AR_FOR_BUILD="\$(AR)"
4051   AS_FOR_BUILD="\$(AS)"
4052   CC_FOR_BUILD="\$(CC)"
4053   CXX_FOR_BUILD="\$(CXX)"
4054   GCJ_FOR_BUILD="\$(GCJ)"
4055   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4056   GOC_FOR_BUILD="\$(GOC)"
4057   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4058   LD_FOR_BUILD="\$(LD)"
4059   NM_FOR_BUILD="\$(NM)"
4060   RANLIB_FOR_BUILD="\$(RANLIB)"
4061   WINDRES_FOR_BUILD="\$(WINDRES)"
4062   WINDMC_FOR_BUILD="\$(WINDMC)"
4063 fi
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_CC+set}" = set; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if test -n "$CC"; then
4079   ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093   done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108 fi
4109 if test -z "$ac_cv_prog_CC"; then
4110   ac_ct_CC=$CC
4111   # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -n "$ac_ct_CC"; then
4119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128     ac_cv_prog_ac_ct_CC="gcc"
4129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133   done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4142 else
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147   if test "x$ac_ct_CC" = x; then
4148     CC=""
4149   else
4150     case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156     CC=$ac_ct_CC
4157   fi
4158 else
4159   CC="$ac_cv_prog_CC"
4160 fi
4161
4162 if test -z "$CC"; then
4163           if test -n "$ac_tool_prefix"; then
4164     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -n "$CC"; then
4172   ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_exec_ext in '' $ac_executable_extensions; do
4180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181     ac_cv_prog_CC="${ac_tool_prefix}cc"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201   fi
4202 fi
4203 if test -z "$CC"; then
4204   # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_CC+set}" = set; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -n "$CC"; then
4212   ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214   ac_prog_rejected=no
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223        ac_prog_rejected=yes
4224        continue
4225      fi
4226     ac_cv_prog_CC="cc"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4233
4234 if test $ac_prog_rejected = yes; then
4235   # We found a bogon in the path, so make sure we never use it.
4236   set dummy $ac_cv_prog_CC
4237   shift
4238   if test $# != 0; then
4239     # We chose a different compiler from the bogus one.
4240     # However, it has the same basename, so the bogon will be chosen
4241     # first if we set CC to just the basename; use the full file name.
4242     shift
4243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244   fi
4245 fi
4246 fi
4247 fi
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258 fi
4259 if test -z "$CC"; then
4260   if test -n "$ac_tool_prefix"; then
4261   for ac_prog in cl.exe
4262   do
4263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_CC+set}" = set; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$CC"; then
4271   ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300     test -n "$CC" && break
4301   done
4302 fi
4303 if test -z "$CC"; then
4304   ac_ct_CC=$CC
4305   for ac_prog in cl.exe
4306 do
4307   # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if test -n "$ac_ct_CC"; then
4315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322     for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_prog_ac_ct_CC="$ac_prog"
4325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329   done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4338 else
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344   test -n "$ac_ct_CC" && break
4345 done
4346
4347   if test "x$ac_ct_CC" = x; then
4348     CC=""
4349   else
4350     case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356     CC=$ac_ct_CC
4357   fi
4358 fi
4359
4360 fi
4361
4362
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error "no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." "$LINENO" 5; }
4367
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4370 set X $ac_compile
4371 ac_compiler=$2
4372 for ac_option in --version -v -V -qversion; do
4373   { { ac_try="$ac_compiler $ac_option >&5"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4381   ac_status=$?
4382   if test -s conftest.err; then
4383     sed '10a\
4384 ... rest of stderr output deleted ...
4385          10q' conftest.err >conftest.er1
4386     cat conftest.er1 >&5
4387     rm -f conftest.er1 conftest.err
4388   fi
4389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390   test $ac_status = 0; }
4391 done
4392
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395
4396 int
4397 main ()
4398 {
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4408 # of exeext.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4410 $as_echo_n "checking for C compiler default output file name... " >&6; }
4411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413 # The possible output files:
4414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416 ac_rmfiles=
4417 for ac_file in $ac_files
4418 do
4419   case $ac_file in
4420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422   esac
4423 done
4424 rm -f $ac_rmfiles
4425
4426 if { { ac_try="$ac_link_default"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_link_default") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }; then :
4437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4441 # Autoconf.
4442 for ac_file in $ac_files ''
4443 do
4444   test -f "$ac_file" || continue
4445   case $ac_file in
4446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447         ;;
4448     [ab].out )
4449         # We found the default executable, but exeext='' is most
4450         # certainly right.
4451         break;;
4452     *.* )
4453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4454         then :; else
4455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456         fi
4457         # We set ac_cv_exeext here because the later test for it is not
4458         # safe: cross compilers may not add the suffix if given an `-o'
4459         # argument, so we may need to know it at that point already.
4460         # Even if this section looks crufty: it has the advantage of
4461         # actually working.
4462         break;;
4463     * )
4464         break;;
4465   esac
4466 done
4467 test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469 else
4470   ac_file=''
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4473 $as_echo "$ac_file" >&6; }
4474 if test -z "$ac_file"; then :
4475   $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 { as_fn_set_status 77
4481 as_fn_error "C compiler cannot create executables
4482 See \`config.log' for more details." "$LINENO" 5; }; }
4483 fi
4484 ac_exeext=$ac_cv_exeext
4485
4486 # Check that the compiler produces executables we can run.  If not, either
4487 # the compiler is broken, or we cross compile.
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4489 $as_echo_n "checking whether the C compiler works... " >&6; }
4490 # If not cross compiling, check that we can run a simple program.
4491 if test "$cross_compiling" != yes; then
4492   if { ac_try='./$ac_file'
4493   { { case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502   test $ac_status = 0; }; }; then
4503     cross_compiling=no
4504   else
4505     if test "$cross_compiling" = maybe; then
4506         cross_compiling=yes
4507     else
4508         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error "cannot run C compiled programs.
4511 If you meant to cross compile, use \`--host'.
4512 See \`config.log' for more details." "$LINENO" 5; }
4513     fi
4514   fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517 $as_echo "yes" >&6; }
4518
4519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4520 ac_clean_files=$ac_clean_files_save
4521 # Check that the compiler produces executables we can run.  If not, either
4522 # the compiler is broken, or we cross compile.
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4524 $as_echo_n "checking whether we are cross compiling... " >&6; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4526 $as_echo "$cross_compiling" >&6; }
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4529 $as_echo_n "checking for suffix of executables... " >&6; }
4530 if { { ac_try="$ac_link"
4531 case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537   (eval "$ac_link") 2>&5
4538   ac_status=$?
4539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540   test $ac_status = 0; }; then :
4541   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4542 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4543 # work properly (i.e., refer to `conftest.exe'), while it won't with
4544 # `rm'.
4545 for ac_file in conftest.exe conftest conftest.*; do
4546   test -f "$ac_file" || continue
4547   case $ac_file in
4548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4549     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4550           break;;
4551     * ) break;;
4552   esac
4553 done
4554 else
4555   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error "cannot compute suffix of executables: cannot compile and link
4558 See \`config.log' for more details." "$LINENO" 5; }
4559 fi
4560 rm -f conftest$ac_cv_exeext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4562 $as_echo "$ac_cv_exeext" >&6; }
4563
4564 rm -f conftest.$ac_ext
4565 EXEEXT=$ac_cv_exeext
4566 ac_exeext=$EXEEXT
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if test "${ac_cv_objext+set}" = set; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try="$ac_compile"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591   (eval "$ac_compile") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594   test $ac_status = 0; }; then :
4595   for ac_file in conftest.o conftest.obj conftest.*; do
4596   test -f "$ac_file" || continue;
4597   case $ac_file in
4598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600        break;;
4601   esac
4602 done
4603 else
4604   $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error "cannot compute suffix of object files: cannot compile
4610 See \`config.log' for more details." "$LINENO" 5; }
4611 fi
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4617 ac_objext=$OBJEXT
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629 #ifndef __GNUC__
4630        choke me
4631 #endif
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638   ac_compiler_gnu=yes
4639 else
4640   ac_compiler_gnu=no
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4649   GCC=yes
4650 else
4651   GCC=
4652 fi
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if test "${ac_cv_prog_cc_g+set}" = set; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   ac_save_c_werror_flag=$ac_c_werror_flag
4661    ac_c_werror_flag=yes
4662    ac_cv_prog_cc_g=no
4663    CFLAGS="-g"
4664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   ac_cv_prog_cc_g=yes
4677 else
4678   CFLAGS=""
4679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691
4692 else
4693   ac_c_werror_flag=$ac_save_c_werror_flag
4694          CFLAGS="-g"
4695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   ac_cv_prog_cc_g=yes
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714    ac_c_werror_flag=$ac_save_c_werror_flag
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719   CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721   if test "$GCC" = yes; then
4722     CFLAGS="-g -O2"
4723   else
4724     CFLAGS="-g"
4725   fi
4726 else
4727   if test "$GCC" = yes; then
4728     CFLAGS="-O2"
4729   else
4730     CFLAGS=
4731   fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   ac_cv_prog_cc_c89=no
4739 ac_save_CC=$CC
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <stdarg.h>
4743 #include <stdio.h>
4744 #include <sys/types.h>
4745 #include <sys/stat.h>
4746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4747 struct buf { int x; };
4748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4749 static char *e (p, i)
4750      char **p;
4751      int i;
4752 {
4753   return p[i];
4754 }
4755 static char *f (char * (*g) (char **, int), char **p, ...)
4756 {
4757   char *s;
4758   va_list v;
4759   va_start (v,p);
4760   s = g (p, va_arg (v,int));
4761   va_end (v);
4762   return s;
4763 }
4764
4765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4766    function prototypes and stuff, but not '\xHH' hex character constants.
4767    These don't provoke an error unfortunately, instead are silently treated
4768    as 'x'.  The following induces an error, until -std is added to get
4769    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4770    array size at least.  It's necessary to write '\x00'==0 to get something
4771    that's true only with -std.  */
4772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4773
4774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4775    inside strings and character constants.  */
4776 #define FOO(x) 'x'
4777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4778
4779 int test (int i, double x);
4780 struct s1 {int (*f) (int a);};
4781 struct s2 {int (*f) (double a);};
4782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4783 int argc;
4784 char **argv;
4785 int
4786 main ()
4787 {
4788 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4794         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 do
4796   CC="$ac_save_CC $ac_arg"
4797   if ac_fn_c_try_compile "$LINENO"; then :
4798   ac_cv_prog_cc_c89=$ac_arg
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext
4801   test "x$ac_cv_prog_cc_c89" != "xno" && break
4802 done
4803 rm -f conftest.$ac_ext
4804 CC=$ac_save_CC
4805
4806 fi
4807 # AC_CACHE_VAL
4808 case "x$ac_cv_prog_cc_c89" in
4809   x)
4810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4811 $as_echo "none needed" >&6; } ;;
4812   xno)
4813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4814 $as_echo "unsupported" >&6; } ;;
4815   *)
4816     CC="$CC $ac_cv_prog_cc_c89"
4817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4819 esac
4820 if test "x$ac_cv_prog_cc_c89" != xno; then :
4821
4822 fi
4823
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830 ac_ext=cpp
4831 ac_cpp='$CXXCPP $CPPFLAGS'
4832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 if test -z "$CXX"; then
4836   if test -n "$CCC"; then
4837     CXX=$CCC
4838   else
4839     if test -n "$ac_tool_prefix"; then
4840   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841   do
4842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_CXX+set}" = set; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if test -n "$CXX"; then
4850   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 CXX=$ac_cv_prog_CXX
4870 if test -n "$CXX"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4872 $as_echo "$CXX" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879     test -n "$CXX" && break
4880   done
4881 fi
4882 if test -z "$CXX"; then
4883   ac_ct_CXX=$CXX
4884   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4885 do
4886   # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -n "$ac_ct_CXX"; then
4894   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_prog_ac_ct_CXX="$ac_prog"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4914 if test -n "$ac_ct_CXX"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4916 $as_echo "$ac_ct_CXX" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923   test -n "$ac_ct_CXX" && break
4924 done
4925
4926   if test "x$ac_ct_CXX" = x; then
4927     CXX="g++"
4928   else
4929     case $cross_compiling:$ac_tool_warned in
4930 yes:)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935     CXX=$ac_ct_CXX
4936   fi
4937 fi
4938
4939   fi
4940 fi
4941 # Provide some information about the compiler.
4942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4943 set X $ac_compile
4944 ac_compiler=$2
4945 for ac_option in --version -v -V -qversion; do
4946   { { ac_try="$ac_compiler $ac_option >&5"
4947 case "(($ac_try" in
4948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949   *) ac_try_echo=$ac_try;;
4950 esac
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 $as_echo "$ac_try_echo"; } >&5
4953   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4954   ac_status=$?
4955   if test -s conftest.err; then
4956     sed '10a\
4957 ... rest of stderr output deleted ...
4958          10q' conftest.err >conftest.er1
4959     cat conftest.er1 >&5
4960     rm -f conftest.er1 conftest.err
4961   fi
4962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963   test $ac_status = 0; }
4964 done
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4967 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4968 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973
4974 int
4975 main ()
4976 {
4977 #ifndef __GNUC__
4978        choke me
4979 #endif
4980
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_cxx_try_compile "$LINENO"; then :
4986   ac_compiler_gnu=yes
4987 else
4988   ac_compiler_gnu=no
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4992
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4995 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4996 if test $ac_compiler_gnu = yes; then
4997   GXX=yes
4998 else
4999   GXX=
5000 fi
5001 ac_test_CXXFLAGS=${CXXFLAGS+set}
5002 ac_save_CXXFLAGS=$CXXFLAGS
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5004 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5005 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5009    ac_cxx_werror_flag=yes
5010    ac_cv_prog_cxx_g=no
5011    CXXFLAGS="-g"
5012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h.  */
5014
5015 int
5016 main ()
5017 {
5018
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 if ac_fn_cxx_try_compile "$LINENO"; then :
5024   ac_cv_prog_cxx_g=yes
5025 else
5026   CXXFLAGS=""
5027       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029
5030 int
5031 main ()
5032 {
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 if ac_fn_cxx_try_compile "$LINENO"; then :
5039
5040 else
5041   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5042          CXXFLAGS="-g"
5043          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h.  */
5045
5046 int
5047 main ()
5048 {
5049
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_cxx_try_compile "$LINENO"; then :
5055   ac_cv_prog_cxx_g=yes
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5065 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5066 if test "$ac_test_CXXFLAGS" = set; then
5067   CXXFLAGS=$ac_save_CXXFLAGS
5068 elif test $ac_cv_prog_cxx_g = yes; then
5069   if test "$GXX" = yes; then
5070     CXXFLAGS="-g -O2"
5071   else
5072     CXXFLAGS="-g"
5073   fi
5074 else
5075   if test "$GXX" = yes; then
5076     CXXFLAGS="-O2"
5077   else
5078     CXXFLAGS=
5079   fi
5080 fi
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087
5088 # We must set the default linker to the linker used by gcc for the correct
5089 # operation of libtool.  If LD is not defined and we are using gcc, try to
5090 # set the LD default to the ld used by gcc.
5091 if test -z "$LD"; then
5092   if test "$GCC" = yes; then
5093     case $build in
5094     *-*-mingw*)
5095       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5096     *)
5097       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5098     esac
5099     case $gcc_prog_ld in
5100     # Accept absolute paths.
5101     [\\/]* | [A-Za-z]:[\\/]*)
5102       LD="$gcc_prog_ld" ;;
5103     esac
5104   fi
5105 fi
5106
5107 # Check whether -static-libstdc++ -static-libgcc is supported.
5108 have_static_libs=no
5109 if test "$GCC" = yes; then
5110   saved_LDFLAGS="$LDFLAGS"
5111
5112   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5114 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5115   ac_ext=cpp
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120
5121
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124
5125 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5126 #error -static-libstdc++ not implemented
5127 #endif
5128 int main() {}
5129 _ACEOF
5130 if ac_fn_cxx_try_link "$LINENO"; then :
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132 $as_echo "yes" >&6; }; have_static_libs=yes
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext \
5138     conftest$ac_exeext conftest.$ac_ext
5139   ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145
5146   LDFLAGS="$saved_LDFLAGS"
5147 fi
5148
5149
5150
5151
5152 if test -n "$ac_tool_prefix"; then
5153   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   if test -n "$GNATBIND"; then
5161   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175   done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 GNATBIND=$ac_cv_prog_GNATBIND
5181 if test -n "$GNATBIND"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5183 $as_echo "$GNATBIND" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 fi
5191 if test -z "$ac_cv_prog_GNATBIND"; then
5192   ac_ct_GNATBIND=$GNATBIND
5193   # Extract the first word of "gnatbind", so it can be a program name with args.
5194 set dummy gnatbind; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   if test -n "$ac_ct_GNATBIND"; then
5201   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5221 if test -n "$ac_ct_GNATBIND"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5223 $as_echo "$ac_ct_GNATBIND" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229   if test "x$ac_ct_GNATBIND" = x; then
5230     GNATBIND="no"
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238     GNATBIND=$ac_ct_GNATBIND
5239   fi
5240 else
5241   GNATBIND="$ac_cv_prog_GNATBIND"
5242 fi
5243
5244 if test -n "$ac_tool_prefix"; then
5245   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -n "$GNATMAKE"; then
5253   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 GNATMAKE=$ac_cv_prog_GNATMAKE
5273 if test -n "$GNATMAKE"; then
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5275 $as_echo "$GNATMAKE" >&6; }
5276 else
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_GNATMAKE"; then
5284   ac_ct_GNATMAKE=$GNATMAKE
5285   # Extract the first word of "gnatmake", so it can be a program name with args.
5286 set dummy gnatmake; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   if test -n "$ac_ct_GNATMAKE"; then
5293   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300     for ac_exec_ext in '' $ac_executable_extensions; do
5301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307   done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5313 if test -n "$ac_ct_GNATMAKE"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5315 $as_echo "$ac_ct_GNATMAKE" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321   if test "x$ac_ct_GNATMAKE" = x; then
5322     GNATMAKE="no"
5323   else
5324     case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330     GNATMAKE=$ac_ct_GNATMAKE
5331   fi
5332 else
5333   GNATMAKE="$ac_cv_prog_GNATMAKE"
5334 fi
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5337 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5338 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   cat >conftest.adb <<EOF
5342 procedure conftest is begin null; end conftest;
5343 EOF
5344 acx_cv_cc_gcc_supports_ada=no
5345 # There is a bug in old released versions of GCC which causes the
5346 # driver to exit successfully when the appropriate language module
5347 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5348 # Therefore we must check for the error message as well as an
5349 # unsuccessful exit.
5350 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5351 # given a .adb file, but produce no object file.  So we must check
5352 # if an object file was really produced to guard against this.
5353 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5354 if test x"$errors" = x && test -f conftest.$ac_objext; then
5355   acx_cv_cc_gcc_supports_ada=yes
5356 fi
5357 rm -f conftest.*
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5360 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5361
5362 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5363   have_gnat=yes
5364 else
5365   have_gnat=no
5366 fi
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5369 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5370 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373    echo abfoo >t1
5374   echo cdfoo >t2
5375   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5376   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5377     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5378       :
5379     else
5380       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5381     fi
5382   fi
5383   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5384     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5385       :
5386     else
5387       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5388     fi
5389   fi
5390   rm t1 t2
5391
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5394 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5395 do_compare="$gcc_cv_prog_cmp_skip"
5396
5397
5398
5399 # Check whether --enable-bootstrap was given.
5400 if test "${enable_bootstrap+set}" = set; then :
5401   enableval=$enable_bootstrap;
5402 else
5403   enable_bootstrap=default
5404 fi
5405
5406
5407 # Issue errors and warnings for invalid/strange bootstrap combinations.
5408 if test -r $srcdir/gcc/configure; then
5409   have_compiler=yes
5410 else
5411   have_compiler=no
5412 fi
5413
5414 case "$have_compiler:$host:$target:$enable_bootstrap" in
5415   *:*:*:no) ;;
5416
5417   # Default behavior.  Enable bootstrap if we have a compiler
5418   # and we are in a native configuration.
5419   yes:$build:$build:default)
5420     enable_bootstrap=yes ;;
5421
5422   *:*:*:default)
5423     enable_bootstrap=no ;;
5424
5425   # We have a compiler and we are in a native configuration, bootstrap is ok
5426   yes:$build:$build:yes)
5427     ;;
5428
5429   # Other configurations, but we have a compiler.  Assume the user knows
5430   # what he's doing.
5431   yes:*:*:yes)
5432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5433 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5434     ;;
5435
5436   # No compiler: if they passed --enable-bootstrap explicitly, fail
5437   no:*:*:yes)
5438     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5439
5440   # Fail if wrong command line
5441   *)
5442     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5443     ;;
5444 esac
5445
5446 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5447 # C++98 compiler can still start the bootstrap.
5448 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5449   CXX="$CXX -std=gnu++98"
5450 fi
5451
5452 # Used for setting $lt_cv_objdir
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5454 $as_echo_n "checking for objdir... " >&6; }
5455 if test "${lt_cv_objdir+set}" = set; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   rm -f .libs 2>/dev/null
5459 mkdir .libs 2>/dev/null
5460 if test -d .libs; then
5461   lt_cv_objdir=.libs
5462 else
5463   # MS-DOS does not allow filenames that begin with a dot.
5464   lt_cv_objdir=_libs
5465 fi
5466 rmdir .libs 2>/dev/null
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5469 $as_echo "$lt_cv_objdir" >&6; }
5470 objdir=$lt_cv_objdir
5471
5472
5473
5474
5475
5476 cat >>confdefs.h <<_ACEOF
5477 #define LT_OBJDIR "$lt_cv_objdir/"
5478 _ACEOF
5479
5480
5481
5482 # Check for GMP, MPFR and MPC
5483 gmplibs="-lmpc -lmpfr -lgmp"
5484 gmpinc=
5485 have_gmp=no
5486
5487 # Specify a location for mpc
5488 # check for this first so it ends up on the link line before mpfr.
5489
5490 # Check whether --with-mpc was given.
5491 if test "${with_mpc+set}" = set; then :
5492   withval=$with_mpc;
5493 fi
5494
5495
5496 # Check whether --with-mpc-include was given.
5497 if test "${with_mpc_include+set}" = set; then :
5498   withval=$with_mpc_include;
5499 fi
5500
5501
5502 # Check whether --with-mpc-lib was given.
5503 if test "${with_mpc_lib+set}" = set; then :
5504   withval=$with_mpc_lib;
5505 fi
5506
5507
5508 if test "x$with_mpc" != x; then
5509   gmplibs="-L$with_mpc/lib $gmplibs"
5510   gmpinc="-I$with_mpc/include $gmpinc"
5511 fi
5512 if test "x$with_mpc_include" != x; then
5513   gmpinc="-I$with_mpc_include $gmpinc"
5514 fi
5515 if test "x$with_mpc_lib" != x; then
5516   gmplibs="-L$with_mpc_lib $gmplibs"
5517 fi
5518 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5519   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5520   gmpinc='-I$$s/mpc/src '"$gmpinc"
5521   # Do not test the mpc version.  Assume that it is sufficient, since
5522   # it is in the source tree, and the library has not been built yet
5523   # but it would be included on the link line in the version check below
5524   # hence making the test fail.
5525   have_gmp=yes
5526 fi
5527
5528 # Specify a location for mpfr
5529 # check for this first so it ends up on the link line before gmp.
5530
5531 # Check whether --with-mpfr-dir was given.
5532 if test "${with_mpfr_dir+set}" = set; then :
5533   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5534 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5535 fi
5536
5537
5538
5539 # Check whether --with-mpfr was given.
5540 if test "${with_mpfr+set}" = set; then :
5541   withval=$with_mpfr;
5542 fi
5543
5544
5545 # Check whether --with-mpfr-include was given.
5546 if test "${with_mpfr_include+set}" = set; then :
5547   withval=$with_mpfr_include;
5548 fi
5549
5550
5551 # Check whether --with-mpfr-lib was given.
5552 if test "${with_mpfr_lib+set}" = set; then :
5553   withval=$with_mpfr_lib;
5554 fi
5555
5556
5557 if test "x$with_mpfr" != x; then
5558   gmplibs="-L$with_mpfr/lib $gmplibs"
5559   gmpinc="-I$with_mpfr/include $gmpinc"
5560 fi
5561 if test "x$with_mpfr_include" != x; then
5562   gmpinc="-I$with_mpfr_include $gmpinc"
5563 fi
5564 if test "x$with_mpfr_lib" != x; then
5565   gmplibs="-L$with_mpfr_lib $gmplibs"
5566 fi
5567 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5568   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5569   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5570   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5571   # Do not test the mpfr version.  Assume that it is sufficient, since
5572   # it is in the source tree, and the library has not been built yet
5573   # but it would be included on the link line in the version check below
5574   # hence making the test fail.
5575   have_gmp=yes
5576 fi
5577
5578 # Specify a location for gmp
5579
5580 # Check whether --with-gmp-dir was given.
5581 if test "${with_gmp_dir+set}" = set; then :
5582   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5583 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5584 fi
5585
5586
5587
5588 # Check whether --with-gmp was given.
5589 if test "${with_gmp+set}" = set; then :
5590   withval=$with_gmp;
5591 fi
5592
5593
5594 # Check whether --with-gmp-include was given.
5595 if test "${with_gmp_include+set}" = set; then :
5596   withval=$with_gmp_include;
5597 fi
5598
5599
5600 # Check whether --with-gmp-lib was given.
5601 if test "${with_gmp_lib+set}" = set; then :
5602   withval=$with_gmp_lib;
5603 fi
5604
5605
5606
5607 if test "x$with_gmp" != x; then
5608   gmplibs="-L$with_gmp/lib $gmplibs"
5609   gmpinc="-I$with_gmp/include $gmpinc"
5610 fi
5611 if test "x$with_gmp_include" != x; then
5612   gmpinc="-I$with_gmp_include $gmpinc"
5613 fi
5614 if test "x$with_gmp_lib" != x; then
5615   gmplibs="-L$with_gmp_lib $gmplibs"
5616 fi
5617 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5618   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5619   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5620   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5621   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5622   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5623   # Do not test the gmp version.  Assume that it is sufficient, since
5624   # it is in the source tree, and the library has not been built yet
5625   # but it would be included on the link line in the version check below
5626   # hence making the test fail.
5627   have_gmp=yes
5628 fi
5629
5630 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5631   have_gmp=yes
5632   saved_CFLAGS="$CFLAGS"
5633   CFLAGS="$CFLAGS $gmpinc"
5634   # Check for the recommended and required versions of GMP.
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5636 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5637
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 #include "gmp.h"
5641 int
5642 main ()
5643 {
5644
5645   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5646   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5647   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5648   choke me
5649   #endif
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h.  */
5658 #include <gmp.h>
5659 int
5660 main ()
5661 {
5662
5663   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5664   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5665   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5666   choke me
5667   #endif
5668
5669   ;
5670   return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5678 $as_echo "buggy but acceptable" >&6; }
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }; have_gmp=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686
5687   # If we have GMP, check the MPFR version.
5688   if test x"$have_gmp" = xyes; then
5689     # Check for the recommended and required versions of MPFR.
5690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5691 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694 #include <gmp.h>
5695     #include <mpfr.h>
5696 int
5697 main ()
5698 {
5699
5700     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5701     choke me
5702     #endif
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h.  */
5711 #include <gmp.h>
5712     #include <mpfr.h>
5713 int
5714 main ()
5715 {
5716
5717     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5718     choke me
5719     #endif
5720
5721   ;
5722   return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5727 $as_echo "yes" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5730 $as_echo "buggy but acceptable" >&6; }
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }; have_gmp=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738   fi
5739
5740   # Check for the MPC header version.
5741   if test x"$have_gmp" = xyes ; then
5742     # Check for the recommended and required versions of MPC.
5743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5744 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h.  */
5747 #include <mpc.h>
5748 int
5749 main ()
5750 {
5751
5752     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5753     choke me
5754     #endif
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763 #include <mpc.h>
5764 int
5765 main ()
5766 {
5767
5768     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5769     choke me
5770     #endif
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5781 $as_echo "buggy but acceptable" >&6; }
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }; have_gmp=no
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789   fi
5790
5791   # Now check the MPFR library.
5792   if test x"$have_gmp" = xyes; then
5793     saved_LIBS="$LIBS"
5794     LIBS="$LIBS $gmplibs"
5795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5796 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h.  */
5799 #include <mpc.h>
5800 int
5801 main ()
5802 {
5803
5804     mpfr_t n;
5805     mpfr_t x;
5806     mpc_t c;
5807     int t;
5808     mpfr_init (n);
5809     mpfr_init (x);
5810     mpfr_atan2 (n, n, x, GMP_RNDN);
5811     mpfr_erfc (n, x, GMP_RNDN);
5812     mpfr_subnormalize (x, t, GMP_RNDN);
5813     mpfr_clear(n);
5814     mpfr_clear(x);
5815     mpc_init2 (c, 53);
5816     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5817     mpc_cosh (c, c, MPC_RNDNN);
5818     mpc_pow (c, c, c, MPC_RNDNN);
5819     mpc_acosh (c, c, MPC_RNDNN);
5820     mpc_clear (c);
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 if ac_fn_c_try_link "$LINENO"; then :
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }; have_gmp=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext \
5834     conftest$ac_exeext conftest.$ac_ext
5835     LIBS="$saved_LIBS"
5836   fi
5837
5838   CFLAGS="$saved_CFLAGS"
5839
5840 # The library versions listed in the error message below should match
5841 # the HARD-minimums enforced above.
5842   if test x$have_gmp != xyes; then
5843     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5844 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5845 their locations.  Source code for these libraries can be found at
5846 their respective hosting sites as well as at
5847 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5848 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5849 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5850 make sure that you have installed both the libraries and the header
5851 files.  They may be located in separate packages." "$LINENO" 5
5852   fi
5853 fi
5854
5855 # Flags needed for both GMP, MPFR and/or MPC.
5856
5857
5858
5859
5860
5861
5862
5863 # Libraries to use for stage1 or when not bootstrapping.
5864
5865 # Check whether --with-stage1-libs was given.
5866 if test "${with_stage1_libs+set}" = set; then :
5867   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5868    stage1_libs=
5869  else
5870    stage1_libs=$withval
5871  fi
5872 else
5873   stage1_libs=
5874 fi
5875
5876
5877
5878 # Linker flags to use for stage1 or when not bootstrapping.
5879
5880 # Check whether --with-stage1-ldflags was given.
5881 if test "${with_stage1_ldflags+set}" = set; then :
5882   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5883    stage1_ldflags=
5884  else
5885    stage1_ldflags=$withval
5886  fi
5887 else
5888   stage1_ldflags=
5889  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5890  # if supported.  But if the user explicitly specified the libraries to use,
5891  # trust that they are doing what they want.
5892  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5893    stage1_ldflags="-static-libstdc++ -static-libgcc"
5894  fi
5895 fi
5896
5897
5898
5899 # Libraries to use for stage2 and later builds.
5900
5901 # Check whether --with-boot-libs was given.
5902 if test "${with_boot_libs+set}" = set; then :
5903   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5904    poststage1_libs=
5905  else
5906    poststage1_libs=$withval
5907  fi
5908 else
5909   poststage1_libs=
5910 fi
5911
5912
5913
5914 # Linker flags to use for stage2 and later builds.
5915
5916 # Check whether --with-boot-ldflags was given.
5917 if test "${with_boot_ldflags+set}" = set; then :
5918   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5919    poststage1_ldflags=
5920  else
5921    poststage1_ldflags=$withval
5922  fi
5923 else
5924   poststage1_ldflags=
5925  # In stages 2 and 3, default to linking libstdc++ and libgcc
5926  # statically.  But if the user explicitly specified the libraries to
5927  # use, trust that they are doing what they want.
5928  if test "$poststage1_libs" = ""; then
5929    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5930  fi
5931 fi
5932
5933
5934
5935 # GCC GRAPHITE dependency isl.
5936 # Basic setup is inlined here, actual checks are in config/isl.m4
5937
5938
5939 # Check whether --with-isl was given.
5940 if test "${with_isl+set}" = set; then :
5941   withval=$with_isl;
5942 fi
5943
5944
5945 # Treat --without-isl as a request to disable
5946 # GRAPHITE support and skip all following checks.
5947 if test "x$with_isl" != "xno"; then
5948   # Check for isl
5949
5950
5951 # Check whether --with-isl-include was given.
5952 if test "${with_isl_include+set}" = set; then :
5953   withval=$with_isl_include;
5954 fi
5955
5956
5957 # Check whether --with-isl-lib was given.
5958 if test "${with_isl_lib+set}" = set; then :
5959   withval=$with_isl_lib;
5960 fi
5961
5962
5963   # Check whether --enable-isl-version-check was given.
5964 if test "${enable_isl_version_check+set}" = set; then :
5965   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5966 else
5967   ENABLE_ISL_CHECK=yes
5968 fi
5969
5970
5971   # Initialize isllibs and islinc.
5972   case $with_isl in
5973     no)
5974       isllibs=
5975       islinc=
5976       ;;
5977     "" | yes)
5978       ;;
5979     *)
5980       isllibs="-L$with_isl/lib"
5981       islinc="-I$with_isl/include"
5982       ;;
5983   esac
5984   if test "x${with_isl_include}" != x ; then
5985     islinc="-I$with_isl_include"
5986   fi
5987   if test "x${with_isl_lib}" != x; then
5988     isllibs="-L$with_isl_lib"
5989   fi
5990         if test "x${islinc}" = x && test "x${isllibs}" = x \
5991      && test -d ${srcdir}/isl; then
5992     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5993     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5994     ENABLE_ISL_CHECK=no
5995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5996 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5997   fi
5998
5999   isllibs="${isllibs} -lisl"
6000
6001
6002
6003   if test "${ENABLE_ISL_CHECK}" = yes ; then
6004     _isl_saved_CFLAGS=$CFLAGS
6005     _isl_saved_LDFLAGS=$LDFLAGS
6006     _isl_saved_LIBS=$LIBS
6007
6008     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6009     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6010     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6011
6012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6013 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h.  */
6016 #include <isl/ctx.h>
6017 int
6018 main ()
6019 {
6020 isl_ctx_get_max_operations (isl_ctx_alloc ());
6021   ;
6022   return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026   gcc_cv_isl=yes
6027 else
6028   gcc_cv_isl=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031     conftest$ac_exeext conftest.$ac_ext
6032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6033 $as_echo "$gcc_cv_isl" >&6; }
6034
6035     if test "${gcc_cv_isl}" = no ; then
6036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6037 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6038     fi
6039
6040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6041 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h.  */
6044 #include <isl/schedule.h>
6045 int
6046 main ()
6047 {
6048 isl_options_set_schedule_serialize_sccs (NULL, 0);
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_link "$LINENO"; then :
6054   ac_has_isl_options_set_schedule_serialize_sccs=yes
6055 else
6056   ac_has_isl_options_set_schedule_serialize_sccs=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext \
6059     conftest$ac_exeext conftest.$ac_ext
6060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6061 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6062
6063     if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6064       islver="0.15"
6065
6066     fi
6067
6068     CFLAGS=$_isl_saved_CFLAGS
6069     LDFLAGS=$_isl_saved_LDFLAGS
6070     LIBS=$_isl_saved_LIBS
6071   fi
6072
6073
6074
6075
6076
6077
6078   if test "x${with_isl}" = xno; then
6079     graphite_requested=no
6080   elif test "x${with_isl}" != x \
6081     || test "x${with_isl_include}" != x \
6082     || test "x${with_isl_lib}" != x ; then
6083     graphite_requested=yes
6084   else
6085     graphite_requested=no
6086   fi
6087
6088
6089
6090   if test "${gcc_cv_isl}" = no ; then
6091     isllibs=
6092     islinc=
6093   fi
6094
6095   if test "${graphite_requested}" = yes \
6096     && test "x${isllibs}" = x \
6097     && test "x${islinc}" = x ; then
6098
6099     as_fn_error "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6100   fi
6101
6102
6103 fi
6104
6105 # If the isl check failed, disable builds of in-tree variant of isl
6106 if test "x$with_isl" = xno ||
6107    test "x$gcc_cv_isl" = xno; then
6108   noconfigdirs="$noconfigdirs isl"
6109   islinc=
6110 fi
6111
6112
6113
6114
6115 # Check for LTO support.
6116 # Check whether --enable-lto was given.
6117 if test "${enable_lto+set}" = set; then :
6118   enableval=$enable_lto; enable_lto=$enableval
6119 else
6120   enable_lto=yes; default_enable_lto=yes
6121 fi
6122
6123
6124
6125
6126
6127 target_elf=no
6128 case $target in
6129   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6130   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6131   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6132   nvptx-*-none)
6133     target_elf=no
6134     ;;
6135   *)
6136     target_elf=yes
6137     ;;
6138 esac
6139
6140 if test $target_elf = yes; then :
6141   # ELF platforms build the lto-plugin always.
6142   build_lto_plugin=yes
6143
6144 else
6145   if test x"$default_enable_lto" = x"yes" ; then
6146     case $target in
6147       *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6148       # On other non-ELF platforms, LTO has yet to be validated.
6149       *) enable_lto=no ;;
6150     esac
6151   else
6152   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6153   # It would also be nice to check the binutils support, but we don't
6154   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6155   # warn during gcc/ subconfigure; unless you're bootstrapping with
6156   # -flto it won't be needed until after installation anyway.
6157     case $target in
6158       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6159       *) if test x"$enable_lto" = x"yes"; then
6160         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6161         fi
6162       ;;
6163     esac
6164   fi
6165   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6166   # Build it unless LTO was explicitly disabled.
6167   case $target in
6168     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6169     *) ;;
6170   esac
6171
6172 fi
6173
6174
6175 # Check whether --enable-linker-plugin-configure-flags was given.
6176 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6177   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6178 else
6179   extra_linker_plugin_configure_flags=
6180 fi
6181
6182
6183 # Check whether --enable-linker-plugin-flags was given.
6184 if test "${enable_linker_plugin_flags+set}" = set; then :
6185   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6186 else
6187   extra_linker_plugin_flags=
6188 fi
6189
6190
6191
6192
6193 # By default, C and C++ are the only stage 1 languages.
6194 stage1_languages=,c,
6195
6196 # Target libraries that we bootstrap.
6197 bootstrap_target_libs=,target-libgcc,
6198
6199 # Figure out what language subdirectories are present.
6200 # Look if the user specified --enable-languages="..."; if not, use
6201 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6202 # go away some day.
6203 # NB:  embedded tabs in this IF block -- do not untabify
6204 if test -d ${srcdir}/gcc; then
6205   if test x"${enable_languages+set}" != xset; then
6206     if test x"${LANGUAGES+set}" = xset; then
6207       enable_languages="${LANGUAGES}"
6208         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6209     else
6210       enable_languages=all
6211     fi
6212   else
6213     if test x"${enable_languages}" = x ||
6214        test x"${enable_languages}" = xyes;
6215        then
6216       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6217       exit 1
6218     fi
6219   fi
6220   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6221
6222   # 'f95' is the old name for the 'fortran' language. We issue a warning
6223   # and make the substitution.
6224   case ,${enable_languages}, in
6225     *,f95,*)
6226       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6227       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6228       ;;
6229   esac
6230
6231   # If bootstrapping, C++ must be enabled.
6232   case ",$enable_languages,:$enable_bootstrap" in
6233     *,c++,*:*) ;;
6234     *:yes)
6235       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6236         enable_languages="${enable_languages},c++"
6237       else
6238         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6239       fi
6240       ;;
6241   esac
6242
6243   # First scan to see if an enabled language requires some other language.
6244   # We assume that a given config-lang.in will list all the language
6245   # front ends it requires, even if some are required indirectly.
6246   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6247     case ${lang_frag} in
6248       ..) ;;
6249       # The odd quoting in the next line works around
6250       # an apparent bug in bash 1.12 on linux.
6251       ${srcdir}/gcc/[*]/config-lang.in) ;;
6252       *)
6253         # From the config-lang.in, get $language, $lang_requires, and
6254         # $lang_requires_boot_languages.
6255         language=
6256         lang_requires=
6257         lang_requires_boot_languages=
6258         . ${lang_frag}
6259         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6260           case ,${enable_languages}, in
6261             *,$other,*) ;;
6262             *,all,*) ;;
6263             *,$language,*)
6264               echo " \`$other' language required by \`$language'; enabling" 1>&2
6265               enable_languages="${enable_languages},${other}"
6266               ;;
6267           esac
6268         done
6269         for other in ${lang_requires_boot_languages} ; do
6270           if test "$other" != "c"; then
6271             case ,${enable_stage1_languages}, in
6272               *,$other,*) ;;
6273               *,all,*) ;;
6274               *)
6275                 case ,${enable_languages}, in
6276                   *,$language,*)
6277                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6278                     enable_stage1_languages="$enable_stage1_languages,${other}"
6279                     ;;
6280                 esac
6281                 ;;
6282             esac
6283           fi
6284         done
6285         ;;
6286     esac
6287   done
6288
6289   new_enable_languages=,c,
6290
6291   # If LTO is enabled, add the LTO front end.
6292   if test "$enable_lto" = "yes" ; then
6293     case ,${enable_languages}, in
6294       *,lto,*) ;;
6295       *) enable_languages="${enable_languages},lto" ;;
6296     esac
6297     if test "${build_lto_plugin}" = "yes" ; then
6298       configdirs="$configdirs lto-plugin"
6299     fi
6300   fi
6301
6302   # If we're building an offloading compiler, add the LTO front end.
6303   if test x"$enable_as_accelerator_for" != x ; then
6304     case ,${enable_languages}, in
6305       *,lto,*) ;;
6306       *) enable_languages="${enable_languages},lto" ;;
6307     esac
6308   fi
6309
6310   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6311   potential_languages=,c,
6312
6313   enabled_target_libs=
6314   disabled_target_libs=
6315
6316   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6317     case ${lang_frag} in
6318       ..) ;;
6319       # The odd quoting in the next line works around
6320       # an apparent bug in bash 1.12 on linux.
6321       ${srcdir}/gcc/[*]/config-lang.in) ;;
6322       *)
6323         # From the config-lang.in, get $language, $target_libs,
6324         # $lang_dirs, $boot_language, and $build_by_default
6325         language=
6326         target_libs=
6327         lang_dirs=
6328         subdir_requires=
6329         boot_language=no
6330         build_by_default=yes
6331         . ${lang_frag}
6332         if test x${language} = x; then
6333           echo "${lang_frag} doesn't set \$language." 1>&2
6334           exit 1
6335         fi
6336
6337         if test "$language" = "c++"; then
6338           boot_language=yes
6339         fi
6340
6341         add_this_lang=no
6342         case ,${enable_languages}, in
6343           *,${language},*)
6344             # Language was explicitly selected; include it
6345             # unless it is C, which is enabled by default.
6346             if test "$language" != "c"; then
6347               add_this_lang=yes
6348             fi
6349             ;;
6350           *,all,*)
6351             # 'all' was selected, select it if it is a default language
6352             if test "$language" != "c"; then
6353               add_this_lang=${build_by_default}
6354             fi
6355             ;;
6356         esac
6357
6358         # Disable languages that need other directories if these aren't available.
6359         for i in $subdir_requires; do
6360           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6361           case ,${enable_languages}, in
6362             *,${language},*)
6363               # Specifically requested language; tell them.
6364               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6365               ;;
6366             *)
6367               # Silently disable.
6368               add_this_lang=unsupported
6369               ;;
6370           esac
6371         done
6372
6373         # Disable Ada if no preexisting GNAT is available.
6374         case ,${enable_languages},:${language}:${have_gnat} in
6375           *,${language},*:ada:no)
6376             # Specifically requested language; tell them.
6377             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6378             ;;
6379           *:ada:no)
6380             # Silently disable.
6381             add_this_lang=unsupported
6382             ;;
6383         esac
6384
6385         # Disable a language that is unsupported by the target.
6386         case " $unsupported_languages " in
6387           *" $language "*)
6388             add_this_lang=unsupported
6389             ;;
6390         esac
6391
6392         case $add_this_lang in
6393           unsupported)
6394             # Remove language-dependent dirs.
6395             disabled_target_libs="$disabled_target_libs $target_libs"
6396             noconfigdirs="$noconfigdirs $lang_dirs"
6397             ;;
6398           no)
6399             # Remove language-dependent dirs; still show language as supported.
6400             disabled_target_libs="$disabled_target_libs $target_libs"
6401             noconfigdirs="$noconfigdirs $lang_dirs"
6402             potential_languages="${potential_languages}${language},"
6403             ;;
6404           yes)
6405             new_enable_languages="${new_enable_languages}${language},"
6406             potential_languages="${potential_languages}${language},"
6407             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6408             enabled_target_libs="$enabled_target_libs $target_libs"
6409             case "${boot_language}:,$enable_stage1_languages," in
6410               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6411                 # Add to (comma-separated) list of stage 1 languages.
6412                 case ",$stage1_languages," in
6413                   *,$language,* | ,yes, | ,all,) ;;
6414                   *) stage1_languages="${stage1_languages}${language}," ;;
6415                 esac
6416                 # We need to bootstrap any supporting libraries.
6417                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6418                 ;;
6419             esac
6420             ;;
6421         esac
6422         ;;
6423     esac
6424   done
6425
6426   # Add target libraries which are only needed for disabled languages
6427   # to noconfigdirs.
6428   if test -n "$disabled_target_libs"; then
6429     for dir in $disabled_target_libs; do
6430       case " $enabled_target_libs " in
6431       *" ${dir} "*) ;;
6432       *) noconfigdirs="$noconfigdirs $dir" ;;
6433       esac
6434     done
6435   fi
6436
6437   # Check whether --enable-stage1-languages was given.
6438 if test "${enable_stage1_languages+set}" = set; then :
6439   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6440     ,no,|,,)
6441       # Set it to something that will have no effect in the loop below
6442       enable_stage1_languages=c ;;
6443     ,yes,)
6444       enable_stage1_languages=`echo $new_enable_languages | \
6445         sed -e "s/^,//" -e "s/,$//" ` ;;
6446     *,all,*)
6447       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6448         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6449   esac
6450
6451   # Add "good" languages from enable_stage1_languages to stage1_languages,
6452   # while "bad" languages go in missing_languages.  Leave no duplicates.
6453   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6454     case $potential_languages in
6455       *,$i,*)
6456         case $stage1_languages in
6457           *,$i,*) ;;
6458           *) stage1_languages="$stage1_languages$i," ;;
6459         esac ;;
6460       *)
6461         case $missing_languages in
6462           *,$i,*) ;;
6463           *) missing_languages="$missing_languages$i," ;;
6464         esac ;;
6465      esac
6466   done
6467 fi
6468
6469
6470   # Remove leading/trailing commas that were added for simplicity
6471   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6472   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6473   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6474   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6475
6476   if test "x$missing_languages" != x; then
6477     as_fn_error "
6478 The following requested languages could not be built: ${missing_languages}
6479 Supported languages are: ${potential_languages}" "$LINENO" 5
6480   fi
6481   if test "x$new_enable_languages" != "x$enable_languages"; then
6482     echo The following languages will be built: ${new_enable_languages}
6483     enable_languages="$new_enable_languages"
6484   fi
6485
6486
6487   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6488 fi
6489
6490 # Handle --disable-<component> generically.
6491 for dir in $configdirs $build_configdirs $target_configdirs ; do
6492   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6493   varname=`echo $dirname | sed -e s/+/_/g`
6494   if eval test x\${enable_${varname}} "=" xno ; then
6495     noconfigdirs="$noconfigdirs $dir"
6496   fi
6497 done
6498
6499 # Check for Boehm's garbage collector
6500 # Check whether --enable-objc-gc was given.
6501 if test "${enable_objc_gc+set}" = set; then :
6502   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6503   *,objc,*:*:yes:*target-boehm-gc*)
6504     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6505     ;;
6506 esac
6507 fi
6508
6509
6510 # Make sure we only build Boehm's garbage collector if required.
6511 case ,${enable_languages},:${enable_objc_gc} in
6512   *,objc,*:yes)
6513     # Keep target-boehm-gc if requested for Objective-C.
6514     ;;
6515   *)
6516     # Otherwise remove target-boehm-gc depending on target-libjava.
6517     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6518       noconfigdirs="$noconfigdirs target-boehm-gc"
6519     fi
6520     ;;
6521 esac
6522
6523 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6524 case ,${enable_languages}, in
6525   *,c++,*)
6526     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6527     case "${noconfigdirs}" in
6528       *target-libstdc++-v3*)
6529         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6530         ;;
6531       *) ;;
6532     esac
6533     ;;
6534   *)
6535     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6536     ;;
6537 esac
6538
6539 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6540 # $build_configdirs and $target_configdirs.
6541 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6542
6543 notsupp=""
6544 for dir in . $skipdirs $noconfigdirs ; do
6545   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6546   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6547     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6548     if test -r $srcdir/$dirname/configure ; then
6549       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6550         true
6551       else
6552         notsupp="$notsupp $dir"
6553       fi
6554     fi
6555   fi
6556   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6558     if test -r $srcdir/$dirname/configure ; then
6559       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6560         true
6561       else
6562         notsupp="$notsupp $dir"
6563       fi
6564     fi
6565   fi
6566   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6568     if test -r $srcdir/$dirname/configure ; then
6569       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6570         true
6571       else
6572         notsupp="$notsupp $dir"
6573       fi
6574     fi
6575   fi
6576 done
6577
6578 # Quietly strip out all directories which aren't configurable in this tree.
6579 # This relies on all configurable subdirectories being autoconfiscated, which
6580 # is now the case.
6581 build_configdirs_all="$build_configdirs"
6582 build_configdirs=
6583 for i in ${build_configdirs_all} ; do
6584   j=`echo $i | sed -e s/build-//g`
6585   if test -f ${srcdir}/$j/configure ; then
6586     build_configdirs="${build_configdirs} $i"
6587   fi
6588 done
6589
6590 configdirs_all="$configdirs"
6591 configdirs=
6592 for i in ${configdirs_all} ; do
6593   if test -f ${srcdir}/$i/configure ; then
6594     configdirs="${configdirs} $i"
6595   fi
6596 done
6597
6598 target_configdirs_all="$target_configdirs"
6599 target_configdirs=
6600 for i in ${target_configdirs_all} ; do
6601   j=`echo $i | sed -e s/target-//g`
6602   if test -f ${srcdir}/$j/configure ; then
6603     target_configdirs="${target_configdirs} $i"
6604   fi
6605 done
6606
6607 # Exclude target-zlib if target-libjava isn't built.
6608 case ${target_configdirs} in
6609 *target-libjava*)
6610   ;;
6611 *)
6612   target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6613   ;;
6614 esac
6615
6616 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6617 # so we have to add it after the preceding checks.
6618 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6619 then
6620   case " $configdirs " in
6621     *" libiberty "*)
6622       # If we can build libiberty, we can also build libiberty-linker-plugin.
6623       configdirs="$configdirs libiberty-linker-plugin"
6624       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6625         --with-libiberty=../libiberty-linker-plugin";;
6626     *)
6627       as_fn_error "libiberty missing" "$LINENO" 5;;
6628   esac
6629 fi
6630
6631 # Sometimes we have special requirements for the host libiberty.
6632 extra_host_libiberty_configure_flags=
6633 extra_host_zlib_configure_flags=
6634 case " $configdirs " in
6635   *" lto-plugin "* | *" libcc1 "*)
6636     # When these are to be built as shared libraries, the same applies to
6637     # libiberty.
6638     extra_host_libiberty_configure_flags=--enable-shared
6639     ;;
6640   *" bfd "*)
6641     # When bfd is to be built as a shared library, the same applies to
6642     # zlib.
6643     if test "$enable_shared" = "yes"; then
6644       extra_host_zlib_configure_flags=--enable-host-shared
6645     fi
6646     ;;
6647 esac
6648
6649
6650
6651 # Produce a warning message for the subdirs we can't configure.
6652 # This isn't especially interesting in the Cygnus tree, but in the individual
6653 # FSF releases, it's important to let people know when their machine isn't
6654 # supported by the one or two programs in a package.
6655
6656 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6657   # If $appdirs is non-empty, at least one of those directories must still
6658   # be configured, or we error out.  (E.g., if the gas release supports a
6659   # specified target in some subdirs but not the gas subdir, we shouldn't
6660   # pretend that all is well.)
6661   if test -n "$appdirs" ; then
6662     for dir in $appdirs ; do
6663       if test -r $dir/Makefile.in ; then
6664         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6665           appdirs=""
6666           break
6667         fi
6668         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6669           appdirs=""
6670           break
6671         fi
6672       fi
6673     done
6674     if test -n "$appdirs" ; then
6675       echo "*** This configuration is not supported by this package." 1>&2
6676       exit 1
6677     fi
6678   fi
6679   # Okay, some application will build, or we don't care to check.  Still
6680   # notify of subdirs not getting built.
6681   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6682   echo "    ${notsupp}" 1>&2
6683   echo "    (Any other directories should still work fine.)" 1>&2
6684 fi
6685
6686 case "$host" in
6687   *msdosdjgpp*)
6688     enable_gdbtk=no ;;
6689 esac
6690
6691 # To find our prefix, in gcc_cv_tool_prefix.
6692
6693 # The user is always right.
6694 if test "${PATH_SEPARATOR+set}" != set; then
6695   echo "#! /bin/sh" >conf$$.sh
6696   echo  "exit 0"   >>conf$$.sh
6697   chmod +x conf$$.sh
6698   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6699     PATH_SEPARATOR=';'
6700   else
6701     PATH_SEPARATOR=:
6702   fi
6703   rm -f conf$$.sh
6704 fi
6705
6706
6707
6708 if test "x$exec_prefix" = xNONE; then
6709         if test "x$prefix" = xNONE; then
6710                 gcc_cv_tool_prefix=$ac_default_prefix
6711         else
6712                 gcc_cv_tool_prefix=$prefix
6713         fi
6714 else
6715         gcc_cv_tool_prefix=$exec_prefix
6716 fi
6717
6718 # If there is no compiler in the tree, use the PATH only.  In any
6719 # case, if there is no compiler in the tree nobody should use
6720 # AS_FOR_TARGET and LD_FOR_TARGET.
6721 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6722     gcc_version=`cat $srcdir/gcc/BASE-VER`
6723     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6724     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6725     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6726     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6727     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6728     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6729 else
6730     gcc_cv_tool_dirs=
6731 fi
6732
6733 if test x$build = x$target && test -n "$md_exec_prefix"; then
6734         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6735 fi
6736
6737
6738
6739 copy_dirs=
6740
6741
6742 # Check whether --with-build-sysroot was given.
6743 if test "${with_build_sysroot+set}" = set; then :
6744   withval=$with_build_sysroot; if test x"$withval" != x ; then
6745      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6746    fi
6747 else
6748   SYSROOT_CFLAGS_FOR_TARGET=
6749 fi
6750
6751
6752
6753
6754 # Check whether --with-debug-prefix-map was given.
6755 if test "${with_debug_prefix_map+set}" = set; then :
6756   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6757      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6758      for debug_map in $withval; do
6759        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6760      done
6761    fi
6762 else
6763   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6764 fi
6765
6766
6767
6768 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6769 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6770 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6771 # We want to ensure that TARGET libraries (which we know are built with
6772 # gcc) are built with "-O2 -g", so include those options when setting
6773 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6774 if test "x$CFLAGS_FOR_TARGET" = x; then
6775   if test "x${is_cross_compiler}" = xyes; then
6776     CFLAGS_FOR_TARGET="-g -O2"
6777   else
6778     CFLAGS_FOR_TARGET=$CFLAGS
6779     case " $CFLAGS " in
6780       *" -O2 "*) ;;
6781       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6782     esac
6783     case " $CFLAGS " in
6784       *" -g "* | *" -g3 "*) ;;
6785       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6786     esac
6787   fi
6788 fi
6789
6790
6791 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6792   if test "x${is_cross_compiler}" = xyes; then
6793     CXXFLAGS_FOR_TARGET="-g -O2"
6794   else
6795     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6796     case " $CXXFLAGS " in
6797       *" -O2 "*) ;;
6798       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6799     esac
6800     case " $CXXFLAGS " in
6801       *" -g "* | *" -g3 "*) ;;
6802       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6803     esac
6804   fi
6805 fi
6806
6807
6808
6809
6810 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6811 # the named directory are copied to $(tooldir)/sys-include.
6812 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6813   if test x${is_cross_compiler} = xno ; then
6814     echo 1>&2 '***' --with-headers is only supported when cross compiling
6815     exit 1
6816   fi
6817   if test x"${with_headers}" != xyes ; then
6818     x=${gcc_cv_tool_prefix}
6819     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6820   fi
6821 fi
6822
6823 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6824 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6825 # are permitted.
6826 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6827   if test x${is_cross_compiler} = xno ; then
6828     echo 1>&2 '***' --with-libs is only supported when cross compiling
6829     exit 1
6830   fi
6831   if test x"${with_libs}" != xyes ; then
6832     # Copy the libraries in reverse order, so that files in the first named
6833     # library override files in subsequent libraries.
6834     x=${gcc_cv_tool_prefix}
6835     for l in ${with_libs}; do
6836       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6837     done
6838   fi
6839 fi
6840
6841 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6842 #
6843 # This is done by determining whether or not the appropriate directory
6844 # is available, and by checking whether or not specific configurations
6845 # have requested that this magic not happen.
6846 #
6847 # The command line options always override the explicit settings in
6848 # configure.ac, and the settings in configure.ac override this magic.
6849 #
6850 # If the default for a toolchain is to use GNU as and ld, and you don't
6851 # want to do that, then you should use the --without-gnu-as and
6852 # --without-gnu-ld options for the configure script.  Similarly, if
6853 # the default is to use the included zlib and you don't want to do that,
6854 # you should use the --with-system-zlib option for the configure script.
6855
6856 if test x${use_gnu_as} = x &&
6857    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6858   with_gnu_as=yes
6859   extra_host_args="$extra_host_args --with-gnu-as"
6860 fi
6861
6862 if test x${use_gnu_ld} = x &&
6863    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6864   with_gnu_ld=yes
6865   extra_host_args="$extra_host_args --with-gnu-ld"
6866 fi
6867
6868 if test x${use_included_zlib} = x &&
6869    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6870   :
6871 else
6872   with_system_zlib=yes
6873   extra_host_args="$extra_host_args --with-system-zlib"
6874 fi
6875
6876 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6877 # can detect this case.
6878
6879 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6880   with_newlib=yes
6881   extra_host_args="$extra_host_args --with-newlib"
6882 fi
6883
6884 # Handle ${copy_dirs}
6885 set fnord ${copy_dirs}
6886 shift
6887 while test $# != 0 ; do
6888   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6889     :
6890   else
6891     echo Copying $1 to $2
6892
6893     # Use the install script to create the directory and all required
6894     # parent directories.
6895     if test -d $2 ; then
6896       :
6897     else
6898       echo >config.temp
6899       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6900     fi
6901
6902     # Copy the directory, assuming we have tar.
6903     # FIXME: Should we use B in the second tar?  Not all systems support it.
6904     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6905
6906     # It is the responsibility of the user to correctly adjust all
6907     # symlinks.  If somebody can figure out how to handle them correctly
6908     # here, feel free to add the code.
6909
6910     echo $1 > $2/COPIED
6911   fi
6912   shift; shift
6913 done
6914
6915 # Determine a target-dependent exec_prefix that the installed
6916 # gcc will search in.  Keep this list sorted by triplet, with
6917 # the *-*-osname triplets last.
6918 md_exec_prefix=
6919 case "${target}" in
6920   i[34567]86-pc-msdosdjgpp*)
6921     md_exec_prefix=/dev/env/DJDIR/bin
6922     ;;
6923   *-*-hpux* | \
6924   *-*-nto-qnx* | \
6925   *-*-solaris2*)
6926     md_exec_prefix=/usr/ccs/bin
6927     ;;
6928 esac
6929
6930 extra_arflags_for_target=
6931 extra_nmflags_for_target=
6932 extra_ranlibflags_for_target=
6933 target_makefile_frag=/dev/null
6934 case "${target}" in
6935   spu-*-*)
6936     target_makefile_frag="config/mt-spu"
6937     ;;
6938   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6939     target_makefile_frag="config/mt-sde"
6940     ;;
6941   mipsisa*-*-elfoabi*)
6942     target_makefile_frag="config/mt-mips-elfoabi"
6943     ;;
6944   mips*-*-*linux* | mips*-*-gnu*)
6945     target_makefile_frag="config/mt-mips-gnu"
6946     ;;
6947   nios2-*-elf*)
6948     target_makefile_frag="config/mt-nios2-elf"
6949     ;;
6950   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6951     target_makefile_frag="config/mt-gnu"
6952     ;;
6953   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6954     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6955     # commands to handle both 32-bit and 64-bit objects.  These flags are
6956     # harmless if we're using GNU nm or ar.
6957     extra_arflags_for_target=" -X32_64"
6958     extra_nmflags_for_target=" -B -X32_64"
6959     ;;
6960 esac
6961
6962 alphaieee_frag=/dev/null
6963 case $target in
6964   alpha*-*-*)
6965     # This just makes sure to use the -mieee option to build target libs.
6966     # This should probably be set individually by each library.
6967     alphaieee_frag="config/mt-alphaieee"
6968     ;;
6969 esac
6970
6971 # If --enable-target-optspace always use -Os instead of -O2 to build
6972 # the target libraries, similarly if it is not specified, use -Os
6973 # on selected platforms.
6974 ospace_frag=/dev/null
6975 case "${enable_target_optspace}:${target}" in
6976   yes:*)
6977     ospace_frag="config/mt-ospace"
6978     ;;
6979   :d30v-*)
6980     ospace_frag="config/mt-d30v"
6981     ;;
6982   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6983     ospace_frag="config/mt-ospace"
6984     ;;
6985   no:* | :*)
6986     ;;
6987   *)
6988     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6989     ;;
6990 esac
6991
6992 # Some systems (e.g., one of the i386-aix systems the gas testers are
6993 # using) don't handle "\$" correctly, so don't use it here.
6994 tooldir='${exec_prefix}'/${target_noncanonical}
6995 build_tooldir=${tooldir}
6996
6997 # Create a .gdbinit file which runs the one in srcdir
6998 # and tells GDB to look there for source files.
6999
7000 if test -r ${srcdir}/.gdbinit ; then
7001   case ${srcdir} in
7002     .) ;;
7003     *) cat > ./.gdbinit <<EOF
7004 # ${NO_EDIT}
7005 dir ${srcdir}
7006 dir .
7007 source ${srcdir}/.gdbinit
7008 EOF
7009     ;;
7010   esac
7011 fi
7012
7013 # Make sure that the compiler is able to generate an executable.  If it
7014 # can't, we are probably in trouble.  We don't care whether we can run the
7015 # executable--we might be using a cross compiler--we only care whether it
7016 # can be created.  At this point the main configure script has set CC.
7017 we_are_ok=no
7018 echo "int main () { return 0; }" > conftest.c
7019 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7020 if test $? = 0 ; then
7021   if test -s conftest || test -s conftest.exe ; then
7022     we_are_ok=yes
7023   fi
7024 fi
7025 case $we_are_ok in
7026   no)
7027     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7028     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7029     rm -f conftest*
7030     exit 1
7031     ;;
7032 esac
7033 rm -f conftest*
7034
7035 # Decide which environment variable is used to find dynamic libraries.
7036 case "${host}" in
7037   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7038   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7039   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7040   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7041 esac
7042
7043 # On systems where the dynamic library environment variable is PATH,
7044 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7045 # built executables to PATH.
7046 if test "$RPATH_ENVVAR" = PATH; then
7047   GCC_SHLIB_SUBDIR=/shlib
7048 else
7049   GCC_SHLIB_SUBDIR=
7050 fi
7051
7052 # Adjust the toplevel makefile according to whether bootstrap was selected.
7053 case $enable_bootstrap in
7054   yes)
7055     bootstrap_suffix=bootstrap
7056     BUILD_CONFIG=bootstrap-debug
7057     ;;
7058   no)
7059     bootstrap_suffix=no-bootstrap
7060     BUILD_CONFIG=
7061     ;;
7062 esac
7063
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7065 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7066
7067
7068 # Check whether --with-build-config was given.
7069 if test "${with_build_config+set}" = set; then :
7070   withval=$with_build_config; case $with_build_config in
7071    yes) with_build_config= ;;
7072    no) with_build_config= BUILD_CONFIG= ;;
7073    esac
7074 fi
7075
7076
7077 if test "x${with_build_config}" != x; then
7078   BUILD_CONFIG=$with_build_config
7079 else
7080   case $BUILD_CONFIG in
7081   bootstrap-debug)
7082     if echo "int f (void) { return 0; }" > conftest.c &&
7083        ${CC} -c conftest.c &&
7084        mv conftest.o conftest.o.g0 &&
7085        ${CC} -c -g conftest.c &&
7086        mv conftest.o conftest.o.g &&
7087        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7088       :
7089     else
7090       BUILD_CONFIG=
7091     fi
7092     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7093     ;;
7094   esac
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7097 $as_echo "$BUILD_CONFIG" >&6; }
7098
7099
7100 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7102 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7103 # Check whether --enable-vtable-verify was given.
7104 if test "${enable_vtable_verify+set}" = set; then :
7105   enableval=$enable_vtable_verify; case "$enableval" in
7106  yes) enable_vtable_verify=yes ;;
7107  no)  enable_vtable_verify=no ;;
7108  *)   enable_vtable_verify=no;;
7109  esac
7110 else
7111   enable_vtable_verify=no
7112 fi
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7115 $as_echo "$enable_vtable_verify" >&6; }
7116
7117 # Record target_configdirs and the configure arguments for target and
7118 # build configuration in Makefile.
7119 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7120 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7121 bootstrap_fixincludes=no
7122
7123 # If we are building libgomp, bootstrap it.
7124 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7125   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7126 fi
7127
7128 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7129 # or bootstrap-ubsan, bootstrap it.
7130 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7131   case "$BUILD_CONFIG" in
7132     *bootstrap-asan* | *bootstrap-ubsan* )
7133       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7134       bootstrap_fixincludes=yes
7135       ;;
7136   esac
7137 fi
7138
7139 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7140 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7141    test "$enable_vtable_verify" != no; then
7142   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7143 fi
7144
7145 # If we are building libmpx, bootstrap it.
7146 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7147   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7148 fi
7149
7150 # Determine whether gdb needs tk/tcl or not.
7151 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7152 # and in that case we want gdb to be built without tk.  Ugh!
7153 # In fact I believe gdb is the *only* package directly dependent on tk,
7154 # so we should be able to put the 'maybe's in unconditionally and
7155 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7156 # 100% sure that that's safe though.
7157
7158 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7159 case "$enable_gdbtk" in
7160   no)
7161     GDB_TK="" ;;
7162   yes)
7163     GDB_TK="${gdb_tk}" ;;
7164   *)
7165     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7166     # distro.  Eventually someone will fix this and move Insight, nee
7167     # gdbtk to a separate directory.
7168     if test -d ${srcdir}/gdb/gdbtk ; then
7169       GDB_TK="${gdb_tk}"
7170     else
7171       GDB_TK=""
7172     fi
7173     ;;
7174 esac
7175 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7176 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7177
7178 # Strip out unwanted targets.
7179
7180 # While at that, we remove Makefiles if we were started for recursive
7181 # configuration, so that the top-level Makefile reconfigures them,
7182 # like we used to do when configure itself was recursive.
7183
7184 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7185 # but now we're fixing up the Makefile ourselves with the additional
7186 # commands passed to AC_CONFIG_FILES.  Use separate variables
7187 # extrasub-{build,host,target} not because there is any reason to split
7188 # the substitutions up that way, but only to remain below the limit of
7189 # 99 commands in a script, for HP-UX sed.
7190 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7191
7192 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7193   yes:yes:*\ gold\ *:*,c++,*) ;;
7194   yes:yes:*\ gold\ *:*)
7195     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7196     ;;
7197 esac
7198
7199 extrasub_build=
7200 for module in ${build_configdirs} ; do
7201   if test -z "${no_recursion}" \
7202      && test -f ${build_subdir}/${module}/Makefile; then
7203     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7204     rm -f ${build_subdir}/${module}/Makefile
7205   fi
7206   extrasub_build="$extrasub_build
7207 /^@if build-$module\$/d
7208 /^@endif build-$module\$/d
7209 /^@if build-$module-$bootstrap_suffix\$/d
7210 /^@endif build-$module-$bootstrap_suffix\$/d"
7211 done
7212 extrasub_host=
7213 for module in ${configdirs} ; do
7214   if test -z "${no_recursion}"; then
7215     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7216       if test -f ${file}; then
7217         echo 1>&2 "*** removing ${file} to force reconfigure"
7218         rm -f ${file}
7219       fi
7220     done
7221   fi
7222   case ${module},${bootstrap_fixincludes} in
7223     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7224     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7225   esac
7226   extrasub_host="$extrasub_host
7227 /^@if $module\$/d
7228 /^@endif $module\$/d
7229 /^@if $module-$host_bootstrap_suffix\$/d
7230 /^@endif $module-$host_bootstrap_suffix\$/d"
7231 done
7232 extrasub_target=
7233 for module in ${target_configdirs} ; do
7234   if test -z "${no_recursion}" \
7235      && test -f ${target_subdir}/${module}/Makefile; then
7236     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7237     rm -f ${target_subdir}/${module}/Makefile
7238   fi
7239
7240   # We only bootstrap target libraries listed in bootstrap_target_libs.
7241   case $bootstrap_target_libs in
7242     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7243     *) target_bootstrap_suffix=no-bootstrap ;;
7244   esac
7245
7246   extrasub_target="$extrasub_target
7247 /^@if target-$module\$/d
7248 /^@endif target-$module\$/d
7249 /^@if target-$module-$target_bootstrap_suffix\$/d
7250 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7251 done
7252
7253 # Do the final fixup along with target modules.
7254 extrasub_target="$extrasub_target
7255 /^@if /,/^@endif /d"
7256
7257 # Create the serialization dependencies.  This uses a temporary file.
7258
7259 # Check whether --enable-serial-configure was given.
7260 if test "${enable_serial_configure+set}" = set; then :
7261   enableval=$enable_serial_configure;
7262 fi
7263
7264
7265 case ${enable_serial_configure} in
7266   yes)
7267     enable_serial_build_configure=yes
7268     enable_serial_host_configure=yes
7269     enable_serial_target_configure=yes
7270     ;;
7271 esac
7272
7273 # These force 'configure's to be done one at a time, to avoid problems
7274 # with contention over a shared config.cache.
7275 rm -f serdep.tmp
7276 echo '# serdep.tmp' > serdep.tmp
7277 olditem=
7278 test "x${enable_serial_build_configure}" = xyes &&
7279 for item in ${build_configdirs} ; do
7280   case ${olditem} in
7281     "") ;;
7282     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7283   esac
7284   olditem=${item}
7285 done
7286 olditem=
7287 test "x${enable_serial_host_configure}" = xyes &&
7288 for item in ${configdirs} ; do
7289   case ${olditem} in
7290     "") ;;
7291     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7292   esac
7293   olditem=${item}
7294 done
7295 olditem=
7296 test "x${enable_serial_target_configure}" = xyes &&
7297 for item in ${target_configdirs} ; do
7298   case ${olditem} in
7299     "") ;;
7300     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7301   esac
7302   olditem=${item}
7303 done
7304 serialization_dependencies=serdep.tmp
7305
7306
7307 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7308 # target, nonopt, and variable assignments.  These are the ones we
7309 # might not want to pass down to subconfigures.  The exception being
7310 # --cache-file=/dev/null, which is used to turn off the use of cache
7311 # files altogether, and which should be passed on to subconfigures.
7312 # Also strip program-prefix, program-suffix, and program-transform-name,
7313 # so that we can pass down a consistent program-transform-name.
7314 baseargs=
7315 tbaseargs=
7316 keep_next=no
7317 skip_next=no
7318 eval "set -- $ac_configure_args"
7319 for ac_arg
7320 do
7321   if test X"$skip_next" = X"yes"; then
7322     skip_next=no
7323     continue
7324   fi
7325   if test X"$keep_next" = X"yes"; then
7326     case $ac_arg in
7327       *\'*)
7328         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7329     esac
7330     baseargs="$baseargs '$ac_arg'"
7331     tbaseargs="$tbaseargs '$ac_arg'"
7332     keep_next=no
7333     continue
7334   fi
7335
7336   # Handle separated arguments.  Based on the logic generated by
7337   # autoconf 2.59.
7338   case $ac_arg in
7339     *=* | --config-cache | -C | -disable-* | --disable-* \
7340       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7341       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7342       | -with-* | --with-* | -without-* | --without-* | --x)
7343       separate_arg=no
7344       ;;
7345     -*)
7346       separate_arg=yes
7347       ;;
7348     *)
7349       separate_arg=no
7350       ;;
7351   esac
7352
7353   skip_targ=no
7354   case $ac_arg in
7355
7356   --with-* | --without-*)
7357     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7358
7359     case $libopt in
7360     *[-_]include)
7361       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7362       ;;
7363     *[-_]lib)
7364       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7365       ;;
7366     *)
7367       lib=$libopt
7368       ;;
7369     esac
7370
7371
7372     case $lib in
7373     mpc | mpfr | gmp | isl)
7374       # If we're processing --with-$lib, --with-$lib-include or
7375       # --with-$lib-lib, for one of the libs above, and target is
7376       # different from host, don't pass the current argument to any
7377       # target library's configure.
7378       if test x$is_cross_compiler = xyes; then
7379         skip_targ=yes
7380       fi
7381       ;;
7382     esac
7383     ;;
7384   esac
7385
7386   case "$ac_arg" in
7387     --cache-file=/dev/null | \
7388     -cache-file=/dev/null )
7389       # Handled here to avoid the test to skip args below.
7390       baseargs="$baseargs '$ac_arg'"
7391       tbaseargs="$tbaseargs '$ac_arg'"
7392       # Assert: $separate_arg should always be no.
7393       keep_next=$separate_arg
7394       ;;
7395     --no*)
7396       continue
7397       ;;
7398     --c* | \
7399     --sr* | \
7400     --ho* | \
7401     --bu* | \
7402     --t* | \
7403     --program-* | \
7404     -cache_file* | \
7405     -srcdir* | \
7406     -host* | \
7407     -build* | \
7408     -target* | \
7409     -program-prefix* | \
7410     -program-suffix* | \
7411     -program-transform-name* )
7412       skip_next=$separate_arg
7413       continue
7414       ;;
7415     -*)
7416       # An option.  Add it.
7417       case $ac_arg in
7418         *\'*)
7419           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7420       esac
7421       baseargs="$baseargs '$ac_arg'"
7422       if test X"$skip_targ" = Xno; then
7423         tbaseargs="$tbaseargs '$ac_arg'"
7424       fi
7425       keep_next=$separate_arg
7426       ;;
7427     *)
7428       # Either a variable assignment, or a nonopt (triplet).  Don't
7429       # pass it down; let the Makefile handle this.
7430       continue
7431       ;;
7432   esac
7433 done
7434 # Remove the initial space we just introduced and, as these will be
7435 # expanded by make, quote '$'.
7436 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7437
7438 # Add in --program-transform-name, after --program-prefix and
7439 # --program-suffix have been applied to it.  Autoconf has already
7440 # doubled dollar signs and backslashes in program_transform_name; we want
7441 # the backslashes un-doubled, and then the entire thing wrapped in single
7442 # quotes, because this will be expanded first by make and then by the shell.
7443 # Also, because we want to override the logic in subdir configure scripts to
7444 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7445 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7446 ${program_transform_name}
7447 EOF_SED
7448 gcc_transform_name=`cat conftestsed.out`
7449 rm -f conftestsed.out
7450 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7451 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7452 if test "$silent" = yes; then
7453   baseargs="$baseargs --silent"
7454   tbaseargs="$tbaseargs --silent"
7455 fi
7456 baseargs="$baseargs --disable-option-checking"
7457 tbaseargs="$tbaseargs --disable-option-checking"
7458
7459 # Record and document user additions to sub configure arguments.
7460
7461
7462
7463
7464 # For the build-side libraries, we just need to pretend we're native,
7465 # and not use the same cache file.  Multilibs are neither needed nor
7466 # desired.  We can't even use the same cache file for all build-side
7467 # libraries, as they're compiled differently; some with C, some with
7468 # C++ or with different feature-enabling options.
7469 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7470
7471 # For host modules, accept cache file option, or specification as blank.
7472 case "${cache_file}" in
7473 "") # empty
7474   cache_file_option="" ;;
7475 /* | [A-Za-z]:[\\/]* ) # absolute path
7476   cache_file_option="--cache-file=${cache_file}" ;;
7477 *) # relative path
7478   cache_file_option="--cache-file=../${cache_file}" ;;
7479 esac
7480
7481 # Host dirs don't like to share a cache file either, horribly enough.
7482 # This seems to be due to autoconf 2.5x stupidity.
7483 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7484
7485 target_configargs="$target_configargs ${tbaseargs}"
7486
7487 # Passing a --with-cross-host argument lets the target libraries know
7488 # whether they are being built with a cross-compiler or being built
7489 # native.  However, it would be better to use other mechanisms to make the
7490 # sorts of decisions they want to make on this basis.  Please consider
7491 # this option to be deprecated.  FIXME.
7492 if test x${is_cross_compiler} = xyes ; then
7493   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7494 fi
7495
7496 # Special user-friendly check for native x86_64-linux build, if
7497 # multilib is not explicitly enabled.
7498 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7499   x86_64-*linux*:yes:$build:$build:)
7500     # Make sure we have a development environment that handles 32-bit
7501     dev64=no
7502     echo "int main () { return 0; }" > conftest.c
7503     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7504     if test $? = 0 ; then
7505       if test -s conftest || test -s conftest.exe ; then
7506         dev64=yes
7507       fi
7508     fi
7509     rm -f conftest*
7510     if test x${dev64} != xyes ; then
7511       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
7512     fi
7513     ;;
7514 esac
7515
7516 # Default to --enable-multilib.
7517 if test x${enable_multilib} = x ; then
7518   target_configargs="--enable-multilib ${target_configargs}"
7519 fi
7520
7521 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7522 # changed from the earlier setting of with_newlib.
7523 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7524   target_configargs="--with-newlib ${target_configargs}"
7525 fi
7526
7527 # Different target subdirs use different values of certain variables
7528 # (notably CXX).  Worse, multilibs use *lots* of different values.
7529 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7530 # it doesn't automatically accept command-line overrides of them.
7531 # This means it's not safe for target subdirs to share a cache file,
7532 # which is disgusting, but there you have it.  Hopefully this can be
7533 # fixed in future.  It's still worthwhile to use a cache file for each
7534 # directory.  I think.
7535
7536 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7537 # We need to pass --target, as newer autoconf's requires consistency
7538 # for target_alias and gcc doesn't manage it consistently.
7539 target_configargs="--cache-file=./config.cache ${target_configargs}"
7540
7541 FLAGS_FOR_TARGET=
7542 case " $target_configdirs " in
7543  *" newlib "*)
7544   case " $target_configargs " in
7545   *" --with-newlib "*)
7546    case "$target" in
7547     *-cygwin*)
7548       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7549       ;;
7550    esac
7551
7552    # If we're not building GCC, don't discard standard headers.
7553    if test -d ${srcdir}/gcc; then
7554      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7555
7556      if test "${build}" != "${host}"; then
7557        # On Canadian crosses, CC_FOR_TARGET will have already been set
7558        # by `configure', so we won't have an opportunity to add -Bgcc/
7559        # to it.  This is right: we don't want to search that directory
7560        # for binaries, but we want the header files in there, so add
7561        # them explicitly.
7562        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7563
7564        # Someone might think of using the pre-installed headers on
7565        # Canadian crosses, in case the installed compiler is not fully
7566        # compatible with the compiler being built.  In this case, it
7567        # would be better to flag an error than risking having
7568        # incompatible object files being constructed.  We can't
7569        # guarantee that an error will be flagged, but let's hope the
7570        # compiler will do it, when presented with incompatible header
7571        # files.
7572      fi
7573    fi
7574
7575    case "${target}-${is_cross_compiler}" in
7576    i[3456789]86-*-linux*-no)
7577       # Here host == target, so we don't need to build gcc,
7578       # so we don't want to discard standard headers.
7579       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7580       ;;
7581    *)
7582       # If we're building newlib, use its generic headers last, but search
7583       # for any libc-related directories first (so make it the last -B
7584       # switch).
7585       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7586
7587       # If we're building libgloss, find the startup file, simulator library
7588       # and linker script.
7589       case " $target_configdirs " in
7590         *" libgloss "*)
7591         # Look for startup file, simulator library and maybe linker script.
7592         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7593         # Look for libnosys.a in case the target needs it.
7594         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7595         # Most targets have the linker script in the source directory.
7596         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7597         ;;
7598       esac
7599       ;;
7600    esac
7601    ;;
7602   esac
7603   ;;
7604 esac
7605
7606 case "$target" in
7607   x86_64-*mingw* | *-w64-mingw*)
7608   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7609   # however, use a symlink named 'mingw' in ${prefix} .
7610     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7611     ;;
7612   *-mingw*)
7613   # MinGW can't be handled as Cygwin above since it does not use newlib.
7614     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'
7615     ;;
7616 esac
7617
7618 # Allow the user to override the flags for
7619 # our build compiler if desired.
7620 if test x"${build}" = x"${host}" ; then
7621   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7622   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7623   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7624 fi
7625
7626 # On Canadian crosses, we'll be searching the right directories for
7627 # the previously-installed cross compiler, so don't bother to add
7628 # flags for directories within the install tree of the compiler
7629 # being built; programs in there won't even run.
7630 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7631   # Search for pre-installed headers if nothing else fits.
7632   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7633 fi
7634
7635 if test "x${use_gnu_ld}" = x &&
7636    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7637   # Arrange for us to find uninstalled linker scripts.
7638   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7639 fi
7640
7641 # Search for other target-specific linker scripts and such.
7642 case "${target}" in
7643   mep*)
7644     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7645     ;;
7646 esac
7647
7648 # Makefile fragments.
7649 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7650 do
7651   eval fragval=\$$frag
7652   if test $fragval != /dev/null; then
7653     eval $frag=${srcdir}/$fragval
7654   fi
7655 done
7656
7657
7658
7659
7660
7661 # Miscellanea: directories, flags, etc.
7662
7663
7664
7665
7666
7667
7668
7669
7670 # Build module lists & subconfigure args.
7671
7672
7673
7674 # Host module lists & subconfigure args.
7675
7676
7677
7678
7679 # Target module lists & subconfigure args.
7680
7681
7682
7683 # Build tools.
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701 # Generate default definitions for YACC, M4, LEX and other programs that run
7702 # on the build machine.  These are used if the Makefile can't locate these
7703 # programs in objdir.
7704 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7705
7706 for ac_prog in 'bison -y' byacc yacc
7707 do
7708   # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_YACC+set}" = set; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$YACC"; then
7716   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_prog_YACC="$ac_prog"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 YACC=$ac_cv_prog_YACC
7736 if test -n "$YACC"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7738 $as_echo "$YACC" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745   test -n "$YACC" && break
7746 done
7747 test -n "$YACC" || YACC="$MISSING bison -y"
7748
7749 case " $build_configdirs " in
7750   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7751 esac
7752
7753 for ac_prog in bison
7754 do
7755   # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_BISON+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   if test -n "$BISON"; then
7763   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772     ac_cv_prog_BISON="$ac_prog"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 BISON=$ac_cv_prog_BISON
7783 if test -n "$BISON"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7785 $as_echo "$BISON" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791
7792   test -n "$BISON" && break
7793 done
7794 test -n "$BISON" || BISON="$MISSING bison"
7795
7796 case " $build_configdirs " in
7797   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7798 esac
7799
7800 for ac_prog in gm4 gnum4 m4
7801 do
7802   # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_M4+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   if test -n "$M4"; then
7810   ac_cv_prog_M4="$M4" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817     for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_M4="$ac_prog"
7820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824   done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 M4=$ac_cv_prog_M4
7830 if test -n "$M4"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7832 $as_echo "$M4" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838
7839   test -n "$M4" && break
7840 done
7841 test -n "$M4" || M4="$MISSING m4"
7842
7843 case " $build_configdirs " in
7844   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7845 esac
7846
7847 for ac_prog in flex lex
7848 do
7849   # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_LEX+set}" = set; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$LEX"; then
7857   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_prog_LEX="$ac_prog"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 LEX=$ac_cv_prog_LEX
7877 if test -n "$LEX"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7879 $as_echo "$LEX" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886   test -n "$LEX" && break
7887 done
7888 test -n "$LEX" || LEX="$MISSING flex"
7889
7890 case " $build_configdirs " in
7891   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7892   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7893 esac
7894
7895 for ac_prog in flex
7896 do
7897   # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_FLEX+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   if test -n "$FLEX"; then
7905   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_prog_FLEX="$ac_prog"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 FLEX=$ac_cv_prog_FLEX
7925 if test -n "$FLEX"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7927 $as_echo "$FLEX" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934   test -n "$FLEX" && break
7935 done
7936 test -n "$FLEX" || FLEX="$MISSING flex"
7937
7938 case " $build_configdirs " in
7939   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7940 esac
7941
7942 for ac_prog in makeinfo
7943 do
7944   # Extract the first word of "$ac_prog", so it can be a program name with args.
7945 set dummy $ac_prog; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$MAKEINFO"; then
7952   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961     ac_cv_prog_MAKEINFO="$ac_prog"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 MAKEINFO=$ac_cv_prog_MAKEINFO
7972 if test -n "$MAKEINFO"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7974 $as_echo "$MAKEINFO" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981   test -n "$MAKEINFO" && break
7982 done
7983 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7984
7985 case " $build_configdirs " in
7986   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7987   *)
7988
7989     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7990     # higher, else we use the "missing" dummy.
7991     if ${MAKEINFO} --version \
7992        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7993       :
7994     else
7995       MAKEINFO="$MISSING makeinfo"
7996     fi
7997     ;;
7998
7999 esac
8000
8001 # FIXME: expect and dejagnu may become build tools?
8002
8003 for ac_prog in expect
8004 do
8005   # Extract the first word of "$ac_prog", so it can be a program name with args.
8006 set dummy $ac_prog; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   if test -n "$EXPECT"; then
8013   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8014 else
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018   IFS=$as_save_IFS
8019   test -z "$as_dir" && as_dir=.
8020     for ac_exec_ext in '' $ac_executable_extensions; do
8021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022     ac_cv_prog_EXPECT="$ac_prog"
8023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024     break 2
8025   fi
8026 done
8027   done
8028 IFS=$as_save_IFS
8029
8030 fi
8031 fi
8032 EXPECT=$ac_cv_prog_EXPECT
8033 if test -n "$EXPECT"; then
8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8035 $as_echo "$EXPECT" >&6; }
8036 else
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8039 fi
8040
8041
8042   test -n "$EXPECT" && break
8043 done
8044 test -n "$EXPECT" || EXPECT="expect"
8045
8046 case " $configdirs " in
8047   *" expect "*)
8048     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8049     ;;
8050 esac
8051
8052 for ac_prog in runtest
8053 do
8054   # Extract the first word of "$ac_prog", so it can be a program name with args.
8055 set dummy $ac_prog; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   if test -n "$RUNTEST"; then
8062   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069     for ac_exec_ext in '' $ac_executable_extensions; do
8070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071     ac_cv_prog_RUNTEST="$ac_prog"
8072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076   done
8077 IFS=$as_save_IFS
8078
8079 fi
8080 fi
8081 RUNTEST=$ac_cv_prog_RUNTEST
8082 if test -n "$RUNTEST"; then
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8084 $as_echo "$RUNTEST" >&6; }
8085 else
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090
8091   test -n "$RUNTEST" && break
8092 done
8093 test -n "$RUNTEST" || RUNTEST="runtest"
8094
8095 case " $configdirs " in
8096   *" dejagnu "*)
8097     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8098     ;;
8099 esac
8100
8101
8102 # Host tools.
8103 ncn_tool_prefix=
8104 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8105 ncn_target_tool_prefix=
8106 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8107
8108
8109
8110 if test -n "$AR"; then
8111   ac_cv_prog_AR=$AR
8112 elif test -n "$ac_cv_prog_AR"; then
8113   AR=$ac_cv_prog_AR
8114 fi
8115
8116 if test -n "$ac_cv_prog_AR"; then
8117   for ncn_progname in ar; do
8118     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8119 set dummy ${ncn_progname}; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123   $as_echo_n "(cached) " >&6
8124 else
8125   if test -n "$AR"; then
8126   ac_cv_prog_AR="$AR" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135     ac_cv_prog_AR="${ncn_progname}"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 AR=$ac_cv_prog_AR
8146 if test -n "$AR"; then
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148 $as_echo "$AR" >&6; }
8149 else
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153
8154
8155   done
8156 fi
8157
8158 for ncn_progname in ar; do
8159   if test -n "$ncn_tool_prefix"; then
8160     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8161 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_AR+set}" = set; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   if test -n "$AR"; then
8168   ac_cv_prog_AR="$AR" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 AR=$ac_cv_prog_AR
8188 if test -n "$AR"; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8190 $as_echo "$AR" >&6; }
8191 else
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197   fi
8198   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8199     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8200 set dummy ${ncn_progname}; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_AR+set}" = set; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   if test -n "$AR"; then
8207   ac_cv_prog_AR="$AR" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212   IFS=$as_save_IFS
8213   test -z "$as_dir" && as_dir=.
8214     for ac_exec_ext in '' $ac_executable_extensions; do
8215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216     ac_cv_prog_AR="${ncn_progname}"
8217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218     break 2
8219   fi
8220 done
8221   done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 AR=$ac_cv_prog_AR
8227 if test -n "$AR"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8229 $as_echo "$AR" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236   fi
8237   test -n "$ac_cv_prog_AR" && break
8238 done
8239
8240 if test -z "$ac_cv_prog_AR" ; then
8241   set dummy ar
8242   if test $build = $host ; then
8243     AR="$2"
8244   else
8245     AR="${ncn_tool_prefix}$2"
8246   fi
8247 fi
8248
8249
8250
8251 if test -n "$AS"; then
8252   ac_cv_prog_AS=$AS
8253 elif test -n "$ac_cv_prog_AS"; then
8254   AS=$ac_cv_prog_AS
8255 fi
8256
8257 if test -n "$ac_cv_prog_AS"; then
8258   for ncn_progname in as; do
8259     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260 set dummy ${ncn_progname}; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_prog_AS+set}" = set; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   if test -n "$AS"; then
8267   ac_cv_prog_AS="$AS" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274     for ac_exec_ext in '' $ac_executable_extensions; do
8275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276     ac_cv_prog_AS="${ncn_progname}"
8277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281   done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 AS=$ac_cv_prog_AS
8287 if test -n "$AS"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289 $as_echo "$AS" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294
8295
8296   done
8297 fi
8298
8299 for ncn_progname in as; do
8300   if test -n "$ncn_tool_prefix"; then
8301     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8302 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_AS+set}" = set; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   if test -n "$AS"; then
8309   ac_cv_prog_AS="$AS" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 AS=$ac_cv_prog_AS
8329 if test -n "$AS"; then
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8331 $as_echo "$AS" >&6; }
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337
8338   fi
8339   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8340     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8341 set dummy ${ncn_progname}; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_AS+set}" = set; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   if test -n "$AS"; then
8348   ac_cv_prog_AS="$AS" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353   IFS=$as_save_IFS
8354   test -z "$as_dir" && as_dir=.
8355     for ac_exec_ext in '' $ac_executable_extensions; do
8356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357     ac_cv_prog_AS="${ncn_progname}"
8358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359     break 2
8360   fi
8361 done
8362   done
8363 IFS=$as_save_IFS
8364
8365 fi
8366 fi
8367 AS=$ac_cv_prog_AS
8368 if test -n "$AS"; then
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8370 $as_echo "$AS" >&6; }
8371 else
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376
8377   fi
8378   test -n "$ac_cv_prog_AS" && break
8379 done
8380
8381 if test -z "$ac_cv_prog_AS" ; then
8382   set dummy as
8383   if test $build = $host ; then
8384     AS="$2"
8385   else
8386     AS="${ncn_tool_prefix}$2"
8387   fi
8388 fi
8389
8390
8391
8392 if test -n "$DLLTOOL"; then
8393   ac_cv_prog_DLLTOOL=$DLLTOOL
8394 elif test -n "$ac_cv_prog_DLLTOOL"; then
8395   DLLTOOL=$ac_cv_prog_DLLTOOL
8396 fi
8397
8398 if test -n "$ac_cv_prog_DLLTOOL"; then
8399   for ncn_progname in dlltool; do
8400     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401 set dummy ${ncn_progname}; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   if test -n "$DLLTOOL"; then
8408   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_prog_DLLTOOL="${ncn_progname}"
8418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422   done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 DLLTOOL=$ac_cv_prog_DLLTOOL
8428 if test -n "$DLLTOOL"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8430 $as_echo "$DLLTOOL" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437   done
8438 fi
8439
8440 for ncn_progname in dlltool; do
8441   if test -n "$ncn_tool_prefix"; then
8442     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8443 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   if test -n "$DLLTOOL"; then
8450   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455   IFS=$as_save_IFS
8456   test -z "$as_dir" && as_dir=.
8457     for ac_exec_ext in '' $ac_executable_extensions; do
8458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461     break 2
8462   fi
8463 done
8464   done
8465 IFS=$as_save_IFS
8466
8467 fi
8468 fi
8469 DLLTOOL=$ac_cv_prog_DLLTOOL
8470 if test -n "$DLLTOOL"; then
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8472 $as_echo "$DLLTOOL" >&6; }
8473 else
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 fi
8477
8478
8479   fi
8480   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8481     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8482 set dummy ${ncn_progname}; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if test -n "$DLLTOOL"; then
8489   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494   IFS=$as_save_IFS
8495   test -z "$as_dir" && as_dir=.
8496     for ac_exec_ext in '' $ac_executable_extensions; do
8497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498     ac_cv_prog_DLLTOOL="${ncn_progname}"
8499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500     break 2
8501   fi
8502 done
8503   done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 DLLTOOL=$ac_cv_prog_DLLTOOL
8509 if test -n "$DLLTOOL"; then
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8511 $as_echo "$DLLTOOL" >&6; }
8512 else
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518   fi
8519   test -n "$ac_cv_prog_DLLTOOL" && break
8520 done
8521
8522 if test -z "$ac_cv_prog_DLLTOOL" ; then
8523   set dummy dlltool
8524   if test $build = $host ; then
8525     DLLTOOL="$2"
8526   else
8527     DLLTOOL="${ncn_tool_prefix}$2"
8528   fi
8529 fi
8530
8531
8532
8533 if test -n "$LD"; then
8534   ac_cv_prog_LD=$LD
8535 elif test -n "$ac_cv_prog_LD"; then
8536   LD=$ac_cv_prog_LD
8537 fi
8538
8539 if test -n "$ac_cv_prog_LD"; then
8540   for ncn_progname in ld; do
8541     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542 set dummy ${ncn_progname}; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_LD+set}" = set; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   if test -n "$LD"; then
8549   ac_cv_prog_LD="$LD" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556     for ac_exec_ext in '' $ac_executable_extensions; do
8557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558     ac_cv_prog_LD="${ncn_progname}"
8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563   done
8564 IFS=$as_save_IFS
8565
8566 fi
8567 fi
8568 LD=$ac_cv_prog_LD
8569 if test -n "$LD"; then
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8571 $as_echo "$LD" >&6; }
8572 else
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576
8577
8578   done
8579 fi
8580
8581 for ncn_progname in ld; do
8582   if test -n "$ncn_tool_prefix"; then
8583     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8584 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_prog_LD+set}" = set; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$LD"; then
8591   ac_cv_prog_LD="$LD" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 LD=$ac_cv_prog_LD
8611 if test -n "$LD"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8613 $as_echo "$LD" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620   fi
8621   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8622     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8623 set dummy ${ncn_progname}; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_prog_LD+set}" = set; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   if test -n "$LD"; then
8630   ac_cv_prog_LD="$LD" # Let the user override the test.
8631 else
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8634 do
8635   IFS=$as_save_IFS
8636   test -z "$as_dir" && as_dir=.
8637     for ac_exec_ext in '' $ac_executable_extensions; do
8638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639     ac_cv_prog_LD="${ncn_progname}"
8640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641     break 2
8642   fi
8643 done
8644   done
8645 IFS=$as_save_IFS
8646
8647 fi
8648 fi
8649 LD=$ac_cv_prog_LD
8650 if test -n "$LD"; then
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8652 $as_echo "$LD" >&6; }
8653 else
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656 fi
8657
8658
8659   fi
8660   test -n "$ac_cv_prog_LD" && break
8661 done
8662
8663 if test -z "$ac_cv_prog_LD" ; then
8664   set dummy ld
8665   if test $build = $host ; then
8666     LD="$2"
8667   else
8668     LD="${ncn_tool_prefix}$2"
8669   fi
8670 fi
8671
8672
8673
8674 if test -n "$LIPO"; then
8675   ac_cv_prog_LIPO=$LIPO
8676 elif test -n "$ac_cv_prog_LIPO"; then
8677   LIPO=$ac_cv_prog_LIPO
8678 fi
8679
8680 if test -n "$ac_cv_prog_LIPO"; then
8681   for ncn_progname in lipo; do
8682     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683 set dummy ${ncn_progname}; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_LIPO+set}" = set; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   if test -n "$LIPO"; then
8690   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695   IFS=$as_save_IFS
8696   test -z "$as_dir" && as_dir=.
8697     for ac_exec_ext in '' $ac_executable_extensions; do
8698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699     ac_cv_prog_LIPO="${ncn_progname}"
8700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701     break 2
8702   fi
8703 done
8704   done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 LIPO=$ac_cv_prog_LIPO
8710 if test -n "$LIPO"; then
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8712 $as_echo "$LIPO" >&6; }
8713 else
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719   done
8720 fi
8721
8722 for ncn_progname in lipo; do
8723   if test -n "$ncn_tool_prefix"; then
8724     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8725 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if test "${ac_cv_prog_LIPO+set}" = set; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   if test -n "$LIPO"; then
8732   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 LIPO=$ac_cv_prog_LIPO
8752 if test -n "$LIPO"; then
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8754 $as_echo "$LIPO" >&6; }
8755 else
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 fi
8759
8760
8761   fi
8762   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8763     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_progname}; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_prog_LIPO+set}" = set; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   if test -n "$LIPO"; then
8771   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776   IFS=$as_save_IFS
8777   test -z "$as_dir" && as_dir=.
8778     for ac_exec_ext in '' $ac_executable_extensions; do
8779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780     ac_cv_prog_LIPO="${ncn_progname}"
8781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782     break 2
8783   fi
8784 done
8785   done
8786 IFS=$as_save_IFS
8787
8788 fi
8789 fi
8790 LIPO=$ac_cv_prog_LIPO
8791 if test -n "$LIPO"; then
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8793 $as_echo "$LIPO" >&6; }
8794 else
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800   fi
8801   test -n "$ac_cv_prog_LIPO" && break
8802 done
8803
8804 if test -z "$ac_cv_prog_LIPO" ; then
8805   set dummy lipo
8806   if test $build = $host ; then
8807     LIPO="$2"
8808   else
8809     LIPO="${ncn_tool_prefix}$2"
8810   fi
8811 fi
8812
8813
8814
8815 if test -n "$NM"; then
8816   ac_cv_prog_NM=$NM
8817 elif test -n "$ac_cv_prog_NM"; then
8818   NM=$ac_cv_prog_NM
8819 fi
8820
8821 if test -n "$ac_cv_prog_NM"; then
8822   for ncn_progname in nm; do
8823     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824 set dummy ${ncn_progname}; ac_word=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_NM+set}" = set; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   if test -n "$NM"; then
8831   ac_cv_prog_NM="$NM" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836   IFS=$as_save_IFS
8837   test -z "$as_dir" && as_dir=.
8838     for ac_exec_ext in '' $ac_executable_extensions; do
8839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840     ac_cv_prog_NM="${ncn_progname}"
8841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842     break 2
8843   fi
8844 done
8845   done
8846 IFS=$as_save_IFS
8847
8848 fi
8849 fi
8850 NM=$ac_cv_prog_NM
8851 if test -n "$NM"; then
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8853 $as_echo "$NM" >&6; }
8854 else
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8857 fi
8858
8859
8860   done
8861 fi
8862
8863 for ncn_progname in nm; do
8864   if test -n "$ncn_tool_prefix"; then
8865     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8866 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if test "${ac_cv_prog_NM+set}" = set; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   if test -n "$NM"; then
8873   ac_cv_prog_NM="$NM" # Let the user override the test.
8874 else
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 for as_dir in $PATH
8877 do
8878   IFS=$as_save_IFS
8879   test -z "$as_dir" && as_dir=.
8880     for ac_exec_ext in '' $ac_executable_extensions; do
8881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8882     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8884     break 2
8885   fi
8886 done
8887   done
8888 IFS=$as_save_IFS
8889
8890 fi
8891 fi
8892 NM=$ac_cv_prog_NM
8893 if test -n "$NM"; then
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8895 $as_echo "$NM" >&6; }
8896 else
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 $as_echo "no" >&6; }
8899 fi
8900
8901
8902   fi
8903   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8904     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8905 set dummy ${ncn_progname}; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if test "${ac_cv_prog_NM+set}" = set; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   if test -n "$NM"; then
8912   ac_cv_prog_NM="$NM" # Let the user override the test.
8913 else
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917   IFS=$as_save_IFS
8918   test -z "$as_dir" && as_dir=.
8919     for ac_exec_ext in '' $ac_executable_extensions; do
8920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8921     ac_cv_prog_NM="${ncn_progname}"
8922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923     break 2
8924   fi
8925 done
8926   done
8927 IFS=$as_save_IFS
8928
8929 fi
8930 fi
8931 NM=$ac_cv_prog_NM
8932 if test -n "$NM"; then
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8934 $as_echo "$NM" >&6; }
8935 else
8936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 fi
8939
8940
8941   fi
8942   test -n "$ac_cv_prog_NM" && break
8943 done
8944
8945 if test -z "$ac_cv_prog_NM" ; then
8946   set dummy nm
8947   if test $build = $host ; then
8948     NM="$2"
8949   else
8950     NM="${ncn_tool_prefix}$2"
8951   fi
8952 fi
8953
8954
8955
8956 if test -n "$RANLIB"; then
8957   ac_cv_prog_RANLIB=$RANLIB
8958 elif test -n "$ac_cv_prog_RANLIB"; then
8959   RANLIB=$ac_cv_prog_RANLIB
8960 fi
8961
8962 if test -n "$ac_cv_prog_RANLIB"; then
8963   for ncn_progname in ranlib; do
8964     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965 set dummy ${ncn_progname}; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   if test -n "$RANLIB"; then
8972   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979     for ac_exec_ext in '' $ac_executable_extensions; do
8980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981     ac_cv_prog_RANLIB="${ncn_progname}"
8982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986   done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 RANLIB=$ac_cv_prog_RANLIB
8992 if test -n "$RANLIB"; then
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8994 $as_echo "$RANLIB" >&6; }
8995 else
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999
9000
9001   done
9002 fi
9003
9004 for ncn_progname in ranlib; do
9005   if test -n "$ncn_tool_prefix"; then
9006     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9007 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009 $as_echo_n "checking for $ac_word... " >&6; }
9010 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9011   $as_echo_n "(cached) " >&6
9012 else
9013   if test -n "$RANLIB"; then
9014   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9015 else
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019   IFS=$as_save_IFS
9020   test -z "$as_dir" && as_dir=.
9021     for ac_exec_ext in '' $ac_executable_extensions; do
9022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9023     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025     break 2
9026   fi
9027 done
9028   done
9029 IFS=$as_save_IFS
9030
9031 fi
9032 fi
9033 RANLIB=$ac_cv_prog_RANLIB
9034 if test -n "$RANLIB"; then
9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9036 $as_echo "$RANLIB" >&6; }
9037 else
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9040 fi
9041
9042
9043   fi
9044   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9045     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9046 set dummy ${ncn_progname}; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   if test -n "$RANLIB"; then
9053   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058   IFS=$as_save_IFS
9059   test -z "$as_dir" && as_dir=.
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062     ac_cv_prog_RANLIB="${ncn_progname}"
9063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064     break 2
9065   fi
9066 done
9067   done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 RANLIB=$ac_cv_prog_RANLIB
9073 if test -n "$RANLIB"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9075 $as_echo "$RANLIB" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082   fi
9083   test -n "$ac_cv_prog_RANLIB" && break
9084 done
9085
9086 if test -z "$ac_cv_prog_RANLIB" ; then
9087   RANLIB="true"
9088 fi
9089
9090
9091
9092 if test -n "$STRIP"; then
9093   ac_cv_prog_STRIP=$STRIP
9094 elif test -n "$ac_cv_prog_STRIP"; then
9095   STRIP=$ac_cv_prog_STRIP
9096 fi
9097
9098 if test -n "$ac_cv_prog_STRIP"; then
9099   for ncn_progname in strip; do
9100     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if test "${ac_cv_prog_STRIP+set}" = set; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   if test -n "$STRIP"; then
9108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113   IFS=$as_save_IFS
9114   test -z "$as_dir" && as_dir=.
9115     for ac_exec_ext in '' $ac_executable_extensions; do
9116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117     ac_cv_prog_STRIP="${ncn_progname}"
9118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119     break 2
9120   fi
9121 done
9122   done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 STRIP=$ac_cv_prog_STRIP
9128 if test -n "$STRIP"; then
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130 $as_echo "$STRIP" >&6; }
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136
9137   done
9138 fi
9139
9140 for ncn_progname in strip; do
9141   if test -n "$ncn_tool_prefix"; then
9142     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9143 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145 $as_echo_n "checking for $ac_word... " >&6; }
9146 if test "${ac_cv_prog_STRIP+set}" = set; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   if test -n "$STRIP"; then
9150   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9151 else
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9154 do
9155   IFS=$as_save_IFS
9156   test -z "$as_dir" && as_dir=.
9157     for ac_exec_ext in '' $ac_executable_extensions; do
9158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161     break 2
9162   fi
9163 done
9164   done
9165 IFS=$as_save_IFS
9166
9167 fi
9168 fi
9169 STRIP=$ac_cv_prog_STRIP
9170 if test -n "$STRIP"; then
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9172 $as_echo "$STRIP" >&6; }
9173 else
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9176 fi
9177
9178
9179   fi
9180   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9181     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9182 set dummy ${ncn_progname}; ac_word=$2
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184 $as_echo_n "checking for $ac_word... " >&6; }
9185 if test "${ac_cv_prog_STRIP+set}" = set; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   if test -n "$STRIP"; then
9189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9190 else
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9193 do
9194   IFS=$as_save_IFS
9195   test -z "$as_dir" && as_dir=.
9196     for ac_exec_ext in '' $ac_executable_extensions; do
9197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9198     ac_cv_prog_STRIP="${ncn_progname}"
9199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9200     break 2
9201   fi
9202 done
9203   done
9204 IFS=$as_save_IFS
9205
9206 fi
9207 fi
9208 STRIP=$ac_cv_prog_STRIP
9209 if test -n "$STRIP"; then
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9211 $as_echo "$STRIP" >&6; }
9212 else
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215 fi
9216
9217
9218   fi
9219   test -n "$ac_cv_prog_STRIP" && break
9220 done
9221
9222 if test -z "$ac_cv_prog_STRIP" ; then
9223   STRIP="true"
9224 fi
9225
9226
9227
9228 if test -n "$WINDRES"; then
9229   ac_cv_prog_WINDRES=$WINDRES
9230 elif test -n "$ac_cv_prog_WINDRES"; then
9231   WINDRES=$ac_cv_prog_WINDRES
9232 fi
9233
9234 if test -n "$ac_cv_prog_WINDRES"; then
9235   for ncn_progname in windres; do
9236     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237 set dummy ${ncn_progname}; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   if test -n "$WINDRES"; then
9244   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9253     ac_cv_prog_WINDRES="${ncn_progname}"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 WINDRES=$ac_cv_prog_WINDRES
9264 if test -n "$WINDRES"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9266 $as_echo "$WINDRES" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273   done
9274 fi
9275
9276 for ncn_progname in windres; do
9277   if test -n "$ncn_tool_prefix"; then
9278     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9279 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9283   $as_echo_n "(cached) " >&6
9284 else
9285   if test -n "$WINDRES"; then
9286   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9290 do
9291   IFS=$as_save_IFS
9292   test -z "$as_dir" && as_dir=.
9293     for ac_exec_ext in '' $ac_executable_extensions; do
9294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297     break 2
9298   fi
9299 done
9300   done
9301 IFS=$as_save_IFS
9302
9303 fi
9304 fi
9305 WINDRES=$ac_cv_prog_WINDRES
9306 if test -n "$WINDRES"; then
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9308 $as_echo "$WINDRES" >&6; }
9309 else
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9312 fi
9313
9314
9315   fi
9316   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9317     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9318 set dummy ${ncn_progname}; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9322   $as_echo_n "(cached) " >&6
9323 else
9324   if test -n "$WINDRES"; then
9325   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330   IFS=$as_save_IFS
9331   test -z "$as_dir" && as_dir=.
9332     for ac_exec_ext in '' $ac_executable_extensions; do
9333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334     ac_cv_prog_WINDRES="${ncn_progname}"
9335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336     break 2
9337   fi
9338 done
9339   done
9340 IFS=$as_save_IFS
9341
9342 fi
9343 fi
9344 WINDRES=$ac_cv_prog_WINDRES
9345 if test -n "$WINDRES"; then
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9347 $as_echo "$WINDRES" >&6; }
9348 else
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354   fi
9355   test -n "$ac_cv_prog_WINDRES" && break
9356 done
9357
9358 if test -z "$ac_cv_prog_WINDRES" ; then
9359   set dummy windres
9360   if test $build = $host ; then
9361     WINDRES="$2"
9362   else
9363     WINDRES="${ncn_tool_prefix}$2"
9364   fi
9365 fi
9366
9367
9368
9369 if test -n "$WINDMC"; then
9370   ac_cv_prog_WINDMC=$WINDMC
9371 elif test -n "$ac_cv_prog_WINDMC"; then
9372   WINDMC=$ac_cv_prog_WINDMC
9373 fi
9374
9375 if test -n "$ac_cv_prog_WINDMC"; then
9376   for ncn_progname in windmc; do
9377     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9378 set dummy ${ncn_progname}; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   if test -n "$WINDMC"; then
9385   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9386 else
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 for as_dir in $PATH
9389 do
9390   IFS=$as_save_IFS
9391   test -z "$as_dir" && as_dir=.
9392     for ac_exec_ext in '' $ac_executable_extensions; do
9393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394     ac_cv_prog_WINDMC="${ncn_progname}"
9395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396     break 2
9397   fi
9398 done
9399   done
9400 IFS=$as_save_IFS
9401
9402 fi
9403 fi
9404 WINDMC=$ac_cv_prog_WINDMC
9405 if test -n "$WINDMC"; then
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9407 $as_echo "$WINDMC" >&6; }
9408 else
9409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9411 fi
9412
9413
9414   done
9415 fi
9416
9417 for ncn_progname in windmc; do
9418   if test -n "$ncn_tool_prefix"; then
9419     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9420 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 $as_echo_n "checking for $ac_word... " >&6; }
9423 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   if test -n "$WINDMC"; then
9427   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9428 else
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $PATH
9431 do
9432   IFS=$as_save_IFS
9433   test -z "$as_dir" && as_dir=.
9434     for ac_exec_ext in '' $ac_executable_extensions; do
9435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9436     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438     break 2
9439   fi
9440 done
9441   done
9442 IFS=$as_save_IFS
9443
9444 fi
9445 fi
9446 WINDMC=$ac_cv_prog_WINDMC
9447 if test -n "$WINDMC"; then
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9449 $as_echo "$WINDMC" >&6; }
9450 else
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9453 fi
9454
9455
9456   fi
9457   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9458     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9459 set dummy ${ncn_progname}; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   if test -n "$WINDMC"; then
9466   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471   IFS=$as_save_IFS
9472   test -z "$as_dir" && as_dir=.
9473     for ac_exec_ext in '' $ac_executable_extensions; do
9474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475     ac_cv_prog_WINDMC="${ncn_progname}"
9476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477     break 2
9478   fi
9479 done
9480   done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 WINDMC=$ac_cv_prog_WINDMC
9486 if test -n "$WINDMC"; then
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9488 $as_echo "$WINDMC" >&6; }
9489 else
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9492 fi
9493
9494
9495   fi
9496   test -n "$ac_cv_prog_WINDMC" && break
9497 done
9498
9499 if test -z "$ac_cv_prog_WINDMC" ; then
9500   set dummy windmc
9501   if test $build = $host ; then
9502     WINDMC="$2"
9503   else
9504     WINDMC="${ncn_tool_prefix}$2"
9505   fi
9506 fi
9507
9508
9509
9510 if test -n "$OBJCOPY"; then
9511   ac_cv_prog_OBJCOPY=$OBJCOPY
9512 elif test -n "$ac_cv_prog_OBJCOPY"; then
9513   OBJCOPY=$ac_cv_prog_OBJCOPY
9514 fi
9515
9516 if test -n "$ac_cv_prog_OBJCOPY"; then
9517   for ncn_progname in objcopy; do
9518     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519 set dummy ${ncn_progname}; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   if test -n "$OBJCOPY"; then
9526   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9527 else
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531   IFS=$as_save_IFS
9532   test -z "$as_dir" && as_dir=.
9533     for ac_exec_ext in '' $ac_executable_extensions; do
9534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9535     ac_cv_prog_OBJCOPY="${ncn_progname}"
9536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537     break 2
9538   fi
9539 done
9540   done
9541 IFS=$as_save_IFS
9542
9543 fi
9544 fi
9545 OBJCOPY=$ac_cv_prog_OBJCOPY
9546 if test -n "$OBJCOPY"; then
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9548 $as_echo "$OBJCOPY" >&6; }
9549 else
9550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551 $as_echo "no" >&6; }
9552 fi
9553
9554
9555   done
9556 fi
9557
9558 for ncn_progname in objcopy; do
9559   if test -n "$ncn_tool_prefix"; then
9560     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9561 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9565   $as_echo_n "(cached) " >&6
9566 else
9567   if test -n "$OBJCOPY"; then
9568   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9569 else
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 for as_dir in $PATH
9572 do
9573   IFS=$as_save_IFS
9574   test -z "$as_dir" && as_dir=.
9575     for ac_exec_ext in '' $ac_executable_extensions; do
9576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9577     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579     break 2
9580   fi
9581 done
9582   done
9583 IFS=$as_save_IFS
9584
9585 fi
9586 fi
9587 OBJCOPY=$ac_cv_prog_OBJCOPY
9588 if test -n "$OBJCOPY"; then
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9590 $as_echo "$OBJCOPY" >&6; }
9591 else
9592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9594 fi
9595
9596
9597   fi
9598   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9599     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9600 set dummy ${ncn_progname}; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   if test -n "$OBJCOPY"; then
9607   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612   IFS=$as_save_IFS
9613   test -z "$as_dir" && as_dir=.
9614     for ac_exec_ext in '' $ac_executable_extensions; do
9615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616     ac_cv_prog_OBJCOPY="${ncn_progname}"
9617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618     break 2
9619   fi
9620 done
9621   done
9622 IFS=$as_save_IFS
9623
9624 fi
9625 fi
9626 OBJCOPY=$ac_cv_prog_OBJCOPY
9627 if test -n "$OBJCOPY"; then
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9629 $as_echo "$OBJCOPY" >&6; }
9630 else
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634
9635
9636   fi
9637   test -n "$ac_cv_prog_OBJCOPY" && break
9638 done
9639
9640 if test -z "$ac_cv_prog_OBJCOPY" ; then
9641   set dummy objcopy
9642   if test $build = $host ; then
9643     OBJCOPY="$2"
9644   else
9645     OBJCOPY="${ncn_tool_prefix}$2"
9646   fi
9647 fi
9648
9649
9650
9651 if test -n "$OBJDUMP"; then
9652   ac_cv_prog_OBJDUMP=$OBJDUMP
9653 elif test -n "$ac_cv_prog_OBJDUMP"; then
9654   OBJDUMP=$ac_cv_prog_OBJDUMP
9655 fi
9656
9657 if test -n "$ac_cv_prog_OBJDUMP"; then
9658   for ncn_progname in objdump; do
9659     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660 set dummy ${ncn_progname}; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   if test -n "$OBJDUMP"; then
9667   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672   IFS=$as_save_IFS
9673   test -z "$as_dir" && as_dir=.
9674     for ac_exec_ext in '' $ac_executable_extensions; do
9675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9676     ac_cv_prog_OBJDUMP="${ncn_progname}"
9677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678     break 2
9679   fi
9680 done
9681   done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 OBJDUMP=$ac_cv_prog_OBJDUMP
9687 if test -n "$OBJDUMP"; then
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689 $as_echo "$OBJDUMP" >&6; }
9690 else
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695
9696   done
9697 fi
9698
9699 for ncn_progname in objdump; do
9700   if test -n "$ncn_tool_prefix"; then
9701     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9702 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   if test -n "$OBJDUMP"; then
9709   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9710 else
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9713 do
9714   IFS=$as_save_IFS
9715   test -z "$as_dir" && as_dir=.
9716     for ac_exec_ext in '' $ac_executable_extensions; do
9717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720     break 2
9721   fi
9722 done
9723   done
9724 IFS=$as_save_IFS
9725
9726 fi
9727 fi
9728 OBJDUMP=$ac_cv_prog_OBJDUMP
9729 if test -n "$OBJDUMP"; then
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9731 $as_echo "$OBJDUMP" >&6; }
9732 else
9733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9735 fi
9736
9737
9738   fi
9739   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9740     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9741 set dummy ${ncn_progname}; ac_word=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9745   $as_echo_n "(cached) " >&6
9746 else
9747   if test -n "$OBJDUMP"; then
9748   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9749 else
9750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 for as_dir in $PATH
9752 do
9753   IFS=$as_save_IFS
9754   test -z "$as_dir" && as_dir=.
9755     for ac_exec_ext in '' $ac_executable_extensions; do
9756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757     ac_cv_prog_OBJDUMP="${ncn_progname}"
9758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759     break 2
9760   fi
9761 done
9762   done
9763 IFS=$as_save_IFS
9764
9765 fi
9766 fi
9767 OBJDUMP=$ac_cv_prog_OBJDUMP
9768 if test -n "$OBJDUMP"; then
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9770 $as_echo "$OBJDUMP" >&6; }
9771 else
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 fi
9775
9776
9777   fi
9778   test -n "$ac_cv_prog_OBJDUMP" && break
9779 done
9780
9781 if test -z "$ac_cv_prog_OBJDUMP" ; then
9782   set dummy objdump
9783   if test $build = $host ; then
9784     OBJDUMP="$2"
9785   else
9786     OBJDUMP="${ncn_tool_prefix}$2"
9787   fi
9788 fi
9789
9790
9791
9792 if test -n "$READELF"; then
9793   ac_cv_prog_READELF=$READELF
9794 elif test -n "$ac_cv_prog_READELF"; then
9795   READELF=$ac_cv_prog_READELF
9796 fi
9797
9798 if test -n "$ac_cv_prog_READELF"; then
9799   for ncn_progname in readelf; do
9800     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801 set dummy ${ncn_progname}; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if test "${ac_cv_prog_READELF+set}" = set; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   if test -n "$READELF"; then
9808   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813   IFS=$as_save_IFS
9814   test -z "$as_dir" && as_dir=.
9815     for ac_exec_ext in '' $ac_executable_extensions; do
9816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817     ac_cv_prog_READELF="${ncn_progname}"
9818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819     break 2
9820   fi
9821 done
9822   done
9823 IFS=$as_save_IFS
9824
9825 fi
9826 fi
9827 READELF=$ac_cv_prog_READELF
9828 if test -n "$READELF"; then
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9830 $as_echo "$READELF" >&6; }
9831 else
9832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835
9836
9837   done
9838 fi
9839
9840 for ncn_progname in readelf; do
9841   if test -n "$ncn_tool_prefix"; then
9842     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9843 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if test "${ac_cv_prog_READELF+set}" = set; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   if test -n "$READELF"; then
9850   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9851 else
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9854 do
9855   IFS=$as_save_IFS
9856   test -z "$as_dir" && as_dir=.
9857     for ac_exec_ext in '' $ac_executable_extensions; do
9858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861     break 2
9862   fi
9863 done
9864   done
9865 IFS=$as_save_IFS
9866
9867 fi
9868 fi
9869 READELF=$ac_cv_prog_READELF
9870 if test -n "$READELF"; then
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9872 $as_echo "$READELF" >&6; }
9873 else
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876 fi
9877
9878
9879   fi
9880   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9881     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9882 set dummy ${ncn_progname}; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_READELF+set}" = set; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888   if test -n "$READELF"; then
9889   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9890 else
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9893 do
9894   IFS=$as_save_IFS
9895   test -z "$as_dir" && as_dir=.
9896     for ac_exec_ext in '' $ac_executable_extensions; do
9897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898     ac_cv_prog_READELF="${ncn_progname}"
9899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900     break 2
9901   fi
9902 done
9903   done
9904 IFS=$as_save_IFS
9905
9906 fi
9907 fi
9908 READELF=$ac_cv_prog_READELF
9909 if test -n "$READELF"; then
9910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9911 $as_echo "$READELF" >&6; }
9912 else
9913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9915 fi
9916
9917
9918   fi
9919   test -n "$ac_cv_prog_READELF" && break
9920 done
9921
9922 if test -z "$ac_cv_prog_READELF" ; then
9923   set dummy readelf
9924   if test $build = $host ; then
9925     READELF="$2"
9926   else
9927     READELF="${ncn_tool_prefix}$2"
9928   fi
9929 fi
9930
9931
9932
9933
9934
9935
9936 # Target tools.
9937
9938 # Check whether --with-build-time-tools was given.
9939 if test "${with_build_time_tools+set}" = set; then :
9940   withval=$with_build_time_tools; case x"$withval" in
9941      x/*) ;;
9942      *)
9943        with_build_time_tools=
9944        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9945 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9946        ;;
9947    esac
9948 else
9949   with_build_time_tools=
9950 fi
9951
9952
9953
9954
9955 if test -n "$CC_FOR_TARGET"; then
9956   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9957 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9958   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9959 fi
9960
9961 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9962   for ncn_progname in cc gcc; do
9963     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9964 set dummy ${ncn_progname}; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   if test -n "$CC_FOR_TARGET"; then
9971   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982     break 2
9983   fi
9984 done
9985   done
9986 IFS=$as_save_IFS
9987
9988 fi
9989 fi
9990 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9991 if test -n "$CC_FOR_TARGET"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9993 $as_echo "$CC_FOR_TARGET" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999
10000   done
10001 fi
10002
10003 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10004   for ncn_progname in cc gcc; do
10005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10007     if test -x $with_build_time_tools/${ncn_progname}; then
10008       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10011       break
10012     else
10013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015     fi
10016   done
10017 fi
10018
10019 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10020   for ncn_progname in cc gcc; do
10021     if test -n "$ncn_target_tool_prefix"; then
10022       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10027   $as_echo_n "(cached) " >&6
10028 else
10029   if test -n "$CC_FOR_TARGET"; then
10030   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035   IFS=$as_save_IFS
10036   test -z "$as_dir" && as_dir=.
10037     for ac_exec_ext in '' $ac_executable_extensions; do
10038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10039     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041     break 2
10042   fi
10043 done
10044   done
10045 IFS=$as_save_IFS
10046
10047 fi
10048 fi
10049 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10050 if test -n "$CC_FOR_TARGET"; then
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10052 $as_echo "$CC_FOR_TARGET" >&6; }
10053 else
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058
10059     fi
10060     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10061       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10062 set dummy ${ncn_progname}; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   if test -n "$CC_FOR_TARGET"; then
10069   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10070 else
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076     for ac_exec_ext in '' $ac_executable_extensions; do
10077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083   done
10084 IFS=$as_save_IFS
10085
10086 fi
10087 fi
10088 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10089 if test -n "$CC_FOR_TARGET"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10091 $as_echo "$CC_FOR_TARGET" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096
10097
10098     fi
10099     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10100   done
10101 fi
10102
10103 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10104   set dummy cc gcc
10105   if test $build = $target ; then
10106     CC_FOR_TARGET="$2"
10107   else
10108     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10109   fi
10110 else
10111   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10112 fi
10113
10114
10115
10116 if test -n "$CXX_FOR_TARGET"; then
10117   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10118 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10119   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10120 fi
10121
10122 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10123   for ncn_progname in c++ g++ cxx gxx; do
10124     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10125 set dummy ${ncn_progname}; ac_word=$2
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127 $as_echo_n "checking for $ac_word... " >&6; }
10128 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   if test -n "$CXX_FOR_TARGET"; then
10132   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137   IFS=$as_save_IFS
10138   test -z "$as_dir" && as_dir=.
10139     for ac_exec_ext in '' $ac_executable_extensions; do
10140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10141     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143     break 2
10144   fi
10145 done
10146   done
10147 IFS=$as_save_IFS
10148
10149 fi
10150 fi
10151 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10152 if test -n "$CXX_FOR_TARGET"; then
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10154 $as_echo "$CXX_FOR_TARGET" >&6; }
10155 else
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159
10160
10161   done
10162 fi
10163
10164 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10165   for ncn_progname in c++ g++ cxx gxx; do
10166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10168     if test -x $with_build_time_tools/${ncn_progname}; then
10169       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10171 $as_echo "yes" >&6; }
10172       break
10173     else
10174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176     fi
10177   done
10178 fi
10179
10180 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10181   for ncn_progname in c++ g++ cxx gxx; do
10182     if test -n "$ncn_target_tool_prefix"; then
10183       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   if test -n "$CXX_FOR_TARGET"; then
10191   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196   IFS=$as_save_IFS
10197   test -z "$as_dir" && as_dir=.
10198     for ac_exec_ext in '' $ac_executable_extensions; do
10199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202     break 2
10203   fi
10204 done
10205   done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10211 if test -n "$CXX_FOR_TARGET"; then
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10213 $as_echo "$CXX_FOR_TARGET" >&6; }
10214 else
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220     fi
10221     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10222       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10223 set dummy ${ncn_progname}; ac_word=$2
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10225 $as_echo_n "checking for $ac_word... " >&6; }
10226 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10227   $as_echo_n "(cached) " >&6
10228 else
10229   if test -n "$CXX_FOR_TARGET"; then
10230   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10231 else
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235   IFS=$as_save_IFS
10236   test -z "$as_dir" && as_dir=.
10237     for ac_exec_ext in '' $ac_executable_extensions; do
10238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241     break 2
10242   fi
10243 done
10244   done
10245 IFS=$as_save_IFS
10246
10247 fi
10248 fi
10249 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10250 if test -n "$CXX_FOR_TARGET"; then
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10252 $as_echo "$CXX_FOR_TARGET" >&6; }
10253 else
10254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256 fi
10257
10258
10259     fi
10260     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10261   done
10262 fi
10263
10264 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10265   set dummy c++ g++ cxx gxx
10266   if test $build = $target ; then
10267     CXX_FOR_TARGET="$2"
10268   else
10269     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10270   fi
10271 else
10272   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10273 fi
10274
10275
10276
10277 if test -n "$GCC_FOR_TARGET"; then
10278   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10279 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10280   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10281 fi
10282
10283 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10284   for ncn_progname in gcc; do
10285     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10286 set dummy ${ncn_progname}; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$GCC_FOR_TARGET"; then
10293   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10313 if test -n "$GCC_FOR_TARGET"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10315 $as_echo "$GCC_FOR_TARGET" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322   done
10323 fi
10324
10325 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10326   for ncn_progname in gcc; do
10327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10329     if test -x $with_build_time_tools/${ncn_progname}; then
10330       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10332 $as_echo "yes" >&6; }
10333       break
10334     else
10335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337     fi
10338   done
10339 fi
10340
10341 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10342   for ncn_progname in gcc; do
10343     if test -n "$ncn_target_tool_prefix"; then
10344       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351   if test -n "$GCC_FOR_TARGET"; then
10352   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357   IFS=$as_save_IFS
10358   test -z "$as_dir" && as_dir=.
10359     for ac_exec_ext in '' $ac_executable_extensions; do
10360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10361     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363     break 2
10364   fi
10365 done
10366   done
10367 IFS=$as_save_IFS
10368
10369 fi
10370 fi
10371 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10372 if test -n "$GCC_FOR_TARGET"; then
10373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10374 $as_echo "$GCC_FOR_TARGET" >&6; }
10375 else
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 fi
10379
10380
10381     fi
10382     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10383       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10384 set dummy ${ncn_progname}; ac_word=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10388   $as_echo_n "(cached) " >&6
10389 else
10390   if test -n "$GCC_FOR_TARGET"; then
10391   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10392 else
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10395 do
10396   IFS=$as_save_IFS
10397   test -z "$as_dir" && as_dir=.
10398     for ac_exec_ext in '' $ac_executable_extensions; do
10399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402     break 2
10403   fi
10404 done
10405   done
10406 IFS=$as_save_IFS
10407
10408 fi
10409 fi
10410 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10411 if test -n "$GCC_FOR_TARGET"; then
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10413 $as_echo "$GCC_FOR_TARGET" >&6; }
10414 else
10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10417 fi
10418
10419
10420     fi
10421     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10422   done
10423 fi
10424
10425 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10426   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10427 else
10428   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10429 fi
10430
10431
10432
10433 if test -n "$GCJ_FOR_TARGET"; then
10434   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10435 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10436   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10437 fi
10438
10439 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10440   for ncn_progname in gcj; do
10441     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442 set dummy ${ncn_progname}; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10446   $as_echo_n "(cached) " >&6
10447 else
10448   if test -n "$GCJ_FOR_TARGET"; then
10449   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10450 else
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10453 do
10454   IFS=$as_save_IFS
10455   test -z "$as_dir" && as_dir=.
10456     for ac_exec_ext in '' $ac_executable_extensions; do
10457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460     break 2
10461   fi
10462 done
10463   done
10464 IFS=$as_save_IFS
10465
10466 fi
10467 fi
10468 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10469 if test -n "$GCJ_FOR_TARGET"; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10471 $as_echo "$GCJ_FOR_TARGET" >&6; }
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476
10477
10478   done
10479 fi
10480
10481 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10482   for ncn_progname in gcj; do
10483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10484 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10485     if test -x $with_build_time_tools/${ncn_progname}; then
10486       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488 $as_echo "yes" >&6; }
10489       break
10490     else
10491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493     fi
10494   done
10495 fi
10496
10497 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10498   for ncn_progname in gcj; do
10499     if test -n "$ncn_target_tool_prefix"; then
10500       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10501 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10505   $as_echo_n "(cached) " >&6
10506 else
10507   if test -n "$GCJ_FOR_TARGET"; then
10508   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10509 else
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513   IFS=$as_save_IFS
10514   test -z "$as_dir" && as_dir=.
10515     for ac_exec_ext in '' $ac_executable_extensions; do
10516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519     break 2
10520   fi
10521 done
10522   done
10523 IFS=$as_save_IFS
10524
10525 fi
10526 fi
10527 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10528 if test -n "$GCJ_FOR_TARGET"; then
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10530 $as_echo "$GCJ_FOR_TARGET" >&6; }
10531 else
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10534 fi
10535
10536
10537     fi
10538     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10539       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10540 set dummy ${ncn_progname}; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   if test -n "$GCJ_FOR_TARGET"; then
10547   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10548 else
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10551 do
10552   IFS=$as_save_IFS
10553   test -z "$as_dir" && as_dir=.
10554     for ac_exec_ext in '' $ac_executable_extensions; do
10555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10556     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558     break 2
10559   fi
10560 done
10561   done
10562 IFS=$as_save_IFS
10563
10564 fi
10565 fi
10566 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10567 if test -n "$GCJ_FOR_TARGET"; then
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10569 $as_echo "$GCJ_FOR_TARGET" >&6; }
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574
10575
10576     fi
10577     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10578   done
10579 fi
10580
10581 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10582   set dummy gcj
10583   if test $build = $target ; then
10584     GCJ_FOR_TARGET="$2"
10585   else
10586     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10587   fi
10588 else
10589   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10590 fi
10591
10592
10593
10594 if test -n "$GFORTRAN_FOR_TARGET"; then
10595   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10596 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10597   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10598 fi
10599
10600 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10601   for ncn_progname in gfortran; do
10602     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10603 set dummy ${ncn_progname}; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10607   $as_echo_n "(cached) " >&6
10608 else
10609   if test -n "$GFORTRAN_FOR_TARGET"; then
10610   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10611 else
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10614 do
10615   IFS=$as_save_IFS
10616   test -z "$as_dir" && as_dir=.
10617     for ac_exec_ext in '' $ac_executable_extensions; do
10618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621     break 2
10622   fi
10623 done
10624   done
10625 IFS=$as_save_IFS
10626
10627 fi
10628 fi
10629 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10630 if test -n "$GFORTRAN_FOR_TARGET"; then
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10632 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10633 else
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10636 fi
10637
10638
10639   done
10640 fi
10641
10642 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10643   for ncn_progname in gfortran; do
10644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10646     if test -x $with_build_time_tools/${ncn_progname}; then
10647       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10649 $as_echo "yes" >&6; }
10650       break
10651     else
10652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10654     fi
10655   done
10656 fi
10657
10658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10659   for ncn_progname in gfortran; do
10660     if test -n "$ncn_target_tool_prefix"; then
10661       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   if test -n "$GFORTRAN_FOR_TARGET"; then
10669   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674   IFS=$as_save_IFS
10675   test -z "$as_dir" && as_dir=.
10676     for ac_exec_ext in '' $ac_executable_extensions; do
10677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680     break 2
10681   fi
10682 done
10683   done
10684 IFS=$as_save_IFS
10685
10686 fi
10687 fi
10688 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10689 if test -n "$GFORTRAN_FOR_TARGET"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10691 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698     fi
10699     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10700       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10701 set dummy ${ncn_progname}; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   if test -n "$GFORTRAN_FOR_TARGET"; then
10708   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713   IFS=$as_save_IFS
10714   test -z "$as_dir" && as_dir=.
10715     for ac_exec_ext in '' $ac_executable_extensions; do
10716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719     break 2
10720   fi
10721 done
10722   done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10728 if test -n "$GFORTRAN_FOR_TARGET"; then
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10730 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736
10737     fi
10738     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10739   done
10740 fi
10741
10742 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10743   set dummy gfortran
10744   if test $build = $target ; then
10745     GFORTRAN_FOR_TARGET="$2"
10746   else
10747     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10748   fi
10749 else
10750   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10751 fi
10752
10753
10754
10755 if test -n "$GOC_FOR_TARGET"; then
10756   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10757 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10758   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10759 fi
10760
10761 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10762   for ncn_progname in gccgo; do
10763     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10764 set dummy ${ncn_progname}; ac_word=$2
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10766 $as_echo_n "checking for $ac_word... " >&6; }
10767 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10768   $as_echo_n "(cached) " >&6
10769 else
10770   if test -n "$GOC_FOR_TARGET"; then
10771   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10772 else
10773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in $PATH
10775 do
10776   IFS=$as_save_IFS
10777   test -z "$as_dir" && as_dir=.
10778     for ac_exec_ext in '' $ac_executable_extensions; do
10779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782     break 2
10783   fi
10784 done
10785   done
10786 IFS=$as_save_IFS
10787
10788 fi
10789 fi
10790 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10791 if test -n "$GOC_FOR_TARGET"; then
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10793 $as_echo "$GOC_FOR_TARGET" >&6; }
10794 else
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10797 fi
10798
10799
10800   done
10801 fi
10802
10803 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10804   for ncn_progname in gccgo; do
10805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10806 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10807     if test -x $with_build_time_tools/${ncn_progname}; then
10808       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810 $as_echo "yes" >&6; }
10811       break
10812     else
10813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815     fi
10816   done
10817 fi
10818
10819 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10820   for ncn_progname in gccgo; do
10821     if test -n "$ncn_target_tool_prefix"; then
10822       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10823 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   if test -n "$GOC_FOR_TARGET"; then
10830   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10831 else
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10834 do
10835   IFS=$as_save_IFS
10836   test -z "$as_dir" && as_dir=.
10837     for ac_exec_ext in '' $ac_executable_extensions; do
10838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841     break 2
10842   fi
10843 done
10844   done
10845 IFS=$as_save_IFS
10846
10847 fi
10848 fi
10849 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10850 if test -n "$GOC_FOR_TARGET"; then
10851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10852 $as_echo "$GOC_FOR_TARGET" >&6; }
10853 else
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10856 fi
10857
10858
10859     fi
10860     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10861       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10862 set dummy ${ncn_progname}; ac_word=$2
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864 $as_echo_n "checking for $ac_word... " >&6; }
10865 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   if test -n "$GOC_FOR_TARGET"; then
10869   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10870 else
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885
10886 fi
10887 fi
10888 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10889 if test -n "$GOC_FOR_TARGET"; then
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10891 $as_echo "$GOC_FOR_TARGET" >&6; }
10892 else
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 fi
10896
10897
10898     fi
10899     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10900   done
10901 fi
10902
10903 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10904   set dummy gccgo
10905   if test $build = $target ; then
10906     GOC_FOR_TARGET="$2"
10907   else
10908     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10909   fi
10910 else
10911   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10912 fi
10913
10914
10915
10916 cat > conftest.c << \EOF
10917 #ifdef __GNUC__
10918   gcc_yay;
10919 #endif
10920 EOF
10921 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10922   have_gcc_for_target=yes
10923 else
10924   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10925   have_gcc_for_target=no
10926 fi
10927 rm conftest.c
10928
10929
10930
10931
10932 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10933   if test -n "$with_build_time_tools"; then
10934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10935 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10936     if test -x $with_build_time_tools/ar; then
10937       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10938       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10940 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10941     else
10942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10944     fi
10945   elif test $build != $host && test $have_gcc_for_target = yes; then
10946     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10947     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10948     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10949   fi
10950 fi
10951 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10952   # Extract the first word of "ar", so it can be a program name with args.
10953 set dummy ar; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   case $AR_FOR_TARGET in
10960   [\\/]* | ?:[\\/]*)
10961   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10962   ;;
10963   *)
10964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $gcc_cv_tool_dirs
10966 do
10967   IFS=$as_save_IFS
10968   test -z "$as_dir" && as_dir=.
10969     for ac_exec_ext in '' $ac_executable_extensions; do
10970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973     break 2
10974   fi
10975 done
10976   done
10977 IFS=$as_save_IFS
10978
10979   ;;
10980 esac
10981 fi
10982 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10983 if test -n "$AR_FOR_TARGET"; then
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10985 $as_echo "$AR_FOR_TARGET" >&6; }
10986 else
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10989 fi
10990
10991
10992 fi
10993 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10994
10995
10996 if test -n "$AR_FOR_TARGET"; then
10997   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10998 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10999   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11000 fi
11001
11002 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11003   for ncn_progname in ar; do
11004     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11005 set dummy ${ncn_progname}; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11009   $as_echo_n "(cached) " >&6
11010 else
11011   if test -n "$AR_FOR_TARGET"; then
11012   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11013 else
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017   IFS=$as_save_IFS
11018   test -z "$as_dir" && as_dir=.
11019     for ac_exec_ext in '' $ac_executable_extensions; do
11020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11021     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023     break 2
11024   fi
11025 done
11026   done
11027 IFS=$as_save_IFS
11028
11029 fi
11030 fi
11031 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11032 if test -n "$AR_FOR_TARGET"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11034 $as_echo "$AR_FOR_TARGET" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 fi
11039
11040
11041   done
11042 fi
11043
11044 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11045   for ncn_progname in ar; do
11046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11047 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11048     if test -x $with_build_time_tools/${ncn_progname}; then
11049       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; }
11052       break
11053     else
11054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 $as_echo "no" >&6; }
11056     fi
11057   done
11058 fi
11059
11060 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11061   for ncn_progname in ar; do
11062     if test -n "$ncn_target_tool_prefix"; then
11063       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11064 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   if test -n "$AR_FOR_TARGET"; then
11071   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11072 else
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11075 do
11076   IFS=$as_save_IFS
11077   test -z "$as_dir" && as_dir=.
11078     for ac_exec_ext in '' $ac_executable_extensions; do
11079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082     break 2
11083   fi
11084 done
11085   done
11086 IFS=$as_save_IFS
11087
11088 fi
11089 fi
11090 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11091 if test -n "$AR_FOR_TARGET"; then
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11093 $as_echo "$AR_FOR_TARGET" >&6; }
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098
11099
11100     fi
11101     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11102       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11103 set dummy ${ncn_progname}; ac_word=$2
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105 $as_echo_n "checking for $ac_word... " >&6; }
11106 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   if test -n "$AR_FOR_TARGET"; then
11110   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11111 else
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11114 do
11115   IFS=$as_save_IFS
11116   test -z "$as_dir" && as_dir=.
11117     for ac_exec_ext in '' $ac_executable_extensions; do
11118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121     break 2
11122   fi
11123 done
11124   done
11125 IFS=$as_save_IFS
11126
11127 fi
11128 fi
11129 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11130 if test -n "$AR_FOR_TARGET"; then
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11132 $as_echo "$AR_FOR_TARGET" >&6; }
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136 fi
11137
11138
11139     fi
11140     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11141   done
11142 fi
11143
11144 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11145   set dummy ar
11146   if test $build = $target ; then
11147     AR_FOR_TARGET="$2"
11148   else
11149     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11150   fi
11151 else
11152   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11153 fi
11154
11155 else
11156   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11157 fi
11158
11159
11160
11161
11162 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11163   if test -n "$with_build_time_tools"; then
11164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11165 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11166     if test -x $with_build_time_tools/as; then
11167       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11168       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11170 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11171     else
11172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174     fi
11175   elif test $build != $host && test $have_gcc_for_target = yes; then
11176     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11177     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11178     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11179   fi
11180 fi
11181 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11182   # Extract the first word of "as", so it can be a program name with args.
11183 set dummy as; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   case $AS_FOR_TARGET in
11190   [\\/]* | ?:[\\/]*)
11191   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11192   ;;
11193   *)
11194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $gcc_cv_tool_dirs
11196 do
11197   IFS=$as_save_IFS
11198   test -z "$as_dir" && as_dir=.
11199     for ac_exec_ext in '' $ac_executable_extensions; do
11200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203     break 2
11204   fi
11205 done
11206   done
11207 IFS=$as_save_IFS
11208
11209   ;;
11210 esac
11211 fi
11212 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11213 if test -n "$AS_FOR_TARGET"; then
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11215 $as_echo "$AS_FOR_TARGET" >&6; }
11216 else
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; }
11219 fi
11220
11221
11222 fi
11223 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11224
11225
11226 if test -n "$AS_FOR_TARGET"; then
11227   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11228 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11229   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11230 fi
11231
11232 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11233   for ncn_progname in as; do
11234     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11235 set dummy ${ncn_progname}; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11239   $as_echo_n "(cached) " >&6
11240 else
11241   if test -n "$AS_FOR_TARGET"; then
11242   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11243 else
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247   IFS=$as_save_IFS
11248   test -z "$as_dir" && as_dir=.
11249     for ac_exec_ext in '' $ac_executable_extensions; do
11250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11251     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253     break 2
11254   fi
11255 done
11256   done
11257 IFS=$as_save_IFS
11258
11259 fi
11260 fi
11261 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11262 if test -n "$AS_FOR_TARGET"; then
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11264 $as_echo "$AS_FOR_TARGET" >&6; }
11265 else
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 fi
11269
11270
11271   done
11272 fi
11273
11274 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11275   for ncn_progname in as; do
11276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11277 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11278     if test -x $with_build_time_tools/${ncn_progname}; then
11279       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281 $as_echo "yes" >&6; }
11282       break
11283     else
11284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286     fi
11287   done
11288 fi
11289
11290 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11291   for ncn_progname in as; do
11292     if test -n "$ncn_target_tool_prefix"; then
11293       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11294 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   if test -n "$AS_FOR_TARGET"; then
11301   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11302 else
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11305 do
11306   IFS=$as_save_IFS
11307   test -z "$as_dir" && as_dir=.
11308     for ac_exec_ext in '' $ac_executable_extensions; do
11309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312     break 2
11313   fi
11314 done
11315   done
11316 IFS=$as_save_IFS
11317
11318 fi
11319 fi
11320 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11321 if test -n "$AS_FOR_TARGET"; then
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11323 $as_echo "$AS_FOR_TARGET" >&6; }
11324 else
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11327 fi
11328
11329
11330     fi
11331     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11332       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11333 set dummy ${ncn_progname}; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   if test -n "$AS_FOR_TARGET"; then
11340   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345   IFS=$as_save_IFS
11346   test -z "$as_dir" && as_dir=.
11347     for ac_exec_ext in '' $ac_executable_extensions; do
11348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351     break 2
11352   fi
11353 done
11354   done
11355 IFS=$as_save_IFS
11356
11357 fi
11358 fi
11359 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11360 if test -n "$AS_FOR_TARGET"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11362 $as_echo "$AS_FOR_TARGET" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369     fi
11370     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11371   done
11372 fi
11373
11374 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11375   set dummy as
11376   if test $build = $target ; then
11377     AS_FOR_TARGET="$2"
11378   else
11379     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11380   fi
11381 else
11382   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11383 fi
11384
11385 else
11386   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11387 fi
11388
11389
11390
11391
11392 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11393   if test -n "$with_build_time_tools"; then
11394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11395 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11396     if test -x $with_build_time_tools/dlltool; then
11397       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11398       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11400 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11401     else
11402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404     fi
11405   elif test $build != $host && test $have_gcc_for_target = yes; then
11406     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11407     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11408     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11409   fi
11410 fi
11411 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11412   # Extract the first word of "dlltool", so it can be a program name with args.
11413 set dummy dlltool; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   case $DLLTOOL_FOR_TARGET in
11420   [\\/]* | ?:[\\/]*)
11421   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11422   ;;
11423   *)
11424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $gcc_cv_tool_dirs
11426 do
11427   IFS=$as_save_IFS
11428   test -z "$as_dir" && as_dir=.
11429     for ac_exec_ext in '' $ac_executable_extensions; do
11430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433     break 2
11434   fi
11435 done
11436   done
11437 IFS=$as_save_IFS
11438
11439   ;;
11440 esac
11441 fi
11442 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11443 if test -n "$DLLTOOL_FOR_TARGET"; then
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11445 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11446 else
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449 fi
11450
11451
11452 fi
11453 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11454
11455
11456 if test -n "$DLLTOOL_FOR_TARGET"; then
11457   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11458 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11459   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11460 fi
11461
11462 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11463   for ncn_progname in dlltool; do
11464     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11465 set dummy ${ncn_progname}; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   if test -n "$DLLTOOL_FOR_TARGET"; then
11472   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11473 else
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488
11489 fi
11490 fi
11491 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11492 if test -n "$DLLTOOL_FOR_TARGET"; then
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11494 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499
11500
11501   done
11502 fi
11503
11504 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11505   for ncn_progname in dlltool; do
11506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11507 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11508     if test -x $with_build_time_tools/${ncn_progname}; then
11509       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11511 $as_echo "yes" >&6; }
11512       break
11513     else
11514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516     fi
11517   done
11518 fi
11519
11520 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11521   for ncn_progname in dlltool; do
11522     if test -n "$ncn_target_tool_prefix"; then
11523       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11524 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   if test -n "$DLLTOOL_FOR_TARGET"; then
11531   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11535 do
11536   IFS=$as_save_IFS
11537   test -z "$as_dir" && as_dir=.
11538     for ac_exec_ext in '' $ac_executable_extensions; do
11539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542     break 2
11543   fi
11544 done
11545   done
11546 IFS=$as_save_IFS
11547
11548 fi
11549 fi
11550 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11551 if test -n "$DLLTOOL_FOR_TARGET"; then
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11553 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11554 else
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11557 fi
11558
11559
11560     fi
11561     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11562       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563 set dummy ${ncn_progname}; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11567   $as_echo_n "(cached) " >&6
11568 else
11569   if test -n "$DLLTOOL_FOR_TARGET"; then
11570   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575   IFS=$as_save_IFS
11576   test -z "$as_dir" && as_dir=.
11577     for ac_exec_ext in '' $ac_executable_extensions; do
11578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581     break 2
11582   fi
11583 done
11584   done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11590 if test -n "$DLLTOOL_FOR_TARGET"; then
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11592 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599     fi
11600     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11601   done
11602 fi
11603
11604 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11605   set dummy dlltool
11606   if test $build = $target ; then
11607     DLLTOOL_FOR_TARGET="$2"
11608   else
11609     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11610   fi
11611 else
11612   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11613 fi
11614
11615 else
11616   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11617 fi
11618
11619
11620
11621
11622 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11623   if test -n "$with_build_time_tools"; then
11624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11625 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11626     if test -x $with_build_time_tools/ld; then
11627       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11628       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11630 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11631     else
11632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11634     fi
11635   elif test $build != $host && test $have_gcc_for_target = yes; then
11636     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11637     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11638     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11639   fi
11640 fi
11641 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11642   # Extract the first word of "ld", so it can be a program name with args.
11643 set dummy ld; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   case $LD_FOR_TARGET in
11650   [\\/]* | ?:[\\/]*)
11651   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11652   ;;
11653   *)
11654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $gcc_cv_tool_dirs
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666   done
11667 IFS=$as_save_IFS
11668
11669   ;;
11670 esac
11671 fi
11672 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11673 if test -n "$LD_FOR_TARGET"; then
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11675 $as_echo "$LD_FOR_TARGET" >&6; }
11676 else
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679 fi
11680
11681
11682 fi
11683 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11684
11685
11686 if test -n "$LD_FOR_TARGET"; then
11687   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11688 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11689   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11690 fi
11691
11692 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11693   for ncn_progname in ld; do
11694     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11699   $as_echo_n "(cached) " >&6
11700 else
11701   if test -n "$LD_FOR_TARGET"; then
11702   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707   IFS=$as_save_IFS
11708   test -z "$as_dir" && as_dir=.
11709     for ac_exec_ext in '' $ac_executable_extensions; do
11710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713     break 2
11714   fi
11715 done
11716   done
11717 IFS=$as_save_IFS
11718
11719 fi
11720 fi
11721 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11722 if test -n "$LD_FOR_TARGET"; then
11723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11724 $as_echo "$LD_FOR_TARGET" >&6; }
11725 else
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731   done
11732 fi
11733
11734 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11735   for ncn_progname in ld; do
11736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11737 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11738     if test -x $with_build_time_tools/${ncn_progname}; then
11739       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742       break
11743     else
11744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746     fi
11747   done
11748 fi
11749
11750 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11751   for ncn_progname in ld; do
11752     if test -n "$ncn_target_tool_prefix"; then
11753       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11754 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11758   $as_echo_n "(cached) " >&6
11759 else
11760   if test -n "$LD_FOR_TARGET"; then
11761   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768     for ac_exec_ext in '' $ac_executable_extensions; do
11769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11770     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772     break 2
11773   fi
11774 done
11775   done
11776 IFS=$as_save_IFS
11777
11778 fi
11779 fi
11780 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11781 if test -n "$LD_FOR_TARGET"; then
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11783 $as_echo "$LD_FOR_TARGET" >&6; }
11784 else
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788
11789
11790     fi
11791     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11792       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793 set dummy ${ncn_progname}; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   if test -n "$LD_FOR_TARGET"; then
11800   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11801 else
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11804 do
11805   IFS=$as_save_IFS
11806   test -z "$as_dir" && as_dir=.
11807     for ac_exec_ext in '' $ac_executable_extensions; do
11808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811     break 2
11812   fi
11813 done
11814   done
11815 IFS=$as_save_IFS
11816
11817 fi
11818 fi
11819 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11820 if test -n "$LD_FOR_TARGET"; then
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11822 $as_echo "$LD_FOR_TARGET" >&6; }
11823 else
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829     fi
11830     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11831   done
11832 fi
11833
11834 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11835   set dummy ld
11836   if test $build = $target ; then
11837     LD_FOR_TARGET="$2"
11838   else
11839     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11840   fi
11841 else
11842   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11843 fi
11844
11845 else
11846   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11847 fi
11848
11849
11850
11851
11852 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11853   if test -n "$with_build_time_tools"; then
11854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11855 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11856     if test -x $with_build_time_tools/lipo; then
11857       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11858       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11860 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11861     else
11862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864     fi
11865   elif test $build != $host && test $have_gcc_for_target = yes; then
11866     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11867     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11868     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11869   fi
11870 fi
11871 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11872   # Extract the first word of "lipo", so it can be a program name with args.
11873 set dummy lipo; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   case $LIPO_FOR_TARGET in
11880   [\\/]* | ?:[\\/]*)
11881   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11882   ;;
11883   *)
11884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $gcc_cv_tool_dirs
11886 do
11887   IFS=$as_save_IFS
11888   test -z "$as_dir" && as_dir=.
11889     for ac_exec_ext in '' $ac_executable_extensions; do
11890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11891     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893     break 2
11894   fi
11895 done
11896   done
11897 IFS=$as_save_IFS
11898
11899   ;;
11900 esac
11901 fi
11902 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11903 if test -n "$LIPO_FOR_TARGET"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11905 $as_echo "$LIPO_FOR_TARGET" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912 fi
11913 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11914
11915
11916 if test -n "$LIPO_FOR_TARGET"; then
11917   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11918 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11919   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11920 fi
11921
11922 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11923   for ncn_progname in lipo; do
11924     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11925 set dummy ${ncn_progname}; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   if test -n "$LIPO_FOR_TARGET"; then
11932   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11933 else
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11936 do
11937   IFS=$as_save_IFS
11938   test -z "$as_dir" && as_dir=.
11939     for ac_exec_ext in '' $ac_executable_extensions; do
11940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943     break 2
11944   fi
11945 done
11946   done
11947 IFS=$as_save_IFS
11948
11949 fi
11950 fi
11951 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11952 if test -n "$LIPO_FOR_TARGET"; then
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11954 $as_echo "$LIPO_FOR_TARGET" >&6; }
11955 else
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958 fi
11959
11960
11961   done
11962 fi
11963
11964 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11965   for ncn_progname in lipo; do
11966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11967 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11968     if test -x $with_build_time_tools/${ncn_progname}; then
11969       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971 $as_echo "yes" >&6; }
11972       break
11973     else
11974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976     fi
11977   done
11978 fi
11979
11980 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11981   for ncn_progname in lipo; do
11982     if test -n "$ncn_target_tool_prefix"; then
11983       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11984 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   if test -n "$LIPO_FOR_TARGET"; then
11991   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11992 else
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11995 do
11996   IFS=$as_save_IFS
11997   test -z "$as_dir" && as_dir=.
11998     for ac_exec_ext in '' $ac_executable_extensions; do
11999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12000     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002     break 2
12003   fi
12004 done
12005   done
12006 IFS=$as_save_IFS
12007
12008 fi
12009 fi
12010 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12011 if test -n "$LIPO_FOR_TARGET"; then
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12013 $as_echo "$LIPO_FOR_TARGET" >&6; }
12014 else
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 fi
12018
12019
12020     fi
12021     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12022       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12023 set dummy ${ncn_progname}; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029   if test -n "$LIPO_FOR_TARGET"; then
12030   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12031 else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046
12047 fi
12048 fi
12049 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12050 if test -n "$LIPO_FOR_TARGET"; then
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12052 $as_echo "$LIPO_FOR_TARGET" >&6; }
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059     fi
12060     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12061   done
12062 fi
12063
12064 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12065   set dummy lipo
12066   if test $build = $target ; then
12067     LIPO_FOR_TARGET="$2"
12068   else
12069     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12070   fi
12071 else
12072   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12073 fi
12074
12075 else
12076   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12077 fi
12078
12079
12080
12081
12082 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12083   if test -n "$with_build_time_tools"; then
12084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12085 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12086     if test -x $with_build_time_tools/nm; then
12087       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12088       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12090 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12091     else
12092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12094     fi
12095   elif test $build != $host && test $have_gcc_for_target = yes; then
12096     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12097     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12098     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12099   fi
12100 fi
12101 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12102   # Extract the first word of "nm", so it can be a program name with args.
12103 set dummy nm; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   case $NM_FOR_TARGET in
12110   [\\/]* | ?:[\\/]*)
12111   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12112   ;;
12113   *)
12114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $gcc_cv_tool_dirs
12116 do
12117   IFS=$as_save_IFS
12118   test -z "$as_dir" && as_dir=.
12119     for ac_exec_ext in '' $ac_executable_extensions; do
12120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123     break 2
12124   fi
12125 done
12126   done
12127 IFS=$as_save_IFS
12128
12129   ;;
12130 esac
12131 fi
12132 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12133 if test -n "$NM_FOR_TARGET"; then
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12135 $as_echo "$NM_FOR_TARGET" >&6; }
12136 else
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139 fi
12140
12141
12142 fi
12143 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12144
12145
12146 if test -n "$NM_FOR_TARGET"; then
12147   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12148 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12149   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12150 fi
12151
12152 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12153   for ncn_progname in nm; do
12154     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12159   $as_echo_n "(cached) " >&6
12160 else
12161   if test -n "$NM_FOR_TARGET"; then
12162   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12166 do
12167   IFS=$as_save_IFS
12168   test -z "$as_dir" && as_dir=.
12169     for ac_exec_ext in '' $ac_executable_extensions; do
12170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12171     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173     break 2
12174   fi
12175 done
12176   done
12177 IFS=$as_save_IFS
12178
12179 fi
12180 fi
12181 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12182 if test -n "$NM_FOR_TARGET"; then
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12184 $as_echo "$NM_FOR_TARGET" >&6; }
12185 else
12186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12188 fi
12189
12190
12191   done
12192 fi
12193
12194 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12195   for ncn_progname in nm; do
12196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12197 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12198     if test -x $with_build_time_tools/${ncn_progname}; then
12199       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201 $as_echo "yes" >&6; }
12202       break
12203     else
12204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206     fi
12207   done
12208 fi
12209
12210 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12211   for ncn_progname in nm; do
12212     if test -n "$ncn_target_tool_prefix"; then
12213       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12214 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220   if test -n "$NM_FOR_TARGET"; then
12221   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12222 else
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228     for ac_exec_ext in '' $ac_executable_extensions; do
12229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12230     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232     break 2
12233   fi
12234 done
12235   done
12236 IFS=$as_save_IFS
12237
12238 fi
12239 fi
12240 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12241 if test -n "$NM_FOR_TARGET"; then
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12243 $as_echo "$NM_FOR_TARGET" >&6; }
12244 else
12245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12247 fi
12248
12249
12250     fi
12251     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12252       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253 set dummy ${ncn_progname}; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   if test -n "$NM_FOR_TARGET"; then
12260   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267     for ac_exec_ext in '' $ac_executable_extensions; do
12268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274   done
12275 IFS=$as_save_IFS
12276
12277 fi
12278 fi
12279 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12280 if test -n "$NM_FOR_TARGET"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12282 $as_echo "$NM_FOR_TARGET" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288
12289     fi
12290     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12291   done
12292 fi
12293
12294 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12295   set dummy nm
12296   if test $build = $target ; then
12297     NM_FOR_TARGET="$2"
12298   else
12299     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12300   fi
12301 else
12302   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12303 fi
12304
12305 else
12306   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12307 fi
12308
12309
12310
12311
12312 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12313   if test -n "$with_build_time_tools"; then
12314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12315 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12316     if test -x $with_build_time_tools/objcopy; then
12317       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12318       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12320 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12321     else
12322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324     fi
12325   elif test $build != $host && test $have_gcc_for_target = yes; then
12326     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12327     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12328     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12329   fi
12330 fi
12331 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12332   # Extract the first word of "objcopy", so it can be a program name with args.
12333 set dummy objcopy; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339   case $OBJCOPY_FOR_TARGET in
12340   [\\/]* | ?:[\\/]*)
12341   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12342   ;;
12343   *)
12344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $gcc_cv_tool_dirs
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349     for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356   done
12357 IFS=$as_save_IFS
12358
12359   ;;
12360 esac
12361 fi
12362 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12363 if test -n "$OBJCOPY_FOR_TARGET"; then
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12365 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12366 else
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 fi
12370
12371
12372 fi
12373 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12374
12375
12376 if test -n "$OBJCOPY_FOR_TARGET"; then
12377   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12378 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12379   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12380 fi
12381
12382 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12383   for ncn_progname in objcopy; do
12384     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12385 set dummy ${ncn_progname}; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   if test -n "$OBJCOPY_FOR_TARGET"; then
12392   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12396 do
12397   IFS=$as_save_IFS
12398   test -z "$as_dir" && as_dir=.
12399     for ac_exec_ext in '' $ac_executable_extensions; do
12400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12401     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403     break 2
12404   fi
12405 done
12406   done
12407 IFS=$as_save_IFS
12408
12409 fi
12410 fi
12411 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12412 if test -n "$OBJCOPY_FOR_TARGET"; then
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12414 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12415 else
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419
12420
12421   done
12422 fi
12423
12424 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12425   for ncn_progname in objcopy; do
12426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12427 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12428     if test -x $with_build_time_tools/${ncn_progname}; then
12429       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432       break
12433     else
12434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436     fi
12437   done
12438 fi
12439
12440 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12441   for ncn_progname in objcopy; do
12442     if test -n "$ncn_target_tool_prefix"; then
12443       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12444 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12448   $as_echo_n "(cached) " >&6
12449 else
12450   if test -n "$OBJCOPY_FOR_TARGET"; then
12451   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12452 else
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12455 do
12456   IFS=$as_save_IFS
12457   test -z "$as_dir" && as_dir=.
12458     for ac_exec_ext in '' $ac_executable_extensions; do
12459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462     break 2
12463   fi
12464 done
12465   done
12466 IFS=$as_save_IFS
12467
12468 fi
12469 fi
12470 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12471 if test -n "$OBJCOPY_FOR_TARGET"; then
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12473 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12474 else
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477 fi
12478
12479
12480     fi
12481     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12482       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12483 set dummy ${ncn_progname}; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   if test -n "$OBJCOPY_FOR_TARGET"; then
12490   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495   IFS=$as_save_IFS
12496   test -z "$as_dir" && as_dir=.
12497     for ac_exec_ext in '' $ac_executable_extensions; do
12498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501     break 2
12502   fi
12503 done
12504   done
12505 IFS=$as_save_IFS
12506
12507 fi
12508 fi
12509 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12510 if test -n "$OBJCOPY_FOR_TARGET"; then
12511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12512 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12513 else
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518
12519     fi
12520     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12521   done
12522 fi
12523
12524 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12525   set dummy objcopy
12526   if test $build = $target ; then
12527     OBJCOPY_FOR_TARGET="$2"
12528   else
12529     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12530   fi
12531 else
12532   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12533 fi
12534
12535 else
12536   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12537 fi
12538
12539
12540
12541
12542 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12543   if test -n "$with_build_time_tools"; then
12544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12545 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12546     if test -x $with_build_time_tools/objdump; then
12547       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12548       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12550 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12551     else
12552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12554     fi
12555   elif test $build != $host && test $have_gcc_for_target = yes; then
12556     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12557     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12558     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12559   fi
12560 fi
12561 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12562   # Extract the first word of "objdump", so it can be a program name with args.
12563 set dummy objdump; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   case $OBJDUMP_FOR_TARGET in
12570   [\\/]* | ?:[\\/]*)
12571   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12572   ;;
12573   *)
12574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $gcc_cv_tool_dirs
12576 do
12577   IFS=$as_save_IFS
12578   test -z "$as_dir" && as_dir=.
12579     for ac_exec_ext in '' $ac_executable_extensions; do
12580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12581     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583     break 2
12584   fi
12585 done
12586   done
12587 IFS=$as_save_IFS
12588
12589   ;;
12590 esac
12591 fi
12592 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12593 if test -n "$OBJDUMP_FOR_TARGET"; then
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12595 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12596 else
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 fi
12600
12601
12602 fi
12603 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12604
12605
12606 if test -n "$OBJDUMP_FOR_TARGET"; then
12607   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12608 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12609   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12610 fi
12611
12612 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12613   for ncn_progname in objdump; do
12614     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   if test -n "$OBJDUMP_FOR_TARGET"; then
12622   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627   IFS=$as_save_IFS
12628   test -z "$as_dir" && as_dir=.
12629     for ac_exec_ext in '' $ac_executable_extensions; do
12630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12631     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633     break 2
12634   fi
12635 done
12636   done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12642 if test -n "$OBJDUMP_FOR_TARGET"; then
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12644 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12645 else
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651   done
12652 fi
12653
12654 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12655   for ncn_progname in objdump; do
12656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12658     if test -x $with_build_time_tools/${ncn_progname}; then
12659       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661 $as_echo "yes" >&6; }
12662       break
12663     else
12664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666     fi
12667   done
12668 fi
12669
12670 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12671   for ncn_progname in objdump; do
12672     if test -n "$ncn_target_tool_prefix"; then
12673       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   if test -n "$OBJDUMP_FOR_TARGET"; then
12681   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12682 else
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12685 do
12686   IFS=$as_save_IFS
12687   test -z "$as_dir" && as_dir=.
12688     for ac_exec_ext in '' $ac_executable_extensions; do
12689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12690     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692     break 2
12693   fi
12694 done
12695   done
12696 IFS=$as_save_IFS
12697
12698 fi
12699 fi
12700 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12701 if test -n "$OBJDUMP_FOR_TARGET"; then
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12703 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12704 else
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707 fi
12708
12709
12710     fi
12711     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12712       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713 set dummy ${ncn_progname}; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   if test -n "$OBJDUMP_FOR_TARGET"; then
12720   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     for ac_exec_ext in '' $ac_executable_extensions; do
12728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731     break 2
12732   fi
12733 done
12734   done
12735 IFS=$as_save_IFS
12736
12737 fi
12738 fi
12739 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12740 if test -n "$OBJDUMP_FOR_TARGET"; then
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12742 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12743 else
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749     fi
12750     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12751   done
12752 fi
12753
12754 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12755   set dummy objdump
12756   if test $build = $target ; then
12757     OBJDUMP_FOR_TARGET="$2"
12758   else
12759     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12760   fi
12761 else
12762   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12763 fi
12764
12765 else
12766   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12767 fi
12768
12769
12770
12771
12772 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12773   if test -n "$with_build_time_tools"; then
12774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12775 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12776     if test -x $with_build_time_tools/ranlib; then
12777       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12778       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12780 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12781     else
12782       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784     fi
12785   elif test $build != $host && test $have_gcc_for_target = yes; then
12786     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12787     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12788     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12789   fi
12790 fi
12791 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12792   # Extract the first word of "ranlib", so it can be a program name with args.
12793 set dummy ranlib; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   case $RANLIB_FOR_TARGET in
12800   [\\/]* | ?:[\\/]*)
12801   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12802   ;;
12803   *)
12804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $gcc_cv_tool_dirs
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809     for ac_exec_ext in '' $ac_executable_extensions; do
12810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816   done
12817 IFS=$as_save_IFS
12818
12819   ;;
12820 esac
12821 fi
12822 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12823 if test -n "$RANLIB_FOR_TARGET"; then
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12825 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12826 else
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829 fi
12830
12831
12832 fi
12833 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12834
12835
12836 if test -n "$RANLIB_FOR_TARGET"; then
12837   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12838 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12839   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12840 fi
12841
12842 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12843   for ncn_progname in ranlib; do
12844     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12845 set dummy ${ncn_progname}; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   if test -n "$RANLIB_FOR_TARGET"; then
12852   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857   IFS=$as_save_IFS
12858   test -z "$as_dir" && as_dir=.
12859     for ac_exec_ext in '' $ac_executable_extensions; do
12860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863     break 2
12864   fi
12865 done
12866   done
12867 IFS=$as_save_IFS
12868
12869 fi
12870 fi
12871 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12872 if test -n "$RANLIB_FOR_TARGET"; then
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12874 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12875 else
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881   done
12882 fi
12883
12884 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12885   for ncn_progname in ranlib; do
12886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12887 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12888     if test -x $with_build_time_tools/${ncn_progname}; then
12889       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 $as_echo "yes" >&6; }
12892       break
12893     else
12894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896     fi
12897   done
12898 fi
12899
12900 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12901   for ncn_progname in ranlib; do
12902     if test -n "$ncn_target_tool_prefix"; then
12903       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12904 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   if test -n "$RANLIB_FOR_TARGET"; then
12911   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12912 else
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12915 do
12916   IFS=$as_save_IFS
12917   test -z "$as_dir" && as_dir=.
12918     for ac_exec_ext in '' $ac_executable_extensions; do
12919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922     break 2
12923   fi
12924 done
12925   done
12926 IFS=$as_save_IFS
12927
12928 fi
12929 fi
12930 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12931 if test -n "$RANLIB_FOR_TARGET"; then
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12933 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12934 else
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938
12939
12940     fi
12941     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12942       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12943 set dummy ${ncn_progname}; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   if test -n "$RANLIB_FOR_TARGET"; then
12950   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955   IFS=$as_save_IFS
12956   test -z "$as_dir" && as_dir=.
12957     for ac_exec_ext in '' $ac_executable_extensions; do
12958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961     break 2
12962   fi
12963 done
12964   done
12965 IFS=$as_save_IFS
12966
12967 fi
12968 fi
12969 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12970 if test -n "$RANLIB_FOR_TARGET"; then
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12972 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12973 else
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979     fi
12980     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12981   done
12982 fi
12983
12984 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12985   set dummy ranlib
12986   if test $build = $target ; then
12987     RANLIB_FOR_TARGET="$2"
12988   else
12989     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12990   fi
12991 else
12992   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12993 fi
12994
12995 else
12996   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12997 fi
12998
12999
13000
13001
13002 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13003   if test -n "$with_build_time_tools"; then
13004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13005 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13006     if test -x $with_build_time_tools/readelf; then
13007       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13008       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13010 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13011     else
13012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014     fi
13015   elif test $build != $host && test $have_gcc_for_target = yes; then
13016     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13017     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13018     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13019   fi
13020 fi
13021 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13022   # Extract the first word of "readelf", so it can be a program name with args.
13023 set dummy readelf; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   case $READELF_FOR_TARGET in
13030   [\\/]* | ?:[\\/]*)
13031   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13032   ;;
13033   *)
13034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $gcc_cv_tool_dirs
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13041     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046   done
13047 IFS=$as_save_IFS
13048
13049   ;;
13050 esac
13051 fi
13052 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13053 if test -n "$READELF_FOR_TARGET"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13055 $as_echo "$READELF_FOR_TARGET" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060
13061
13062 fi
13063 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13064
13065
13066 if test -n "$READELF_FOR_TARGET"; then
13067   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13068 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13069   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13070 fi
13071
13072 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13073   for ncn_progname in readelf; do
13074     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13075 set dummy ${ncn_progname}; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   if test -n "$READELF_FOR_TARGET"; then
13082   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13086 do
13087   IFS=$as_save_IFS
13088   test -z "$as_dir" && as_dir=.
13089     for ac_exec_ext in '' $ac_executable_extensions; do
13090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13091     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093     break 2
13094   fi
13095 done
13096   done
13097 IFS=$as_save_IFS
13098
13099 fi
13100 fi
13101 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13102 if test -n "$READELF_FOR_TARGET"; then
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13104 $as_echo "$READELF_FOR_TARGET" >&6; }
13105 else
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13108 fi
13109
13110
13111   done
13112 fi
13113
13114 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13115   for ncn_progname in readelf; do
13116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13117 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13118     if test -x $with_build_time_tools/${ncn_progname}; then
13119       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122       break
13123     else
13124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126     fi
13127   done
13128 fi
13129
13130 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13131   for ncn_progname in readelf; do
13132     if test -n "$ncn_target_tool_prefix"; then
13133       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13134 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   if test -n "$READELF_FOR_TARGET"; then
13141   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13142 else
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13145 do
13146   IFS=$as_save_IFS
13147   test -z "$as_dir" && as_dir=.
13148     for ac_exec_ext in '' $ac_executable_extensions; do
13149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152     break 2
13153   fi
13154 done
13155   done
13156 IFS=$as_save_IFS
13157
13158 fi
13159 fi
13160 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13161 if test -n "$READELF_FOR_TARGET"; then
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13163 $as_echo "$READELF_FOR_TARGET" >&6; }
13164 else
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 fi
13168
13169
13170     fi
13171     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13172       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13173 set dummy ${ncn_progname}; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179   if test -n "$READELF_FOR_TARGET"; then
13180   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13184 do
13185   IFS=$as_save_IFS
13186   test -z "$as_dir" && as_dir=.
13187     for ac_exec_ext in '' $ac_executable_extensions; do
13188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191     break 2
13192   fi
13193 done
13194   done
13195 IFS=$as_save_IFS
13196
13197 fi
13198 fi
13199 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13200 if test -n "$READELF_FOR_TARGET"; then
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13202 $as_echo "$READELF_FOR_TARGET" >&6; }
13203 else
13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206 fi
13207
13208
13209     fi
13210     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13211   done
13212 fi
13213
13214 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13215   set dummy readelf
13216   if test $build = $target ; then
13217     READELF_FOR_TARGET="$2"
13218   else
13219     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13220   fi
13221 else
13222   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13223 fi
13224
13225 else
13226   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13227 fi
13228
13229
13230
13231
13232 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13233   if test -n "$with_build_time_tools"; then
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13235 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13236     if test -x $with_build_time_tools/strip; then
13237       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13238       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13240 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13241     else
13242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244     fi
13245   elif test $build != $host && test $have_gcc_for_target = yes; then
13246     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13247     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13248     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13249   fi
13250 fi
13251 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13252   # Extract the first word of "strip", so it can be a program name with args.
13253 set dummy strip; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13257   $as_echo_n "(cached) " >&6
13258 else
13259   case $STRIP_FOR_TARGET in
13260   [\\/]* | ?:[\\/]*)
13261   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13262   ;;
13263   *)
13264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $gcc_cv_tool_dirs
13266 do
13267   IFS=$as_save_IFS
13268   test -z "$as_dir" && as_dir=.
13269     for ac_exec_ext in '' $ac_executable_extensions; do
13270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13271     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273     break 2
13274   fi
13275 done
13276   done
13277 IFS=$as_save_IFS
13278
13279   ;;
13280 esac
13281 fi
13282 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13283 if test -n "$STRIP_FOR_TARGET"; then
13284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13285 $as_echo "$STRIP_FOR_TARGET" >&6; }
13286 else
13287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 $as_echo "no" >&6; }
13289 fi
13290
13291
13292 fi
13293 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13294
13295
13296 if test -n "$STRIP_FOR_TARGET"; then
13297   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13298 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13299   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13300 fi
13301
13302 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13303   for ncn_progname in strip; do
13304     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13305 set dummy ${ncn_progname}; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13309   $as_echo_n "(cached) " >&6
13310 else
13311   if test -n "$STRIP_FOR_TARGET"; then
13312   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317   IFS=$as_save_IFS
13318   test -z "$as_dir" && as_dir=.
13319     for ac_exec_ext in '' $ac_executable_extensions; do
13320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13321     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323     break 2
13324   fi
13325 done
13326   done
13327 IFS=$as_save_IFS
13328
13329 fi
13330 fi
13331 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13332 if test -n "$STRIP_FOR_TARGET"; then
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13334 $as_echo "$STRIP_FOR_TARGET" >&6; }
13335 else
13336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339
13340
13341   done
13342 fi
13343
13344 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13345   for ncn_progname in strip; do
13346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13347 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13348     if test -x $with_build_time_tools/${ncn_progname}; then
13349       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13351 $as_echo "yes" >&6; }
13352       break
13353     else
13354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356     fi
13357   done
13358 fi
13359
13360 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13361   for ncn_progname in strip; do
13362     if test -n "$ncn_target_tool_prefix"; then
13363       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13364 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13368   $as_echo_n "(cached) " >&6
13369 else
13370   if test -n "$STRIP_FOR_TARGET"; then
13371   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376   IFS=$as_save_IFS
13377   test -z "$as_dir" && as_dir=.
13378     for ac_exec_ext in '' $ac_executable_extensions; do
13379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382     break 2
13383   fi
13384 done
13385   done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13391 if test -n "$STRIP_FOR_TARGET"; then
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13393 $as_echo "$STRIP_FOR_TARGET" >&6; }
13394 else
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398
13399
13400     fi
13401     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13402       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13403 set dummy ${ncn_progname}; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13407   $as_echo_n "(cached) " >&6
13408 else
13409   if test -n "$STRIP_FOR_TARGET"; then
13410   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13414 do
13415   IFS=$as_save_IFS
13416   test -z "$as_dir" && as_dir=.
13417     for ac_exec_ext in '' $ac_executable_extensions; do
13418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421     break 2
13422   fi
13423 done
13424   done
13425 IFS=$as_save_IFS
13426
13427 fi
13428 fi
13429 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13430 if test -n "$STRIP_FOR_TARGET"; then
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13432 $as_echo "$STRIP_FOR_TARGET" >&6; }
13433 else
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 fi
13437
13438
13439     fi
13440     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13441   done
13442 fi
13443
13444 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13445   set dummy strip
13446   if test $build = $target ; then
13447     STRIP_FOR_TARGET="$2"
13448   else
13449     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13450   fi
13451 else
13452   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13453 fi
13454
13455 else
13456   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13457 fi
13458
13459
13460
13461
13462 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13463   if test -n "$with_build_time_tools"; then
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13465 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13466     if test -x $with_build_time_tools/windres; then
13467       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13468       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13470 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13471     else
13472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474     fi
13475   elif test $build != $host && test $have_gcc_for_target = yes; then
13476     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13477     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13478     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13479   fi
13480 fi
13481 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13482   # Extract the first word of "windres", so it can be a program name with args.
13483 set dummy windres; ac_word=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13485 $as_echo_n "checking for $ac_word... " >&6; }
13486 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   case $WINDRES_FOR_TARGET in
13490   [\\/]* | ?:[\\/]*)
13491   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13492   ;;
13493   *)
13494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $gcc_cv_tool_dirs
13496 do
13497   IFS=$as_save_IFS
13498   test -z "$as_dir" && as_dir=.
13499     for ac_exec_ext in '' $ac_executable_extensions; do
13500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13501     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503     break 2
13504   fi
13505 done
13506   done
13507 IFS=$as_save_IFS
13508
13509   ;;
13510 esac
13511 fi
13512 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13513 if test -n "$WINDRES_FOR_TARGET"; then
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13515 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13516 else
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 fi
13523 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13524
13525
13526 if test -n "$WINDRES_FOR_TARGET"; then
13527   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13528 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13529   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13530 fi
13531
13532 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13533   for ncn_progname in windres; do
13534     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   if test -n "$WINDRES_FOR_TARGET"; then
13542   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547   IFS=$as_save_IFS
13548   test -z "$as_dir" && as_dir=.
13549     for ac_exec_ext in '' $ac_executable_extensions; do
13550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13551     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553     break 2
13554   fi
13555 done
13556   done
13557 IFS=$as_save_IFS
13558
13559 fi
13560 fi
13561 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13562 if test -n "$WINDRES_FOR_TARGET"; then
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13564 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13565 else
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569
13570
13571   done
13572 fi
13573
13574 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13575   for ncn_progname in windres; do
13576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13577 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13578     if test -x $with_build_time_tools/${ncn_progname}; then
13579       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581 $as_echo "yes" >&6; }
13582       break
13583     else
13584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586     fi
13587   done
13588 fi
13589
13590 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13591   for ncn_progname in windres; do
13592     if test -n "$ncn_target_tool_prefix"; then
13593       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13594 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596 $as_echo_n "checking for $ac_word... " >&6; }
13597 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13598   $as_echo_n "(cached) " >&6
13599 else
13600   if test -n "$WINDRES_FOR_TARGET"; then
13601   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13602 else
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13605 do
13606   IFS=$as_save_IFS
13607   test -z "$as_dir" && as_dir=.
13608     for ac_exec_ext in '' $ac_executable_extensions; do
13609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13610     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612     break 2
13613   fi
13614 done
13615   done
13616 IFS=$as_save_IFS
13617
13618 fi
13619 fi
13620 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13621 if test -n "$WINDRES_FOR_TARGET"; then
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13623 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13624 else
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628
13629
13630     fi
13631     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13632       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13633 set dummy ${ncn_progname}; ac_word=$2
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13635 $as_echo_n "checking for $ac_word... " >&6; }
13636 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   if test -n "$WINDRES_FOR_TARGET"; then
13640   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13641 else
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13644 do
13645   IFS=$as_save_IFS
13646   test -z "$as_dir" && as_dir=.
13647     for ac_exec_ext in '' $ac_executable_extensions; do
13648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13649     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13651     break 2
13652   fi
13653 done
13654   done
13655 IFS=$as_save_IFS
13656
13657 fi
13658 fi
13659 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13660 if test -n "$WINDRES_FOR_TARGET"; then
13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13662 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13663 else
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13666 fi
13667
13668
13669     fi
13670     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13671   done
13672 fi
13673
13674 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13675   set dummy windres
13676   if test $build = $target ; then
13677     WINDRES_FOR_TARGET="$2"
13678   else
13679     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13680   fi
13681 else
13682   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13683 fi
13684
13685 else
13686   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13687 fi
13688
13689
13690
13691
13692 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13693   if test -n "$with_build_time_tools"; then
13694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13695 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13696     if test -x $with_build_time_tools/windmc; then
13697       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13698       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13700 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13701     else
13702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13704     fi
13705   elif test $build != $host && test $have_gcc_for_target = yes; then
13706     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13707     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13708     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13709   fi
13710 fi
13711 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13712   # Extract the first word of "windmc", so it can be a program name with args.
13713 set dummy windmc; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   case $WINDMC_FOR_TARGET in
13720   [\\/]* | ?:[\\/]*)
13721   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13722   ;;
13723   *)
13724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $gcc_cv_tool_dirs
13726 do
13727   IFS=$as_save_IFS
13728   test -z "$as_dir" && as_dir=.
13729     for ac_exec_ext in '' $ac_executable_extensions; do
13730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13731     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13733     break 2
13734   fi
13735 done
13736   done
13737 IFS=$as_save_IFS
13738
13739   ;;
13740 esac
13741 fi
13742 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13743 if test -n "$WINDMC_FOR_TARGET"; then
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13745 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13746 else
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13754
13755
13756 if test -n "$WINDMC_FOR_TARGET"; then
13757   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13758 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13759   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13760 fi
13761
13762 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13763   for ncn_progname in windmc; do
13764     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13769   $as_echo_n "(cached) " >&6
13770 else
13771   if test -n "$WINDMC_FOR_TARGET"; then
13772   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777   IFS=$as_save_IFS
13778   test -z "$as_dir" && as_dir=.
13779     for ac_exec_ext in '' $ac_executable_extensions; do
13780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13781     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783     break 2
13784   fi
13785 done
13786   done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13792 if test -n "$WINDMC_FOR_TARGET"; then
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13794 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13795 else
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800
13801   done
13802 fi
13803
13804 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13805   for ncn_progname in windmc; do
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13807 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13808     if test -x $with_build_time_tools/${ncn_progname}; then
13809       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13811 $as_echo "yes" >&6; }
13812       break
13813     else
13814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13816     fi
13817   done
13818 fi
13819
13820 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13821   for ncn_progname in windmc; do
13822     if test -n "$ncn_target_tool_prefix"; then
13823       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13824 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13828   $as_echo_n "(cached) " >&6
13829 else
13830   if test -n "$WINDMC_FOR_TARGET"; then
13831   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836   IFS=$as_save_IFS
13837   test -z "$as_dir" && as_dir=.
13838     for ac_exec_ext in '' $ac_executable_extensions; do
13839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842     break 2
13843   fi
13844 done
13845   done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13851 if test -n "$WINDMC_FOR_TARGET"; then
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13853 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858
13859
13860     fi
13861     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13862       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13863 set dummy ${ncn_progname}; ac_word=$2
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13865 $as_echo_n "checking for $ac_word... " >&6; }
13866 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13867   $as_echo_n "(cached) " >&6
13868 else
13869   if test -n "$WINDMC_FOR_TARGET"; then
13870   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13871 else
13872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873 for as_dir in $PATH
13874 do
13875   IFS=$as_save_IFS
13876   test -z "$as_dir" && as_dir=.
13877     for ac_exec_ext in '' $ac_executable_extensions; do
13878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13879     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13881     break 2
13882   fi
13883 done
13884   done
13885 IFS=$as_save_IFS
13886
13887 fi
13888 fi
13889 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13890 if test -n "$WINDMC_FOR_TARGET"; then
13891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13892 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13893 else
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13896 fi
13897
13898
13899     fi
13900     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13901   done
13902 fi
13903
13904 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13905   set dummy windmc
13906   if test $build = $target ; then
13907     WINDMC_FOR_TARGET="$2"
13908   else
13909     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13910   fi
13911 else
13912   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13913 fi
13914
13915 else
13916   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13917 fi
13918
13919
13920 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13923 $as_echo_n "checking where to find the target ar... " >&6; }
13924 if test "x${build}" != "x${host}" ; then
13925   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13926     # We already found the complete path
13927     ac_dir=`dirname $AR_FOR_TARGET`
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13929 $as_echo "pre-installed in $ac_dir" >&6; }
13930   else
13931     # Canadian cross, just use what we found
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13934   fi
13935 else
13936   ok=yes
13937   case " ${configdirs} " in
13938     *" binutils "*) ;;
13939     *) ok=no ;;
13940   esac
13941
13942   if test $ok = yes; then
13943     # An in-tree tool is available and we can use it
13944     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13946 $as_echo "just compiled" >&6; }
13947   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13948     # We already found the complete path
13949     ac_dir=`dirname $AR_FOR_TARGET`
13950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951 $as_echo "pre-installed in $ac_dir" >&6; }
13952   elif test "x$target" = "x$host"; then
13953     # We can use an host tool
13954     AR_FOR_TARGET='$(AR)'
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13956 $as_echo "host tool" >&6; }
13957   else
13958     # We need a cross tool
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960 $as_echo "pre-installed" >&6; }
13961   fi
13962 fi
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13965 $as_echo_n "checking where to find the target as... " >&6; }
13966 if test "x${build}" != "x${host}" ; then
13967   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13968     # We already found the complete path
13969     ac_dir=`dirname $AS_FOR_TARGET`
13970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13971 $as_echo "pre-installed in $ac_dir" >&6; }
13972   else
13973     # Canadian cross, just use what we found
13974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13976   fi
13977 else
13978   ok=yes
13979   case " ${configdirs} " in
13980     *" gas "*) ;;
13981     *) ok=no ;;
13982   esac
13983
13984   if test $ok = yes; then
13985     # An in-tree tool is available and we can use it
13986     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13988 $as_echo "just compiled" >&6; }
13989   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13990     # We already found the complete path
13991     ac_dir=`dirname $AS_FOR_TARGET`
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993 $as_echo "pre-installed in $ac_dir" >&6; }
13994   elif test "x$target" = "x$host"; then
13995     # We can use an host tool
13996     AS_FOR_TARGET='$(AS)'
13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13998 $as_echo "host tool" >&6; }
13999   else
14000     # We need a cross tool
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14002 $as_echo "pre-installed" >&6; }
14003   fi
14004 fi
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14007 $as_echo_n "checking where to find the target cc... " >&6; }
14008 if test "x${build}" != "x${host}" ; then
14009   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14010     # We already found the complete path
14011     ac_dir=`dirname $CC_FOR_TARGET`
14012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14013 $as_echo "pre-installed in $ac_dir" >&6; }
14014   else
14015     # Canadian cross, just use what we found
14016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017 $as_echo "pre-installed" >&6; }
14018   fi
14019 else
14020   ok=yes
14021   case " ${configdirs} " in
14022     *" gcc "*) ;;
14023     *) ok=no ;;
14024   esac
14025
14026   if test $ok = yes; then
14027     # An in-tree tool is available and we can use it
14028     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14030 $as_echo "just compiled" >&6; }
14031   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14032     # We already found the complete path
14033     ac_dir=`dirname $CC_FOR_TARGET`
14034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035 $as_echo "pre-installed in $ac_dir" >&6; }
14036   elif test "x$target" = "x$host"; then
14037     # We can use an host tool
14038     CC_FOR_TARGET='$(CC)'
14039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14040 $as_echo "host tool" >&6; }
14041   else
14042     # We need a cross tool
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14044 $as_echo "pre-installed" >&6; }
14045   fi
14046 fi
14047
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14049 $as_echo_n "checking where to find the target c++... " >&6; }
14050 if test "x${build}" != "x${host}" ; then
14051   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14052     # We already found the complete path
14053     ac_dir=`dirname $CXX_FOR_TARGET`
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055 $as_echo "pre-installed in $ac_dir" >&6; }
14056   else
14057     # Canadian cross, just use what we found
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059 $as_echo "pre-installed" >&6; }
14060   fi
14061 else
14062   ok=yes
14063   case " ${configdirs} " in
14064     *" gcc "*) ;;
14065     *) ok=no ;;
14066   esac
14067   case ,${enable_languages}, in
14068     *,c++,*) ;;
14069     *) ok=no ;;
14070   esac
14071   if test $ok = yes; then
14072     # An in-tree tool is available and we can use it
14073     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'
14074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075 $as_echo "just compiled" >&6; }
14076   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14077     # We already found the complete path
14078     ac_dir=`dirname $CXX_FOR_TARGET`
14079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081   elif test "x$target" = "x$host"; then
14082     # We can use an host tool
14083     CXX_FOR_TARGET='$(CXX)'
14084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085 $as_echo "host tool" >&6; }
14086   else
14087     # We need a cross tool
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089 $as_echo "pre-installed" >&6; }
14090   fi
14091 fi
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14094 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14095 if test "x${build}" != "x${host}" ; then
14096   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14097     # We already found the complete path
14098     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101   else
14102     # Canadian cross, just use what we found
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14105   fi
14106 else
14107   ok=yes
14108   case " ${configdirs} " in
14109     *" gcc "*) ;;
14110     *) ok=no ;;
14111   esac
14112   case ,${enable_languages}, in
14113     *,c++,*) ;;
14114     *) ok=no ;;
14115   esac
14116   if test $ok = yes; then
14117     # An in-tree tool is available and we can use it
14118     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'
14119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14120 $as_echo "just compiled" >&6; }
14121   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14122     # We already found the complete path
14123     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14125 $as_echo "pre-installed in $ac_dir" >&6; }
14126   elif test "x$target" = "x$host"; then
14127     # We can use an host tool
14128     RAW_CXX_FOR_TARGET='$(CXX)'
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14130 $as_echo "host tool" >&6; }
14131   else
14132     # We need a cross tool
14133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14134 $as_echo "pre-installed" >&6; }
14135   fi
14136 fi
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14139 $as_echo_n "checking where to find the target dlltool... " >&6; }
14140 if test "x${build}" != "x${host}" ; then
14141   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14142     # We already found the complete path
14143     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145 $as_echo "pre-installed in $ac_dir" >&6; }
14146   else
14147     # Canadian cross, just use what we found
14148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14150   fi
14151 else
14152   ok=yes
14153   case " ${configdirs} " in
14154     *" binutils "*) ;;
14155     *) ok=no ;;
14156   esac
14157
14158   if test $ok = yes; then
14159     # An in-tree tool is available and we can use it
14160     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14162 $as_echo "just compiled" >&6; }
14163   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14164     # We already found the complete path
14165     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167 $as_echo "pre-installed in $ac_dir" >&6; }
14168   elif test "x$target" = "x$host"; then
14169     # We can use an host tool
14170     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14172 $as_echo "host tool" >&6; }
14173   else
14174     # We need a cross tool
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14177   fi
14178 fi
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14181 $as_echo_n "checking where to find the target gcc... " >&6; }
14182 if test "x${build}" != "x${host}" ; then
14183   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14184     # We already found the complete path
14185     ac_dir=`dirname $GCC_FOR_TARGET`
14186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187 $as_echo "pre-installed in $ac_dir" >&6; }
14188   else
14189     # Canadian cross, just use what we found
14190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191 $as_echo "pre-installed" >&6; }
14192   fi
14193 else
14194   ok=yes
14195   case " ${configdirs} " in
14196     *" gcc "*) ;;
14197     *) ok=no ;;
14198   esac
14199
14200   if test $ok = yes; then
14201     # An in-tree tool is available and we can use it
14202     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14204 $as_echo "just compiled" >&6; }
14205   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14206     # We already found the complete path
14207     ac_dir=`dirname $GCC_FOR_TARGET`
14208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209 $as_echo "pre-installed in $ac_dir" >&6; }
14210   elif test "x$target" = "x$host"; then
14211     # We can use an host tool
14212     GCC_FOR_TARGET='$()'
14213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14214 $as_echo "host tool" >&6; }
14215   else
14216     # We need a cross tool
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14219   fi
14220 fi
14221
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14223 $as_echo_n "checking where to find the target gcj... " >&6; }
14224 if test "x${build}" != "x${host}" ; then
14225   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14226     # We already found the complete path
14227     ac_dir=`dirname $GCJ_FOR_TARGET`
14228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229 $as_echo "pre-installed in $ac_dir" >&6; }
14230   else
14231     # Canadian cross, just use what we found
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233 $as_echo "pre-installed" >&6; }
14234   fi
14235 else
14236   ok=yes
14237   case " ${configdirs} " in
14238     *" gcc "*) ;;
14239     *) ok=no ;;
14240   esac
14241   case ,${enable_languages}, in
14242     *,java,*) ;;
14243     *) ok=no ;;
14244   esac
14245   if test $ok = yes; then
14246     # An in-tree tool is available and we can use it
14247     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14249 $as_echo "just compiled" >&6; }
14250   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14251     # We already found the complete path
14252     ac_dir=`dirname $GCJ_FOR_TARGET`
14253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254 $as_echo "pre-installed in $ac_dir" >&6; }
14255   elif test "x$target" = "x$host"; then
14256     # We can use an host tool
14257     GCJ_FOR_TARGET='$(GCJ)'
14258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14259 $as_echo "host tool" >&6; }
14260   else
14261     # We need a cross tool
14262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14263 $as_echo "pre-installed" >&6; }
14264   fi
14265 fi
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14268 $as_echo_n "checking where to find the target gfortran... " >&6; }
14269 if test "x${build}" != "x${host}" ; then
14270   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14271     # We already found the complete path
14272     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274 $as_echo "pre-installed in $ac_dir" >&6; }
14275   else
14276     # Canadian cross, just use what we found
14277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14278 $as_echo "pre-installed" >&6; }
14279   fi
14280 else
14281   ok=yes
14282   case " ${configdirs} " in
14283     *" gcc "*) ;;
14284     *) ok=no ;;
14285   esac
14286   case ,${enable_languages}, in
14287     *,fortran,*) ;;
14288     *) ok=no ;;
14289   esac
14290   if test $ok = yes; then
14291     # An in-tree tool is available and we can use it
14292     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14294 $as_echo "just compiled" >&6; }
14295   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14296     # We already found the complete path
14297     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14299 $as_echo "pre-installed in $ac_dir" >&6; }
14300   elif test "x$target" = "x$host"; then
14301     # We can use an host tool
14302     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14304 $as_echo "host tool" >&6; }
14305   else
14306     # We need a cross tool
14307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14308 $as_echo "pre-installed" >&6; }
14309   fi
14310 fi
14311
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14313 $as_echo_n "checking where to find the target gccgo... " >&6; }
14314 if test "x${build}" != "x${host}" ; then
14315   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14316     # We already found the complete path
14317     ac_dir=`dirname $GOC_FOR_TARGET`
14318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14319 $as_echo "pre-installed in $ac_dir" >&6; }
14320   else
14321     # Canadian cross, just use what we found
14322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14323 $as_echo "pre-installed" >&6; }
14324   fi
14325 else
14326   ok=yes
14327   case " ${configdirs} " in
14328     *" gcc "*) ;;
14329     *) ok=no ;;
14330   esac
14331   case ,${enable_languages}, in
14332     *,go,*) ;;
14333     *) ok=no ;;
14334   esac
14335   if test $ok = yes; then
14336     # An in-tree tool is available and we can use it
14337     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14339 $as_echo "just compiled" >&6; }
14340   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14341     # We already found the complete path
14342     ac_dir=`dirname $GOC_FOR_TARGET`
14343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14344 $as_echo "pre-installed in $ac_dir" >&6; }
14345   elif test "x$target" = "x$host"; then
14346     # We can use an host tool
14347     GOC_FOR_TARGET='$(GOC)'
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14349 $as_echo "host tool" >&6; }
14350   else
14351     # We need a cross tool
14352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14353 $as_echo "pre-installed" >&6; }
14354   fi
14355 fi
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14358 $as_echo_n "checking where to find the target ld... " >&6; }
14359 if test "x${build}" != "x${host}" ; then
14360   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14361     # We already found the complete path
14362     ac_dir=`dirname $LD_FOR_TARGET`
14363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364 $as_echo "pre-installed in $ac_dir" >&6; }
14365   else
14366     # Canadian cross, just use what we found
14367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14368 $as_echo "pre-installed" >&6; }
14369   fi
14370 else
14371   ok=yes
14372   case " ${configdirs} " in
14373     *" ld "*) ;;
14374     *) ok=no ;;
14375   esac
14376
14377   if test $ok = yes; then
14378     # An in-tree tool is available and we can use it
14379     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14381 $as_echo "just compiled" >&6; }
14382   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14383     # We already found the complete path
14384     ac_dir=`dirname $LD_FOR_TARGET`
14385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14386 $as_echo "pre-installed in $ac_dir" >&6; }
14387   elif test "x$target" = "x$host"; then
14388     # We can use an host tool
14389     LD_FOR_TARGET='$(LD)'
14390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14391 $as_echo "host tool" >&6; }
14392   else
14393     # We need a cross tool
14394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14396   fi
14397 fi
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14400 $as_echo_n "checking where to find the target lipo... " >&6; }
14401 if test "x${build}" != "x${host}" ; then
14402   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14403     # We already found the complete path
14404     ac_dir=`dirname $LIPO_FOR_TARGET`
14405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406 $as_echo "pre-installed in $ac_dir" >&6; }
14407   else
14408     # Canadian cross, just use what we found
14409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14410 $as_echo "pre-installed" >&6; }
14411   fi
14412 else
14413   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14414     # We already found the complete path
14415     ac_dir=`dirname $LIPO_FOR_TARGET`
14416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417 $as_echo "pre-installed in $ac_dir" >&6; }
14418   elif test "x$target" = "x$host"; then
14419     # We can use an host tool
14420     LIPO_FOR_TARGET='$(LIPO)'
14421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14422 $as_echo "host tool" >&6; }
14423   else
14424     # We need a cross tool
14425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426 $as_echo "pre-installed" >&6; }
14427   fi
14428 fi
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14431 $as_echo_n "checking where to find the target nm... " >&6; }
14432 if test "x${build}" != "x${host}" ; then
14433   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14434     # We already found the complete path
14435     ac_dir=`dirname $NM_FOR_TARGET`
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14437 $as_echo "pre-installed in $ac_dir" >&6; }
14438   else
14439     # Canadian cross, just use what we found
14440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441 $as_echo "pre-installed" >&6; }
14442   fi
14443 else
14444   ok=yes
14445   case " ${configdirs} " in
14446     *" binutils "*) ;;
14447     *) ok=no ;;
14448   esac
14449
14450   if test $ok = yes; then
14451     # An in-tree tool is available and we can use it
14452     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14454 $as_echo "just compiled" >&6; }
14455   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14456     # We already found the complete path
14457     ac_dir=`dirname $NM_FOR_TARGET`
14458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14459 $as_echo "pre-installed in $ac_dir" >&6; }
14460   elif test "x$target" = "x$host"; then
14461     # We can use an host tool
14462     NM_FOR_TARGET='$(NM)'
14463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14464 $as_echo "host tool" >&6; }
14465   else
14466     # We need a cross tool
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14469   fi
14470 fi
14471
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14473 $as_echo_n "checking where to find the target objcopy... " >&6; }
14474 if test "x${build}" != "x${host}" ; then
14475   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14476     # We already found the complete path
14477     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14479 $as_echo "pre-installed in $ac_dir" >&6; }
14480   else
14481     # Canadian cross, just use what we found
14482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14483 $as_echo "pre-installed" >&6; }
14484   fi
14485 else
14486   ok=yes
14487   case " ${configdirs} " in
14488     *" binutils "*) ;;
14489     *) ok=no ;;
14490   esac
14491
14492   if test $ok = yes; then
14493     # An in-tree tool is available and we can use it
14494     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14496 $as_echo "just compiled" >&6; }
14497   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14498     # We already found the complete path
14499     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14501 $as_echo "pre-installed in $ac_dir" >&6; }
14502   elif test "x$target" = "x$host"; then
14503     # We can use an host tool
14504     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14506 $as_echo "host tool" >&6; }
14507   else
14508     # We need a cross tool
14509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510 $as_echo "pre-installed" >&6; }
14511   fi
14512 fi
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14515 $as_echo_n "checking where to find the target objdump... " >&6; }
14516 if test "x${build}" != "x${host}" ; then
14517   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14518     # We already found the complete path
14519     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14521 $as_echo "pre-installed in $ac_dir" >&6; }
14522   else
14523     # Canadian cross, just use what we found
14524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525 $as_echo "pre-installed" >&6; }
14526   fi
14527 else
14528   ok=yes
14529   case " ${configdirs} " in
14530     *" binutils "*) ;;
14531     *) ok=no ;;
14532   esac
14533
14534   if test $ok = yes; then
14535     # An in-tree tool is available and we can use it
14536     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14538 $as_echo "just compiled" >&6; }
14539   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14540     # We already found the complete path
14541     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14543 $as_echo "pre-installed in $ac_dir" >&6; }
14544   elif test "x$target" = "x$host"; then
14545     # We can use an host tool
14546     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14548 $as_echo "host tool" >&6; }
14549   else
14550     # We need a cross tool
14551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552 $as_echo "pre-installed" >&6; }
14553   fi
14554 fi
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14557 $as_echo_n "checking where to find the target ranlib... " >&6; }
14558 if test "x${build}" != "x${host}" ; then
14559   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14560     # We already found the complete path
14561     ac_dir=`dirname $RANLIB_FOR_TARGET`
14562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14563 $as_echo "pre-installed in $ac_dir" >&6; }
14564   else
14565     # Canadian cross, just use what we found
14566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567 $as_echo "pre-installed" >&6; }
14568   fi
14569 else
14570   ok=yes
14571   case " ${configdirs} " in
14572     *" binutils "*) ;;
14573     *) ok=no ;;
14574   esac
14575
14576   if test $ok = yes; then
14577     # An in-tree tool is available and we can use it
14578     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14580 $as_echo "just compiled" >&6; }
14581   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14582     # We already found the complete path
14583     ac_dir=`dirname $RANLIB_FOR_TARGET`
14584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14585 $as_echo "pre-installed in $ac_dir" >&6; }
14586   elif test "x$target" = "x$host"; then
14587     # We can use an host tool
14588     RANLIB_FOR_TARGET='$(RANLIB)'
14589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14590 $as_echo "host tool" >&6; }
14591   else
14592     # We need a cross tool
14593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594 $as_echo "pre-installed" >&6; }
14595   fi
14596 fi
14597
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14599 $as_echo_n "checking where to find the target readelf... " >&6; }
14600 if test "x${build}" != "x${host}" ; then
14601   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14602     # We already found the complete path
14603     ac_dir=`dirname $READELF_FOR_TARGET`
14604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14605 $as_echo "pre-installed in $ac_dir" >&6; }
14606   else
14607     # Canadian cross, just use what we found
14608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609 $as_echo "pre-installed" >&6; }
14610   fi
14611 else
14612   ok=yes
14613   case " ${configdirs} " in
14614     *" binutils "*) ;;
14615     *) ok=no ;;
14616   esac
14617
14618   if test $ok = yes; then
14619     # An in-tree tool is available and we can use it
14620     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14622 $as_echo "just compiled" >&6; }
14623   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14624     # We already found the complete path
14625     ac_dir=`dirname $READELF_FOR_TARGET`
14626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14627 $as_echo "pre-installed in $ac_dir" >&6; }
14628   elif test "x$target" = "x$host"; then
14629     # We can use an host tool
14630     READELF_FOR_TARGET='$(READELF)'
14631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14632 $as_echo "host tool" >&6; }
14633   else
14634     # We need a cross tool
14635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14636 $as_echo "pre-installed" >&6; }
14637   fi
14638 fi
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14641 $as_echo_n "checking where to find the target strip... " >&6; }
14642 if test "x${build}" != "x${host}" ; then
14643   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14644     # We already found the complete path
14645     ac_dir=`dirname $STRIP_FOR_TARGET`
14646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14647 $as_echo "pre-installed in $ac_dir" >&6; }
14648   else
14649     # Canadian cross, just use what we found
14650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651 $as_echo "pre-installed" >&6; }
14652   fi
14653 else
14654   ok=yes
14655   case " ${configdirs} " in
14656     *" binutils "*) ;;
14657     *) ok=no ;;
14658   esac
14659
14660   if test $ok = yes; then
14661     # An in-tree tool is available and we can use it
14662     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14664 $as_echo "just compiled" >&6; }
14665   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14666     # We already found the complete path
14667     ac_dir=`dirname $STRIP_FOR_TARGET`
14668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14669 $as_echo "pre-installed in $ac_dir" >&6; }
14670   elif test "x$target" = "x$host"; then
14671     # We can use an host tool
14672     STRIP_FOR_TARGET='$(STRIP)'
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14674 $as_echo "host tool" >&6; }
14675   else
14676     # We need a cross tool
14677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14678 $as_echo "pre-installed" >&6; }
14679   fi
14680 fi
14681
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14683 $as_echo_n "checking where to find the target windres... " >&6; }
14684 if test "x${build}" != "x${host}" ; then
14685   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14686     # We already found the complete path
14687     ac_dir=`dirname $WINDRES_FOR_TARGET`
14688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14689 $as_echo "pre-installed in $ac_dir" >&6; }
14690   else
14691     # Canadian cross, just use what we found
14692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14693 $as_echo "pre-installed" >&6; }
14694   fi
14695 else
14696   ok=yes
14697   case " ${configdirs} " in
14698     *" binutils "*) ;;
14699     *) ok=no ;;
14700   esac
14701
14702   if test $ok = yes; then
14703     # An in-tree tool is available and we can use it
14704     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14706 $as_echo "just compiled" >&6; }
14707   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14708     # We already found the complete path
14709     ac_dir=`dirname $WINDRES_FOR_TARGET`
14710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14711 $as_echo "pre-installed in $ac_dir" >&6; }
14712   elif test "x$target" = "x$host"; then
14713     # We can use an host tool
14714     WINDRES_FOR_TARGET='$(WINDRES)'
14715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14716 $as_echo "host tool" >&6; }
14717   else
14718     # We need a cross tool
14719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14720 $as_echo "pre-installed" >&6; }
14721   fi
14722 fi
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14725 $as_echo_n "checking where to find the target windmc... " >&6; }
14726 if test "x${build}" != "x${host}" ; then
14727   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14728     # We already found the complete path
14729     ac_dir=`dirname $WINDMC_FOR_TARGET`
14730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14731 $as_echo "pre-installed in $ac_dir" >&6; }
14732   else
14733     # Canadian cross, just use what we found
14734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14735 $as_echo "pre-installed" >&6; }
14736   fi
14737 else
14738   ok=yes
14739   case " ${configdirs} " in
14740     *" binutils "*) ;;
14741     *) ok=no ;;
14742   esac
14743
14744   if test $ok = yes; then
14745     # An in-tree tool is available and we can use it
14746     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14748 $as_echo "just compiled" >&6; }
14749   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14750     # We already found the complete path
14751     ac_dir=`dirname $WINDMC_FOR_TARGET`
14752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14753 $as_echo "pre-installed in $ac_dir" >&6; }
14754   elif test "x$target" = "x$host"; then
14755     # We can use an host tool
14756     WINDMC_FOR_TARGET='$(WINDMC)'
14757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14758 $as_echo "host tool" >&6; }
14759   else
14760     # We need a cross tool
14761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14762 $as_echo "pre-installed" >&6; }
14763   fi
14764 fi
14765
14766
14767
14768
14769
14770 # Certain tools may need extra flags.
14771 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14772 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14773 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14774
14775 # When building target libraries, except in a Canadian cross, we use
14776 # the same toolchain as the compiler we just built.
14777 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14778 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14779 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14780 if test $host = $build; then
14781   case " $configdirs " in
14782     *" gcc "*)
14783       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14784       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14785       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14786       ;;
14787   esac
14788 fi
14789
14790
14791
14792
14793
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14795 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14796 # Check whether --enable-maintainer-mode was given.
14797 if test "${enable_maintainer_mode+set}" = set; then :
14798   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14799 else
14800   USE_MAINTAINER_MODE=no
14801 fi
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14804 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14805
14806
14807 if test "$USE_MAINTAINER_MODE" = yes; then
14808   MAINTAINER_MODE_TRUE=
14809   MAINTAINER_MODE_FALSE='#'
14810 else
14811   MAINTAINER_MODE_TRUE='#'
14812   MAINTAINER_MODE_FALSE=
14813 fi
14814 MAINT=$MAINTAINER_MODE_TRUE
14815
14816 # ---------------------
14817 # GCC bootstrap support
14818 # ---------------------
14819
14820 # Stage specific cflags for build.
14821 stage1_cflags="-g"
14822 case $build in
14823   vax-*-*)
14824     case ${GCC} in
14825       yes) stage1_cflags="-g -Wa,-J" ;;
14826       *) stage1_cflags="-g -J" ;;
14827     esac ;;
14828 esac
14829
14830
14831
14832 # Enable --enable-checking in stage1 of the compiler.
14833 # Check whether --enable-stage1-checking was given.
14834 if test "${enable_stage1_checking+set}" = set; then :
14835   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14836 else
14837   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14838   # For --disable-checking or implicit --enable-checking=release, avoid
14839   # setting --enable-checking=gc in the default stage1 checking for LTO
14840   # bootstraps.  See PR62077.
14841   case $BUILD_CONFIG in
14842     *lto*)
14843       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14844     *)
14845       stage1_checking=--enable-checking=yes,types;;
14846   esac
14847   if test "x$enable_checking" = x && \
14848      test -d ${srcdir}/gcc && \
14849      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14850     stage1_checking=--enable-checking=yes,types,extra
14851   fi
14852 else
14853   stage1_checking=--enable-checking=$enable_checking,types
14854 fi
14855 fi
14856
14857
14858
14859 # Enable -Werror in bootstrap stage2 and later.
14860 # Check whether --enable-werror was given.
14861 if test "${enable_werror+set}" = set; then :
14862   enableval=$enable_werror;
14863 else
14864   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14865   enable_werror=yes
14866 else
14867   enable_werror=no
14868 fi
14869 fi
14870
14871 case ${enable_werror} in
14872   yes) stage2_werror_flag="--enable-werror-always" ;;
14873   *) stage2_werror_flag="" ;;
14874 esac
14875
14876
14877 # Enable --enable-host-shared.
14878 # Check whether --enable-host-shared was given.
14879 if test "${enable_host_shared+set}" = set; then :
14880   enableval=$enable_host_shared; host_shared=$enableval
14881 else
14882   host_shared=no
14883 fi
14884
14885
14886
14887 # PR jit/64780: Require the user to explicitly specify
14888 # --enable-host-shared if the jit is enabled, hinting
14889 # that they might want to do a separate configure/build of
14890 # the jit, to avoid users from slowing down the rest of the
14891 # compiler by enabling the jit.
14892 if test ${host_shared} = "no" ; then
14893   case "${enable_languages}" in
14894     *jit*)
14895       as_fn_error "
14896 Enabling language \"jit\" requires --enable-host-shared.
14897
14898 --enable-host-shared typically slows the rest of the compiler down by
14899 a few %, so you must explicitly enable it.
14900
14901 If you want to build both the jit and the regular compiler, it is often
14902 best to do this via two separate configure/builds, in separate
14903 directories, to avoid imposing the performance cost of
14904 --enable-host-shared on the regular compiler." "$LINENO" 5
14905       ;;
14906     *)
14907       ;;
14908   esac
14909 fi
14910
14911 # Specify what files to not compare during bootstrap.
14912
14913 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14914 case "$target" in
14915   hppa*64*-*-hpux*) ;;
14916   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14917   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14918 esac
14919
14920
14921 ac_config_files="$ac_config_files Makefile"
14922
14923 cat >confcache <<\_ACEOF
14924 # This file is a shell script that caches the results of configure
14925 # tests run on this system so they can be shared between configure
14926 # scripts and configure runs, see configure's option --config-cache.
14927 # It is not useful on other systems.  If it contains results you don't
14928 # want to keep, you may remove or edit it.
14929 #
14930 # config.status only pays attention to the cache file if you give it
14931 # the --recheck option to rerun configure.
14932 #
14933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14935 # following values.
14936
14937 _ACEOF
14938
14939 # The following way of writing the cache mishandles newlines in values,
14940 # but we know of no workaround that is simple, portable, and efficient.
14941 # So, we kill variables containing newlines.
14942 # Ultrix sh set writes to stderr and can't be redirected directly,
14943 # and sets the high bit in the cache file unless we assign to the vars.
14944 (
14945   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14946     eval ac_val=\$$ac_var
14947     case $ac_val in #(
14948     *${as_nl}*)
14949       case $ac_var in #(
14950       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14952       esac
14953       case $ac_var in #(
14954       _ | IFS | as_nl) ;; #(
14955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14956       *) { eval $ac_var=; unset $ac_var;} ;;
14957       esac ;;
14958     esac
14959   done
14960
14961   (set) 2>&1 |
14962     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14963     *${as_nl}ac_space=\ *)
14964       # `set' does not quote correctly, so add quotes: double-quote
14965       # substitution turns \\\\ into \\, and sed turns \\ into \.
14966       sed -n \
14967         "s/'/'\\\\''/g;
14968           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14969       ;; #(
14970     *)
14971       # `set' quotes correctly as required by POSIX, so do not add quotes.
14972       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14973       ;;
14974     esac |
14975     sort
14976 ) |
14977   sed '
14978      /^ac_cv_env_/b end
14979      t clear
14980      :clear
14981      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14982      t end
14983      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14984      :end' >>confcache
14985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14986   if test -w "$cache_file"; then
14987     test "x$cache_file" != "x/dev/null" &&
14988       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14989 $as_echo "$as_me: updating cache $cache_file" >&6;}
14990     cat confcache >$cache_file
14991   else
14992     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14993 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14994   fi
14995 fi
14996 rm -f confcache
14997
14998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14999 # Let make expand exec_prefix.
15000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15001
15002 # Transform confdefs.h into DEFS.
15003 # Protect against shell expansion while executing Makefile rules.
15004 # Protect against Makefile macro expansion.
15005 #
15006 # If the first sed substitution is executed (which looks for macros that
15007 # take arguments), then branch to the quote section.  Otherwise,
15008 # look for a macro that doesn't take arguments.
15009 ac_script='
15010 :mline
15011 /\\$/{
15012  N
15013  s,\\\n,,
15014  b mline
15015 }
15016 t clear
15017 :clear
15018 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15019 t quote
15020 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15021 t quote
15022 b any
15023 :quote
15024 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15025 s/\[/\\&/g
15026 s/\]/\\&/g
15027 s/\$/$$/g
15028 H
15029 :any
15030 ${
15031         g
15032         s/^\n//
15033         s/\n/ /g
15034         p
15035 }
15036 '
15037 DEFS=`sed -n "$ac_script" confdefs.h`
15038
15039
15040 ac_libobjs=
15041 ac_ltlibobjs=
15042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15043   # 1. Remove the extension, and $U if already installed.
15044   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15045   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15046   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15047   #    will be set to the directory where LIBOBJS objects are built.
15048   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15049   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15050 done
15051 LIBOBJS=$ac_libobjs
15052
15053 LTLIBOBJS=$ac_ltlibobjs
15054
15055
15056
15057 : ${CONFIG_STATUS=./config.status}
15058 ac_write_fail=0
15059 ac_clean_files_save=$ac_clean_files
15060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15062 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15063 as_write_fail=0
15064 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15065 #! $SHELL
15066 # Generated by $as_me.
15067 # Run this file to recreate the current configuration.
15068 # Compiler output produced by configure, useful for debugging
15069 # configure, is in config.log if it exists.
15070
15071 debug=false
15072 ac_cs_recheck=false
15073 ac_cs_silent=false
15074
15075 SHELL=\${CONFIG_SHELL-$SHELL}
15076 export SHELL
15077 _ASEOF
15078 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15079 ## -------------------- ##
15080 ## M4sh Initialization. ##
15081 ## -------------------- ##
15082
15083 # Be more Bourne compatible
15084 DUALCASE=1; export DUALCASE # for MKS sh
15085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15086   emulate sh
15087   NULLCMD=:
15088   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15089   # is contrary to our usage.  Disable this feature.
15090   alias -g '${1+"$@"}'='"$@"'
15091   setopt NO_GLOB_SUBST
15092 else
15093   case `(set -o) 2>/dev/null` in #(
15094   *posix*) :
15095     set -o posix ;; #(
15096   *) :
15097      ;;
15098 esac
15099 fi
15100
15101
15102 as_nl='
15103 '
15104 export as_nl
15105 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15106 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15107 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15109 # Prefer a ksh shell builtin over an external printf program on Solaris,
15110 # but without wasting forks for bash or zsh.
15111 if test -z "$BASH_VERSION$ZSH_VERSION" \
15112     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15113   as_echo='print -r --'
15114   as_echo_n='print -rn --'
15115 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15116   as_echo='printf %s\n'
15117   as_echo_n='printf %s'
15118 else
15119   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15120     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15121     as_echo_n='/usr/ucb/echo -n'
15122   else
15123     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15124     as_echo_n_body='eval
15125       arg=$1;
15126       case $arg in #(
15127       *"$as_nl"*)
15128         expr "X$arg" : "X\\(.*\\)$as_nl";
15129         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15130       esac;
15131       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15132     '
15133     export as_echo_n_body
15134     as_echo_n='sh -c $as_echo_n_body as_echo'
15135   fi
15136   export as_echo_body
15137   as_echo='sh -c $as_echo_body as_echo'
15138 fi
15139
15140 # The user is always right.
15141 if test "${PATH_SEPARATOR+set}" != set; then
15142   PATH_SEPARATOR=:
15143   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15144     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15145       PATH_SEPARATOR=';'
15146   }
15147 fi
15148
15149
15150 # IFS
15151 # We need space, tab and new line, in precisely that order.  Quoting is
15152 # there to prevent editors from complaining about space-tab.
15153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15154 # splitting by setting IFS to empty value.)
15155 IFS=" ""        $as_nl"
15156
15157 # Find who we are.  Look in the path if we contain no directory separator.
15158 case $0 in #((
15159   *[\\/]* ) as_myself=$0 ;;
15160   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15162 do
15163   IFS=$as_save_IFS
15164   test -z "$as_dir" && as_dir=.
15165     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15166   done
15167 IFS=$as_save_IFS
15168
15169      ;;
15170 esac
15171 # We did not find ourselves, most probably we were run as `sh COMMAND'
15172 # in which case we are not to be found in the path.
15173 if test "x$as_myself" = x; then
15174   as_myself=$0
15175 fi
15176 if test ! -f "$as_myself"; then
15177   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15178   exit 1
15179 fi
15180
15181 # Unset variables that we do not need and which cause bugs (e.g. in
15182 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15183 # suppresses any "Segmentation fault" message there.  '((' could
15184 # trigger a bug in pdksh 5.2.14.
15185 for as_var in BASH_ENV ENV MAIL MAILPATH
15186 do eval test x\${$as_var+set} = xset \
15187   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15188 done
15189 PS1='$ '
15190 PS2='> '
15191 PS4='+ '
15192
15193 # NLS nuisances.
15194 LC_ALL=C
15195 export LC_ALL
15196 LANGUAGE=C
15197 export LANGUAGE
15198
15199 # CDPATH.
15200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15201
15202
15203 # as_fn_error ERROR [LINENO LOG_FD]
15204 # ---------------------------------
15205 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15206 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15207 # script with status $?, using 1 if that was 0.
15208 as_fn_error ()
15209 {
15210   as_status=$?; test $as_status -eq 0 && as_status=1
15211   if test "$3"; then
15212     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15213     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15214   fi
15215   $as_echo "$as_me: error: $1" >&2
15216   as_fn_exit $as_status
15217 } # as_fn_error
15218
15219
15220 # as_fn_set_status STATUS
15221 # -----------------------
15222 # Set $? to STATUS, without forking.
15223 as_fn_set_status ()
15224 {
15225   return $1
15226 } # as_fn_set_status
15227
15228 # as_fn_exit STATUS
15229 # -----------------
15230 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15231 as_fn_exit ()
15232 {
15233   set +e
15234   as_fn_set_status $1
15235   exit $1
15236 } # as_fn_exit
15237
15238 # as_fn_unset VAR
15239 # ---------------
15240 # Portably unset VAR.
15241 as_fn_unset ()
15242 {
15243   { eval $1=; unset $1;}
15244 }
15245 as_unset=as_fn_unset
15246 # as_fn_append VAR VALUE
15247 # ----------------------
15248 # Append the text in VALUE to the end of the definition contained in VAR. Take
15249 # advantage of any shell optimizations that allow amortized linear growth over
15250 # repeated appends, instead of the typical quadratic growth present in naive
15251 # implementations.
15252 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15253   eval 'as_fn_append ()
15254   {
15255     eval $1+=\$2
15256   }'
15257 else
15258   as_fn_append ()
15259   {
15260     eval $1=\$$1\$2
15261   }
15262 fi # as_fn_append
15263
15264 # as_fn_arith ARG...
15265 # ------------------
15266 # Perform arithmetic evaluation on the ARGs, and store the result in the
15267 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15268 # must be portable across $(()) and expr.
15269 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15270   eval 'as_fn_arith ()
15271   {
15272     as_val=$(( $* ))
15273   }'
15274 else
15275   as_fn_arith ()
15276   {
15277     as_val=`expr "$@" || test $? -eq 1`
15278   }
15279 fi # as_fn_arith
15280
15281
15282 if expr a : '\(a\)' >/dev/null 2>&1 &&
15283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15284   as_expr=expr
15285 else
15286   as_expr=false
15287 fi
15288
15289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15290   as_basename=basename
15291 else
15292   as_basename=false
15293 fi
15294
15295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15296   as_dirname=dirname
15297 else
15298   as_dirname=false
15299 fi
15300
15301 as_me=`$as_basename -- "$0" ||
15302 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15303          X"$0" : 'X\(//\)$' \| \
15304          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15305 $as_echo X/"$0" |
15306     sed '/^.*\/\([^/][^/]*\)\/*$/{
15307             s//\1/
15308             q
15309           }
15310           /^X\/\(\/\/\)$/{
15311             s//\1/
15312             q
15313           }
15314           /^X\/\(\/\).*/{
15315             s//\1/
15316             q
15317           }
15318           s/.*/./; q'`
15319
15320 # Avoid depending upon Character Ranges.
15321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15324 as_cr_digits='0123456789'
15325 as_cr_alnum=$as_cr_Letters$as_cr_digits
15326
15327 ECHO_C= ECHO_N= ECHO_T=
15328 case `echo -n x` in #(((((
15329 -n*)
15330   case `echo 'xy\c'` in
15331   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15332   xy)  ECHO_C='\c';;
15333   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15334        ECHO_T=' ';;
15335   esac;;
15336 *)
15337   ECHO_N='-n';;
15338 esac
15339
15340 rm -f conf$$ conf$$.exe conf$$.file
15341 if test -d conf$$.dir; then
15342   rm -f conf$$.dir/conf$$.file
15343 else
15344   rm -f conf$$.dir
15345   mkdir conf$$.dir 2>/dev/null
15346 fi
15347 if (echo >conf$$.file) 2>/dev/null; then
15348   if ln -s conf$$.file conf$$ 2>/dev/null; then
15349     as_ln_s='ln -s'
15350     # ... but there are two gotchas:
15351     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15352     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15353     # In both cases, we have to default to `cp -p'.
15354     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15355       as_ln_s='cp -p'
15356   elif ln conf$$.file conf$$ 2>/dev/null; then
15357     as_ln_s=ln
15358   else
15359     as_ln_s='cp -p'
15360   fi
15361 else
15362   as_ln_s='cp -p'
15363 fi
15364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15365 rmdir conf$$.dir 2>/dev/null
15366
15367
15368 # as_fn_mkdir_p
15369 # -------------
15370 # Create "$as_dir" as a directory, including parents if necessary.
15371 as_fn_mkdir_p ()
15372 {
15373
15374   case $as_dir in #(
15375   -*) as_dir=./$as_dir;;
15376   esac
15377   test -d "$as_dir" || eval $as_mkdir_p || {
15378     as_dirs=
15379     while :; do
15380       case $as_dir in #(
15381       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15382       *) as_qdir=$as_dir;;
15383       esac
15384       as_dirs="'$as_qdir' $as_dirs"
15385       as_dir=`$as_dirname -- "$as_dir" ||
15386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15387          X"$as_dir" : 'X\(//\)[^/]' \| \
15388          X"$as_dir" : 'X\(//\)$' \| \
15389          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15390 $as_echo X"$as_dir" |
15391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15392             s//\1/
15393             q
15394           }
15395           /^X\(\/\/\)[^/].*/{
15396             s//\1/
15397             q
15398           }
15399           /^X\(\/\/\)$/{
15400             s//\1/
15401             q
15402           }
15403           /^X\(\/\).*/{
15404             s//\1/
15405             q
15406           }
15407           s/.*/./; q'`
15408       test -d "$as_dir" && break
15409     done
15410     test -z "$as_dirs" || eval "mkdir $as_dirs"
15411   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15412
15413
15414 } # as_fn_mkdir_p
15415 if mkdir -p . 2>/dev/null; then
15416   as_mkdir_p='mkdir -p "$as_dir"'
15417 else
15418   test -d ./-p && rmdir ./-p
15419   as_mkdir_p=false
15420 fi
15421
15422 if test -x / >/dev/null 2>&1; then
15423   as_test_x='test -x'
15424 else
15425   if ls -dL / >/dev/null 2>&1; then
15426     as_ls_L_option=L
15427   else
15428     as_ls_L_option=
15429   fi
15430   as_test_x='
15431     eval sh -c '\''
15432       if test -d "$1"; then
15433         test -d "$1/.";
15434       else
15435         case $1 in #(
15436         -*)set "./$1";;
15437         esac;
15438         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15439         ???[sx]*):;;*)false;;esac;fi
15440     '\'' sh
15441   '
15442 fi
15443 as_executable_p=$as_test_x
15444
15445 # Sed expression to map a string onto a valid CPP name.
15446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15447
15448 # Sed expression to map a string onto a valid variable name.
15449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15450
15451
15452 exec 6>&1
15453 ## ----------------------------------- ##
15454 ## Main body of $CONFIG_STATUS script. ##
15455 ## ----------------------------------- ##
15456 _ASEOF
15457 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15458
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460 # Save the log message, to keep $0 and so on meaningful, and to
15461 # report actual input values of CONFIG_FILES etc. instead of their
15462 # values after options handling.
15463 ac_log="
15464 This file was extended by $as_me, which was
15465 generated by GNU Autoconf 2.64.  Invocation command line was
15466
15467   CONFIG_FILES    = $CONFIG_FILES
15468   CONFIG_HEADERS  = $CONFIG_HEADERS
15469   CONFIG_LINKS    = $CONFIG_LINKS
15470   CONFIG_COMMANDS = $CONFIG_COMMANDS
15471   $ $0 $@
15472
15473 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15474 "
15475
15476 _ACEOF
15477
15478 case $ac_config_files in *"
15479 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15480 esac
15481
15482
15483
15484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15485 # Files that config.status was made for.
15486 config_files="$ac_config_files"
15487
15488 _ACEOF
15489
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 ac_cs_usage="\
15492 \`$as_me' instantiates files and other configuration actions
15493 from templates according to the current configuration.  Unless the files
15494 and actions are specified as TAGs, all are instantiated by default.
15495
15496 Usage: $0 [OPTION]... [TAG]...
15497
15498   -h, --help       print this help, then exit
15499   -V, --version    print version number and configuration settings, then exit
15500   -q, --quiet, --silent
15501                    do not print progress messages
15502   -d, --debug      don't remove temporary files
15503       --recheck    update $as_me by reconfiguring in the same conditions
15504       --file=FILE[:TEMPLATE]
15505                    instantiate the configuration file FILE
15506
15507 Configuration files:
15508 $config_files
15509
15510 Report bugs to the package provider."
15511
15512 _ACEOF
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 ac_cs_version="\\
15515 config.status
15516 configured by $0, generated by GNU Autoconf 2.64,
15517   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15518
15519 Copyright (C) 2009 Free Software Foundation, Inc.
15520 This config.status script is free software; the Free Software Foundation
15521 gives unlimited permission to copy, distribute and modify it."
15522
15523 ac_pwd='$ac_pwd'
15524 srcdir='$srcdir'
15525 INSTALL='$INSTALL'
15526 AWK='$AWK'
15527 test -n "\$AWK" || AWK=awk
15528 _ACEOF
15529
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 # The default lists apply if the user does not specify any file.
15532 ac_need_defaults=:
15533 while test $# != 0
15534 do
15535   case $1 in
15536   --*=*)
15537     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15538     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15539     ac_shift=:
15540     ;;
15541   *)
15542     ac_option=$1
15543     ac_optarg=$2
15544     ac_shift=shift
15545     ;;
15546   esac
15547
15548   case $ac_option in
15549   # Handling of the options.
15550   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15551     ac_cs_recheck=: ;;
15552   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15553     $as_echo "$ac_cs_version"; exit ;;
15554   --debug | --debu | --deb | --de | --d | -d )
15555     debug=: ;;
15556   --file | --fil | --fi | --f )
15557     $ac_shift
15558     case $ac_optarg in
15559     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15560     esac
15561     as_fn_append CONFIG_FILES " '$ac_optarg'"
15562     ac_need_defaults=false;;
15563   --he | --h |  --help | --hel | -h )
15564     $as_echo "$ac_cs_usage"; exit ;;
15565   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15566   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15567     ac_cs_silent=: ;;
15568
15569   # This is an error.
15570   -*) as_fn_error "unrecognized option: \`$1'
15571 Try \`$0 --help' for more information." ;;
15572
15573   *) as_fn_append ac_config_targets " $1"
15574      ac_need_defaults=false ;;
15575
15576   esac
15577   shift
15578 done
15579
15580 ac_configure_extra_args=
15581
15582 if $ac_cs_silent; then
15583   exec 6>/dev/null
15584   ac_configure_extra_args="$ac_configure_extra_args --silent"
15585 fi
15586
15587 _ACEOF
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 if \$ac_cs_recheck; then
15590   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15591   shift
15592   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15593   CONFIG_SHELL='$SHELL'
15594   export CONFIG_SHELL
15595   exec "\$@"
15596 fi
15597
15598 _ACEOF
15599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15600 exec 5>>config.log
15601 {
15602   echo
15603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15604 ## Running $as_me. ##
15605 _ASBOX
15606   $as_echo "$ac_log"
15607 } >&5
15608
15609 _ACEOF
15610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15611 #
15612 # INIT-COMMANDS
15613 #
15614 extrasub_build="$extrasub_build"
15615    extrasub_host="$extrasub_host"
15616    extrasub_target="$extrasub_target"
15617
15618 _ACEOF
15619
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621
15622 # Handling of arguments.
15623 for ac_config_target in $ac_config_targets
15624 do
15625   case $ac_config_target in
15626     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15627
15628   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15629   esac
15630 done
15631
15632
15633 # If the user did not use the arguments to specify the items to instantiate,
15634 # then the envvar interface is used.  Set only those that are not.
15635 # We use the long form for the default assignment because of an extremely
15636 # bizarre bug on SunOS 4.1.3.
15637 if $ac_need_defaults; then
15638   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15639 fi
15640
15641 # Have a temporary directory for convenience.  Make it in the build tree
15642 # simply because there is no reason against having it here, and in addition,
15643 # creating and moving files from /tmp can sometimes cause problems.
15644 # Hook for its removal unless debugging.
15645 # Note that there is a small window in which the directory will not be cleaned:
15646 # after its creation but before its name has been assigned to `$tmp'.
15647 $debug ||
15648 {
15649   tmp=
15650   trap 'exit_status=$?
15651   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15652 ' 0
15653   trap 'as_fn_exit 1' 1 2 13 15
15654 }
15655 # Create a (secure) tmp directory for tmp files.
15656
15657 {
15658   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15659   test -n "$tmp" && test -d "$tmp"
15660 }  ||
15661 {
15662   tmp=./conf$$-$RANDOM
15663   (umask 077 && mkdir "$tmp")
15664 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15665
15666 # Set up the scripts for CONFIG_FILES section.
15667 # No need to generate them if there are no CONFIG_FILES.
15668 # This happens for instance with `./config.status config.h'.
15669 if test -n "$CONFIG_FILES"; then
15670
15671 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15672   ac_cs_awk_getline=:
15673   ac_cs_awk_pipe_init=
15674   ac_cs_awk_read_file='
15675       while ((getline aline < (F[key])) > 0)
15676         print(aline)
15677       close(F[key])'
15678   ac_cs_awk_pipe_fini=
15679 else
15680   ac_cs_awk_getline=false
15681   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15682   ac_cs_awk_read_file='
15683       print "|#_!!_#|"
15684       print "cat " F[key] " &&"
15685       '$ac_cs_awk_pipe_init
15686   # The final `:' finishes the AND list.
15687   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15688 fi
15689 ac_cr=`echo X | tr X '\015'`
15690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15691 # But we know of no other shell where ac_cr would be empty at this
15692 # point, so we can use a bashism as a fallback.
15693 if test "x$ac_cr" = x; then
15694   eval ac_cr=\$\'\\r\'
15695 fi
15696 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15698   ac_cs_awk_cr='\r'
15699 else
15700   ac_cs_awk_cr=$ac_cr
15701 fi
15702
15703 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15704 _ACEOF
15705
15706 # Create commands to substitute file output variables.
15707 {
15708   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15709   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15710   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15711   echo "_ACAWK" &&
15712   echo "_ACEOF"
15713 } >conf$$files.sh &&
15714 . ./conf$$files.sh ||
15715   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15716 rm -f conf$$files.sh
15717
15718 {
15719   echo "cat >conf$$subs.awk <<_ACEOF" &&
15720   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15721   echo "_ACEOF"
15722 } >conf$$subs.sh ||
15723   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15725 ac_delim='%!_!# '
15726 for ac_last_try in false false false false false :; do
15727   . ./conf$$subs.sh ||
15728     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15729
15730   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15731   if test $ac_delim_n = $ac_delim_num; then
15732     break
15733   elif $ac_last_try; then
15734     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735   else
15736     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15737   fi
15738 done
15739 rm -f conf$$subs.sh
15740
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15742 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15743 _ACEOF
15744 sed -n '
15745 h
15746 s/^/S["/; s/!.*/"]=/
15747 p
15748 g
15749 s/^[^!]*!//
15750 :repl
15751 t repl
15752 s/'"$ac_delim"'$//
15753 t delim
15754 :nl
15755 h
15756 s/\(.\{148\}\).*/\1/
15757 t more1
15758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15759 p
15760 n
15761 b repl
15762 :more1
15763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15764 p
15765 g
15766 s/.\{148\}//
15767 t nl
15768 :delim
15769 h
15770 s/\(.\{148\}\).*/\1/
15771 t more2
15772 s/["\\]/\\&/g; s/^/"/; s/$/"/
15773 p
15774 b
15775 :more2
15776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15777 p
15778 g
15779 s/.\{148\}//
15780 t delim
15781 ' <conf$$subs.awk | sed '
15782 /^[^""]/{
15783   N
15784   s/\n//
15785 }
15786 ' >>$CONFIG_STATUS || ac_write_fail=1
15787 rm -f conf$$subs.awk
15788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15789 _ACAWK
15790 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15791   for (key in S) S_is_set[key] = 1
15792   FS = "\a"
15793   \$ac_cs_awk_pipe_init
15794 }
15795 {
15796   line = $ 0
15797   nfields = split(line, field, "@")
15798   substed = 0
15799   len = length(field[1])
15800   for (i = 2; i < nfields; i++) {
15801     key = field[i]
15802     keylen = length(key)
15803     if (S_is_set[key]) {
15804       value = S[key]
15805       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15806       len += length(value) + length(field[++i])
15807       substed = 1
15808     } else
15809       len += 1 + keylen
15810   }
15811   if (nfields == 3 && !substed) {
15812     key = field[2]
15813     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15814       \$ac_cs_awk_read_file
15815       next
15816     }
15817   }
15818   print line
15819 }
15820 \$ac_cs_awk_pipe_fini
15821 _ACAWK
15822 _ACEOF
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15825   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15826 else
15827   cat
15828 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15829   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15830 _ACEOF
15831
15832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15834 # trailing colons and then remove the whole line if VPATH becomes empty
15835 # (actually we leave an empty line to preserve line numbers).
15836 if test "x$srcdir" = x.; then
15837   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15838 s/:*\$(srcdir):*/:/
15839 s/:*\${srcdir}:*/:/
15840 s/:*@srcdir@:*/:/
15841 s/^\([^=]*=[     ]*\):*/\1/
15842 s/:*$//
15843 s/^[^=]*=[       ]*$//
15844 }'
15845 fi
15846
15847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 fi # test -n "$CONFIG_FILES"
15849
15850
15851 eval set X "  :F $CONFIG_FILES      "
15852 shift
15853 for ac_tag
15854 do
15855   case $ac_tag in
15856   :[FHLC]) ac_mode=$ac_tag; continue;;
15857   esac
15858   case $ac_mode$ac_tag in
15859   :[FHL]*:*);;
15860   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15861   :[FH]-) ac_tag=-:-;;
15862   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15863   esac
15864   ac_save_IFS=$IFS
15865   IFS=:
15866   set x $ac_tag
15867   IFS=$ac_save_IFS
15868   shift
15869   ac_file=$1
15870   shift
15871
15872   case $ac_mode in
15873   :L) ac_source=$1;;
15874   :[FH])
15875     ac_file_inputs=
15876     for ac_f
15877     do
15878       case $ac_f in
15879       -) ac_f="$tmp/stdin";;
15880       *) # Look for the file first in the build tree, then in the source tree
15881          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15882          # because $ac_f cannot contain `:'.
15883          test -f "$ac_f" ||
15884            case $ac_f in
15885            [\\/$]*) false;;
15886            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15887            esac ||
15888            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15889       esac
15890       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15891       as_fn_append ac_file_inputs " '$ac_f'"
15892     done
15893
15894     # Let's still pretend it is `configure' which instantiates (i.e., don't
15895     # use $as_me), people would be surprised to read:
15896     #    /* config.h.  Generated by config.status.  */
15897     configure_input='Generated from '`
15898           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15899         `' by configure.'
15900     if test x"$ac_file" != x-; then
15901       configure_input="$ac_file.  $configure_input"
15902       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15903 $as_echo "$as_me: creating $ac_file" >&6;}
15904     fi
15905     # Neutralize special characters interpreted by sed in replacement strings.
15906     case $configure_input in #(
15907     *\&* | *\|* | *\\* )
15908        ac_sed_conf_input=`$as_echo "$configure_input" |
15909        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15910     *) ac_sed_conf_input=$configure_input;;
15911     esac
15912
15913     case $ac_tag in
15914     *:-:* | *:-) cat >"$tmp/stdin" \
15915       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15916     esac
15917     ;;
15918   esac
15919
15920   ac_dir=`$as_dirname -- "$ac_file" ||
15921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15922          X"$ac_file" : 'X\(//\)[^/]' \| \
15923          X"$ac_file" : 'X\(//\)$' \| \
15924          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15925 $as_echo X"$ac_file" |
15926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15927             s//\1/
15928             q
15929           }
15930           /^X\(\/\/\)[^/].*/{
15931             s//\1/
15932             q
15933           }
15934           /^X\(\/\/\)$/{
15935             s//\1/
15936             q
15937           }
15938           /^X\(\/\).*/{
15939             s//\1/
15940             q
15941           }
15942           s/.*/./; q'`
15943   as_dir="$ac_dir"; as_fn_mkdir_p
15944   ac_builddir=.
15945
15946 case "$ac_dir" in
15947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15948 *)
15949   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15950   # A ".." for each directory in $ac_dir_suffix.
15951   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15952   case $ac_top_builddir_sub in
15953   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15954   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15955   esac ;;
15956 esac
15957 ac_abs_top_builddir=$ac_pwd
15958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15959 # for backward compatibility:
15960 ac_top_builddir=$ac_top_build_prefix
15961
15962 case $srcdir in
15963   .)  # We are building in place.
15964     ac_srcdir=.
15965     ac_top_srcdir=$ac_top_builddir_sub
15966     ac_abs_top_srcdir=$ac_pwd ;;
15967   [\\/]* | ?:[\\/]* )  # Absolute name.
15968     ac_srcdir=$srcdir$ac_dir_suffix;
15969     ac_top_srcdir=$srcdir
15970     ac_abs_top_srcdir=$srcdir ;;
15971   *) # Relative name.
15972     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15973     ac_top_srcdir=$ac_top_build_prefix$srcdir
15974     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15975 esac
15976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15977
15978
15979   case $ac_mode in
15980   :F)
15981   #
15982   # CONFIG_FILE
15983   #
15984
15985   case $INSTALL in
15986   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15987   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15988   esac
15989 _ACEOF
15990
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 # If the template does not know about datarootdir, expand it.
15993 # FIXME: This hack should be removed a few years after 2.60.
15994 ac_datarootdir_hack=; ac_datarootdir_seen=
15995 ac_sed_dataroot='
15996 /datarootdir/ {
15997   p
15998   q
15999 }
16000 /@datadir@/p
16001 /@docdir@/p
16002 /@infodir@/p
16003 /@localedir@/p
16004 /@mandir@/p'
16005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16006 *datarootdir*) ac_datarootdir_seen=yes;;
16007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16008   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16010 _ACEOF
16011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16012   ac_datarootdir_hack='
16013   s&@datadir@&$datadir&g
16014   s&@docdir@&$docdir&g
16015   s&@infodir@&$infodir&g
16016   s&@localedir@&$localedir&g
16017   s&@mandir@&$mandir&g
16018   s&\\\${datarootdir}&$datarootdir&g' ;;
16019 esac
16020 _ACEOF
16021
16022 # Neutralize VPATH when `$srcdir' = `.'.
16023 # Shell code in configure.ac might set extrasub.
16024 # FIXME: do we really want to maintain this feature?
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 ac_sed_extra="$ac_vpsub
16027 $extrasub
16028 _ACEOF
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 :t
16031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16032 s|@configure_input@|$ac_sed_conf_input|;t t
16033 s&@top_builddir@&$ac_top_builddir_sub&;t t
16034 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16035 s&@srcdir@&$ac_srcdir&;t t
16036 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16037 s&@top_srcdir@&$ac_top_srcdir&;t t
16038 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16039 s&@builddir@&$ac_builddir&;t t
16040 s&@abs_builddir@&$ac_abs_builddir&;t t
16041 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16042 s&@INSTALL@&$ac_INSTALL&;t t
16043 $ac_datarootdir_hack
16044 "
16045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16046 if $ac_cs_awk_getline; then
16047   $AWK -f "$tmp/subs.awk"
16048 else
16049   $AWK -f "$tmp/subs.awk" | $SHELL
16050 fi >$tmp/out \
16051   || as_fn_error "could not create $ac_file" "$LINENO" 5
16052
16053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16054   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16055   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16057 which seems to be undefined.  Please make sure it is defined." >&5
16058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16059 which seems to be undefined.  Please make sure it is defined." >&2;}
16060
16061   rm -f "$tmp/stdin"
16062   case $ac_file in
16063   -) cat "$tmp/out" && rm -f "$tmp/out";;
16064   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16065   esac \
16066   || as_fn_error "could not create $ac_file" "$LINENO" 5
16067  ;;
16068
16069
16070
16071   esac
16072
16073
16074   case $ac_file$ac_mode in
16075     "Makefile":F) sed "$extrasub_build" Makefile |
16076    sed "$extrasub_host" |
16077    sed "$extrasub_target" > mf$$
16078    mv -f mf$$ Makefile ;;
16079
16080   esac
16081 done # for ac_tag
16082
16083
16084 as_fn_exit 0
16085 _ACEOF
16086 ac_clean_files=$ac_clean_files_save
16087
16088 test $ac_write_fail = 0 ||
16089   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16090
16091
16092 # configure is writing to config.log, and then calls config.status.
16093 # config.status does its own redirection, appending to config.log.
16094 # Unfortunately, on DOS this fails, as config.log is still kept open
16095 # by configure, so config.status won't be able to write to it; its
16096 # output is simply discarded.  So we exec the FD to /dev/null,
16097 # effectively closing config.log, so it can be properly (re)opened and
16098 # appended to by config.status.  When coming back to configure, we
16099 # need to make the FD available again.
16100 if test "$no_create" != yes; then
16101   ac_cs_success=:
16102   ac_config_status_args=
16103   test "$silent" = yes &&
16104     ac_config_status_args="$ac_config_status_args --quiet"
16105   exec 5>/dev/null
16106   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16107   exec 5>>config.log
16108   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16109   # would make configure fail if this is the last instruction.
16110   $ac_cs_success || as_fn_exit $?
16111 fi
16112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16113   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16115 fi
16116