Brig front-end
[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 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 get_gcc_base_ver
645 extra_host_zlib_configure_flags
646 extra_host_libiberty_configure_flags
647 stage1_languages
648 extra_linker_plugin_flags
649 extra_linker_plugin_configure_flags
650 islinc
651 isllibs
652 islver
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 extra_liboffloadmic_configure_flags
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
681 AWK
682 SED
683 LN_S
684 LN
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 with_system_zlib
751 enable_as_accelerator_for
752 enable_offload_targets
753 enable_gold
754 enable_ld
755 enable_compressed_debug_sections
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_bootstrap
763 with_mpc
764 with_mpc_include
765 with_mpc_lib
766 with_mpfr_dir
767 with_mpfr
768 with_mpfr_include
769 with_mpfr_lib
770 with_gmp_dir
771 with_gmp
772 with_gmp_include
773 with_gmp_lib
774 with_stage1_libs
775 with_stage1_ldflags
776 with_boot_libs
777 with_boot_ldflags
778 with_isl
779 with_isl_include
780 with_isl_lib
781 enable_isl_version_check
782 enable_lto
783 enable_linker_plugin_configure_flags
784 enable_linker_plugin_flags
785 enable_stage1_languages
786 enable_objc_gc
787 with_target_bdw_gc
788 with_target_bdw_gc_include
789 with_target_bdw_gc_lib
790 with_gcc_major_version_only
791 with_build_sysroot
792 with_debug_prefix_map
793 with_build_config
794 enable_vtable_verify
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
801 '
802       ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CXX
811 CXXFLAGS
812 CCC
813 build_configargs
814 host_configargs
815 target_configargs
816 AR
817 AS
818 DLLTOOL
819 LD
820 LIPO
821 NM
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_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-bootstrap      enable bootstrapping [yes if native build]
1493   --disable-isl-version-check
1494                           disable check for isl version
1495   --enable-lto            enable link time optimization support
1496   --enable-linker-plugin-configure-flags=FLAGS
1497                           additional flags for configuring linker plugins
1498                           [none]
1499   --enable-linker-plugin-flags=FLAGS
1500                           additional flags for configuring and building linker
1501                           plugins [none]
1502   --enable-stage1-languages[=all]
1503                           choose additional languages to build during stage1.
1504                           Mostly useful for compiler development
1505   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1506                           Objective-C runtime
1507   --enable-vtable-verify  Enable vtable verification feature
1508   --enable-serial-[{host,target,build}-]configure
1509                           force sequential configuration of sub-packages for
1510                           the host, target or build machine, or all
1511                           sub-packages
1512   --enable-maintainer-mode
1513                           enable make rules and dependencies not useful (and
1514                           sometimes confusing) to the casual installer
1515   --enable-stage1-checking[=all]
1516                           choose additional checking for stage1 of the
1517                           compiler
1518   --enable-werror         enable -Werror in bootstrap stage2 and later
1519   --enable-host-shared    build host code as shared libraries
1520
1521 Optional Packages:
1522   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1525   --with-system-zlib      use installed libz
1526   --with-mpc=PATH         specify prefix directory for installed MPC package.
1527                           Equivalent to --with-mpc-include=PATH/include plus
1528                           --with-mpc-lib=PATH/lib
1529   --with-mpc-include=PATH specify directory for installed MPC include files
1530   --with-mpc-lib=PATH     specify directory for the installed MPC library
1531   --with-mpfr-dir=PATH    this option has been REMOVED
1532   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1533                           Equivalent to --with-mpfr-include=PATH/include plus
1534                           --with-mpfr-lib=PATH/lib
1535   --with-mpfr-include=PATH
1536                           specify directory for installed MPFR include files
1537   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1538   --with-gmp-dir=PATH     this option has been REMOVED
1539   --with-gmp=PATH         specify prefix directory for the installed GMP
1540                           package. Equivalent to
1541                           --with-gmp-include=PATH/include plus
1542                           --with-gmp-lib=PATH/lib
1543   --with-gmp-include=PATH specify directory for installed GMP include files
1544   --with-gmp-lib=PATH     specify directory for the installed GMP library
1545   --with-stage1-libs=LIBS libraries for stage1
1546   --with-stage1-ldflags=FLAGS
1547                           linker flags for stage1
1548   --with-boot-libs=LIBS   libraries for stage2 and later
1549   --with-boot-ldflags=FLAGS
1550                           linker flags for stage2 and later
1551   --with-isl=PATH         Specify prefix directory for the installed isl
1552                           package. Equivalent to
1553                           --with-isl-include=PATH/include plus
1554                           --with-isl-lib=PATH/lib
1555   --with-isl-include=PATH Specify directory for installed isl include files
1556   --with-isl-lib=PATH     Specify the directory for the installed isl library
1557   --with-target-bdw-gc=PATHLIST
1558                           specify prefix directory for installed bdw-gc
1559                           package. Equivalent to
1560                           --with-target-bdw-gc-include=PATH/include plus
1561                           --with-target-bdw-gc-lib=PATH/lib
1562   --with-target-bdw-gc-include=PATHLIST
1563                           specify directories for installed bdw-gc include
1564                           files
1565   --with-target-bdw-gc-lib=PATHLIST
1566                           specify directories for installed bdw-gc library
1567   --with-gcc-major-version-only
1568                           use only GCC major number in filesystem paths
1569   --with-build-sysroot=SYSROOT
1570                           use sysroot as the system root during the build
1571   --with-debug-prefix-map='A=B C=D ...'
1572                           map A to B, C to D ... in debug information
1573   --with-build-config='NAME NAME2...'
1574                           use config/NAME.mk build configuration
1575   --with-build-time-tools=PATH
1576                           use given path to find target tools during the build
1577
1578 Some influential environment variables:
1579   CC          C compiler command
1580   CFLAGS      C compiler flags
1581   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1582               nonstandard directory <lib dir>
1583   LIBS        libraries to pass to the linker, e.g. -l<library>
1584   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585               you have headers in a nonstandard directory <include dir>
1586   CXX         C++ compiler command
1587   CXXFLAGS    C++ compiler flags
1588   build_configargs
1589               additional configure arguments for build directories
1590   host_configargs
1591               additional configure arguments for host directories
1592   target_configargs
1593               additional configure arguments for target directories
1594   AR          AR for the host
1595   AS          AS for the host
1596   DLLTOOL     DLLTOOL for the host
1597   LD          LD for the host
1598   LIPO        LIPO for the host
1599   NM          NM for the host
1600   RANLIB      RANLIB for the host
1601   STRIP       STRIP for the host
1602   WINDRES     WINDRES for the host
1603   WINDMC      WINDMC for the host
1604   OBJCOPY     OBJCOPY for the host
1605   OBJDUMP     OBJDUMP for the host
1606   READELF     READELF for the host
1607   CC_FOR_TARGET
1608               CC for the target
1609   CXX_FOR_TARGET
1610               CXX for the target
1611   GCC_FOR_TARGET
1612               GCC for the target
1613   GFORTRAN_FOR_TARGET
1614               GFORTRAN for the target
1615   GOC_FOR_TARGET
1616               GOC for the target
1617   AR_FOR_TARGET
1618               AR for the target
1619   AS_FOR_TARGET
1620               AS for the target
1621   DLLTOOL_FOR_TARGET
1622               DLLTOOL for the target
1623   LD_FOR_TARGET
1624               LD for the target
1625   LIPO_FOR_TARGET
1626               LIPO for the target
1627   NM_FOR_TARGET
1628               NM for the target
1629   OBJCOPY_FOR_TARGET
1630               OBJCOPY for the target
1631   OBJDUMP_FOR_TARGET
1632               OBJDUMP for the target
1633   RANLIB_FOR_TARGET
1634               RANLIB for the target
1635   READELF_FOR_TARGET
1636               READELF for the target
1637   STRIP_FOR_TARGET
1638               STRIP for the target
1639   WINDRES_FOR_TARGET
1640               WINDRES for the target
1641   WINDMC_FOR_TARGET
1642               WINDMC for the target
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 Report bugs to the package provider.
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653   # If there are subdirs, report their specific --help.
1654   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655     test -d "$ac_dir" ||
1656       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657       continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.64
1712
1713 Copyright (C) 2009 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717   exit
1718 fi
1719
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1723
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   rm -f conftest.$ac_objext
1731   if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_compile") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && {
1747          test -z "$ac_c_werror_flag" ||
1748          test ! -s conftest.err
1749        } && test -s conftest.$ac_objext; then :
1750   ac_retval=0
1751 else
1752   $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755         ac_retval=1
1756 fi
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   return $ac_retval
1759
1760 } # ac_fn_c_try_compile
1761
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext
1769   if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_compile") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_cxx_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest.$ac_objext; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793         ac_retval=1
1794 fi
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   return $ac_retval
1797
1798 } # ac_fn_cxx_try_compile
1799
1800 # ac_fn_cxx_try_link LINENO
1801 # -------------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_link ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   rm -f conftest.$ac_objext conftest$ac_exeext
1807   if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_link") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && {
1823          test -z "$ac_cxx_werror_flag" ||
1824          test ! -s conftest.err
1825        } && test -s conftest$ac_exeext && {
1826          test "$cross_compiling" = yes ||
1827          $as_test_x conftest$ac_exeext
1828        }; then :
1829   ac_retval=0
1830 else
1831   $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834         ac_retval=1
1835 fi
1836   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838   # interfere with the next link command; also delete a directory that is
1839   # left behind by Apple's compiler.  We do this before executing the actions.
1840   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842   return $ac_retval
1843
1844 } # ac_fn_cxx_try_link
1845
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1850 {
1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852   rm -f conftest.$ac_objext conftest$ac_exeext
1853   if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_link") 2>conftest.err
1861   ac_status=$?
1862   if test -s conftest.err; then
1863     grep -v '^ *+' conftest.err >conftest.er1
1864     cat conftest.er1 >&5
1865     mv -f conftest.er1 conftest.err
1866   fi
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && {
1869          test -z "$ac_c_werror_flag" ||
1870          test ! -s conftest.err
1871        } && test -s conftest$ac_exeext && {
1872          test "$cross_compiling" = yes ||
1873          $as_test_x conftest$ac_exeext
1874        }; then :
1875   ac_retval=0
1876 else
1877   $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880         ac_retval=1
1881 fi
1882   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884   # interfere with the next link command; also delete a directory that is
1885   # left behind by Apple's compiler.  We do this before executing the actions.
1886   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888   return $ac_retval
1889
1890 } # ac_fn_c_try_link
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1894
1895 It was created by $as_me, which was
1896 generated by GNU Autoconf 2.64.  Invocation command line was
1897
1898   $ $0 $@
1899
1900 _ACEOF
1901 exec 5>>config.log
1902 {
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1907
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1916
1917 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1918 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1921 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1922 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1923 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1924
1925 _ASUNAME
1926
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932     $as_echo "PATH: $as_dir"
1933   done
1934 IFS=$as_save_IFS
1935
1936 } >&5
1937
1938 cat >&5 <<_ACEOF
1939
1940
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1944
1945 _ACEOF
1946
1947
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1958 do
1959   for ac_arg
1960   do
1961     case $ac_arg in
1962     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964     | -silent | --silent | --silen | --sile | --sil)
1965       continue ;;
1966     *\'*)
1967       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968     esac
1969     case $ac_pass in
1970     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971     2)
1972       as_fn_append ac_configure_args1 " '$ac_arg'"
1973       if test $ac_must_keep_next = true; then
1974         ac_must_keep_next=false # Got value, back to normal.
1975       else
1976         case $ac_arg in
1977           *=* | --config-cache | -C | -disable-* | --disable-* \
1978           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980           | -with-* | --with-* | -without-* | --without-* | --x)
1981             case "$ac_configure_args0 " in
1982               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983             esac
1984             ;;
1985           -* ) ac_must_keep_next=true ;;
1986         esac
1987       fi
1988       as_fn_append ac_configure_args " '$ac_arg'"
1989       ;;
1990     esac
1991   done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1995
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log.  We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002   # Save into config.log some information that might help in debugging.
2003   {
2004     echo
2005
2006     cat <<\_ASBOX
2007 ## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##
2010 _ASBOX
2011     echo
2012     # The following way of writing the cache mishandles newlines in values,
2013 (
2014   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015     eval ac_val=\$$ac_var
2016     case $ac_val in #(
2017     *${as_nl}*)
2018       case $ac_var in #(
2019       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021       esac
2022       case $ac_var in #(
2023       _ | IFS | as_nl) ;; #(
2024       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025       *) { eval $ac_var=; unset $ac_var;} ;;
2026       esac ;;
2027     esac
2028   done
2029   (set) 2>&1 |
2030     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031     *${as_nl}ac_space=\ *)
2032       sed -n \
2033         "s/'\''/'\''\\\\'\'''\''/g;
2034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035       ;; #(
2036     *)
2037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2038       ;;
2039     esac |
2040     sort
2041 )
2042     echo
2043
2044     cat <<\_ASBOX
2045 ## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##
2048 _ASBOX
2049     echo
2050     for ac_var in $ac_subst_vars
2051     do
2052       eval ac_val=\$$ac_var
2053       case $ac_val in
2054       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055       esac
2056       $as_echo "$ac_var='\''$ac_val'\''"
2057     done | sort
2058     echo
2059
2060     if test -n "$ac_subst_files"; then
2061       cat <<\_ASBOX
2062 ## ------------------- ##
2063 ## File substitutions. ##
2064 ## ------------------- ##
2065 _ASBOX
2066       echo
2067       for ac_var in $ac_subst_files
2068       do
2069         eval ac_val=\$$ac_var
2070         case $ac_val in
2071         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072         esac
2073         $as_echo "$ac_var='\''$ac_val'\''"
2074       done | sort
2075       echo
2076     fi
2077
2078     if test -s confdefs.h; then
2079       cat <<\_ASBOX
2080 ## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##
2083 _ASBOX
2084       echo
2085       cat confdefs.h
2086       echo
2087     fi
2088     test "$ac_signal" != 0 &&
2089       $as_echo "$as_me: caught signal $ac_signal"
2090     $as_echo "$as_me: exit $exit_status"
2091   } >&5
2092   rm -f core *.core core.conftest.* &&
2093     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094     exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138   ac_site_file1=$CONFIG_SITE
2139 elif test "x$prefix" != xNONE; then
2140   ac_site_file1=$prefix/share/config.site
2141   ac_site_file2=$prefix/etc/config.site
2142 else
2143   ac_site_file1=$ac_default_prefix/share/config.site
2144   ac_site_file2=$ac_default_prefix/etc/config.site
2145 fi
2146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147 do
2148   test "x$ac_site_file" = xNONE && continue
2149   if test -r "$ac_site_file"; then
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152     sed 's/^/| /' "$ac_site_file" >&5
2153     . "$ac_site_file"
2154   fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158   # Some versions of bash will fail to source /dev/null (special
2159   # files actually), so we avoid doing that.
2160   if test -f "$cache_file"; then
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163     case $cache_file in
2164       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165       *)                      . "./$cache_file";;
2166     esac
2167   fi
2168 else
2169   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171   >$cache_file
2172 fi
2173
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179   eval ac_new_set=\$ac_env_${ac_var}_set
2180   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181   eval ac_new_val=\$ac_env_${ac_var}_value
2182   case $ac_old_set,$ac_new_set in
2183     set,)
2184       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186       ac_cache_corrupted=: ;;
2187     ,set)
2188       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190       ac_cache_corrupted=: ;;
2191     ,);;
2192     *)
2193       if test "x$ac_old_val" != "x$ac_new_val"; then
2194         # differences in whitespace do not lead to failure.
2195         ac_old_val_w=`echo x $ac_old_val`
2196         ac_new_val_w=`echo x $ac_new_val`
2197         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200           ac_cache_corrupted=:
2201         else
2202           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204           eval $ac_var=\$ac_old_val
2205         fi
2206         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2207 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2208         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2210       fi;;
2211   esac
2212   # Pass precious variables to config.status.
2213   if test "$ac_new_set" = set; then
2214     case $ac_new_val in
2215     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216     *) ac_arg=$ac_var=$ac_new_val ;;
2217     esac
2218     case " $ac_configure_args " in
2219       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2220       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221     esac
2222   fi
2223 done
2224 if $ac_cache_corrupted; then
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 fi
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249 progname=$0
2250 # if PWD already has a value, it is probably wrong.
2251 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2252
2253 # Export original configure arguments for use by sub-configures.
2254 # Quote arguments with shell meta charatcers.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS=
2256 set -- "$progname" "$@"
2257 for ac_arg
2258 do
2259   case "$ac_arg" in
2260   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2261     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2262     # if the argument is of the form -foo=baz, quote the baz part only
2263     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2264   *) ;;
2265   esac
2266   # Add the quoted argument to the list.
2267   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2268 done
2269 if test "$silent" = yes; then
2270   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2271 fi
2272 # Remove the initial space we just introduced and, as these will be
2273 # expanded by make, quote '$'.
2274 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2275
2276
2277 # Find the build, host, and target systems.
2278 ac_aux_dir=
2279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2280   for ac_t in install-sh install.sh shtool; do
2281     if test -f "$ac_dir/$ac_t"; then
2282       ac_aux_dir=$ac_dir
2283       ac_install_sh="$ac_aux_dir/$ac_t -c"
2284       break 2
2285     fi
2286   done
2287 done
2288 if test -z "$ac_aux_dir"; then
2289   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2290 fi
2291
2292 # These three variables are undocumented and unsupported,
2293 # and are intended to be withdrawn in a future Autoconf release.
2294 # They can cause serious problems if a builder's source tree is in a directory
2295 # whose full name contains unusual characters.
2296 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2297 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2298 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2299
2300
2301 # Make sure we can run config.sub.
2302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2304
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306 $as_echo_n "checking build system type... " >&6; }
2307 if test "${ac_cv_build+set}" = set; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   ac_build_alias=$build_alias
2311 test "x$ac_build_alias" = x &&
2312   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x &&
2314   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2317
2318 fi
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320 $as_echo "$ac_cv_build" >&6; }
2321 case $ac_cv_build in
2322 *-*-*) ;;
2323 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2324 esac
2325 build=$ac_cv_build
2326 ac_save_IFS=$IFS; IFS='-'
2327 set x $ac_cv_build
2328 shift
2329 build_cpu=$1
2330 build_vendor=$2
2331 shift; shift
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2334 build_os=$*
2335 IFS=$ac_save_IFS
2336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2337
2338
2339  case ${build_alias} in
2340   "") build_noncanonical=${build} ;;
2341   *) build_noncanonical=${build_alias} ;;
2342 esac
2343
2344
2345
2346  case ${host_alias} in
2347   "") host_noncanonical=${build_noncanonical} ;;
2348   *) host_noncanonical=${host_alias} ;;
2349 esac
2350
2351
2352
2353  case ${target_alias} in
2354   "") target_noncanonical=${host_noncanonical} ;;
2355   *) target_noncanonical=${target_alias} ;;
2356 esac
2357
2358
2359
2360
2361 test "$host_noncanonical" = "$target_noncanonical" &&
2362   test "$program_prefix$program_suffix$program_transform_name" = \
2363     NONENONEs,x,x, &&
2364   program_transform_name=s,y,y,
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367 $as_echo_n "checking host system type... " >&6; }
2368 if test "${ac_cv_host+set}" = set; then :
2369   $as_echo_n "(cached) " >&6
2370 else
2371   if test "x$host_alias" = x; then
2372   ac_cv_host=$ac_cv_build
2373 else
2374   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2375     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2376 fi
2377
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380 $as_echo "$ac_cv_host" >&6; }
2381 case $ac_cv_host in
2382 *-*-*) ;;
2383 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2384 esac
2385 host=$ac_cv_host
2386 ac_save_IFS=$IFS; IFS='-'
2387 set x $ac_cv_host
2388 shift
2389 host_cpu=$1
2390 host_vendor=$2
2391 shift; shift
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2394 host_os=$*
2395 IFS=$ac_save_IFS
2396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2397
2398
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2400 $as_echo_n "checking target system type... " >&6; }
2401 if test "${ac_cv_target+set}" = set; then :
2402   $as_echo_n "(cached) " >&6
2403 else
2404   if test "x$target_alias" = x; then
2405   ac_cv_target=$ac_cv_host
2406 else
2407   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2408     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2409 fi
2410
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2413 $as_echo "$ac_cv_target" >&6; }
2414 case $ac_cv_target in
2415 *-*-*) ;;
2416 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2417 esac
2418 target=$ac_cv_target
2419 ac_save_IFS=$IFS; IFS='-'
2420 set x $ac_cv_target
2421 shift
2422 target_cpu=$1
2423 target_vendor=$2
2424 shift; shift
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2427 target_os=$*
2428 IFS=$ac_save_IFS
2429 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2430
2431
2432 # The aliases save the names the user supplied, while $host etc.
2433 # will get canonicalized.
2434 test -n "$target_alias" &&
2435   test "$program_prefix$program_suffix$program_transform_name" = \
2436     NONENONEs,x,x, &&
2437   program_prefix=${target_alias}-
2438
2439 test "$program_prefix" != NONE &&
2440   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2441 # Use a double $ so make ignores it.
2442 test "$program_suffix" != NONE &&
2443   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444 # Double any \ or $.
2445 # By default was `s,x,x', remove it if useless.
2446 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2448
2449
2450
2451 # Get 'install' or 'install-sh' and its variants.
2452 # Find a good install program.  We prefer a C program (faster),
2453 # so one script is as good as another.  But avoid the broken or
2454 # incompatible versions:
2455 # SysV /etc/install, /usr/sbin/install
2456 # SunOS /usr/etc/install
2457 # IRIX /sbin/install
2458 # AIX /bin/install
2459 # AmigaOS /C/install, which installs bootblocks on floppy discs
2460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463 # OS/2's system install, which has a completely different semantic
2464 # ./install, which can be erroneously created by make from ./install.sh.
2465 # Reject install programs that cannot install multiple files.
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2468 if test -z "$INSTALL"; then
2469 if test "${ac_cv_path_install+set}" = set; then :
2470   $as_echo_n "(cached) " >&6
2471 else
2472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477     # Account for people who put trailing slashes in PATH elements.
2478 case $as_dir/ in #((
2479   ./ | .// | /[cC]/* | \
2480   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2481   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2482   /usr/ucb/* ) ;;
2483   *)
2484     # OSF1 and SCO ODT 3.0 have their own names for install.
2485     # Don't use installbsd from OSF since it installs stuff as root
2486     # by default.
2487     for ac_prog in ginstall scoinst install; do
2488       for ac_exec_ext in '' $ac_executable_extensions; do
2489         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2490           if test $ac_prog = install &&
2491             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492             # AIX install.  It has an incompatible calling convention.
2493             :
2494           elif test $ac_prog = install &&
2495             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496             # program-specific install script used by HP pwplus--don't use.
2497             :
2498           else
2499             rm -rf conftest.one conftest.two conftest.dir
2500             echo one > conftest.one
2501             echo two > conftest.two
2502             mkdir conftest.dir
2503             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504               test -s conftest.one && test -s conftest.two &&
2505               test -s conftest.dir/conftest.one &&
2506               test -s conftest.dir/conftest.two
2507             then
2508               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509               break 3
2510             fi
2511           fi
2512         fi
2513       done
2514     done
2515     ;;
2516 esac
2517
2518   done
2519 IFS=$as_save_IFS
2520
2521 rm -rf conftest.one conftest.two conftest.dir
2522
2523 fi
2524   if test "${ac_cv_path_install+set}" = set; then
2525     INSTALL=$ac_cv_path_install
2526   else
2527     # As a last resort, use the slow shell script.  Don't cache a
2528     # value for INSTALL within a source directory, because that will
2529     # break other packages using the cache if that directory is
2530     # removed, or if the value is a relative name.
2531     INSTALL=$ac_install_sh
2532   fi
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535 $as_echo "$INSTALL" >&6; }
2536
2537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538 # It thinks the first close brace ends the variable substitution.
2539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540
2541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542
2543 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2546 $as_echo_n "checking whether ln works... " >&6; }
2547 if test "${acx_cv_prog_LN+set}" = set; then :
2548   $as_echo_n "(cached) " >&6
2549 else
2550   rm -f conftestdata_t
2551 echo >conftestdata_f
2552 if ln conftestdata_f conftestdata_t 2>/dev/null
2553 then
2554   acx_cv_prog_LN=ln
2555 else
2556   acx_cv_prog_LN=no
2557 fi
2558 rm -f conftestdata_f conftestdata_t
2559
2560 fi
2561 if test $acx_cv_prog_LN = no; then
2562   LN="cp"
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2564 $as_echo "no, using $LN" >&6; }
2565 else
2566   LN="$acx_cv_prog_LN"
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 fi
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2572 $as_echo_n "checking whether ln -s works... " >&6; }
2573 LN_S=$as_ln_s
2574 if test "$LN_S" = "ln -s"; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 else
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2579 $as_echo "no, using $LN_S" >&6; }
2580 fi
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2583 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2584 if test "${ac_cv_path_SED+set}" = set; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2588      for ac_i in 1 2 3 4 5 6 7; do
2589        ac_script="$ac_script$as_nl$ac_script"
2590      done
2591      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2592      { ac_script=; unset ac_script;}
2593      if test -z "$SED"; then
2594   ac_path_SED_found=false
2595   # Loop through the user's path and test for each of PROGNAME-LIST
2596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_prog in sed gsed; do
2602     for ac_exec_ext in '' $ac_executable_extensions; do
2603       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2604       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2605 # Check for GNU ac_path_SED and select it if it is found.
2606   # Check for GNU $ac_path_SED
2607 case `"$ac_path_SED" --version 2>&1` in
2608 *GNU*)
2609   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2610 *)
2611   ac_count=0
2612   $as_echo_n 0123456789 >"conftest.in"
2613   while :
2614   do
2615     cat "conftest.in" "conftest.in" >"conftest.tmp"
2616     mv "conftest.tmp" "conftest.in"
2617     cp "conftest.in" "conftest.nl"
2618     $as_echo '' >> "conftest.nl"
2619     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2620     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2621     as_fn_arith $ac_count + 1 && ac_count=$as_val
2622     if test $ac_count -gt ${ac_path_SED_max-0}; then
2623       # Best one so far, save it but keep looking for a better one
2624       ac_cv_path_SED="$ac_path_SED"
2625       ac_path_SED_max=$ac_count
2626     fi
2627     # 10*(2^10) chars as input seems more than enough
2628     test $ac_count -gt 10 && break
2629   done
2630   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2631 esac
2632
2633       $ac_path_SED_found && break 3
2634     done
2635   done
2636   done
2637 IFS=$as_save_IFS
2638   if test -z "$ac_cv_path_SED"; then
2639     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2640   fi
2641 else
2642   ac_cv_path_SED=$SED
2643 fi
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2647 $as_echo "$ac_cv_path_SED" >&6; }
2648  SED="$ac_cv_path_SED"
2649   rm -f conftest.sed
2650
2651 for ac_prog in gawk mawk nawk awk
2652 do
2653   # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_AWK+set}" = set; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   if test -n "$AWK"; then
2661   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668     for ac_exec_ext in '' $ac_executable_extensions; do
2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670     ac_cv_prog_AWK="$ac_prog"
2671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675   done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 AWK=$ac_cv_prog_AWK
2681 if test -n "$AWK"; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2684 else
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690   test -n "$AWK" && break
2691 done
2692
2693
2694 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2695
2696 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2697 # a relative path.
2698 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2699   INSTALL="${srcpwd}/install-sh -c"
2700 fi
2701
2702 # Set srcdir to "." if that's what it is.
2703 # This is important for multilib support.
2704 pwd=`${PWDCMD-pwd}`
2705 if test "${pwd}" = "${srcpwd}" ; then
2706   srcdir=.
2707 fi
2708
2709 topsrcdir=$srcpwd
2710
2711 extra_host_args=
2712
2713 ### To add a new directory to the tree, first choose whether it is a target
2714 ### or a host dependent tool.  Then put it into the appropriate list
2715 ### (library or tools, host or target), doing a dependency sort.
2716
2717 # Subdirs will be configured in the order listed in build_configdirs,
2718 # configdirs, or target_configdirs; see the serialization section below.
2719
2720 # Dependency sorting is only needed when *configuration* must be done in
2721 # a particular order.  In all cases a dependency should be specified in
2722 # the Makefile, whether or not it's implicitly specified here.
2723
2724 # Double entries in build_configdirs, configdirs, or target_configdirs may
2725 # cause circular dependencies and break everything horribly.
2726
2727 # these library is used by various programs built for the build
2728 # environment
2729 #
2730 build_libs="build-libiberty build-libcpp"
2731
2732 # these tools are built for the build environment
2733 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2734
2735 # these libraries are used by various programs built for the host environment
2736 #f
2737 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2738
2739 # these tools are built for the host environment
2740 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2741 # know that we are building the simulator.
2742 # binutils, gas and ld appear in that order because it makes sense to run
2743 # "make check" in that particular order.
2744 # If --enable-gold is used, "gold" may replace "ld".
2745 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"
2746
2747 # these libraries are built for the target environment, and are built after
2748 # the host libraries and the host tools (which may be a cross compiler)
2749 # Note that libiberty is not a target library.
2750 target_libraries="target-libgcc \
2751                 target-libbacktrace \
2752                 target-libgloss \
2753                 target-newlib \
2754                 target-libgomp \
2755                 target-libcilkrts \
2756                 target-liboffloadmic \
2757                 target-libhsail-rt \
2758                 target-libatomic \
2759                 target-libitm \
2760                 target-libstdc++-v3 \
2761                 target-libsanitizer \
2762                 target-libvtv \
2763                 target-libmpx \
2764                 target-libssp \
2765                 target-libquadmath \
2766                 target-libgfortran \
2767                 target-libffi \
2768                 target-libobjc \
2769                 target-libada \
2770                 target-libgo"
2771
2772 # these tools are built using the target libraries, and are intended to
2773 # run only in the target environment
2774 #
2775 # note: any program that *uses* libraries that are in the "target_libraries"
2776 # list belongs in this list.
2777 #
2778 target_tools="target-rda"
2779
2780 ################################################################################
2781
2782 ## All tools belong in one of the four categories, and are assigned above
2783 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2784 ## is important because configure will choke if they ever get through.
2785 ## ${configdirs} is directories we build using the host tools.
2786 ## ${target_configdirs} is directories we build using the target tools.
2787 configdirs=`echo ${host_libs} ${host_tools}`
2788 target_configdirs=`echo ${target_libraries} ${target_tools}`
2789 build_configdirs=`echo ${build_libs} ${build_tools}`
2790
2791
2792
2793 ################################################################################
2794
2795 srcname="gnu development package"
2796
2797 # This gets set non-empty for some net releases of packages.
2798 appdirs=""
2799
2800 # Define is_cross_compiler to save on calls to 'test'.
2801 is_cross_compiler=
2802 if test x"${host}" = x"${target}" ; then
2803   is_cross_compiler=no
2804 else
2805   is_cross_compiler=yes
2806 fi
2807
2808 # Find the build and target subdir names.
2809
2810 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2811 # have matching libraries, they should use host libraries: Makefile.tpl
2812 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2813 # However, they still use the build modules, because the corresponding
2814 # host modules (e.g. bison) are only built for the host when bootstrap
2815 # finishes. So:
2816 # - build_subdir is where we find build modules, and never changes.
2817 # - build_libsubdir is where we find build libraries, and can be overridden.
2818
2819 # Prefix 'build-' so this never conflicts with target_subdir.
2820 build_subdir="build-${build_noncanonical}"
2821
2822 # Check whether --with-build-libsubdir was given.
2823 if test "${with_build_libsubdir+set}" = set; then :
2824   withval=$with_build_libsubdir; build_libsubdir="$withval"
2825 else
2826   build_libsubdir="$build_subdir"
2827 fi
2828
2829 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2830 if ( test $srcdir = . && test -d gcc ) \
2831    || test -d $srcdir/../host-${host_noncanonical}; then
2832   host_subdir="host-${host_noncanonical}"
2833 else
2834   host_subdir=.
2835 fi
2836 # No prefix.
2837 target_subdir=${target_noncanonical}
2838
2839 # Be sure to cover against remnants of an in-tree build.
2840 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2841   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2842 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2843 fi
2844
2845 # Skipdirs are removed silently.
2846 skipdirs=
2847 # Noconfigdirs are removed loudly.
2848 noconfigdirs=""
2849
2850 use_gnu_ld=
2851 # Make sure we don't let GNU ld be added if we didn't want it.
2852 if test x$with_gnu_ld = xno ; then
2853   use_gnu_ld=no
2854   noconfigdirs="$noconfigdirs ld gold"
2855 fi
2856
2857 use_gnu_as=
2858 # Make sure we don't let GNU as be added if we didn't want it.
2859 if test x$with_gnu_as = xno ; then
2860   use_gnu_as=no
2861   noconfigdirs="$noconfigdirs gas"
2862 fi
2863
2864 use_included_zlib=
2865
2866 # Check whether --with-system-zlib was given.
2867 if test "${with_system_zlib+set}" = set; then :
2868   withval=$with_system_zlib;
2869 fi
2870
2871 # Make sure we don't let ZLIB be added if we didn't want it.
2872 if test x$with_system_zlib = xyes ; then
2873   use_included_zlib=no
2874   noconfigdirs="$noconfigdirs zlib"
2875 fi
2876
2877 # some tools are so dependent upon X11 that if we're not building with X,
2878 # it's not even worth trying to configure, much less build, that tool.
2879
2880 case ${with_x} in
2881   yes | "") ;; # the default value for this tree is that X11 is available
2882   no)
2883     skipdirs="${skipdirs} tk itcl libgui"
2884     # We won't be able to build gdbtk without X.
2885     enable_gdbtk=no
2886     ;;
2887   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2888 esac
2889
2890 # Some are only suitable for cross toolchains.
2891 # Remove these if host=target.
2892 cross_only="target-libgloss target-newlib target-opcodes"
2893
2894 case $is_cross_compiler in
2895   no) skipdirs="${skipdirs} ${cross_only}" ;;
2896 esac
2897
2898 # If both --with-headers and --with-libs are specified, default to
2899 # --without-newlib.
2900 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2901    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2902   if test x"${with_newlib}" = x ; then
2903     with_newlib=no
2904   fi
2905 fi
2906
2907 # Recognize --with-newlib/--without-newlib.
2908 case ${with_newlib} in
2909   no) skipdirs="${skipdirs} target-newlib" ;;
2910   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2911 esac
2912
2913 # Check whether --enable-as-accelerator-for was given.
2914 if test "${enable_as_accelerator_for+set}" = set; then :
2915   enableval=$enable_as_accelerator_for;
2916 fi
2917
2918
2919 # Check whether --enable-offload-targets was given.
2920 if test "${enable_offload_targets+set}" = set; then :
2921   enableval=$enable_offload_targets;
2922   if test x"$enable_offload_targets" = x; then
2923     as_fn_error "no offload targets specified" "$LINENO" 5
2924   fi
2925
2926 else
2927   enable_offload_targets=
2928 fi
2929
2930
2931 # Handle --enable-gold, --enable-ld.
2932 # --disable-gold [--enable-ld]
2933 #     Build only ld.  Default option.
2934 # --enable-gold [--enable-ld]
2935 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2936 #     as "ld.bfd" and "ld".
2937 # --enable-gold=default [--enable-ld]
2938 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2939 #     install ld as "ld.bfd".
2940 # --enable-gold[=default] --disable-ld
2941 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2942 # --enable-gold --enable-ld=default
2943 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944 #     and ld.bfd).
2945 #     In other words, ld is default
2946 # --enable-gold=default --enable-ld=default
2947 #     Error.
2948
2949 default_ld=
2950 # Check whether --enable-gold was given.
2951 if test "${enable_gold+set}" = set; then :
2952   enableval=$enable_gold; ENABLE_GOLD=$enableval
2953 else
2954   ENABLE_GOLD=no
2955 fi
2956
2957 case "${ENABLE_GOLD}" in
2958   yes|default)
2959     # Check for ELF target.
2960     is_elf=no
2961     case "${target}" in
2962       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2963       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2964       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2965       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2966         case "${target}" in
2967           *-*-linux*aout* | *-*-linux*oldld*)
2968             ;;
2969           *)
2970             is_elf=yes
2971             ;;
2972         esac
2973     esac
2974
2975     if test "$is_elf" = "yes"; then
2976       # Check for target supported by gold.
2977       case "${target}" in
2978         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2980           configdirs="$configdirs gold"
2981           if test x${ENABLE_GOLD} = xdefault; then
2982             default_ld=gold
2983           fi
2984           ENABLE_GOLD=yes
2985           ;;
2986       esac
2987     fi
2988     ;;
2989   no)
2990     ;;
2991   *)
2992     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2993     ;;
2994 esac
2995
2996 # Check whether --enable-ld was given.
2997 if test "${enable_ld+set}" = set; then :
2998   enableval=$enable_ld; ENABLE_LD=$enableval
2999 else
3000   ENABLE_LD=yes
3001 fi
3002
3003
3004 case "${ENABLE_LD}" in
3005   default)
3006     if test x${default_ld} != x; then
3007       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3008     fi
3009     ;;
3010   yes)
3011     ;;
3012   no)
3013     if test x${ENABLE_GOLD} != xyes; then
3014       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3016     fi
3017     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3018     ;;
3019   *)
3020     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3021     ;;
3022 esac
3023
3024 # PR gas/19109
3025 # Decide the default method for compressing debug sections.
3026 # Provide a configure time option to override our default.
3027 # Check whether --enable-compressed_debug_sections was given.
3028 if test "${enable_compressed_debug_sections+set}" = set; then :
3029   enableval=$enable_compressed_debug_sections;
3030   if test x"$enable_compressed_debug_sections" = xyes; then
3031     as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3032   fi
3033
3034 else
3035   enable_compressed_debug_sections=
3036 fi
3037
3038
3039 # Configure extra directories which are host specific
3040
3041 case "${host}" in
3042   *-cygwin*)
3043     configdirs="$configdirs libtermcap" ;;
3044 esac
3045
3046 # A target can indicate whether a language isn't supported for some reason.
3047 # Only spaces may be used in this macro; not newlines or tabs.
3048 unsupported_languages=
3049
3050 # Remove more programs from consideration, based on the host or
3051 # target this usually means that a port of the program doesn't
3052 # exist yet.
3053
3054 case "${host}" in
3055   i[3456789]86-*-msdosdjgpp*)
3056     noconfigdirs="$noconfigdirs tcl tk itcl"
3057     ;;
3058 esac
3059
3060
3061 # Check whether --enable-libquadmath was given.
3062 if test "${enable_libquadmath+set}" = set; then :
3063   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3064 else
3065   ENABLE_LIBQUADMATH=yes
3066 fi
3067
3068 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3069   noconfigdirs="$noconfigdirs target-libquadmath"
3070 fi
3071
3072
3073 # Check whether --enable-libquadmath-support was given.
3074 if test "${enable_libquadmath_support+set}" = set; then :
3075   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3076 else
3077   ENABLE_LIBQUADMATH_SUPPORT=yes
3078 fi
3079
3080 enable_libquadmath_support=
3081 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3082   enable_libquadmath_support=no
3083 fi
3084
3085
3086 # Check whether --enable-libada was given.
3087 if test "${enable_libada+set}" = set; then :
3088   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3089 else
3090   ENABLE_LIBADA=yes
3091 fi
3092
3093 if test "${ENABLE_LIBADA}" != "yes" ; then
3094   noconfigdirs="$noconfigdirs gnattools"
3095 fi
3096
3097 # Check whether --enable-libssp was given.
3098 if test "${enable_libssp+set}" = set; then :
3099   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3100 else
3101   ENABLE_LIBSSP=yes
3102 fi
3103
3104
3105 # Check whether --enable-libstdcxx was given.
3106 if test "${enable_libstdcxx+set}" = set; then :
3107   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3108 else
3109   ENABLE_LIBSTDCXX=default
3110 fi
3111
3112 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3113   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3114 fi
3115
3116 # If this is accelerator compiler and its target is intelmic we enable
3117 # target liboffloadmic by default.  If this is compiler with offloading
3118 # for intelmic we enable host liboffloadmic by default.  Otherwise
3119 # liboffloadmic is disabled by default.
3120 # Check whether --enable-liboffloadmic was given.
3121 if test "${enable_liboffloadmic+set}" = set; then :
3122   enableval=$enable_liboffloadmic; case "$enableval" in
3123   no | host | target)
3124     enable_liboffloadmic=$enableval ;;
3125   *)
3126     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3127 esac
3128 else
3129   if test x"$enable_as_accelerator_for" != x; then
3130   case "${target}" in
3131     *-intelmic-* | *-intelmicemul-*)
3132       enable_liboffloadmic=target
3133       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3134       ;;
3135     *)
3136       enable_liboffloadmic=no
3137       ;;
3138   esac
3139 else
3140   case "${enable_offload_targets}" in
3141     *-intelmic-* | *-intelmicemul-*)
3142       enable_liboffloadmic=host
3143       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3144       ;;
3145     *)
3146       enable_liboffloadmic=no
3147       ;;
3148     esac
3149 fi
3150 fi
3151
3152
3153
3154 # Enable libgomp by default on hosted POSIX systems, and a few others.
3155 if test x$enable_libgomp = x ; then
3156     case "${target}" in
3157     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3158         ;;
3159     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3160         ;;
3161     *-*-solaris2* | *-*-hpux11*)
3162         ;;
3163     *-*-darwin* | *-*-aix*)
3164         ;;
3165     nvptx*-*-*)
3166         ;;
3167     *)
3168         noconfigdirs="$noconfigdirs target-libgomp"
3169         ;;
3170     esac
3171 fi
3172
3173 # Disable libatomic on unsupported systems.
3174 if test -d ${srcdir}/libatomic; then
3175     if test x$enable_libatomic = x; then
3176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3177 $as_echo_n "checking for libatomic support... " >&6; }
3178         if (srcdir=${srcdir}/libatomic; \
3179                 . ${srcdir}/configure.tgt; \
3180                 test -n "$UNSUPPORTED")
3181         then
3182             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184             noconfigdirs="$noconfigdirs target-libatomic"
3185         else
3186             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 $as_echo "yes" >&6; }
3188         fi
3189     fi
3190 fi
3191
3192 # Disable libcilkrts on unsupported systems.
3193 if test -d ${srcdir}/libcilkrts; then
3194     if test x$enable_libcilkrts = x; then
3195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3196 $as_echo_n "checking for libcilkrts support... " >&6; }
3197         if (srcdir=${srcdir}/libcilkrts; \
3198                 . ${srcdir}/configure.tgt; \
3199                 test -n "$UNSUPPORTED")
3200         then
3201             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203             noconfigdirs="$noconfigdirs target-libcilkrts"
3204         else
3205             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3207         fi
3208     fi
3209 fi
3210
3211 # Disable liboffloadmic on unsupported systems.
3212 if test -d ${srcdir}/liboffloadmic; then
3213     if test x$enable_liboffloadmic != xno; then
3214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3215 $as_echo_n "checking for liboffloadmic support... " >&6; }
3216         if (srcdir=${srcdir}/liboffloadmic; \
3217                 . ${srcdir}/configure.tgt; \
3218                 test -n "$UNSUPPORTED")
3219         then
3220             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222             noconfigdirs="$noconfigdirs target-liboffloadmic"
3223         else
3224             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3226         fi
3227     fi
3228 fi
3229
3230 # Disable libitm on unsupported systems.
3231 if test -d ${srcdir}/libitm; then
3232     if test x$enable_libitm = x; then
3233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3234 $as_echo_n "checking for libitm support... " >&6; }
3235         if (srcdir=${srcdir}/libitm; \
3236                 . ${srcdir}/configure.tgt; \
3237                 test -n "$UNSUPPORTED")
3238         then
3239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241             noconfigdirs="$noconfigdirs target-libitm"
3242         else
3243             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3245         fi
3246     fi
3247 fi
3248
3249 # Disable libsanitizer on unsupported systems.
3250 if test -d ${srcdir}/libsanitizer; then
3251     if test x$enable_libsanitizer = x; then
3252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3253 $as_echo_n "checking for libsanitizer support... " >&6; }
3254         if (srcdir=${srcdir}/libsanitizer; \
3255                 . ${srcdir}/configure.tgt; \
3256                 test -n "$UNSUPPORTED")
3257         then
3258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260             noconfigdirs="$noconfigdirs target-libsanitizer"
3261         else
3262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264         fi
3265     fi
3266 fi
3267
3268 # Disable libvtv on unsupported systems.
3269 if test -d ${srcdir}/libvtv; then
3270     if test x$enable_libvtv = x; then
3271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3272 $as_echo_n "checking for libvtv support... " >&6; }
3273         if (srcdir=${srcdir}/libvtv; \
3274                 . ${srcdir}/configure.tgt; \
3275                 test "$VTV_SUPPORTED" != "yes")
3276         then
3277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279             noconfigdirs="$noconfigdirs target-libvtv"
3280         else
3281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283         fi
3284     fi
3285 fi
3286
3287
3288 # Enable libmpx on supported systems by request.
3289 if test -d ${srcdir}/libmpx; then
3290     if test x$enable_libmpx = x; then
3291        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3292 $as_echo_n "checking for libmpx support... " >&6; }
3293        if (srcdir=${srcdir}/libmpx; \
3294                . ${srcdir}/configure.tgt; \
3295                test "$LIBMPX_SUPPORTED" != "yes")
3296        then
3297            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299            noconfigdirs="$noconfigdirs target-libmpx"
3300        else
3301            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303        fi
3304     fi
3305 fi
3306
3307
3308
3309 # Disable libquadmath for some systems.
3310 case "${target}" in
3311   avr-*-*)
3312     noconfigdirs="$noconfigdirs target-libquadmath"
3313     ;;
3314   # libquadmath is unused on AIX and libquadmath build process use of
3315   # LD_LIBRARY_PATH can break AIX bootstrap.
3316   powerpc-*-aix* | rs6000-*-aix*)
3317     noconfigdirs="$noconfigdirs target-libquadmath"
3318     ;;
3319 esac
3320
3321 # Disable libssp for some systems.
3322 case "${target}" in
3323   avr-*-*)
3324     # No hosted I/O support.
3325     noconfigdirs="$noconfigdirs target-libssp"
3326     ;;
3327   powerpc-*-aix* | rs6000-*-aix*)
3328     noconfigdirs="$noconfigdirs target-libssp"
3329     ;;
3330   rl78-*-*)
3331     # libssp uses a misaligned load to trigger a fault, but the RL78
3332     # doesn't fault for those - instead, it gives a build-time error
3333     # for explicit misaligned loads.
3334     noconfigdirs="$noconfigdirs target-libssp"
3335     ;;
3336   visium-*-*)
3337     # No hosted I/O support.
3338     noconfigdirs="$noconfigdirs target-libssp"
3339     ;;
3340 esac
3341
3342 # Disable libstdc++-v3 for some systems.
3343 # Allow user to override this if they pass --enable-libstdc++-v3
3344 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3345   case "${target}" in
3346     *-*-vxworks*)
3347       # VxWorks uses the Dinkumware C++ library.
3348       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3349       ;;
3350     arm*-wince-pe*)
3351       # the C++ libraries don't build on top of CE's C libraries
3352       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3353       ;;
3354     avr-*-*)
3355       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3356       ;;
3357     ft32-*-*)
3358       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359       ;;
3360   esac
3361 fi
3362
3363 # Disable Fortran for some systems.
3364 case "${target}" in
3365   mmix-*-*)
3366     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3367     unsupported_languages="$unsupported_languages fortran"
3368     ;;
3369 esac
3370
3371 # Disable libffi for some systems.
3372 case "${target}" in
3373   powerpc-*-darwin*)
3374     ;;
3375   i[3456789]86-*-darwin*)
3376     ;;
3377   x86_64-*-darwin[912]*)
3378     ;;
3379   *-*-darwin*)
3380     noconfigdirs="$noconfigdirs target-libffi"
3381     ;;
3382   *-*-netware*)
3383     noconfigdirs="$noconfigdirs target-libffi"
3384     ;;
3385   *-*-phoenix*)
3386     noconfigdirs="$noconfigdirs target-libffi"
3387     ;;
3388   *-*-rtems*)
3389     noconfigdirs="$noconfigdirs target-libffi"
3390     ;;
3391   *-*-tpf*)
3392     noconfigdirs="$noconfigdirs target-libffi"
3393     ;;
3394   *-*-uclinux*)
3395     noconfigdirs="$noconfigdirs target-libffi"
3396     ;;
3397   *-*-vxworks*)
3398     noconfigdirs="$noconfigdirs target-libffi"
3399     ;;
3400   aarch64*-*-freebsd*)
3401     noconfigdirs="$noconfigdirs target-libffi"
3402     ;;
3403   alpha*-*-*vms*)
3404     noconfigdirs="$noconfigdirs target-libffi"
3405     ;;
3406   arm*-*-freebsd*)
3407     noconfigdirs="$noconfigdirs target-libffi"
3408     ;;
3409   arm-wince-pe)
3410     noconfigdirs="$noconfigdirs target-libffi"
3411     ;;
3412   arm*-*-symbianelf*)
3413     noconfigdirs="$noconfigdirs target-libffi"
3414     ;;
3415   cris-*-* | crisv32-*-*)
3416     case "${target}" in
3417       *-*-linux*)
3418         ;;
3419       *) # See PR46792 regarding target-libffi.
3420         noconfigdirs="$noconfigdirs target-libffi";;
3421     esac
3422     ;;
3423   hppa*64*-*-hpux*)
3424     noconfigdirs="$noconfigdirs target-libffi"
3425     ;;
3426   hppa*-hp-hpux11*)
3427     ;;
3428   hppa*-*-hpux*)
3429     noconfigdirs="$noconfigdirs target-libffi"
3430     ;;
3431   ia64*-*-*vms*)
3432     noconfigdirs="$noconfigdirs target-libffi"
3433     ;;
3434   i[3456789]86-w64-mingw*)
3435     noconfigdirs="$noconfigdirs target-libffi"
3436     ;;
3437   i[3456789]86-*-mingw*)
3438     noconfigdirs="$noconfigdirs target-libffi"
3439     ;;
3440   x86_64-*-mingw*)
3441     noconfigdirs="$noconfigdirs target-libffi"
3442     ;;
3443   mmix-*-*)
3444     noconfigdirs="$noconfigdirs target-libffi"
3445     ;;
3446   powerpc-*-aix*)
3447     # copied from rs6000-*-* entry
3448     noconfigdirs="$noconfigdirs target-libffi"
3449     ;;
3450   rs6000-*-aix*)
3451     noconfigdirs="$noconfigdirs target-libffi"
3452     ;;
3453   ft32-*-*)
3454     noconfigdirs="$noconfigdirs target-libffi"
3455     ;;
3456   *-*-lynxos*)
3457     noconfigdirs="$noconfigdirs target-libffi"
3458     ;;
3459 esac
3460
3461 # Disable the go frontend on systems where it is known to not work. Please keep
3462 # this in sync with contrib/config-list.mk.
3463 case "${target}" in
3464 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3465     unsupported_languages="$unsupported_languages go"
3466     ;;
3467 esac
3468
3469 # Disable libgo for some systems where it is known to not work.
3470 # For testing, you can easily override this with --enable-libgo.
3471 if test x$enable_libgo = x; then
3472     case "${target}" in
3473     *-*-darwin*)
3474         # PR 46986
3475         noconfigdirs="$noconfigdirs target-libgo"
3476         ;;
3477     *-*-cygwin* | *-*-mingw*)
3478         noconfigdirs="$noconfigdirs target-libgo"
3479         ;;
3480     *-*-aix*)
3481         noconfigdirs="$noconfigdirs target-libgo"
3482         ;;
3483     esac
3484 fi
3485
3486 # Disable the BRIG frontend and libhsail-rt on untested or known
3487 # broken systems. Currently it has been tested only on x86_64 Linux
3488 # of the upstream gcc targets. More targets shall be added after testing.
3489 case "${target}" in
3490   x86_64-*-linux*)
3491     ;;
3492     *)
3493     unsupported_languages="$unsupported_languages brig"
3494     # This implicitly disables also target-libhsail-rt as it won't
3495     # get added to the build without BRIG FE.
3496     ;;
3497 esac
3498
3499 # Default libgloss CPU subdirectory.
3500 libgloss_dir="$target_cpu"
3501
3502 case "${target}" in
3503   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3504     libgloss_dir=wince
3505     ;;
3506   aarch64*-*-* )
3507     libgloss_dir=aarch64
3508     ;;
3509   arm*-*-*)
3510     libgloss_dir=arm
3511     ;;
3512   cris-*-* | crisv32-*-*)
3513     libgloss_dir=cris
3514     ;;
3515   hppa*-*-*)
3516     libgloss_dir=pa
3517     ;;
3518   i[3456789]86-*-*)
3519     libgloss_dir=i386
3520     ;;
3521   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3522     libgloss_dir=m68hc11
3523     ;;
3524   m68*-*-* | fido-*-*)
3525     libgloss_dir=m68k
3526     ;;
3527   mips*-*-*)
3528     libgloss_dir=mips
3529     ;;
3530   powerpc*-*-*)
3531     libgloss_dir=rs6000
3532     ;;
3533   sparc*-*-*)
3534     libgloss_dir=sparc
3535     ;;
3536 esac
3537
3538 # Disable newlib and libgloss for various target OSes.
3539 case "${target}" in
3540   alpha*-dec-osf*)
3541     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542     ;;
3543   i[3456789]86-*-linux*)
3544     # This section makes it possible to build newlib natively on linux.
3545     # If we are using a cross compiler then don't configure newlib.
3546     if test x${is_cross_compiler} != xno ; then
3547       noconfigdirs="$noconfigdirs target-newlib"
3548     fi
3549     noconfigdirs="$noconfigdirs target-libgloss"
3550     # If we are not using a cross compiler, do configure newlib.
3551     # Note however, that newlib will only be configured in this situation
3552     # if the --with-newlib option has been given, because otherwise
3553     # 'target-newlib' will appear in skipdirs.
3554     ;;
3555   i[3456789]86-*-rdos*)
3556     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557     ;;
3558   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3559     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560     ;;
3561   sparc-*-sunos4*)
3562     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563     ;;
3564   *-*-aix*)
3565     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566     ;;
3567   *-*-beos*)
3568     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569     ;;
3570   *-*-chorusos)
3571     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572     ;;
3573   *-*-dragonfly*)
3574     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575     ;;
3576   *-*-freebsd*)
3577     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578     ;;
3579   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3580     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581     ;;
3582   *-*-lynxos*)
3583     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584     ;;
3585   *-*-mingw*)
3586     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587     ;;
3588   *-*-netbsd*)
3589     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590     ;;
3591   *-*-netware*)
3592     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593     ;;
3594   *-*-tpf*)
3595     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596     ;;
3597   *-*-uclinux*)
3598     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599     ;;
3600   *-*-vxworks*)
3601     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602     ;;
3603 esac
3604
3605 case "${target}" in
3606   *-*-chorusos)
3607     ;;
3608   aarch64-*-darwin*)
3609     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3610     noconfigdirs="$noconfigdirs sim target-rda"
3611     ;;
3612   arm-*-darwin*)
3613     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3614     noconfigdirs="$noconfigdirs sim target-rda"
3615     ;;
3616   powerpc-*-darwin*)
3617     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3618     noconfigdirs="$noconfigdirs sim target-rda"
3619     ;;
3620   i[3456789]86-*-darwin*)
3621     noconfigdirs="$noconfigdirs ld gprof"
3622     noconfigdirs="$noconfigdirs sim target-rda"
3623     ;;
3624   x86_64-*-darwin[912]*)
3625     noconfigdirs="$noconfigdirs ld gas gprof"
3626     noconfigdirs="$noconfigdirs sim target-rda"
3627     ;;
3628   *-*-darwin*)
3629     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3630     noconfigdirs="$noconfigdirs sim target-rda"
3631     ;;
3632   *-*-dragonfly*)
3633     ;;
3634   *-*-freebsd*)
3635     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3636         && test -f /usr/local/include/gmp.h; then
3637       with_gmp=/usr/local
3638     fi
3639     ;;
3640   *-*-kaos*)
3641     # Remove unsupported stuff on all kaOS configurations.
3642     noconfigdirs="$noconfigdirs target-libgloss"
3643     ;;
3644   *-*-netbsd*)
3645     ;;
3646   *-*-netware*)
3647     ;;
3648   *-*-phoenix*)
3649     noconfigdirs="$noconfigdirs target-libgloss"
3650     ;;
3651   *-*-rtems*)
3652     noconfigdirs="$noconfigdirs target-libgloss"
3653     # this is not caught below because this stanza matches earlier
3654     case $target in
3655       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3656     esac
3657     ;;
3658     # The tpf target doesn't support gdb yet.
3659   *-*-tpf*)
3660     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3661     ;;
3662   *-*-uclinux*)
3663     noconfigdirs="$noconfigdirs target-rda"
3664     ;;
3665   *-*-vxworks*)
3666     ;;
3667   alpha*-dec-osf*)
3668     # ld works, but does not support shared libraries.
3669     # gas doesn't generate exception information.
3670     noconfigdirs="$noconfigdirs gas ld"
3671     ;;
3672   alpha*-*-*vms*)
3673     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3674     ;;
3675   alpha*-*-*)
3676     # newlib is not 64 bit ready
3677     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678     ;;
3679   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3680     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3681     ;;
3682   arc*-*-*)
3683     noconfigdirs="$noconfigdirs sim"
3684     ;;
3685   arm-*-pe*)
3686     noconfigdirs="$noconfigdirs target-libgloss"
3687     ;;
3688   arm-*-riscix*)
3689     noconfigdirs="$noconfigdirs ld target-libgloss"
3690     ;;
3691   avr-*-*)
3692     if test x${with_avrlibc} != xno; then
3693       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694     fi
3695     ;;
3696   c4x-*-* | tic4x-*-*)
3697     noconfigdirs="$noconfigdirs target-libgloss"
3698     ;;
3699   tic54x-*-*)
3700     noconfigdirs="$noconfigdirs target-libgloss gdb"
3701     ;;
3702   d10v-*-*)
3703     noconfigdirs="$noconfigdirs target-libgloss"
3704     ;;
3705   d30v-*-*)
3706     noconfigdirs="$noconfigdirs gdb"
3707     ;;
3708   fr30-*-elf*)
3709     noconfigdirs="$noconfigdirs gdb"
3710     ;;
3711   ft32-*-*)
3712     noconfigdirs="$noconfigdirs target-rda gprof"
3713     ;;
3714   moxie-*-*)
3715     noconfigdirs="$noconfigdirs"
3716     ;;
3717   h8300*-*-*)
3718     noconfigdirs="$noconfigdirs target-libgloss"
3719     ;;
3720   h8500-*-*)
3721     noconfigdirs="$noconfigdirs target-libgloss"
3722     ;;
3723   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3724     ;;
3725   hppa*64*-*-hpux*)
3726     noconfigdirs="$noconfigdirs gdb"
3727     ;;
3728   hppa*-*-hpux11*)
3729     noconfigdirs="$noconfigdirs gdb ld"
3730     ;;
3731   hppa*64*-*-linux*)
3732     ;;
3733   hppa*-*-linux*)
3734     ;;
3735   hppa*-*-*elf* | \
3736   hppa*-*-lites* | \
3737   hppa*-*-openbsd* | \
3738   hppa*64*-*-*)
3739     ;;
3740   hppa*-*-pro*)
3741     ;;
3742   hppa*-*-*)
3743     noconfigdirs="$noconfigdirs ld"
3744     ;;
3745   i960-*-*)
3746     noconfigdirs="$noconfigdirs gdb"
3747     ;;
3748   ia64*-*-elf*)
3749     # No gdb support yet.
3750     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3751     ;;
3752   ia64*-**-hpux*)
3753     # No ld support yet.
3754     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3755     ;;
3756   ia64*-*-*vms*)
3757     # No ld support yet.
3758     noconfigdirs="$noconfigdirs libgui itcl ld"
3759     ;;
3760   i[3456789]86-w64-mingw*)
3761     ;;
3762   i[3456789]86-*-mingw*)
3763     target_configdirs="$target_configdirs target-winsup"
3764     ;;
3765   *-*-cygwin*)
3766     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3767     noconfigdirs="$noconfigdirs target-libgloss"
3768     # always build newlib if winsup directory is present.
3769     if test -d "$srcdir/winsup/cygwin"; then
3770       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3771     elif test -d "$srcdir/newlib"; then
3772       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3773     fi
3774     ;;
3775   i[3456789]86-*-pe)
3776     noconfigdirs="$noconfigdirs target-libgloss"
3777     ;;
3778   i[3456789]86-*-sco3.2v5*)
3779     # The linker does not yet know about weak symbols in COFF,
3780     # and is not configured to handle mixed ELF and COFF.
3781     noconfigdirs="$noconfigdirs ld target-libgloss"
3782     ;;
3783   i[3456789]86-*-sco*)
3784     noconfigdirs="$noconfigdirs gprof target-libgloss"
3785     ;;
3786   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3787     noconfigdirs="$noconfigdirs target-libgloss"
3788     ;;
3789   i[3456789]86-*-sysv4*)
3790     noconfigdirs="$noconfigdirs target-libgloss"
3791     ;;
3792   i[3456789]86-*-beos*)
3793     noconfigdirs="$noconfigdirs gdb"
3794     ;;
3795   i[3456789]86-*-rdos*)
3796     noconfigdirs="$noconfigdirs gdb"
3797     ;;
3798   mmix-*-*)
3799     noconfigdirs="$noconfigdirs gdb"
3800     ;;
3801   mt-*-*)
3802     noconfigdirs="$noconfigdirs sim"
3803     ;;
3804   powerpc-*-aix*)
3805     # copied from rs6000-*-* entry
3806     noconfigdirs="$noconfigdirs gprof"
3807     ;;
3808   powerpc*-*-winnt* | powerpc*-*-pe*)
3809     target_configdirs="$target_configdirs target-winsup"
3810     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3811     # always build newlib.
3812     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3813     ;;
3814     # This is temporary until we can link against shared libraries
3815   powerpcle-*-solaris*)
3816     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3817     ;;
3818   powerpc-*-beos*)
3819     noconfigdirs="$noconfigdirs gdb"
3820     ;;
3821   rs6000-*-lynxos*)
3822     noconfigdirs="$noconfigdirs gprof"
3823     ;;
3824   rs6000-*-aix*)
3825     noconfigdirs="$noconfigdirs gprof"
3826     ;;
3827   rs6000-*-*)
3828     noconfigdirs="$noconfigdirs gprof"
3829     ;;
3830   m68k-apollo-*)
3831     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3832     ;;
3833   microblaze*)
3834     noconfigdirs="$noconfigdirs gprof"
3835     ;;
3836   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3837     if test x$with_newlib = xyes; then
3838       noconfigdirs="$noconfigdirs gprof"
3839     fi
3840     ;;
3841   mips*-*-irix5*)
3842     noconfigdirs="$noconfigdirs gprof target-libgloss"
3843     ;;
3844   mips*-*-irix6*)
3845     noconfigdirs="$noconfigdirs gprof target-libgloss"
3846     ;;
3847   mips*-*-bsd*)
3848     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3849     ;;
3850   mips*-*-linux*)
3851     ;;
3852   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3853   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3854     noconfigdirs="$noconfigdirs ld gas gprof"
3855     ;;
3856   mips*-*-*)
3857     noconfigdirs="$noconfigdirs gprof"
3858     ;;
3859   nvptx*-*-*)
3860     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3861     ;;
3862   or1k*-*-*)
3863     noconfigdirs="$noconfigdirs gdb"
3864     ;;
3865   sh-*-*)
3866     case "${target}" in
3867       sh*-*-elf)
3868          ;;
3869       *)
3870          noconfigdirs="$noconfigdirs target-libgloss" ;;
3871     esac
3872     ;;
3873   sparc-*-sunos4*)
3874     if test x${is_cross_compiler} = xno ; then
3875            use_gnu_ld=no
3876     fi
3877     ;;
3878   tic6x-*-*)
3879     noconfigdirs="$noconfigdirs sim"
3880     ;;
3881   tilepro*-*-* | tilegx*-*-*)
3882     noconfigdirs="$noconfigdirs sim"
3883     ;;
3884   v810-*-*)
3885     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3886     ;;
3887   vax-*-*)
3888     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3889     ;;
3890 esac
3891
3892 # If we aren't building newlib, then don't build libgloss, since libgloss
3893 # depends upon some newlib header files.
3894 case "${noconfigdirs}" in
3895   *target-libgloss*) ;;
3896   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3897 esac
3898
3899 # Work in distributions that contain no compiler tools, like Autoconf.
3900 host_makefile_frag=/dev/null
3901 if test -d ${srcdir}/config ; then
3902 case "${host}" in
3903   i[3456789]86-*-msdosdjgpp*)
3904     host_makefile_frag="config/mh-djgpp"
3905     ;;
3906   *-cygwin*)
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3909 $as_echo_n "checking to see if cat works as expected... " >&6; }
3910 echo a >cygwin-cat-check
3911 if test `cat cygwin-cat-check` = a ; then
3912   rm cygwin-cat-check
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3914 $as_echo "yes" >&6; }
3915 else
3916   rm cygwin-cat-check
3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919   as_fn_error "The cat command does not ignore carriage return characters.
3920   Please either mount the build directory in binary mode or run the following
3921   commands before running any configure script:
3922 set -o igncr
3923 export SHELLOPTS
3924   " "$LINENO" 5
3925 fi
3926
3927     host_makefile_frag="config/mh-cygwin"
3928     ;;
3929   *-mingw*)
3930     host_makefile_frag="config/mh-mingw"
3931     ;;
3932   alpha*-linux*)
3933     host_makefile_frag="config/mh-alpha-linux"
3934     ;;
3935   hppa*-hp-hpux10*)
3936     host_makefile_frag="config/mh-pa-hpux10"
3937     ;;
3938   hppa*-hp-hpux*)
3939     host_makefile_frag="config/mh-pa"
3940     ;;
3941   hppa*-*)
3942     host_makefile_frag="config/mh-pa"
3943     ;;
3944   *-*-darwin*)
3945     host_makefile_frag="config/mh-darwin"
3946     ;;
3947   powerpc-*-aix*)
3948     host_makefile_frag="config/mh-ppc-aix"
3949     ;;
3950   rs6000-*-aix*)
3951     host_makefile_frag="config/mh-ppc-aix"
3952     ;;
3953 esac
3954 fi
3955
3956 if test "${build}" != "${host}" ; then
3957   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3958   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3959   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3960   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3961   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3962   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3963   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3964   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3965   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3966   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3967   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3968   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3969 else
3970   AR_FOR_BUILD="\$(AR)"
3971   AS_FOR_BUILD="\$(AS)"
3972   CC_FOR_BUILD="\$(CC)"
3973   CXX_FOR_BUILD="\$(CXX)"
3974   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3975   GOC_FOR_BUILD="\$(GOC)"
3976   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3977   LD_FOR_BUILD="\$(LD)"
3978   NM_FOR_BUILD="\$(NM)"
3979   RANLIB_FOR_BUILD="\$(RANLIB)"
3980   WINDRES_FOR_BUILD="\$(WINDRES)"
3981   WINDMC_FOR_BUILD="\$(WINDMC)"
3982 fi
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 if test -n "$ac_tool_prefix"; then
3990   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -n "$CC"; then
3998   ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$ac_cv_prog_CC"; then
4029   ac_ct_CC=$CC
4030   # Extract the first word of "gcc", so it can be a program name with args.
4031 set dummy gcc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$ac_ct_CC"; then
4038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047     ac_cv_prog_ac_ct_CC="gcc"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 $as_echo "$ac_ct_CC" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066   if test "x$ac_ct_CC" = x; then
4067     CC=""
4068   else
4069     case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075     CC=$ac_ct_CC
4076   fi
4077 else
4078   CC="$ac_cv_prog_CC"
4079 fi
4080
4081 if test -z "$CC"; then
4082           if test -n "$ac_tool_prefix"; then
4083     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   if test -n "$CC"; then
4091   ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100     ac_cv_prog_CC="${ac_tool_prefix}cc"
4101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105   done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120   fi
4121 fi
4122 if test -z "$CC"; then
4123   # Extract the first word of "cc", so it can be a program name with args.
4124 set dummy cc; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_CC+set}" = set; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133   ac_prog_rejected=no
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142        ac_prog_rejected=yes
4143        continue
4144      fi
4145     ac_cv_prog_CC="cc"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 if test $ac_prog_rejected = yes; then
4154   # We found a bogon in the path, so make sure we never use it.
4155   set dummy $ac_cv_prog_CC
4156   shift
4157   if test $# != 0; then
4158     # We chose a different compiler from the bogus one.
4159     # However, it has the same basename, so the bogon will be chosen
4160     # first if we set CC to just the basename; use the full file name.
4161     shift
4162     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4163   fi
4164 fi
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 fi
4178 if test -z "$CC"; then
4179   if test -n "$ac_tool_prefix"; then
4180   for ac_prog in cl.exe
4181   do
4182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if test "${ac_cv_prog_CC+set}" = set; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$CC"; then
4190   ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219     test -n "$CC" && break
4220   done
4221 fi
4222 if test -z "$CC"; then
4223   ac_ct_CC=$CC
4224   for ac_prog in cl.exe
4225 do
4226   # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$ac_ct_CC"; then
4234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_ac_ct_CC="$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254 if test -n "$ac_ct_CC"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256 $as_echo "$ac_ct_CC" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263   test -n "$ac_ct_CC" && break
4264 done
4265
4266   if test "x$ac_ct_CC" = x; then
4267     CC=""
4268   else
4269     case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275     CC=$ac_ct_CC
4276   fi
4277 fi
4278
4279 fi
4280
4281
4282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." "$LINENO" 5; }
4286
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 for ac_option in --version -v -V -qversion; do
4292   { { ac_try="$ac_compiler $ac_option >&5"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4300   ac_status=$?
4301   if test -s conftest.err; then
4302     sed '10a\
4303 ... rest of stderr output deleted ...
4304          10q' conftest.err >conftest.er1
4305     cat conftest.er1 >&5
4306     rm -f conftest.er1 conftest.err
4307   fi
4308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309   test $ac_status = 0; }
4310 done
4311
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 ac_clean_files_save=$ac_clean_files
4324 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4325 # Try to create an executable without -o first, disregard a.out.
4326 # It will help us diagnose broken compilers, and finding out an intuition
4327 # of exeext.
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4329 $as_echo_n "checking for C compiler default output file name... " >&6; }
4330 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4331
4332 # The possible output files:
4333 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4334
4335 ac_rmfiles=
4336 for ac_file in $ac_files
4337 do
4338   case $ac_file in
4339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4340     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341   esac
4342 done
4343 rm -f $ac_rmfiles
4344
4345 if { { ac_try="$ac_link_default"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352   (eval "$ac_link_default") 2>&5
4353   ac_status=$?
4354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355   test $ac_status = 0; }; then :
4356   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4358 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4359 # so that the user can short-circuit this test for compilers unknown to
4360 # Autoconf.
4361 for ac_file in $ac_files ''
4362 do
4363   test -f "$ac_file" || continue
4364   case $ac_file in
4365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4366         ;;
4367     [ab].out )
4368         # We found the default executable, but exeext='' is most
4369         # certainly right.
4370         break;;
4371     *.* )
4372         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4373         then :; else
4374            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4375         fi
4376         # We set ac_cv_exeext here because the later test for it is not
4377         # safe: cross compilers may not add the suffix if given an `-o'
4378         # argument, so we may need to know it at that point already.
4379         # Even if this section looks crufty: it has the advantage of
4380         # actually working.
4381         break;;
4382     * )
4383         break;;
4384   esac
4385 done
4386 test "$ac_cv_exeext" = no && ac_cv_exeext=
4387
4388 else
4389   ac_file=''
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4392 $as_echo "$ac_file" >&6; }
4393 if test -z "$ac_file"; then :
4394   $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399 { as_fn_set_status 77
4400 as_fn_error "C compiler cannot create executables
4401 See \`config.log' for more details." "$LINENO" 5; }; }
4402 fi
4403 ac_exeext=$ac_cv_exeext
4404
4405 # Check that the compiler produces executables we can run.  If not, either
4406 # the compiler is broken, or we cross compile.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408 $as_echo_n "checking whether the C compiler works... " >&6; }
4409 # If not cross compiling, check that we can run a simple program.
4410 if test "$cross_compiling" != yes; then
4411   if { ac_try='./$ac_file'
4412   { { case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; }; }; then
4422     cross_compiling=no
4423   else
4424     if test "$cross_compiling" = maybe; then
4425         cross_compiling=yes
4426     else
4427         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error "cannot run C compiled programs.
4430 If you meant to cross compile, use \`--host'.
4431 See \`config.log' for more details." "$LINENO" 5; }
4432     fi
4433   fi
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 $as_echo "yes" >&6; }
4437
4438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4439 ac_clean_files=$ac_clean_files_save
4440 # Check that the compiler produces executables we can run.  If not, either
4441 # the compiler is broken, or we cross compile.
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443 $as_echo_n "checking whether we are cross compiling... " >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4445 $as_echo "$cross_compiling" >&6; }
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4448 $as_echo_n "checking for suffix of executables... " >&6; }
4449 if { { ac_try="$ac_link"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_link") 2>&5
4457   ac_status=$?
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; }; then :
4460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4462 # work properly (i.e., refer to `conftest.exe'), while it won't with
4463 # `rm'.
4464 for ac_file in conftest.exe conftest conftest.*; do
4465   test -f "$ac_file" || continue
4466   case $ac_file in
4467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4469           break;;
4470     * ) break;;
4471   esac
4472 done
4473 else
4474   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error "cannot compute suffix of executables: cannot compile and link
4477 See \`config.log' for more details." "$LINENO" 5; }
4478 fi
4479 rm -f conftest$ac_cv_exeext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4481 $as_echo "$ac_cv_exeext" >&6; }
4482
4483 rm -f conftest.$ac_ext
4484 EXEEXT=$ac_cv_exeext
4485 ac_exeext=$EXEEXT
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4487 $as_echo_n "checking for suffix of object files... " >&6; }
4488 if test "${ac_cv_objext+set}" = set; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493
4494 int
4495 main ()
4496 {
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.o conftest.obj
4503 if { { ac_try="$ac_compile"
4504 case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510   (eval "$ac_compile") 2>&5
4511   ac_status=$?
4512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513   test $ac_status = 0; }; then :
4514   for ac_file in conftest.o conftest.obj conftest.*; do
4515   test -f "$ac_file" || continue;
4516   case $ac_file in
4517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4519        break;;
4520   esac
4521 done
4522 else
4523   $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error "cannot compute suffix of object files: cannot compile
4529 See \`config.log' for more details." "$LINENO" 5; }
4530 fi
4531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4534 $as_echo "$ac_cv_objext" >&6; }
4535 OBJEXT=$ac_cv_objext
4536 ac_objext=$OBJEXT
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4539 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h.  */
4544
4545 int
4546 main ()
4547 {
4548 #ifndef __GNUC__
4549        choke me
4550 #endif
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557   ac_compiler_gnu=yes
4558 else
4559   ac_compiler_gnu=no
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4563
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4567 if test $ac_compiler_gnu = yes; then
4568   GCC=yes
4569 else
4570   GCC=
4571 fi
4572 ac_test_CFLAGS=${CFLAGS+set}
4573 ac_save_CFLAGS=$CFLAGS
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4576 if test "${ac_cv_prog_cc_g+set}" = set; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   ac_save_c_werror_flag=$ac_c_werror_flag
4580    ac_c_werror_flag=yes
4581    ac_cv_prog_cc_g=no
4582    CFLAGS="-g"
4583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585
4586 int
4587 main ()
4588 {
4589
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595   ac_cv_prog_cc_g=yes
4596 else
4597   CFLAGS=""
4598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h.  */
4600
4601 int
4602 main ()
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610
4611 else
4612   ac_c_werror_flag=$ac_save_c_werror_flag
4613          CFLAGS="-g"
4614          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616
4617 int
4618 main ()
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626   ac_cv_prog_cc_g=yes
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633    ac_c_werror_flag=$ac_save_c_werror_flag
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4636 $as_echo "$ac_cv_prog_cc_g" >&6; }
4637 if test "$ac_test_CFLAGS" = set; then
4638   CFLAGS=$ac_save_CFLAGS
4639 elif test $ac_cv_prog_cc_g = yes; then
4640   if test "$GCC" = yes; then
4641     CFLAGS="-g -O2"
4642   else
4643     CFLAGS="-g"
4644   fi
4645 else
4646   if test "$GCC" = yes; then
4647     CFLAGS="-O2"
4648   else
4649     CFLAGS=
4650   fi
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4654 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   ac_cv_prog_cc_c89=no
4658 ac_save_CC=$CC
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #include <stdarg.h>
4662 #include <stdio.h>
4663 #include <sys/types.h>
4664 #include <sys/stat.h>
4665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4666 struct buf { int x; };
4667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668 static char *e (p, i)
4669      char **p;
4670      int i;
4671 {
4672   return p[i];
4673 }
4674 static char *f (char * (*g) (char **, int), char **p, ...)
4675 {
4676   char *s;
4677   va_list v;
4678   va_start (v,p);
4679   s = g (p, va_arg (v,int));
4680   va_end (v);
4681   return s;
4682 }
4683
4684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4685    function prototypes and stuff, but not '\xHH' hex character constants.
4686    These don't provoke an error unfortunately, instead are silently treated
4687    as 'x'.  The following induces an error, until -std is added to get
4688    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4689    array size at least.  It's necessary to write '\x00'==0 to get something
4690    that's true only with -std.  */
4691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4692
4693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694    inside strings and character constants.  */
4695 #define FOO(x) 'x'
4696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4697
4698 int test (int i, double x);
4699 struct s1 {int (*f) (int a);};
4700 struct s2 {int (*f) (double a);};
4701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702 int argc;
4703 char **argv;
4704 int
4705 main ()
4706 {
4707 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4714 do
4715   CC="$ac_save_CC $ac_arg"
4716   if ac_fn_c_try_compile "$LINENO"; then :
4717   ac_cv_prog_cc_c89=$ac_arg
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext
4720   test "x$ac_cv_prog_cc_c89" != "xno" && break
4721 done
4722 rm -f conftest.$ac_ext
4723 CC=$ac_save_CC
4724
4725 fi
4726 # AC_CACHE_VAL
4727 case "x$ac_cv_prog_cc_c89" in
4728   x)
4729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730 $as_echo "none needed" >&6; } ;;
4731   xno)
4732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;;
4734   *)
4735     CC="$CC $ac_cv_prog_cc_c89"
4736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4738 esac
4739 if test "x$ac_cv_prog_cc_c89" != xno; then :
4740
4741 fi
4742
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 ac_ext=cpp
4750 ac_cpp='$CXXCPP $CPPFLAGS'
4751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4754 if test -z "$CXX"; then
4755   if test -n "$CCC"; then
4756     CXX=$CCC
4757   else
4758     if test -n "$ac_tool_prefix"; then
4759   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4760   do
4761     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_CXX+set}" = set; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   if test -n "$CXX"; then
4769   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774   IFS=$as_save_IFS
4775   test -z "$as_dir" && as_dir=.
4776     for ac_exec_ext in '' $ac_executable_extensions; do
4777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780     break 2
4781   fi
4782 done
4783   done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 CXX=$ac_cv_prog_CXX
4789 if test -n "$CXX"; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4791 $as_echo "$CXX" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797
4798     test -n "$CXX" && break
4799   done
4800 fi
4801 if test -z "$CXX"; then
4802   ac_ct_CXX=$CXX
4803   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4804 do
4805   # Extract the first word of "$ac_prog", so it can be a program name with args.
4806 set dummy $ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   if test -n "$ac_ct_CXX"; then
4813   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822     ac_cv_prog_ac_ct_CXX="$ac_prog"
4823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824     break 2
4825   fi
4826 done
4827   done
4828 IFS=$as_save_IFS
4829
4830 fi
4831 fi
4832 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4833 if test -n "$ac_ct_CXX"; then
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4835 $as_echo "$ac_ct_CXX" >&6; }
4836 else
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4839 fi
4840
4841
4842   test -n "$ac_ct_CXX" && break
4843 done
4844
4845   if test "x$ac_ct_CXX" = x; then
4846     CXX="g++"
4847   else
4848     case $cross_compiling:$ac_tool_warned in
4849 yes:)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4853 esac
4854     CXX=$ac_ct_CXX
4855   fi
4856 fi
4857
4858   fi
4859 fi
4860 # Provide some information about the compiler.
4861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4862 set X $ac_compile
4863 ac_compiler=$2
4864 for ac_option in --version -v -V -qversion; do
4865   { { ac_try="$ac_compiler $ac_option >&5"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4873   ac_status=$?
4874   if test -s conftest.err; then
4875     sed '10a\
4876 ... rest of stderr output deleted ...
4877          10q' conftest.err >conftest.er1
4878     cat conftest.er1 >&5
4879     rm -f conftest.er1 conftest.err
4880   fi
4881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882   test $ac_status = 0; }
4883 done
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4886 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4887 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h.  */
4892
4893 int
4894 main ()
4895 {
4896 #ifndef __GNUC__
4897        choke me
4898 #endif
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_cxx_try_compile "$LINENO"; then :
4905   ac_compiler_gnu=yes
4906 else
4907   ac_compiler_gnu=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4911
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4914 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4915 if test $ac_compiler_gnu = yes; then
4916   GXX=yes
4917 else
4918   GXX=
4919 fi
4920 ac_test_CXXFLAGS=${CXXFLAGS+set}
4921 ac_save_CXXFLAGS=$CXXFLAGS
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4923 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4924 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4928    ac_cxx_werror_flag=yes
4929    ac_cv_prog_cxx_g=no
4930    CXXFLAGS="-g"
4931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933
4934 int
4935 main ()
4936 {
4937
4938   ;
4939   return 0;
4940 }
4941 _ACEOF
4942 if ac_fn_cxx_try_compile "$LINENO"; then :
4943   ac_cv_prog_cxx_g=yes
4944 else
4945   CXXFLAGS=""
4946       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h.  */
4948
4949 int
4950 main ()
4951 {
4952
4953   ;
4954   return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_cxx_try_compile "$LINENO"; then :
4958
4959 else
4960   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4961          CXXFLAGS="-g"
4962          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964
4965 int
4966 main ()
4967 {
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974   ac_cv_prog_cxx_g=yes
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4984 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4985 if test "$ac_test_CXXFLAGS" = set; then
4986   CXXFLAGS=$ac_save_CXXFLAGS
4987 elif test $ac_cv_prog_cxx_g = yes; then
4988   if test "$GXX" = yes; then
4989     CXXFLAGS="-g -O2"
4990   else
4991     CXXFLAGS="-g"
4992   fi
4993 else
4994   if test "$GXX" = yes; then
4995     CXXFLAGS="-O2"
4996   else
4997     CXXFLAGS=
4998   fi
4999 fi
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006
5007 # We must set the default linker to the linker used by gcc for the correct
5008 # operation of libtool.  If LD is not defined and we are using gcc, try to
5009 # set the LD default to the ld used by gcc.
5010 if test -z "$LD"; then
5011   if test "$GCC" = yes; then
5012     case $build in
5013     *-*-mingw*)
5014       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5015     *)
5016       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5017     esac
5018     case $gcc_prog_ld in
5019     # Accept absolute paths.
5020     [\\/]* | [A-Za-z]:[\\/]*)
5021       LD="$gcc_prog_ld" ;;
5022     esac
5023   fi
5024 fi
5025
5026 # Check whether -static-libstdc++ -static-libgcc is supported.
5027 have_static_libs=no
5028 if test "$GCC" = yes; then
5029   saved_LDFLAGS="$LDFLAGS"
5030
5031   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5033 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5034   ac_ext=cpp
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5039
5040
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h.  */
5043
5044 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5045 #error -static-libstdc++ not implemented
5046 #endif
5047 int main() {}
5048 _ACEOF
5049 if ac_fn_cxx_try_link "$LINENO"; then :
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051 $as_echo "yes" >&6; }; have_static_libs=yes
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext \
5057     conftest$ac_exeext conftest.$ac_ext
5058   ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064
5065   LDFLAGS="$saved_LDFLAGS"
5066 fi
5067
5068
5069
5070
5071 if test -n "$ac_tool_prefix"; then
5072   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$GNATBIND"; then
5080   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 GNATBIND=$ac_cv_prog_GNATBIND
5100 if test -n "$GNATBIND"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5102 $as_echo "$GNATBIND" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 fi
5110 if test -z "$ac_cv_prog_GNATBIND"; then
5111   ac_ct_GNATBIND=$GNATBIND
5112   # Extract the first word of "gnatbind", so it can be a program name with args.
5113 set dummy gnatbind; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$ac_ct_GNATBIND"; then
5120   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5140 if test -n "$ac_ct_GNATBIND"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5142 $as_echo "$ac_ct_GNATBIND" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148   if test "x$ac_ct_GNATBIND" = x; then
5149     GNATBIND="no"
5150   else
5151     case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157     GNATBIND=$ac_ct_GNATBIND
5158   fi
5159 else
5160   GNATBIND="$ac_cv_prog_GNATBIND"
5161 fi
5162
5163 if test -n "$ac_tool_prefix"; then
5164   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$GNATMAKE"; then
5172   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 GNATMAKE=$ac_cv_prog_GNATMAKE
5192 if test -n "$GNATMAKE"; then
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5194 $as_echo "$GNATMAKE" >&6; }
5195 else
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201 fi
5202 if test -z "$ac_cv_prog_GNATMAKE"; then
5203   ac_ct_GNATMAKE=$GNATMAKE
5204   # Extract the first word of "gnatmake", so it can be a program name with args.
5205 set dummy gnatmake; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   if test -n "$ac_ct_GNATMAKE"; then
5212   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_exec_ext in '' $ac_executable_extensions; do
5220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226   done
5227 IFS=$as_save_IFS
5228
5229 fi
5230 fi
5231 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5232 if test -n "$ac_ct_GNATMAKE"; then
5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5234 $as_echo "$ac_ct_GNATMAKE" >&6; }
5235 else
5236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5238 fi
5239
5240   if test "x$ac_ct_GNATMAKE" = x; then
5241     GNATMAKE="no"
5242   else
5243     case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249     GNATMAKE=$ac_ct_GNATMAKE
5250   fi
5251 else
5252   GNATMAKE="$ac_cv_prog_GNATMAKE"
5253 fi
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5256 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5257 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   cat >conftest.adb <<EOF
5261 procedure conftest is begin null; end conftest;
5262 EOF
5263 acx_cv_cc_gcc_supports_ada=no
5264 # There is a bug in old released versions of GCC which causes the
5265 # driver to exit successfully when the appropriate language module
5266 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5267 # Therefore we must check for the error message as well as an
5268 # unsuccessful exit.
5269 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5270 # given a .adb file, but produce no object file.  So we must check
5271 # if an object file was really produced to guard against this.
5272 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5273 if test x"$errors" = x && test -f conftest.$ac_objext; then
5274   acx_cv_cc_gcc_supports_ada=yes
5275 fi
5276 rm -f conftest.*
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5279 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5280
5281 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5282   have_gnat=yes
5283 else
5284   have_gnat=no
5285 fi
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5288 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5289 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292    echo abfoo >t1
5293   echo cdfoo >t2
5294   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5295   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5296     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5297       :
5298     else
5299       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5300     fi
5301   fi
5302   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5303     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5304       :
5305     else
5306       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5307     fi
5308   fi
5309   rm t1 t2
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5313 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5314 do_compare="$gcc_cv_prog_cmp_skip"
5315
5316
5317
5318 # Check whether --enable-bootstrap was given.
5319 if test "${enable_bootstrap+set}" = set; then :
5320   enableval=$enable_bootstrap;
5321 else
5322   enable_bootstrap=default
5323 fi
5324
5325
5326 # Issue errors and warnings for invalid/strange bootstrap combinations.
5327 if test -r $srcdir/gcc/configure; then
5328   have_compiler=yes
5329 else
5330   have_compiler=no
5331 fi
5332
5333 case "$have_compiler:$host:$target:$enable_bootstrap" in
5334   *:*:*:no) ;;
5335
5336   # Default behavior.  Enable bootstrap if we have a compiler
5337   # and we are in a native configuration.
5338   yes:$build:$build:default)
5339     enable_bootstrap=yes ;;
5340
5341   *:*:*:default)
5342     enable_bootstrap=no ;;
5343
5344   # We have a compiler and we are in a native configuration, bootstrap is ok
5345   yes:$build:$build:yes)
5346     ;;
5347
5348   # Other configurations, but we have a compiler.  Assume the user knows
5349   # what he's doing.
5350   yes:*:*:yes)
5351     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5352 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5353     ;;
5354
5355   # No compiler: if they passed --enable-bootstrap explicitly, fail
5356   no:*:*:yes)
5357     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5358
5359   # Fail if wrong command line
5360   *)
5361     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5362     ;;
5363 esac
5364
5365 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5366 # C++98 compiler can still start the bootstrap.
5367 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5368   CXX="$CXX -std=gnu++98"
5369 fi
5370
5371 # Used for setting $lt_cv_objdir
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5373 $as_echo_n "checking for objdir... " >&6; }
5374 if test "${lt_cv_objdir+set}" = set; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   rm -f .libs 2>/dev/null
5378 mkdir .libs 2>/dev/null
5379 if test -d .libs; then
5380   lt_cv_objdir=.libs
5381 else
5382   # MS-DOS does not allow filenames that begin with a dot.
5383   lt_cv_objdir=_libs
5384 fi
5385 rmdir .libs 2>/dev/null
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5388 $as_echo "$lt_cv_objdir" >&6; }
5389 objdir=$lt_cv_objdir
5390
5391
5392
5393
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LT_OBJDIR "$lt_cv_objdir/"
5397 _ACEOF
5398
5399
5400
5401 # Check for GMP, MPFR and MPC
5402 gmplibs="-lmpc -lmpfr -lgmp"
5403 gmpinc=
5404 have_gmp=no
5405
5406 # Specify a location for mpc
5407 # check for this first so it ends up on the link line before mpfr.
5408
5409 # Check whether --with-mpc was given.
5410 if test "${with_mpc+set}" = set; then :
5411   withval=$with_mpc;
5412 fi
5413
5414
5415 # Check whether --with-mpc-include was given.
5416 if test "${with_mpc_include+set}" = set; then :
5417   withval=$with_mpc_include;
5418 fi
5419
5420
5421 # Check whether --with-mpc-lib was given.
5422 if test "${with_mpc_lib+set}" = set; then :
5423   withval=$with_mpc_lib;
5424 fi
5425
5426
5427 if test "x$with_mpc" != x; then
5428   gmplibs="-L$with_mpc/lib $gmplibs"
5429   gmpinc="-I$with_mpc/include $gmpinc"
5430 fi
5431 if test "x$with_mpc_include" != x; then
5432   gmpinc="-I$with_mpc_include $gmpinc"
5433 fi
5434 if test "x$with_mpc_lib" != x; then
5435   gmplibs="-L$with_mpc_lib $gmplibs"
5436 fi
5437 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5438   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5439   gmpinc='-I$$s/mpc/src '"$gmpinc"
5440   # Do not test the mpc version.  Assume that it is sufficient, since
5441   # it is in the source tree, and the library has not been built yet
5442   # but it would be included on the link line in the version check below
5443   # hence making the test fail.
5444   have_gmp=yes
5445 fi
5446
5447 # Specify a location for mpfr
5448 # check for this first so it ends up on the link line before gmp.
5449
5450 # Check whether --with-mpfr-dir was given.
5451 if test "${with_mpfr_dir+set}" = set; then :
5452   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5453 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5454 fi
5455
5456
5457
5458 # Check whether --with-mpfr was given.
5459 if test "${with_mpfr+set}" = set; then :
5460   withval=$with_mpfr;
5461 fi
5462
5463
5464 # Check whether --with-mpfr-include was given.
5465 if test "${with_mpfr_include+set}" = set; then :
5466   withval=$with_mpfr_include;
5467 fi
5468
5469
5470 # Check whether --with-mpfr-lib was given.
5471 if test "${with_mpfr_lib+set}" = set; then :
5472   withval=$with_mpfr_lib;
5473 fi
5474
5475
5476 if test "x$with_mpfr" != x; then
5477   gmplibs="-L$with_mpfr/lib $gmplibs"
5478   gmpinc="-I$with_mpfr/include $gmpinc"
5479 fi
5480 if test "x$with_mpfr_include" != x; then
5481   gmpinc="-I$with_mpfr_include $gmpinc"
5482 fi
5483 if test "x$with_mpfr_lib" != x; then
5484   gmplibs="-L$with_mpfr_lib $gmplibs"
5485 fi
5486 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5487   # MPFR v3.1.0 moved the sources into a src sub-directory.
5488   if ! test -d ${srcdir}/mpfr/src; then
5489     as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5490   fi
5491   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5492   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5493   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5494   # Do not test the mpfr version.  Assume that it is sufficient, since
5495   # it is in the source tree, and the library has not been built yet
5496   # but it would be included on the link line in the version check below
5497   # hence making the test fail.
5498   have_gmp=yes
5499 fi
5500
5501 # Specify a location for gmp
5502
5503 # Check whether --with-gmp-dir was given.
5504 if test "${with_gmp_dir+set}" = set; then :
5505   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5506 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5507 fi
5508
5509
5510
5511 # Check whether --with-gmp was given.
5512 if test "${with_gmp+set}" = set; then :
5513   withval=$with_gmp;
5514 fi
5515
5516
5517 # Check whether --with-gmp-include was given.
5518 if test "${with_gmp_include+set}" = set; then :
5519   withval=$with_gmp_include;
5520 fi
5521
5522
5523 # Check whether --with-gmp-lib was given.
5524 if test "${with_gmp_lib+set}" = set; then :
5525   withval=$with_gmp_lib;
5526 fi
5527
5528
5529
5530 if test "x$with_gmp" != x; then
5531   gmplibs="-L$with_gmp/lib $gmplibs"
5532   gmpinc="-I$with_gmp/include $gmpinc"
5533 fi
5534 if test "x$with_gmp_include" != x; then
5535   gmpinc="-I$with_gmp_include $gmpinc"
5536 fi
5537 if test "x$with_gmp_lib" != x; then
5538   gmplibs="-L$with_gmp_lib $gmplibs"
5539 fi
5540 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5541   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5542   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5543   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5544   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5545   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5546   # Do not test the gmp version.  Assume that it is sufficient, since
5547   # it is in the source tree, and the library has not been built yet
5548   # but it would be included on the link line in the version check below
5549   # hence making the test fail.
5550   have_gmp=yes
5551 fi
5552
5553 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5554   have_gmp=yes
5555   saved_CFLAGS="$CFLAGS"
5556   CFLAGS="$CFLAGS $gmpinc"
5557   # Check for the recommended and required versions of GMP.
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5559 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5560
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h.  */
5563 #include "gmp.h"
5564 int
5565 main ()
5566 {
5567
5568   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5571   choke me
5572   #endif
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h.  */
5581 #include <gmp.h>
5582 int
5583 main ()
5584 {
5585
5586   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5587   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5588   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5589   choke me
5590   #endif
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5601 $as_echo "buggy but acceptable" >&6; }
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604 else
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }; have_gmp=no
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609
5610   # If we have GMP, check the MPFR version.
5611   if test x"$have_gmp" = xyes; then
5612     # Check for the recommended and required versions of MPFR.
5613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5614 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617 #include <gmp.h>
5618     #include <mpfr.h>
5619 int
5620 main ()
5621 {
5622
5623     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5624     choke me
5625     #endif
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634 #include <gmp.h>
5635     #include <mpfr.h>
5636 int
5637 main ()
5638 {
5639
5640     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5641     choke me
5642     #endif
5643
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5653 $as_echo "buggy but acceptable" >&6; }
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }; have_gmp=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661   fi
5662
5663   # Check for the MPC header version.
5664   if test x"$have_gmp" = xyes ; then
5665     # Check for the recommended and required versions of MPC.
5666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5667 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h.  */
5670 #include <mpc.h>
5671 int
5672 main ()
5673 {
5674
5675     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5676     choke me
5677     #endif
5678
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h.  */
5686 #include <mpc.h>
5687 int
5688 main ()
5689 {
5690
5691     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5692     choke me
5693     #endif
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5704 $as_echo "buggy but acceptable" >&6; }
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }; have_gmp=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712   fi
5713
5714   # Now check the MPFR library.
5715   if test x"$have_gmp" = xyes; then
5716     saved_LIBS="$LIBS"
5717     LIBS="$LIBS $gmplibs"
5718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5719 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722 #include <mpc.h>
5723 int
5724 main ()
5725 {
5726
5727     mpfr_t n;
5728     mpfr_t x;
5729     mpc_t c;
5730     int t;
5731     mpfr_init (n);
5732     mpfr_init (x);
5733     mpfr_atan2 (n, n, x, GMP_RNDN);
5734     mpfr_erfc (n, x, GMP_RNDN);
5735     mpfr_subnormalize (x, t, GMP_RNDN);
5736     mpfr_clear(n);
5737     mpfr_clear(x);
5738     mpc_init2 (c, 53);
5739     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5740     mpc_cosh (c, c, MPC_RNDNN);
5741     mpc_pow (c, c, c, MPC_RNDNN);
5742     mpc_acosh (c, c, MPC_RNDNN);
5743     mpc_clear (c);
5744
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 if ac_fn_c_try_link "$LINENO"; then :
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }; have_gmp=no
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext \
5757     conftest$ac_exeext conftest.$ac_ext
5758     LIBS="$saved_LIBS"
5759   fi
5760
5761   CFLAGS="$saved_CFLAGS"
5762
5763 # The library versions listed in the error message below should match
5764 # the HARD-minimums enforced above.
5765   if test x$have_gmp != xyes; then
5766     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5767 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5768 their locations.  Source code for these libraries can be found at
5769 their respective hosting sites as well as at
5770 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5771 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5772 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5773 make sure that you have installed both the libraries and the header
5774 files.  They may be located in separate packages." "$LINENO" 5
5775   fi
5776 fi
5777
5778 # Flags needed for both GMP, MPFR and/or MPC.
5779
5780
5781
5782
5783
5784
5785
5786 # Libraries to use for stage1 or when not bootstrapping.
5787
5788 # Check whether --with-stage1-libs was given.
5789 if test "${with_stage1_libs+set}" = set; then :
5790   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5791    stage1_libs=
5792  else
5793    stage1_libs=$withval
5794  fi
5795 else
5796   stage1_libs=
5797 fi
5798
5799
5800
5801 # Linker flags to use for stage1 or when not bootstrapping.
5802
5803 # Check whether --with-stage1-ldflags was given.
5804 if test "${with_stage1_ldflags+set}" = set; then :
5805   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5806    stage1_ldflags=
5807  else
5808    stage1_ldflags=$withval
5809  fi
5810 else
5811   stage1_ldflags=
5812  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5813  # if supported.  But if the user explicitly specified the libraries to use,
5814  # trust that they are doing what they want.
5815  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5816    stage1_ldflags="-static-libstdc++ -static-libgcc"
5817  fi
5818 fi
5819
5820
5821
5822 # Libraries to use for stage2 and later builds.
5823
5824 # Check whether --with-boot-libs was given.
5825 if test "${with_boot_libs+set}" = set; then :
5826   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5827    poststage1_libs=
5828  else
5829    poststage1_libs=$withval
5830  fi
5831 else
5832   poststage1_libs=
5833 fi
5834
5835
5836
5837 # Linker flags to use for stage2 and later builds.
5838
5839 # Check whether --with-boot-ldflags was given.
5840 if test "${with_boot_ldflags+set}" = set; then :
5841   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5842    poststage1_ldflags=
5843  else
5844    poststage1_ldflags=$withval
5845  fi
5846 else
5847   poststage1_ldflags=
5848  # In stages 2 and 3, default to linking libstdc++ and libgcc
5849  # statically.  But if the user explicitly specified the libraries to
5850  # use, trust that they are doing what they want.
5851  if test "$poststage1_libs" = ""; then
5852    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5853  fi
5854 fi
5855
5856
5857
5858 # GCC GRAPHITE dependency isl.
5859 # Basic setup is inlined here, actual checks are in config/isl.m4
5860
5861
5862 # Check whether --with-isl was given.
5863 if test "${with_isl+set}" = set; then :
5864   withval=$with_isl;
5865 fi
5866
5867
5868 # Treat --without-isl as a request to disable
5869 # GRAPHITE support and skip all following checks.
5870 if test "x$with_isl" != "xno"; then
5871   # Check for isl
5872
5873
5874 # Check whether --with-isl-include was given.
5875 if test "${with_isl_include+set}" = set; then :
5876   withval=$with_isl_include;
5877 fi
5878
5879
5880 # Check whether --with-isl-lib was given.
5881 if test "${with_isl_lib+set}" = set; then :
5882   withval=$with_isl_lib;
5883 fi
5884
5885
5886   # Check whether --enable-isl-version-check was given.
5887 if test "${enable_isl_version_check+set}" = set; then :
5888   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5889 else
5890   ENABLE_ISL_CHECK=yes
5891 fi
5892
5893
5894   # Initialize isllibs and islinc.
5895   case $with_isl in
5896     no)
5897       isllibs=
5898       islinc=
5899       ;;
5900     "" | yes)
5901       ;;
5902     *)
5903       isllibs="-L$with_isl/lib"
5904       islinc="-I$with_isl/include"
5905       ;;
5906   esac
5907   if test "x${with_isl_include}" != x ; then
5908     islinc="-I$with_isl_include"
5909   fi
5910   if test "x${with_isl_lib}" != x; then
5911     isllibs="-L$with_isl_lib"
5912   fi
5913         if test "x${islinc}" = x && test "x${isllibs}" = x \
5914      && test -d ${srcdir}/isl; then
5915     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5916     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5917     ENABLE_ISL_CHECK=no
5918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5919 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5920   fi
5921
5922   isllibs="${isllibs} -lisl"
5923
5924
5925
5926   if test "${ENABLE_ISL_CHECK}" = yes ; then
5927     _isl_saved_CFLAGS=$CFLAGS
5928     _isl_saved_LDFLAGS=$LDFLAGS
5929     _isl_saved_LIBS=$LIBS
5930
5931     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5932     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5933     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5934
5935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5936 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h.  */
5939 #include <isl/ctx.h>
5940 int
5941 main ()
5942 {
5943 isl_ctx_get_max_operations (isl_ctx_alloc ());
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"; then :
5949   gcc_cv_isl=yes
5950 else
5951   gcc_cv_isl=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext \
5954     conftest$ac_exeext conftest.$ac_ext
5955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5956 $as_echo "$gcc_cv_isl" >&6; }
5957
5958     if test "${gcc_cv_isl}" = no ; then
5959       { $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
5960 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5961     fi
5962
5963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5964 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h.  */
5967 #include <isl/schedule.h>
5968 int
5969 main ()
5970 {
5971 isl_options_set_schedule_serialize_sccs (NULL, 0);
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_link "$LINENO"; then :
5977   ac_has_isl_options_set_schedule_serialize_sccs=yes
5978 else
5979   ac_has_isl_options_set_schedule_serialize_sccs=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext \
5982     conftest$ac_exeext conftest.$ac_ext
5983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5984 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5985
5986     if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5987       islver="0.15"
5988
5989     fi
5990
5991     CFLAGS=$_isl_saved_CFLAGS
5992     LDFLAGS=$_isl_saved_LDFLAGS
5993     LIBS=$_isl_saved_LIBS
5994   fi
5995
5996
5997
5998
5999
6000
6001   if test "x${with_isl}" = xno; then
6002     graphite_requested=no
6003   elif test "x${with_isl}" != x \
6004     || test "x${with_isl_include}" != x \
6005     || test "x${with_isl_lib}" != x ; then
6006     graphite_requested=yes
6007   else
6008     graphite_requested=no
6009   fi
6010
6011
6012
6013   if test "${gcc_cv_isl}" = no ; then
6014     isllibs=
6015     islinc=
6016   fi
6017
6018   if test "${graphite_requested}" = yes \
6019     && test "x${isllibs}" = x \
6020     && test "x${islinc}" = x ; then
6021
6022     as_fn_error "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6023   fi
6024
6025
6026 fi
6027
6028 # If the isl check failed, disable builds of in-tree variant of isl
6029 if test "x$with_isl" = xno ||
6030    test "x$gcc_cv_isl" = xno; then
6031   noconfigdirs="$noconfigdirs isl"
6032   islinc=
6033 fi
6034
6035
6036
6037
6038 # Check for LTO support.
6039 # Check whether --enable-lto was given.
6040 if test "${enable_lto+set}" = set; then :
6041   enableval=$enable_lto; enable_lto=$enableval
6042 else
6043   enable_lto=yes; default_enable_lto=yes
6044 fi
6045
6046
6047
6048
6049
6050 target_elf=no
6051 case $target in
6052   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6053   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6054   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6055   nvptx-*-none)
6056     target_elf=no
6057     ;;
6058   *)
6059     target_elf=yes
6060     ;;
6061 esac
6062
6063 if test $target_elf = yes; then :
6064   # ELF platforms build the lto-plugin always.
6065   build_lto_plugin=yes
6066
6067 else
6068   if test x"$default_enable_lto" = x"yes" ; then
6069     case $target in
6070       *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6071       # On other non-ELF platforms, LTO has yet to be validated.
6072       *) enable_lto=no ;;
6073     esac
6074   else
6075   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6076   # It would also be nice to check the binutils support, but we don't
6077   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6078   # warn during gcc/ subconfigure; unless you're bootstrapping with
6079   # -flto it won't be needed until after installation anyway.
6080     case $target in
6081       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6082       *) if test x"$enable_lto" = x"yes"; then
6083         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6084         fi
6085       ;;
6086     esac
6087   fi
6088   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6089   # Build it unless LTO was explicitly disabled.
6090   case $target in
6091     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6092     *) ;;
6093   esac
6094
6095 fi
6096
6097
6098 # Check whether --enable-linker-plugin-configure-flags was given.
6099 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6100   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6101 else
6102   extra_linker_plugin_configure_flags=
6103 fi
6104
6105
6106 # Check whether --enable-linker-plugin-flags was given.
6107 if test "${enable_linker_plugin_flags+set}" = set; then :
6108   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6109 else
6110   extra_linker_plugin_flags=
6111 fi
6112
6113
6114
6115
6116 # By default, C and C++ are the only stage 1 languages.
6117 stage1_languages=,c,
6118
6119 # Target libraries that we bootstrap.
6120 bootstrap_target_libs=,target-libgcc,
6121
6122 # Figure out what language subdirectories are present.
6123 # Look if the user specified --enable-languages="..."; if not, use
6124 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6125 # go away some day.
6126 # NB:  embedded tabs in this IF block -- do not untabify
6127 if test -d ${srcdir}/gcc; then
6128   if test x"${enable_languages+set}" != xset; then
6129     if test x"${LANGUAGES+set}" = xset; then
6130       enable_languages="${LANGUAGES}"
6131         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132     else
6133       enable_languages=all
6134     fi
6135   else
6136     if test x"${enable_languages}" = x ||
6137        test x"${enable_languages}" = xyes;
6138        then
6139       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6140       exit 1
6141     fi
6142   fi
6143   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6144
6145   # 'f95' is the old name for the 'fortran' language. We issue a warning
6146   # and make the substitution.
6147   case ,${enable_languages}, in
6148     *,f95,*)
6149       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6151       ;;
6152   esac
6153
6154   # If bootstrapping, C++ must be enabled.
6155   case ",$enable_languages,:$enable_bootstrap" in
6156     *,c++,*:*) ;;
6157     *:yes)
6158       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6159         enable_languages="${enable_languages},c++"
6160       else
6161         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6162       fi
6163       ;;
6164   esac
6165
6166   # First scan to see if an enabled language requires some other language.
6167   # We assume that a given config-lang.in will list all the language
6168   # front ends it requires, even if some are required indirectly.
6169   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6170     case ${lang_frag} in
6171       ..) ;;
6172       # The odd quoting in the next line works around
6173       # an apparent bug in bash 1.12 on linux.
6174       ${srcdir}/gcc/[*]/config-lang.in) ;;
6175       *)
6176         # From the config-lang.in, get $language, $lang_requires, and
6177         # $lang_requires_boot_languages.
6178         language=
6179         lang_requires=
6180         lang_requires_boot_languages=
6181         . ${lang_frag}
6182         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6183           case ,${enable_languages}, in
6184             *,$other,*) ;;
6185             *,all,*) ;;
6186             *,$language,*)
6187               echo " \`$other' language required by \`$language'; enabling" 1>&2
6188               enable_languages="${enable_languages},${other}"
6189               ;;
6190           esac
6191         done
6192         for other in ${lang_requires_boot_languages} ; do
6193           if test "$other" != "c"; then
6194             case ,${enable_stage1_languages}, in
6195               *,$other,*) ;;
6196               *,all,*) ;;
6197               *)
6198                 case ,${enable_languages}, in
6199                   *,$language,*)
6200                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6201                     enable_stage1_languages="$enable_stage1_languages,${other}"
6202                     ;;
6203                 esac
6204                 ;;
6205             esac
6206           fi
6207         done
6208         ;;
6209     esac
6210   done
6211
6212   new_enable_languages=,c,
6213
6214   # If LTO is enabled, add the LTO front end.
6215   if test "$enable_lto" = "yes" ; then
6216     case ,${enable_languages}, in
6217       *,lto,*) ;;
6218       *) enable_languages="${enable_languages},lto" ;;
6219     esac
6220     if test "${build_lto_plugin}" = "yes" ; then
6221       configdirs="$configdirs lto-plugin"
6222     fi
6223   fi
6224
6225   # If we're building an offloading compiler, add the LTO front end.
6226   if test x"$enable_as_accelerator_for" != x ; then
6227     case ,${enable_languages}, in
6228       *,lto,*) ;;
6229       *) enable_languages="${enable_languages},lto" ;;
6230     esac
6231   fi
6232
6233   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6234   potential_languages=,c,
6235
6236   enabled_target_libs=
6237   disabled_target_libs=
6238
6239   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6240     case ${lang_frag} in
6241       ..) ;;
6242       # The odd quoting in the next line works around
6243       # an apparent bug in bash 1.12 on linux.
6244       ${srcdir}/gcc/[*]/config-lang.in) ;;
6245       *)
6246         # From the config-lang.in, get $language, $target_libs,
6247         # $lang_dirs, $boot_language, and $build_by_default
6248         language=
6249         target_libs=
6250         lang_dirs=
6251         subdir_requires=
6252         boot_language=no
6253         build_by_default=yes
6254         . ${lang_frag}
6255         if test x${language} = x; then
6256           echo "${lang_frag} doesn't set \$language." 1>&2
6257           exit 1
6258         fi
6259
6260         if test "$language" = "c++"; then
6261           boot_language=yes
6262         fi
6263
6264         add_this_lang=no
6265         case ,${enable_languages}, in
6266           *,${language},*)
6267             # Language was explicitly selected; include it
6268             # unless it is C, which is enabled by default.
6269             if test "$language" != "c"; then
6270               add_this_lang=yes
6271             fi
6272             ;;
6273           *,all,*)
6274             # 'all' was selected, select it if it is a default language
6275             if test "$language" != "c"; then
6276               add_this_lang=${build_by_default}
6277             fi
6278             ;;
6279         esac
6280
6281         # Disable languages that need other directories if these aren't available.
6282         for i in $subdir_requires; do
6283           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6284           case ,${enable_languages}, in
6285             *,${language},*)
6286               # Specifically requested language; tell them.
6287               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6288               ;;
6289             *)
6290               # Silently disable.
6291               add_this_lang=unsupported
6292               ;;
6293           esac
6294         done
6295
6296         # Disable Ada if no preexisting GNAT is available.
6297         case ,${enable_languages},:${language}:${have_gnat} in
6298           *,${language},*:ada:no)
6299             # Specifically requested language; tell them.
6300             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6301             ;;
6302           *:ada:no)
6303             # Silently disable.
6304             add_this_lang=unsupported
6305             ;;
6306         esac
6307
6308         # Disable a language that is unsupported by the target.
6309         case " $unsupported_languages " in
6310           *" $language "*)
6311             add_this_lang=unsupported
6312             ;;
6313         esac
6314
6315         case $add_this_lang in
6316           unsupported)
6317             # Remove language-dependent dirs.
6318             disabled_target_libs="$disabled_target_libs $target_libs"
6319             noconfigdirs="$noconfigdirs $lang_dirs"
6320             ;;
6321           no)
6322             # Remove language-dependent dirs; still show language as supported.
6323             disabled_target_libs="$disabled_target_libs $target_libs"
6324             noconfigdirs="$noconfigdirs $lang_dirs"
6325             potential_languages="${potential_languages}${language},"
6326             ;;
6327           yes)
6328             new_enable_languages="${new_enable_languages}${language},"
6329             potential_languages="${potential_languages}${language},"
6330             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6331             enabled_target_libs="$enabled_target_libs $target_libs"
6332             case "${boot_language}:,$enable_stage1_languages," in
6333               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6334                 # Add to (comma-separated) list of stage 1 languages.
6335                 case ",$stage1_languages," in
6336                   *,$language,* | ,yes, | ,all,) ;;
6337                   *) stage1_languages="${stage1_languages}${language}," ;;
6338                 esac
6339                 # We need to bootstrap any supporting libraries.
6340                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6341                 ;;
6342             esac
6343             ;;
6344         esac
6345         ;;
6346     esac
6347   done
6348
6349   # Add target libraries which are only needed for disabled languages
6350   # to noconfigdirs.
6351   if test -n "$disabled_target_libs"; then
6352     for dir in $disabled_target_libs; do
6353       case " $enabled_target_libs " in
6354       *" ${dir} "*) ;;
6355       *) noconfigdirs="$noconfigdirs $dir" ;;
6356       esac
6357     done
6358   fi
6359
6360   # Check whether --enable-stage1-languages was given.
6361 if test "${enable_stage1_languages+set}" = set; then :
6362   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6363     ,no,|,,)
6364       # Set it to something that will have no effect in the loop below
6365       enable_stage1_languages=c ;;
6366     ,yes,)
6367       enable_stage1_languages=`echo $new_enable_languages | \
6368         sed -e "s/^,//" -e "s/,$//" ` ;;
6369     *,all,*)
6370       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6371         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6372   esac
6373
6374   # Add "good" languages from enable_stage1_languages to stage1_languages,
6375   # while "bad" languages go in missing_languages.  Leave no duplicates.
6376   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6377     case $potential_languages in
6378       *,$i,*)
6379         case $stage1_languages in
6380           *,$i,*) ;;
6381           *) stage1_languages="$stage1_languages$i," ;;
6382         esac ;;
6383       *)
6384         case $missing_languages in
6385           *,$i,*) ;;
6386           *) missing_languages="$missing_languages$i," ;;
6387         esac ;;
6388      esac
6389   done
6390 fi
6391
6392
6393   # Remove leading/trailing commas that were added for simplicity
6394   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6395   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6396   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6397   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6398
6399   if test "x$missing_languages" != x; then
6400     as_fn_error "
6401 The following requested languages could not be built: ${missing_languages}
6402 Supported languages are: ${potential_languages}" "$LINENO" 5
6403   fi
6404   if test "x$new_enable_languages" != "x$enable_languages"; then
6405     echo The following languages will be built: ${new_enable_languages}
6406     enable_languages="$new_enable_languages"
6407   fi
6408
6409
6410   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6411 fi
6412
6413 # Handle --disable-<component> generically.
6414 for dir in $configdirs $build_configdirs $target_configdirs ; do
6415   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6416   varname=`echo $dirname | sed -e s/+/_/g`
6417   if eval test x\${enable_${varname}} "=" xno ; then
6418     noconfigdirs="$noconfigdirs $dir"
6419   fi
6420 done
6421
6422 # Check for Boehm's garbage collector
6423 # Check whether --enable-objc-gc was given.
6424 if test "${enable_objc_gc+set}" = set; then :
6425   enableval=$enable_objc_gc;
6426 fi
6427
6428
6429 # Check whether --with-target-bdw-gc was given.
6430 if test "${with_target_bdw_gc+set}" = set; then :
6431   withval=$with_target_bdw_gc;
6432 fi
6433
6434
6435 # Check whether --with-target-bdw-gc-include was given.
6436 if test "${with_target_bdw_gc_include+set}" = set; then :
6437   withval=$with_target_bdw_gc_include;
6438 fi
6439
6440
6441 # Check whether --with-target-bdw-gc-lib was given.
6442 if test "${with_target_bdw_gc_lib+set}" = set; then :
6443   withval=$with_target_bdw_gc_lib;
6444 fi
6445
6446
6447 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6449 $as_echo_n "checking for bdw garbage collector... " >&6; }
6450   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6452 $as_echo "using bdw-gc in default locations" >&6; }
6453   else
6454         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6455       as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6456     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6457       as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6458     else
6459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6460 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6461     fi
6462   fi
6463 esac
6464
6465 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6466 case ,${enable_languages}, in
6467   *,c++,*)
6468     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6469     case "${noconfigdirs}" in
6470       *target-libstdc++-v3*)
6471         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6472         ;;
6473       *) ;;
6474     esac
6475     ;;
6476   *)
6477     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6478     ;;
6479 esac
6480
6481 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6482 # $build_configdirs and $target_configdirs.
6483 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6484
6485 notsupp=""
6486 for dir in . $skipdirs $noconfigdirs ; do
6487   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6488   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6489     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6490     if test -r $srcdir/$dirname/configure ; then
6491       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492         true
6493       else
6494         notsupp="$notsupp $dir"
6495       fi
6496     fi
6497   fi
6498   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6500     if test -r $srcdir/$dirname/configure ; then
6501       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6502         true
6503       else
6504         notsupp="$notsupp $dir"
6505       fi
6506     fi
6507   fi
6508   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6510     if test -r $srcdir/$dirname/configure ; then
6511       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6512         true
6513       else
6514         notsupp="$notsupp $dir"
6515       fi
6516     fi
6517   fi
6518 done
6519
6520 # Quietly strip out all directories which aren't configurable in this tree.
6521 # This relies on all configurable subdirectories being autoconfiscated, which
6522 # is now the case.
6523 build_configdirs_all="$build_configdirs"
6524 build_configdirs=
6525 for i in ${build_configdirs_all} ; do
6526   j=`echo $i | sed -e s/build-//g`
6527   if test -f ${srcdir}/$j/configure ; then
6528     build_configdirs="${build_configdirs} $i"
6529   fi
6530 done
6531
6532 configdirs_all="$configdirs"
6533 configdirs=
6534 for i in ${configdirs_all} ; do
6535   if test -f ${srcdir}/$i/configure ; then
6536     configdirs="${configdirs} $i"
6537   fi
6538 done
6539
6540 target_configdirs_all="$target_configdirs"
6541 target_configdirs=
6542 for i in ${target_configdirs_all} ; do
6543   j=`echo $i | sed -e s/target-//g`
6544   if test -f ${srcdir}/$j/configure ; then
6545     target_configdirs="${target_configdirs} $i"
6546   fi
6547 done
6548
6549 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6550 # so we have to add it after the preceding checks.
6551 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6552 then
6553   case " $configdirs " in
6554     *" libiberty "*)
6555       # If we can build libiberty, we can also build libiberty-linker-plugin.
6556       configdirs="$configdirs libiberty-linker-plugin"
6557       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6558         --with-libiberty=../libiberty-linker-plugin";;
6559     *)
6560       as_fn_error "libiberty missing" "$LINENO" 5;;
6561   esac
6562 fi
6563
6564 # Sometimes we have special requirements for the host libiberty.
6565 extra_host_libiberty_configure_flags=
6566 extra_host_zlib_configure_flags=
6567 case " $configdirs " in
6568   *" lto-plugin "* | *" libcc1 "*)
6569     # When these are to be built as shared libraries, the same applies to
6570     # libiberty.
6571     extra_host_libiberty_configure_flags=--enable-shared
6572     ;;
6573   *" bfd "*)
6574     # When bfd is to be built as a shared library, the same applies to
6575     # zlib.
6576     if test "$enable_shared" = "yes"; then
6577       extra_host_zlib_configure_flags=--enable-host-shared
6578     fi
6579     ;;
6580 esac
6581
6582
6583
6584 # Produce a warning message for the subdirs we can't configure.
6585 # This isn't especially interesting in the Cygnus tree, but in the individual
6586 # FSF releases, it's important to let people know when their machine isn't
6587 # supported by the one or two programs in a package.
6588
6589 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6590   # If $appdirs is non-empty, at least one of those directories must still
6591   # be configured, or we error out.  (E.g., if the gas release supports a
6592   # specified target in some subdirs but not the gas subdir, we shouldn't
6593   # pretend that all is well.)
6594   if test -n "$appdirs" ; then
6595     for dir in $appdirs ; do
6596       if test -r $dir/Makefile.in ; then
6597         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598           appdirs=""
6599           break
6600         fi
6601         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6602           appdirs=""
6603           break
6604         fi
6605       fi
6606     done
6607     if test -n "$appdirs" ; then
6608       echo "*** This configuration is not supported by this package." 1>&2
6609       exit 1
6610     fi
6611   fi
6612   # Okay, some application will build, or we don't care to check.  Still
6613   # notify of subdirs not getting built.
6614   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6615   echo "    ${notsupp}" 1>&2
6616   echo "    (Any other directories should still work fine.)" 1>&2
6617 fi
6618
6619 case "$host" in
6620   *msdosdjgpp*)
6621     enable_gdbtk=no ;;
6622 esac
6623
6624 # To find our prefix, in gcc_cv_tool_prefix.
6625
6626 # The user is always right.
6627 if test "${PATH_SEPARATOR+set}" != set; then
6628   echo "#! /bin/sh" >conf$$.sh
6629   echo  "exit 0"   >>conf$$.sh
6630   chmod +x conf$$.sh
6631   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6632     PATH_SEPARATOR=';'
6633   else
6634     PATH_SEPARATOR=:
6635   fi
6636   rm -f conf$$.sh
6637 fi
6638
6639
6640   get_gcc_base_ver="cat"
6641
6642 # Check whether --with-gcc-major-version-only was given.
6643 if test "${with_gcc_major_version_only+set}" = set; then :
6644   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6645         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6646       fi
6647
6648 fi
6649
6650
6651
6652
6653
6654
6655 if test "x$exec_prefix" = xNONE; then
6656         if test "x$prefix" = xNONE; then
6657                 gcc_cv_tool_prefix=$ac_default_prefix
6658         else
6659                 gcc_cv_tool_prefix=$prefix
6660         fi
6661 else
6662         gcc_cv_tool_prefix=$exec_prefix
6663 fi
6664
6665 # If there is no compiler in the tree, use the PATH only.  In any
6666 # case, if there is no compiler in the tree nobody should use
6667 # AS_FOR_TARGET and LD_FOR_TARGET.
6668 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6669     if test x$with_gcc_major_version_only = xyes ; then
6670                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6671             else
6672         gcc_version=`cat $srcdir/gcc/BASE-VER`
6673     fi
6674     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6675     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6676     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6677     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6678     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6679     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6680 else
6681     gcc_cv_tool_dirs=
6682 fi
6683
6684 if test x$build = x$target && test -n "$md_exec_prefix"; then
6685         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6686 fi
6687
6688
6689
6690 copy_dirs=
6691
6692
6693 # Check whether --with-build-sysroot was given.
6694 if test "${with_build_sysroot+set}" = set; then :
6695   withval=$with_build_sysroot; if test x"$withval" != x ; then
6696      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6697    fi
6698 else
6699   SYSROOT_CFLAGS_FOR_TARGET=
6700 fi
6701
6702
6703
6704
6705 # Check whether --with-debug-prefix-map was given.
6706 if test "${with_debug_prefix_map+set}" = set; then :
6707   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6708      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6709      for debug_map in $withval; do
6710        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6711      done
6712    fi
6713 else
6714   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6715 fi
6716
6717
6718
6719 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6720 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6721 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6722 # We want to ensure that TARGET libraries (which we know are built with
6723 # gcc) are built with "-O2 -g", so include those options when setting
6724 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6725 if test "x$CFLAGS_FOR_TARGET" = x; then
6726   if test "x${is_cross_compiler}" = xyes; then
6727     CFLAGS_FOR_TARGET="-g -O2"
6728   else
6729     CFLAGS_FOR_TARGET=$CFLAGS
6730     case " $CFLAGS " in
6731       *" -O2 "*) ;;
6732       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6733     esac
6734     case " $CFLAGS " in
6735       *" -g "* | *" -g3 "*) ;;
6736       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6737     esac
6738   fi
6739 fi
6740
6741
6742 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6743   if test "x${is_cross_compiler}" = xyes; then
6744     CXXFLAGS_FOR_TARGET="-g -O2"
6745   else
6746     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6747     case " $CXXFLAGS " in
6748       *" -O2 "*) ;;
6749       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6750     esac
6751     case " $CXXFLAGS " in
6752       *" -g "* | *" -g3 "*) ;;
6753       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6754     esac
6755   fi
6756 fi
6757
6758
6759
6760
6761 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6762 # the named directory are copied to $(tooldir)/sys-include.
6763 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6764   if test x${is_cross_compiler} = xno ; then
6765     echo 1>&2 '***' --with-headers is only supported when cross compiling
6766     exit 1
6767   fi
6768   if test x"${with_headers}" != xyes ; then
6769     x=${gcc_cv_tool_prefix}
6770     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6771   fi
6772 fi
6773
6774 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6775 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6776 # are permitted.
6777 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6778   if test x${is_cross_compiler} = xno ; then
6779     echo 1>&2 '***' --with-libs is only supported when cross compiling
6780     exit 1
6781   fi
6782   if test x"${with_libs}" != xyes ; then
6783     # Copy the libraries in reverse order, so that files in the first named
6784     # library override files in subsequent libraries.
6785     x=${gcc_cv_tool_prefix}
6786     for l in ${with_libs}; do
6787       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6788     done
6789   fi
6790 fi
6791
6792 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6793 #
6794 # This is done by determining whether or not the appropriate directory
6795 # is available, and by checking whether or not specific configurations
6796 # have requested that this magic not happen.
6797 #
6798 # The command line options always override the explicit settings in
6799 # configure.ac, and the settings in configure.ac override this magic.
6800 #
6801 # If the default for a toolchain is to use GNU as and ld, and you don't
6802 # want to do that, then you should use the --without-gnu-as and
6803 # --without-gnu-ld options for the configure script.  Similarly, if
6804 # the default is to use the included zlib and you don't want to do that,
6805 # you should use the --with-system-zlib option for the configure script.
6806
6807 if test x${use_gnu_as} = x &&
6808    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6809   with_gnu_as=yes
6810   extra_host_args="$extra_host_args --with-gnu-as"
6811 fi
6812
6813 if test x${use_gnu_ld} = x &&
6814    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6815   with_gnu_ld=yes
6816   extra_host_args="$extra_host_args --with-gnu-ld"
6817 fi
6818
6819 if test x${use_included_zlib} = x &&
6820    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6821   :
6822 else
6823   with_system_zlib=yes
6824   extra_host_args="$extra_host_args --with-system-zlib"
6825 fi
6826
6827 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6828 # can detect this case.
6829
6830 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6831   with_newlib=yes
6832   extra_host_args="$extra_host_args --with-newlib"
6833 fi
6834
6835 # Handle ${copy_dirs}
6836 set fnord ${copy_dirs}
6837 shift
6838 while test $# != 0 ; do
6839   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6840     :
6841   else
6842     echo Copying $1 to $2
6843
6844     # Use the install script to create the directory and all required
6845     # parent directories.
6846     if test -d $2 ; then
6847       :
6848     else
6849       echo >config.temp
6850       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6851     fi
6852
6853     # Copy the directory, assuming we have tar.
6854     # FIXME: Should we use B in the second tar?  Not all systems support it.
6855     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6856
6857     # It is the responsibility of the user to correctly adjust all
6858     # symlinks.  If somebody can figure out how to handle them correctly
6859     # here, feel free to add the code.
6860
6861     echo $1 > $2/COPIED
6862   fi
6863   shift; shift
6864 done
6865
6866 # Determine a target-dependent exec_prefix that the installed
6867 # gcc will search in.  Keep this list sorted by triplet, with
6868 # the *-*-osname triplets last.
6869 md_exec_prefix=
6870 case "${target}" in
6871   i[34567]86-pc-msdosdjgpp*)
6872     md_exec_prefix=/dev/env/DJDIR/bin
6873     ;;
6874   *-*-hpux* | \
6875   *-*-nto-qnx* | \
6876   *-*-solaris2*)
6877     md_exec_prefix=/usr/ccs/bin
6878     ;;
6879 esac
6880
6881 extra_arflags_for_target=
6882 extra_nmflags_for_target=
6883 extra_ranlibflags_for_target=
6884 target_makefile_frag=/dev/null
6885 case "${target}" in
6886   spu-*-*)
6887     target_makefile_frag="config/mt-spu"
6888     ;;
6889   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6890     target_makefile_frag="config/mt-sde"
6891     ;;
6892   mipsisa*-*-elfoabi*)
6893     target_makefile_frag="config/mt-mips-elfoabi"
6894     ;;
6895   mips*-*-*linux* | mips*-*-gnu*)
6896     target_makefile_frag="config/mt-mips-gnu"
6897     ;;
6898   nios2-*-elf*)
6899     target_makefile_frag="config/mt-nios2-elf"
6900     ;;
6901   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6902     target_makefile_frag="config/mt-gnu"
6903     ;;
6904   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6905     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6906     # commands to handle both 32-bit and 64-bit objects.  These flags are
6907     # harmless if we're using GNU nm or ar.
6908     extra_arflags_for_target=" -X32_64"
6909     extra_nmflags_for_target=" -B -X32_64"
6910     ;;
6911 esac
6912
6913 alphaieee_frag=/dev/null
6914 case $target in
6915   alpha*-*-*)
6916     # This just makes sure to use the -mieee option to build target libs.
6917     # This should probably be set individually by each library.
6918     alphaieee_frag="config/mt-alphaieee"
6919     ;;
6920 esac
6921
6922 # If --enable-target-optspace always use -Os instead of -O2 to build
6923 # the target libraries, similarly if it is not specified, use -Os
6924 # on selected platforms.
6925 ospace_frag=/dev/null
6926 case "${enable_target_optspace}:${target}" in
6927   yes:*)
6928     ospace_frag="config/mt-ospace"
6929     ;;
6930   :d30v-*)
6931     ospace_frag="config/mt-d30v"
6932     ;;
6933   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6934     ospace_frag="config/mt-ospace"
6935     ;;
6936   no:* | :*)
6937     ;;
6938   *)
6939     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6940     ;;
6941 esac
6942
6943 # Some systems (e.g., one of the i386-aix systems the gas testers are
6944 # using) don't handle "\$" correctly, so don't use it here.
6945 tooldir='${exec_prefix}'/${target_noncanonical}
6946 build_tooldir=${tooldir}
6947
6948 # Create a .gdbinit file which runs the one in srcdir
6949 # and tells GDB to look there for source files.
6950
6951 if test -r ${srcdir}/.gdbinit ; then
6952   case ${srcdir} in
6953     .) ;;
6954     *) cat > ./.gdbinit <<EOF
6955 # ${NO_EDIT}
6956 dir ${srcdir}
6957 dir .
6958 source ${srcdir}/.gdbinit
6959 EOF
6960     ;;
6961   esac
6962 fi
6963
6964 # Make sure that the compiler is able to generate an executable.  If it
6965 # can't, we are probably in trouble.  We don't care whether we can run the
6966 # executable--we might be using a cross compiler--we only care whether it
6967 # can be created.  At this point the main configure script has set CC.
6968 we_are_ok=no
6969 echo "int main () { return 0; }" > conftest.c
6970 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6971 if test $? = 0 ; then
6972   if test -s conftest || test -s conftest.exe ; then
6973     we_are_ok=yes
6974   fi
6975 fi
6976 case $we_are_ok in
6977   no)
6978     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6979     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6980     rm -f conftest*
6981     exit 1
6982     ;;
6983 esac
6984 rm -f conftest*
6985
6986 # Decide which environment variable is used to find dynamic libraries.
6987 case "${host}" in
6988   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6989   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6990   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6991   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6992 esac
6993
6994 # On systems where the dynamic library environment variable is PATH,
6995 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6996 # built executables to PATH.
6997 if test "$RPATH_ENVVAR" = PATH; then
6998   GCC_SHLIB_SUBDIR=/shlib
6999 else
7000   GCC_SHLIB_SUBDIR=
7001 fi
7002
7003 # Adjust the toplevel makefile according to whether bootstrap was selected.
7004 case $enable_bootstrap in
7005   yes)
7006     bootstrap_suffix=bootstrap
7007     BUILD_CONFIG=bootstrap-debug
7008     ;;
7009   no)
7010     bootstrap_suffix=no-bootstrap
7011     BUILD_CONFIG=
7012     ;;
7013 esac
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7017
7018
7019 # Check whether --with-build-config was given.
7020 if test "${with_build_config+set}" = set; then :
7021   withval=$with_build_config; case $with_build_config in
7022    yes) with_build_config= ;;
7023    no) with_build_config= BUILD_CONFIG= ;;
7024    esac
7025 fi
7026
7027
7028 if test "x${with_build_config}" != x; then
7029   BUILD_CONFIG=$with_build_config
7030 else
7031   case $BUILD_CONFIG in
7032   bootstrap-debug)
7033     if echo "int f (void) { return 0; }" > conftest.c &&
7034        ${CC} -c conftest.c &&
7035        mv conftest.o conftest.o.g0 &&
7036        ${CC} -c -g conftest.c &&
7037        mv conftest.o conftest.o.g &&
7038        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7039       :
7040     else
7041       BUILD_CONFIG=
7042     fi
7043     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7044     ;;
7045   esac
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048 $as_echo "$BUILD_CONFIG" >&6; }
7049
7050
7051 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7053 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7054 # Check whether --enable-vtable-verify was given.
7055 if test "${enable_vtable_verify+set}" = set; then :
7056   enableval=$enable_vtable_verify; case "$enableval" in
7057  yes) enable_vtable_verify=yes ;;
7058  no)  enable_vtable_verify=no ;;
7059  *)   enable_vtable_verify=no;;
7060  esac
7061 else
7062   enable_vtable_verify=no
7063 fi
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7066 $as_echo "$enable_vtable_verify" >&6; }
7067
7068 # Record target_configdirs and the configure arguments for target and
7069 # build configuration in Makefile.
7070 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7071 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7072 bootstrap_fixincludes=no
7073
7074 # If we are building libgomp, bootstrap it.
7075 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7076   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7077 fi
7078
7079 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7080 # or bootstrap-ubsan, bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7082   case "$BUILD_CONFIG" in
7083     *bootstrap-asan* | *bootstrap-ubsan* )
7084       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7085       bootstrap_fixincludes=yes
7086       ;;
7087   esac
7088 fi
7089
7090 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7091 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7092    test "$enable_vtable_verify" != no; then
7093   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7094 fi
7095
7096 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7097 # bootstrap it.
7098 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7099   case "$BUILD_CONFIG" in
7100     *bootstrap-mpx* )
7101       bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7102       ;;
7103   esac
7104 fi
7105
7106 # Determine whether gdb needs tk/tcl or not.
7107 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7108 # and in that case we want gdb to be built without tk.  Ugh!
7109 # In fact I believe gdb is the *only* package directly dependent on tk,
7110 # so we should be able to put the 'maybe's in unconditionally and
7111 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7112 # 100% sure that that's safe though.
7113
7114 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7115 case "$enable_gdbtk" in
7116   no)
7117     GDB_TK="" ;;
7118   yes)
7119     GDB_TK="${gdb_tk}" ;;
7120   *)
7121     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7122     # distro.  Eventually someone will fix this and move Insight, nee
7123     # gdbtk to a separate directory.
7124     if test -d ${srcdir}/gdb/gdbtk ; then
7125       GDB_TK="${gdb_tk}"
7126     else
7127       GDB_TK=""
7128     fi
7129     ;;
7130 esac
7131 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7132 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7133
7134 # Strip out unwanted targets.
7135
7136 # While at that, we remove Makefiles if we were started for recursive
7137 # configuration, so that the top-level Makefile reconfigures them,
7138 # like we used to do when configure itself was recursive.
7139
7140 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7141 # but now we're fixing up the Makefile ourselves with the additional
7142 # commands passed to AC_CONFIG_FILES.  Use separate variables
7143 # extrasub-{build,host,target} not because there is any reason to split
7144 # the substitutions up that way, but only to remain below the limit of
7145 # 99 commands in a script, for HP-UX sed.
7146 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7147
7148 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7149   yes:yes:*\ gold\ *:*,c++,*) ;;
7150   yes:yes:*\ gold\ *:*)
7151     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7152     ;;
7153 esac
7154
7155 extrasub_build=
7156 for module in ${build_configdirs} ; do
7157   if test -z "${no_recursion}" \
7158      && test -f ${build_subdir}/${module}/Makefile; then
7159     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160     rm -f ${build_subdir}/${module}/Makefile
7161   fi
7162   extrasub_build="$extrasub_build
7163 /^@if build-$module\$/d
7164 /^@endif build-$module\$/d
7165 /^@if build-$module-$bootstrap_suffix\$/d
7166 /^@endif build-$module-$bootstrap_suffix\$/d"
7167 done
7168 extrasub_host=
7169 for module in ${configdirs} ; do
7170   if test -z "${no_recursion}"; then
7171     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7172       if test -f ${file}; then
7173         echo 1>&2 "*** removing ${file} to force reconfigure"
7174         rm -f ${file}
7175       fi
7176     done
7177   fi
7178   case ${module},${bootstrap_fixincludes} in
7179     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7180     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7181   esac
7182   extrasub_host="$extrasub_host
7183 /^@if $module\$/d
7184 /^@endif $module\$/d
7185 /^@if $module-$host_bootstrap_suffix\$/d
7186 /^@endif $module-$host_bootstrap_suffix\$/d"
7187 done
7188 extrasub_target=
7189 for module in ${target_configdirs} ; do
7190   if test -z "${no_recursion}" \
7191      && test -f ${target_subdir}/${module}/Makefile; then
7192     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193     rm -f ${target_subdir}/${module}/Makefile
7194   fi
7195
7196   # We only bootstrap target libraries listed in bootstrap_target_libs.
7197   case $bootstrap_target_libs in
7198     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199     *) target_bootstrap_suffix=no-bootstrap ;;
7200   esac
7201
7202   extrasub_target="$extrasub_target
7203 /^@if target-$module\$/d
7204 /^@endif target-$module\$/d
7205 /^@if target-$module-$target_bootstrap_suffix\$/d
7206 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7207 done
7208
7209 # Do the final fixup along with target modules.
7210 extrasub_target="$extrasub_target
7211 /^@if /,/^@endif /d"
7212
7213 # Create the serialization dependencies.  This uses a temporary file.
7214
7215 # Check whether --enable-serial-configure was given.
7216 if test "${enable_serial_configure+set}" = set; then :
7217   enableval=$enable_serial_configure;
7218 fi
7219
7220
7221 case ${enable_serial_configure} in
7222   yes)
7223     enable_serial_build_configure=yes
7224     enable_serial_host_configure=yes
7225     enable_serial_target_configure=yes
7226     ;;
7227 esac
7228
7229 # These force 'configure's to be done one at a time, to avoid problems
7230 # with contention over a shared config.cache.
7231 rm -f serdep.tmp
7232 echo '# serdep.tmp' > serdep.tmp
7233 olditem=
7234 test "x${enable_serial_build_configure}" = xyes &&
7235 for item in ${build_configdirs} ; do
7236   case ${olditem} in
7237     "") ;;
7238     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7239   esac
7240   olditem=${item}
7241 done
7242 olditem=
7243 test "x${enable_serial_host_configure}" = xyes &&
7244 for item in ${configdirs} ; do
7245   case ${olditem} in
7246     "") ;;
7247     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7248   esac
7249   olditem=${item}
7250 done
7251 olditem=
7252 test "x${enable_serial_target_configure}" = xyes &&
7253 for item in ${target_configdirs} ; do
7254   case ${olditem} in
7255     "") ;;
7256     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7257   esac
7258   olditem=${item}
7259 done
7260 serialization_dependencies=serdep.tmp
7261
7262
7263 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7264 # target, nonopt, and variable assignments.  These are the ones we
7265 # might not want to pass down to subconfigures.  The exception being
7266 # --cache-file=/dev/null, which is used to turn off the use of cache
7267 # files altogether, and which should be passed on to subconfigures.
7268 # Also strip program-prefix, program-suffix, and program-transform-name,
7269 # so that we can pass down a consistent program-transform-name.
7270 baseargs=
7271 tbaseargs=
7272 keep_next=no
7273 skip_next=no
7274 eval "set -- $ac_configure_args"
7275 for ac_arg
7276 do
7277   if test X"$skip_next" = X"yes"; then
7278     skip_next=no
7279     continue
7280   fi
7281   if test X"$keep_next" = X"yes"; then
7282     case $ac_arg in
7283       *\'*)
7284         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285     esac
7286     baseargs="$baseargs '$ac_arg'"
7287     tbaseargs="$tbaseargs '$ac_arg'"
7288     keep_next=no
7289     continue
7290   fi
7291
7292   # Handle separated arguments.  Based on the logic generated by
7293   # autoconf 2.59.
7294   case $ac_arg in
7295     *=* | --config-cache | -C | -disable-* | --disable-* \
7296       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7297       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7298       | -with-* | --with-* | -without-* | --without-* | --x)
7299       separate_arg=no
7300       ;;
7301     -*)
7302       separate_arg=yes
7303       ;;
7304     *)
7305       separate_arg=no
7306       ;;
7307   esac
7308
7309   skip_targ=no
7310   case $ac_arg in
7311
7312   --with-* | --without-*)
7313     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7314
7315     case $libopt in
7316     *[-_]include)
7317       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7318       ;;
7319     *[-_]lib)
7320       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7321       ;;
7322     *)
7323       lib=$libopt
7324       ;;
7325     esac
7326
7327
7328     case $lib in
7329     mpc | mpfr | gmp | isl)
7330       # If we're processing --with-$lib, --with-$lib-include or
7331       # --with-$lib-lib, for one of the libs above, and target is
7332       # different from host, don't pass the current argument to any
7333       # target library's configure.
7334       if test x$is_cross_compiler = xyes; then
7335         skip_targ=yes
7336       fi
7337       ;;
7338     esac
7339     ;;
7340   esac
7341
7342   case "$ac_arg" in
7343     --cache-file=/dev/null | \
7344     -cache-file=/dev/null )
7345       # Handled here to avoid the test to skip args below.
7346       baseargs="$baseargs '$ac_arg'"
7347       tbaseargs="$tbaseargs '$ac_arg'"
7348       # Assert: $separate_arg should always be no.
7349       keep_next=$separate_arg
7350       ;;
7351     --no*)
7352       continue
7353       ;;
7354     --c* | \
7355     --sr* | \
7356     --ho* | \
7357     --bu* | \
7358     --t* | \
7359     --program-* | \
7360     -cache_file* | \
7361     -srcdir* | \
7362     -host* | \
7363     -build* | \
7364     -target* | \
7365     -program-prefix* | \
7366     -program-suffix* | \
7367     -program-transform-name* )
7368       skip_next=$separate_arg
7369       continue
7370       ;;
7371     -*)
7372       # An option.  Add it.
7373       case $ac_arg in
7374         *\'*)
7375           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376       esac
7377       baseargs="$baseargs '$ac_arg'"
7378       if test X"$skip_targ" = Xno; then
7379         tbaseargs="$tbaseargs '$ac_arg'"
7380       fi
7381       keep_next=$separate_arg
7382       ;;
7383     *)
7384       # Either a variable assignment, or a nonopt (triplet).  Don't
7385       # pass it down; let the Makefile handle this.
7386       continue
7387       ;;
7388   esac
7389 done
7390 # Remove the initial space we just introduced and, as these will be
7391 # expanded by make, quote '$'.
7392 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7393
7394 # Add in --program-transform-name, after --program-prefix and
7395 # --program-suffix have been applied to it.  Autoconf has already
7396 # doubled dollar signs and backslashes in program_transform_name; we want
7397 # the backslashes un-doubled, and then the entire thing wrapped in single
7398 # quotes, because this will be expanded first by make and then by the shell.
7399 # Also, because we want to override the logic in subdir configure scripts to
7400 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7401 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7402 ${program_transform_name}
7403 EOF_SED
7404 gcc_transform_name=`cat conftestsed.out`
7405 rm -f conftestsed.out
7406 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7407 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7408 if test "$silent" = yes; then
7409   baseargs="$baseargs --silent"
7410   tbaseargs="$tbaseargs --silent"
7411 fi
7412 baseargs="$baseargs --disable-option-checking"
7413 tbaseargs="$tbaseargs --disable-option-checking"
7414
7415 # Record and document user additions to sub configure arguments.
7416
7417
7418
7419
7420 # For the build-side libraries, we just need to pretend we're native,
7421 # and not use the same cache file.  Multilibs are neither needed nor
7422 # desired.  We can't even use the same cache file for all build-side
7423 # libraries, as they're compiled differently; some with C, some with
7424 # C++ or with different feature-enabling options.
7425 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7426
7427 # For host modules, accept cache file option, or specification as blank.
7428 case "${cache_file}" in
7429 "") # empty
7430   cache_file_option="" ;;
7431 /* | [A-Za-z]:[\\/]* ) # absolute path
7432   cache_file_option="--cache-file=${cache_file}" ;;
7433 *) # relative path
7434   cache_file_option="--cache-file=../${cache_file}" ;;
7435 esac
7436
7437 # Host dirs don't like to share a cache file either, horribly enough.
7438 # This seems to be due to autoconf 2.5x stupidity.
7439 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7440
7441 target_configargs="$target_configargs ${tbaseargs}"
7442
7443 # Passing a --with-cross-host argument lets the target libraries know
7444 # whether they are being built with a cross-compiler or being built
7445 # native.  However, it would be better to use other mechanisms to make the
7446 # sorts of decisions they want to make on this basis.  Please consider
7447 # this option to be deprecated.  FIXME.
7448 if test x${is_cross_compiler} = xyes ; then
7449   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7450 fi
7451
7452 # Special user-friendly check for native x86_64-linux build, if
7453 # multilib is not explicitly enabled.
7454 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7455   x86_64-*linux*:yes:$build:$build:)
7456     # Make sure we have a development environment that handles 32-bit
7457     dev64=no
7458     echo "int main () { return 0; }" > conftest.c
7459     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7460     if test $? = 0 ; then
7461       if test -s conftest || test -s conftest.exe ; then
7462         dev64=yes
7463       fi
7464     fi
7465     rm -f conftest*
7466     if test x${dev64} != xyes ; then
7467       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
7468     fi
7469     ;;
7470 esac
7471
7472 # Default to --enable-multilib.
7473 if test x${enable_multilib} = x ; then
7474   target_configargs="--enable-multilib ${target_configargs}"
7475 fi
7476
7477 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7478 # changed from the earlier setting of with_newlib.
7479 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7480   target_configargs="--with-newlib ${target_configargs}"
7481 fi
7482
7483 # Different target subdirs use different values of certain variables
7484 # (notably CXX).  Worse, multilibs use *lots* of different values.
7485 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7486 # it doesn't automatically accept command-line overrides of them.
7487 # This means it's not safe for target subdirs to share a cache file,
7488 # which is disgusting, but there you have it.  Hopefully this can be
7489 # fixed in future.  It's still worthwhile to use a cache file for each
7490 # directory.  I think.
7491
7492 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7493 # We need to pass --target, as newer autoconf's requires consistency
7494 # for target_alias and gcc doesn't manage it consistently.
7495 target_configargs="--cache-file=./config.cache ${target_configargs}"
7496
7497 FLAGS_FOR_TARGET=
7498 case " $target_configdirs " in
7499  *" newlib "*)
7500   case " $target_configargs " in
7501   *" --with-newlib "*)
7502    case "$target" in
7503     *-cygwin*)
7504       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7505       ;;
7506    esac
7507
7508    # If we're not building GCC, don't discard standard headers.
7509    if test -d ${srcdir}/gcc; then
7510      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7511
7512      if test "${build}" != "${host}"; then
7513        # On Canadian crosses, CC_FOR_TARGET will have already been set
7514        # by `configure', so we won't have an opportunity to add -Bgcc/
7515        # to it.  This is right: we don't want to search that directory
7516        # for binaries, but we want the header files in there, so add
7517        # them explicitly.
7518        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7519
7520        # Someone might think of using the pre-installed headers on
7521        # Canadian crosses, in case the installed compiler is not fully
7522        # compatible with the compiler being built.  In this case, it
7523        # would be better to flag an error than risking having
7524        # incompatible object files being constructed.  We can't
7525        # guarantee that an error will be flagged, but let's hope the
7526        # compiler will do it, when presented with incompatible header
7527        # files.
7528      fi
7529    fi
7530
7531    case "${target}-${is_cross_compiler}" in
7532    i[3456789]86-*-linux*-no)
7533       # Here host == target, so we don't need to build gcc,
7534       # so we don't want to discard standard headers.
7535       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7536       ;;
7537    *)
7538       # If we're building newlib, use its generic headers last, but search
7539       # for any libc-related directories first (so make it the last -B
7540       # switch).
7541       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7542
7543       # If we're building libgloss, find the startup file, simulator library
7544       # and linker script.
7545       case " $target_configdirs " in
7546         *" libgloss "*)
7547         # Look for startup file, simulator library and maybe linker script.
7548         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7549         # Look for libnosys.a in case the target needs it.
7550         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7551         # Most targets have the linker script in the source directory.
7552         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7553         ;;
7554       esac
7555       ;;
7556    esac
7557    ;;
7558   esac
7559   ;;
7560 esac
7561
7562 case "$target" in
7563   x86_64-*mingw* | *-w64-mingw*)
7564   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7565   # however, use a symlink named 'mingw' in ${prefix} .
7566     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7567     ;;
7568   *-mingw*)
7569   # MinGW can't be handled as Cygwin above since it does not use newlib.
7570     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'
7571     ;;
7572 esac
7573
7574 # Allow the user to override the flags for
7575 # our build compiler if desired.
7576 if test x"${build}" = x"${host}" ; then
7577   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7578   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7579   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7580 fi
7581
7582 # On Canadian crosses, we'll be searching the right directories for
7583 # the previously-installed cross compiler, so don't bother to add
7584 # flags for directories within the install tree of the compiler
7585 # being built; programs in there won't even run.
7586 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7587   # Search for pre-installed headers if nothing else fits.
7588   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7589 fi
7590
7591 if test "x${use_gnu_ld}" = x &&
7592    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7593   # Arrange for us to find uninstalled linker scripts.
7594   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7595 fi
7596
7597 # Search for other target-specific linker scripts and such.
7598 case "${target}" in
7599   mep*)
7600     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7601     ;;
7602 esac
7603
7604 # Makefile fragments.
7605 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7606 do
7607   eval fragval=\$$frag
7608   if test $fragval != /dev/null; then
7609     eval $frag=${srcdir}/$fragval
7610   fi
7611 done
7612
7613
7614
7615
7616
7617 # Miscellanea: directories, flags, etc.
7618
7619
7620
7621
7622
7623
7624
7625
7626 # Build module lists & subconfigure args.
7627
7628
7629
7630 # Host module lists & subconfigure args.
7631
7632
7633
7634
7635 # Target module lists & subconfigure args.
7636
7637
7638
7639 # Build tools.
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656 # Generate default definitions for YACC, M4, LEX and other programs that run
7657 # on the build machine.  These are used if the Makefile can't locate these
7658 # programs in objdir.
7659 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7660
7661 for ac_prog in 'bison -y' byacc yacc
7662 do
7663   # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_YACC+set}" = set; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   if test -n "$YACC"; then
7671   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678     for ac_exec_ext in '' $ac_executable_extensions; do
7679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680     ac_cv_prog_YACC="$ac_prog"
7681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685   done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 YACC=$ac_cv_prog_YACC
7691 if test -n "$YACC"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7693 $as_echo "$YACC" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699
7700   test -n "$YACC" && break
7701 done
7702 test -n "$YACC" || YACC="$MISSING bison -y"
7703
7704 case " $build_configdirs " in
7705   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7706 esac
7707
7708 for ac_prog in bison
7709 do
7710   # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_BISON+set}" = set; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   if test -n "$BISON"; then
7718   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     for ac_exec_ext in '' $ac_executable_extensions; do
7726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727     ac_cv_prog_BISON="$ac_prog"
7728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732   done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 BISON=$ac_cv_prog_BISON
7738 if test -n "$BISON"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7740 $as_echo "$BISON" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747   test -n "$BISON" && break
7748 done
7749 test -n "$BISON" || BISON="$MISSING bison"
7750
7751 case " $build_configdirs " in
7752   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7753 esac
7754
7755 for ac_prog in gm4 gnum4 m4
7756 do
7757   # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_M4+set}" = set; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   if test -n "$M4"; then
7765   ac_cv_prog_M4="$M4" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774     ac_cv_prog_M4="$ac_prog"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 M4=$ac_cv_prog_M4
7785 if test -n "$M4"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7787 $as_echo "$M4" >&6; }
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794   test -n "$M4" && break
7795 done
7796 test -n "$M4" || M4="$MISSING m4"
7797
7798 case " $build_configdirs " in
7799   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7800 esac
7801
7802 for ac_prog in flex lex
7803 do
7804   # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_LEX+set}" = set; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   if test -n "$LEX"; then
7812   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819     for ac_exec_ext in '' $ac_executable_extensions; do
7820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821     ac_cv_prog_LEX="$ac_prog"
7822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826   done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 LEX=$ac_cv_prog_LEX
7832 if test -n "$LEX"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7834 $as_echo "$LEX" >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841   test -n "$LEX" && break
7842 done
7843 test -n "$LEX" || LEX="$MISSING flex"
7844
7845 case " $build_configdirs " in
7846   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7847   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7848 esac
7849
7850 for ac_prog in flex
7851 do
7852   # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_FLEX+set}" = set; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$FLEX"; then
7860   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869     ac_cv_prog_FLEX="$ac_prog"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 FLEX=$ac_cv_prog_FLEX
7880 if test -n "$FLEX"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7882 $as_echo "$FLEX" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889   test -n "$FLEX" && break
7890 done
7891 test -n "$FLEX" || FLEX="$MISSING flex"
7892
7893 case " $build_configdirs " in
7894   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7895 esac
7896
7897 for ac_prog in makeinfo
7898 do
7899   # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   if test -n "$MAKEINFO"; then
7907   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914     for ac_exec_ext in '' $ac_executable_extensions; do
7915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916     ac_cv_prog_MAKEINFO="$ac_prog"
7917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921   done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 MAKEINFO=$ac_cv_prog_MAKEINFO
7927 if test -n "$MAKEINFO"; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7929 $as_echo "$MAKEINFO" >&6; }
7930 else
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936   test -n "$MAKEINFO" && break
7937 done
7938 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7939
7940 case " $build_configdirs " in
7941   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7942   *)
7943
7944     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7945     # higher, else we use the "missing" dummy.
7946     if ${MAKEINFO} --version \
7947        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7948       :
7949     else
7950       MAKEINFO="$MISSING makeinfo"
7951     fi
7952     ;;
7953
7954 esac
7955
7956 # FIXME: expect and dejagnu may become build tools?
7957
7958 for ac_prog in expect
7959 do
7960   # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   if test -n "$EXPECT"; then
7968   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_exec_ext in '' $ac_executable_extensions; do
7976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977     ac_cv_prog_EXPECT="$ac_prog"
7978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982   done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 EXPECT=$ac_cv_prog_EXPECT
7988 if test -n "$EXPECT"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7990 $as_echo "$EXPECT" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997   test -n "$EXPECT" && break
7998 done
7999 test -n "$EXPECT" || EXPECT="expect"
8000
8001 case " $configdirs " in
8002   *" expect "*)
8003     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8004     ;;
8005 esac
8006
8007 for ac_prog in runtest
8008 do
8009   # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$RUNTEST"; then
8017   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_prog_RUNTEST="$ac_prog"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 RUNTEST=$ac_cv_prog_RUNTEST
8037 if test -n "$RUNTEST"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8039 $as_echo "$RUNTEST" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046   test -n "$RUNTEST" && break
8047 done
8048 test -n "$RUNTEST" || RUNTEST="runtest"
8049
8050 case " $configdirs " in
8051   *" dejagnu "*)
8052     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8053     ;;
8054 esac
8055
8056
8057 # Host tools.
8058 ncn_tool_prefix=
8059 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8060 ncn_target_tool_prefix=
8061 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8062
8063
8064
8065 if test -n "$AR"; then
8066   ac_cv_prog_AR=$AR
8067 elif test -n "$ac_cv_prog_AR"; then
8068   AR=$ac_cv_prog_AR
8069 fi
8070
8071 if test -n "$ac_cv_prog_AR"; then
8072   for ncn_progname in ar; do
8073     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8074 set dummy ${ncn_progname}; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_AR+set}" = set; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$AR"; then
8081   ac_cv_prog_AR="$AR" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090     ac_cv_prog_AR="${ncn_progname}"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 AR=$ac_cv_prog_AR
8101 if test -n "$AR"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8103 $as_echo "$AR" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110   done
8111 fi
8112
8113 for ncn_progname in ar; do
8114   if test -n "$ncn_tool_prefix"; then
8115     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8116 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_AR+set}" = set; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   if test -n "$AR"; then
8123   ac_cv_prog_AR="$AR" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 AR=$ac_cv_prog_AR
8143 if test -n "$AR"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8145 $as_echo "$AR" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152   fi
8153   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8154     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8155 set dummy ${ncn_progname}; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if test "${ac_cv_prog_AR+set}" = set; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   if test -n "$AR"; then
8162   ac_cv_prog_AR="$AR" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167   IFS=$as_save_IFS
8168   test -z "$as_dir" && as_dir=.
8169     for ac_exec_ext in '' $ac_executable_extensions; do
8170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171     ac_cv_prog_AR="${ncn_progname}"
8172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173     break 2
8174   fi
8175 done
8176   done
8177 IFS=$as_save_IFS
8178
8179 fi
8180 fi
8181 AR=$ac_cv_prog_AR
8182 if test -n "$AR"; then
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8184 $as_echo "$AR" >&6; }
8185 else
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8188 fi
8189
8190
8191   fi
8192   test -n "$ac_cv_prog_AR" && break
8193 done
8194
8195 if test -z "$ac_cv_prog_AR" ; then
8196   set dummy ar
8197   if test $build = $host ; then
8198     AR="$2"
8199   else
8200     AR="${ncn_tool_prefix}$2"
8201   fi
8202 fi
8203
8204
8205
8206 if test -n "$AS"; then
8207   ac_cv_prog_AS=$AS
8208 elif test -n "$ac_cv_prog_AS"; then
8209   AS=$ac_cv_prog_AS
8210 fi
8211
8212 if test -n "$ac_cv_prog_AS"; then
8213   for ncn_progname in as; do
8214     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_progname}; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_AS+set}" = set; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   if test -n "$AS"; then
8222   ac_cv_prog_AS="$AS" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229     for ac_exec_ext in '' $ac_executable_extensions; do
8230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231     ac_cv_prog_AS="${ncn_progname}"
8232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236   done
8237 IFS=$as_save_IFS
8238
8239 fi
8240 fi
8241 AS=$ac_cv_prog_AS
8242 if test -n "$AS"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8244 $as_echo "$AS" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251   done
8252 fi
8253
8254 for ncn_progname in as; do
8255   if test -n "$ncn_tool_prefix"; then
8256     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8257 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_AS+set}" = set; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$AS"; then
8264   ac_cv_prog_AS="$AS" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271     for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278   done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 AS=$ac_cv_prog_AS
8284 if test -n "$AS"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8286 $as_echo "$AS" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293   fi
8294   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8295     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8296 set dummy ${ncn_progname}; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if test "${ac_cv_prog_AS+set}" = set; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   if test -n "$AS"; then
8303   ac_cv_prog_AS="$AS" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308   IFS=$as_save_IFS
8309   test -z "$as_dir" && as_dir=.
8310     for ac_exec_ext in '' $ac_executable_extensions; do
8311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312     ac_cv_prog_AS="${ncn_progname}"
8313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314     break 2
8315   fi
8316 done
8317   done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 AS=$ac_cv_prog_AS
8323 if test -n "$AS"; then
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8325 $as_echo "$AS" >&6; }
8326 else
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332   fi
8333   test -n "$ac_cv_prog_AS" && break
8334 done
8335
8336 if test -z "$ac_cv_prog_AS" ; then
8337   set dummy as
8338   if test $build = $host ; then
8339     AS="$2"
8340   else
8341     AS="${ncn_tool_prefix}$2"
8342   fi
8343 fi
8344
8345
8346
8347 if test -n "$DLLTOOL"; then
8348   ac_cv_prog_DLLTOOL=$DLLTOOL
8349 elif test -n "$ac_cv_prog_DLLTOOL"; then
8350   DLLTOOL=$ac_cv_prog_DLLTOOL
8351 fi
8352
8353 if test -n "$ac_cv_prog_DLLTOOL"; then
8354   for ncn_progname in dlltool; do
8355     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8356 set dummy ${ncn_progname}; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   if test -n "$DLLTOOL"; then
8363   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370     for ac_exec_ext in '' $ac_executable_extensions; do
8371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372     ac_cv_prog_DLLTOOL="${ncn_progname}"
8373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377   done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 DLLTOOL=$ac_cv_prog_DLLTOOL
8383 if test -n "$DLLTOOL"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8385 $as_echo "$DLLTOOL" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392   done
8393 fi
8394
8395 for ncn_progname in dlltool; do
8396   if test -n "$ncn_tool_prefix"; then
8397     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$DLLTOOL"; then
8405   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 DLLTOOL=$ac_cv_prog_DLLTOOL
8425 if test -n "$DLLTOOL"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8427 $as_echo "$DLLTOOL" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434   fi
8435   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8436     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437 set dummy ${ncn_progname}; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   if test -n "$DLLTOOL"; then
8444   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449   IFS=$as_save_IFS
8450   test -z "$as_dir" && as_dir=.
8451     for ac_exec_ext in '' $ac_executable_extensions; do
8452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453     ac_cv_prog_DLLTOOL="${ncn_progname}"
8454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455     break 2
8456   fi
8457 done
8458   done
8459 IFS=$as_save_IFS
8460
8461 fi
8462 fi
8463 DLLTOOL=$ac_cv_prog_DLLTOOL
8464 if test -n "$DLLTOOL"; then
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8466 $as_echo "$DLLTOOL" >&6; }
8467 else
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472
8473   fi
8474   test -n "$ac_cv_prog_DLLTOOL" && break
8475 done
8476
8477 if test -z "$ac_cv_prog_DLLTOOL" ; then
8478   set dummy dlltool
8479   if test $build = $host ; then
8480     DLLTOOL="$2"
8481   else
8482     DLLTOOL="${ncn_tool_prefix}$2"
8483   fi
8484 fi
8485
8486
8487
8488 if test -n "$LD"; then
8489   ac_cv_prog_LD=$LD
8490 elif test -n "$ac_cv_prog_LD"; then
8491   LD=$ac_cv_prog_LD
8492 fi
8493
8494 if test -n "$ac_cv_prog_LD"; then
8495   for ncn_progname in ld; do
8496     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_progname}; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_prog_LD+set}" = set; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   if test -n "$LD"; then
8504   ac_cv_prog_LD="$LD" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509   IFS=$as_save_IFS
8510   test -z "$as_dir" && as_dir=.
8511     for ac_exec_ext in '' $ac_executable_extensions; do
8512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513     ac_cv_prog_LD="${ncn_progname}"
8514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515     break 2
8516   fi
8517 done
8518   done
8519 IFS=$as_save_IFS
8520
8521 fi
8522 fi
8523 LD=$ac_cv_prog_LD
8524 if test -n "$LD"; then
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8526 $as_echo "$LD" >&6; }
8527 else
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 fi
8531
8532
8533   done
8534 fi
8535
8536 for ncn_progname in ld; do
8537   if test -n "$ncn_tool_prefix"; then
8538     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8539 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_LD+set}" = set; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   if test -n "$LD"; then
8546   ac_cv_prog_LD="$LD" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553     for ac_exec_ext in '' $ac_executable_extensions; do
8554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560   done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 LD=$ac_cv_prog_LD
8566 if test -n "$LD"; then
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8568 $as_echo "$LD" >&6; }
8569 else
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573
8574
8575   fi
8576   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8577     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_progname}; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_prog_LD+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   if test -n "$LD"; then
8585   ac_cv_prog_LD="$LD" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592     for ac_exec_ext in '' $ac_executable_extensions; do
8593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594     ac_cv_prog_LD="${ncn_progname}"
8595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599   done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 LD=$ac_cv_prog_LD
8605 if test -n "$LD"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8607 $as_echo "$LD" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614   fi
8615   test -n "$ac_cv_prog_LD" && break
8616 done
8617
8618 if test -z "$ac_cv_prog_LD" ; then
8619   set dummy ld
8620   if test $build = $host ; then
8621     LD="$2"
8622   else
8623     LD="${ncn_tool_prefix}$2"
8624   fi
8625 fi
8626
8627
8628
8629 if test -n "$LIPO"; then
8630   ac_cv_prog_LIPO=$LIPO
8631 elif test -n "$ac_cv_prog_LIPO"; then
8632   LIPO=$ac_cv_prog_LIPO
8633 fi
8634
8635 if test -n "$ac_cv_prog_LIPO"; then
8636   for ncn_progname in lipo; do
8637     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_progname}; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_LIPO+set}" = set; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   if test -n "$LIPO"; then
8645   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650   IFS=$as_save_IFS
8651   test -z "$as_dir" && as_dir=.
8652     for ac_exec_ext in '' $ac_executable_extensions; do
8653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654     ac_cv_prog_LIPO="${ncn_progname}"
8655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656     break 2
8657   fi
8658 done
8659   done
8660 IFS=$as_save_IFS
8661
8662 fi
8663 fi
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8668 else
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8671 fi
8672
8673
8674   done
8675 fi
8676
8677 for ncn_progname in lipo; do
8678   if test -n "$ncn_tool_prefix"; then
8679     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8680 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_LIPO+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$LIPO"; then
8687   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 LIPO=$ac_cv_prog_LIPO
8707 if test -n "$LIPO"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8709 $as_echo "$LIPO" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716   fi
8717   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8718     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719 set dummy ${ncn_progname}; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if test "${ac_cv_prog_LIPO+set}" = set; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   if test -n "$LIPO"; then
8726   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8730 do
8731   IFS=$as_save_IFS
8732   test -z "$as_dir" && as_dir=.
8733     for ac_exec_ext in '' $ac_executable_extensions; do
8734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8735     ac_cv_prog_LIPO="${ncn_progname}"
8736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737     break 2
8738   fi
8739 done
8740   done
8741 IFS=$as_save_IFS
8742
8743 fi
8744 fi
8745 LIPO=$ac_cv_prog_LIPO
8746 if test -n "$LIPO"; then
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8748 $as_echo "$LIPO" >&6; }
8749 else
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753
8754
8755   fi
8756   test -n "$ac_cv_prog_LIPO" && break
8757 done
8758
8759 if test -z "$ac_cv_prog_LIPO" ; then
8760   set dummy lipo
8761   if test $build = $host ; then
8762     LIPO="$2"
8763   else
8764     LIPO="${ncn_tool_prefix}$2"
8765   fi
8766 fi
8767
8768
8769
8770 if test -n "$NM"; then
8771   ac_cv_prog_NM=$NM
8772 elif test -n "$ac_cv_prog_NM"; then
8773   NM=$ac_cv_prog_NM
8774 fi
8775
8776 if test -n "$ac_cv_prog_NM"; then
8777   for ncn_progname in nm; do
8778     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_progname}; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_NM+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   if test -n "$NM"; then
8786   ac_cv_prog_NM="$NM" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8790 do
8791   IFS=$as_save_IFS
8792   test -z "$as_dir" && as_dir=.
8793     for ac_exec_ext in '' $ac_executable_extensions; do
8794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795     ac_cv_prog_NM="${ncn_progname}"
8796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797     break 2
8798   fi
8799 done
8800   done
8801 IFS=$as_save_IFS
8802
8803 fi
8804 fi
8805 NM=$ac_cv_prog_NM
8806 if test -n "$NM"; then
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8808 $as_echo "$NM" >&6; }
8809 else
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8812 fi
8813
8814
8815   done
8816 fi
8817
8818 for ncn_progname in nm; do
8819   if test -n "$ncn_tool_prefix"; then
8820     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_NM+set}" = set; then :
8825   $as_echo_n "(cached) " >&6
8826 else
8827   if test -n "$NM"; then
8828   ac_cv_prog_NM="$NM" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833   IFS=$as_save_IFS
8834   test -z "$as_dir" && as_dir=.
8835     for ac_exec_ext in '' $ac_executable_extensions; do
8836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839     break 2
8840   fi
8841 done
8842   done
8843 IFS=$as_save_IFS
8844
8845 fi
8846 fi
8847 NM=$ac_cv_prog_NM
8848 if test -n "$NM"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8850 $as_echo "$NM" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856
8857   fi
8858   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8859     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_NM+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   if test -n "$NM"; then
8867   ac_cv_prog_NM="$NM" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874     for ac_exec_ext in '' $ac_executable_extensions; do
8875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876     ac_cv_prog_NM="${ncn_progname}"
8877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878     break 2
8879   fi
8880 done
8881   done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 NM=$ac_cv_prog_NM
8887 if test -n "$NM"; then
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8889 $as_echo "$NM" >&6; }
8890 else
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895
8896   fi
8897   test -n "$ac_cv_prog_NM" && break
8898 done
8899
8900 if test -z "$ac_cv_prog_NM" ; then
8901   set dummy nm
8902   if test $build = $host ; then
8903     NM="$2"
8904   else
8905     NM="${ncn_tool_prefix}$2"
8906   fi
8907 fi
8908
8909
8910
8911 if test -n "$RANLIB"; then
8912   ac_cv_prog_RANLIB=$RANLIB
8913 elif test -n "$ac_cv_prog_RANLIB"; then
8914   RANLIB=$ac_cv_prog_RANLIB
8915 fi
8916
8917 if test -n "$ac_cv_prog_RANLIB"; then
8918   for ncn_progname in ranlib; do
8919     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -n "$RANLIB"; then
8927   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936     ac_cv_prog_RANLIB="${ncn_progname}"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 RANLIB=$ac_cv_prog_RANLIB
8947 if test -n "$RANLIB"; then
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8949 $as_echo "$RANLIB" >&6; }
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955
8956   done
8957 fi
8958
8959 for ncn_progname in ranlib; do
8960   if test -n "$ncn_tool_prefix"; then
8961     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   if test -n "$RANLIB"; then
8969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974   IFS=$as_save_IFS
8975   test -z "$as_dir" && as_dir=.
8976     for ac_exec_ext in '' $ac_executable_extensions; do
8977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980     break 2
8981   fi
8982 done
8983   done
8984 IFS=$as_save_IFS
8985
8986 fi
8987 fi
8988 RANLIB=$ac_cv_prog_RANLIB
8989 if test -n "$RANLIB"; then
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8991 $as_echo "$RANLIB" >&6; }
8992 else
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8995 fi
8996
8997
8998   fi
8999   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9000     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9005   $as_echo_n "(cached) " >&6
9006 else
9007   if test -n "$RANLIB"; then
9008   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013   IFS=$as_save_IFS
9014   test -z "$as_dir" && as_dir=.
9015     for ac_exec_ext in '' $ac_executable_extensions; do
9016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017     ac_cv_prog_RANLIB="${ncn_progname}"
9018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019     break 2
9020   fi
9021 done
9022   done
9023 IFS=$as_save_IFS
9024
9025 fi
9026 fi
9027 RANLIB=$ac_cv_prog_RANLIB
9028 if test -n "$RANLIB"; then
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9030 $as_echo "$RANLIB" >&6; }
9031 else
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035
9036
9037   fi
9038   test -n "$ac_cv_prog_RANLIB" && break
9039 done
9040
9041 if test -z "$ac_cv_prog_RANLIB" ; then
9042   RANLIB="true"
9043 fi
9044
9045
9046
9047 if test -n "$STRIP"; then
9048   ac_cv_prog_STRIP=$STRIP
9049 elif test -n "$ac_cv_prog_STRIP"; then
9050   STRIP=$ac_cv_prog_STRIP
9051 fi
9052
9053 if test -n "$ac_cv_prog_STRIP"; then
9054   for ncn_progname in strip; do
9055     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_STRIP+set}" = set; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   if test -n "$STRIP"; then
9063   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072     ac_cv_prog_STRIP="${ncn_progname}"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079
9080 fi
9081 fi
9082 STRIP=$ac_cv_prog_STRIP
9083 if test -n "$STRIP"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9085 $as_echo "$STRIP" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092   done
9093 fi
9094
9095 for ncn_progname in strip; do
9096   if test -n "$ncn_tool_prefix"; then
9097     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if test "${ac_cv_prog_STRIP+set}" = set; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   if test -n "$STRIP"; then
9105   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110   IFS=$as_save_IFS
9111   test -z "$as_dir" && as_dir=.
9112     for ac_exec_ext in '' $ac_executable_extensions; do
9113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116     break 2
9117   fi
9118 done
9119   done
9120 IFS=$as_save_IFS
9121
9122 fi
9123 fi
9124 STRIP=$ac_cv_prog_STRIP
9125 if test -n "$STRIP"; then
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9127 $as_echo "$STRIP" >&6; }
9128 else
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134   fi
9135   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9136     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137 set dummy ${ncn_progname}; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if test "${ac_cv_prog_STRIP+set}" = set; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$STRIP"; then
9144   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9153     ac_cv_prog_STRIP="${ncn_progname}"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 STRIP=$ac_cv_prog_STRIP
9164 if test -n "$STRIP"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9166 $as_echo "$STRIP" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173   fi
9174   test -n "$ac_cv_prog_STRIP" && break
9175 done
9176
9177 if test -z "$ac_cv_prog_STRIP" ; then
9178   STRIP="true"
9179 fi
9180
9181
9182
9183 if test -n "$WINDRES"; then
9184   ac_cv_prog_WINDRES=$WINDRES
9185 elif test -n "$ac_cv_prog_WINDRES"; then
9186   WINDRES=$ac_cv_prog_WINDRES
9187 fi
9188
9189 if test -n "$ac_cv_prog_WINDRES"; then
9190   for ncn_progname in windres; do
9191     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9192 set dummy ${ncn_progname}; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   if test -n "$WINDRES"; then
9199   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9200 else
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9203 do
9204   IFS=$as_save_IFS
9205   test -z "$as_dir" && as_dir=.
9206     for ac_exec_ext in '' $ac_executable_extensions; do
9207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208     ac_cv_prog_WINDRES="${ncn_progname}"
9209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210     break 2
9211   fi
9212 done
9213   done
9214 IFS=$as_save_IFS
9215
9216 fi
9217 fi
9218 WINDRES=$ac_cv_prog_WINDRES
9219 if test -n "$WINDRES"; then
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9221 $as_echo "$WINDRES" >&6; }
9222 else
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9225 fi
9226
9227
9228   done
9229 fi
9230
9231 for ncn_progname in windres; do
9232   if test -n "$ncn_tool_prefix"; then
9233     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9234 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   if test -n "$WINDRES"; then
9241   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9242 else
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9245 do
9246   IFS=$as_save_IFS
9247   test -z "$as_dir" && as_dir=.
9248     for ac_exec_ext in '' $ac_executable_extensions; do
9249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252     break 2
9253   fi
9254 done
9255   done
9256 IFS=$as_save_IFS
9257
9258 fi
9259 fi
9260 WINDRES=$ac_cv_prog_WINDRES
9261 if test -n "$WINDRES"; then
9262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9263 $as_echo "$WINDRES" >&6; }
9264 else
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9267 fi
9268
9269
9270   fi
9271   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9272     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9273 set dummy ${ncn_progname}; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9277   $as_echo_n "(cached) " >&6
9278 else
9279   if test -n "$WINDRES"; then
9280   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9284 do
9285   IFS=$as_save_IFS
9286   test -z "$as_dir" && as_dir=.
9287     for ac_exec_ext in '' $ac_executable_extensions; do
9288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289     ac_cv_prog_WINDRES="${ncn_progname}"
9290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291     break 2
9292   fi
9293 done
9294   done
9295 IFS=$as_save_IFS
9296
9297 fi
9298 fi
9299 WINDRES=$ac_cv_prog_WINDRES
9300 if test -n "$WINDRES"; then
9301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9302 $as_echo "$WINDRES" >&6; }
9303 else
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9306 fi
9307
9308
9309   fi
9310   test -n "$ac_cv_prog_WINDRES" && break
9311 done
9312
9313 if test -z "$ac_cv_prog_WINDRES" ; then
9314   set dummy windres
9315   if test $build = $host ; then
9316     WINDRES="$2"
9317   else
9318     WINDRES="${ncn_tool_prefix}$2"
9319   fi
9320 fi
9321
9322
9323
9324 if test -n "$WINDMC"; then
9325   ac_cv_prog_WINDMC=$WINDMC
9326 elif test -n "$ac_cv_prog_WINDMC"; then
9327   WINDMC=$ac_cv_prog_WINDMC
9328 fi
9329
9330 if test -n "$ac_cv_prog_WINDMC"; then
9331   for ncn_progname in windmc; do
9332     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_progname}; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   if test -n "$WINDMC"; then
9340   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345   IFS=$as_save_IFS
9346   test -z "$as_dir" && as_dir=.
9347     for ac_exec_ext in '' $ac_executable_extensions; do
9348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349     ac_cv_prog_WINDMC="${ncn_progname}"
9350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351     break 2
9352   fi
9353 done
9354   done
9355 IFS=$as_save_IFS
9356
9357 fi
9358 fi
9359 WINDMC=$ac_cv_prog_WINDMC
9360 if test -n "$WINDMC"; then
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9362 $as_echo "$WINDMC" >&6; }
9363 else
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9366 fi
9367
9368
9369   done
9370 fi
9371
9372 for ncn_progname in windmc; do
9373   if test -n "$ncn_tool_prefix"; then
9374     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9375 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   if test -n "$WINDMC"; then
9382   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9386 do
9387   IFS=$as_save_IFS
9388   test -z "$as_dir" && as_dir=.
9389     for ac_exec_ext in '' $ac_executable_extensions; do
9390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393     break 2
9394   fi
9395 done
9396   done
9397 IFS=$as_save_IFS
9398
9399 fi
9400 fi
9401 WINDMC=$ac_cv_prog_WINDMC
9402 if test -n "$WINDMC"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9404 $as_echo "$WINDMC" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409
9410
9411   fi
9412   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9413     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9414 set dummy ${ncn_progname}; ac_word=$2
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416 $as_echo_n "checking for $ac_word... " >&6; }
9417 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   if test -n "$WINDMC"; then
9421   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9422 else
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9425 do
9426   IFS=$as_save_IFS
9427   test -z "$as_dir" && as_dir=.
9428     for ac_exec_ext in '' $ac_executable_extensions; do
9429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430     ac_cv_prog_WINDMC="${ncn_progname}"
9431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432     break 2
9433   fi
9434 done
9435   done
9436 IFS=$as_save_IFS
9437
9438 fi
9439 fi
9440 WINDMC=$ac_cv_prog_WINDMC
9441 if test -n "$WINDMC"; then
9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9443 $as_echo "$WINDMC" >&6; }
9444 else
9445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9447 fi
9448
9449
9450   fi
9451   test -n "$ac_cv_prog_WINDMC" && break
9452 done
9453
9454 if test -z "$ac_cv_prog_WINDMC" ; then
9455   set dummy windmc
9456   if test $build = $host ; then
9457     WINDMC="$2"
9458   else
9459     WINDMC="${ncn_tool_prefix}$2"
9460   fi
9461 fi
9462
9463
9464
9465 if test -n "$OBJCOPY"; then
9466   ac_cv_prog_OBJCOPY=$OBJCOPY
9467 elif test -n "$ac_cv_prog_OBJCOPY"; then
9468   OBJCOPY=$ac_cv_prog_OBJCOPY
9469 fi
9470
9471 if test -n "$ac_cv_prog_OBJCOPY"; then
9472   for ncn_progname in objcopy; do
9473     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9474 set dummy ${ncn_progname}; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480   if test -n "$OBJCOPY"; then
9481   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9482 else
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9485 do
9486   IFS=$as_save_IFS
9487   test -z "$as_dir" && as_dir=.
9488     for ac_exec_ext in '' $ac_executable_extensions; do
9489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9490     ac_cv_prog_OBJCOPY="${ncn_progname}"
9491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492     break 2
9493   fi
9494 done
9495   done
9496 IFS=$as_save_IFS
9497
9498 fi
9499 fi
9500 OBJCOPY=$ac_cv_prog_OBJCOPY
9501 if test -n "$OBJCOPY"; then
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9503 $as_echo "$OBJCOPY" >&6; }
9504 else
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9507 fi
9508
9509
9510   done
9511 fi
9512
9513 for ncn_progname in objcopy; do
9514   if test -n "$ncn_tool_prefix"; then
9515     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9516 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   if test -n "$OBJCOPY"; then
9523   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528   IFS=$as_save_IFS
9529   test -z "$as_dir" && as_dir=.
9530     for ac_exec_ext in '' $ac_executable_extensions; do
9531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534     break 2
9535   fi
9536 done
9537   done
9538 IFS=$as_save_IFS
9539
9540 fi
9541 fi
9542 OBJCOPY=$ac_cv_prog_OBJCOPY
9543 if test -n "$OBJCOPY"; then
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9545 $as_echo "$OBJCOPY" >&6; }
9546 else
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550
9551
9552   fi
9553   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9554     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9555 set dummy ${ncn_progname}; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9559   $as_echo_n "(cached) " >&6
9560 else
9561   if test -n "$OBJCOPY"; then
9562   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9563 else
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9566 do
9567   IFS=$as_save_IFS
9568   test -z "$as_dir" && as_dir=.
9569     for ac_exec_ext in '' $ac_executable_extensions; do
9570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571     ac_cv_prog_OBJCOPY="${ncn_progname}"
9572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573     break 2
9574   fi
9575 done
9576   done
9577 IFS=$as_save_IFS
9578
9579 fi
9580 fi
9581 OBJCOPY=$ac_cv_prog_OBJCOPY
9582 if test -n "$OBJCOPY"; then
9583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9584 $as_echo "$OBJCOPY" >&6; }
9585 else
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9588 fi
9589
9590
9591   fi
9592   test -n "$ac_cv_prog_OBJCOPY" && break
9593 done
9594
9595 if test -z "$ac_cv_prog_OBJCOPY" ; then
9596   set dummy objcopy
9597   if test $build = $host ; then
9598     OBJCOPY="$2"
9599   else
9600     OBJCOPY="${ncn_tool_prefix}$2"
9601   fi
9602 fi
9603
9604
9605
9606 if test -n "$OBJDUMP"; then
9607   ac_cv_prog_OBJDUMP=$OBJDUMP
9608 elif test -n "$ac_cv_prog_OBJDUMP"; then
9609   OBJDUMP=$ac_cv_prog_OBJDUMP
9610 fi
9611
9612 if test -n "$ac_cv_prog_OBJDUMP"; then
9613   for ncn_progname in objdump; do
9614     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_progname}; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   if test -n "$OBJDUMP"; then
9622   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9626 do
9627   IFS=$as_save_IFS
9628   test -z "$as_dir" && as_dir=.
9629     for ac_exec_ext in '' $ac_executable_extensions; do
9630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631     ac_cv_prog_OBJDUMP="${ncn_progname}"
9632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633     break 2
9634   fi
9635 done
9636   done
9637 IFS=$as_save_IFS
9638
9639 fi
9640 fi
9641 OBJDUMP=$ac_cv_prog_OBJDUMP
9642 if test -n "$OBJDUMP"; then
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9644 $as_echo "$OBJDUMP" >&6; }
9645 else
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9648 fi
9649
9650
9651   done
9652 fi
9653
9654 for ncn_progname in objdump; do
9655   if test -n "$ncn_tool_prefix"; then
9656     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   if test -n "$OBJDUMP"; then
9664   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9665 else
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680
9681 fi
9682 fi
9683 OBJDUMP=$ac_cv_prog_OBJDUMP
9684 if test -n "$OBJDUMP"; then
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9686 $as_echo "$OBJDUMP" >&6; }
9687 else
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9690 fi
9691
9692
9693   fi
9694   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9695     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9696 set dummy ${ncn_progname}; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   if test -n "$OBJDUMP"; then
9703   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712     ac_cv_prog_OBJDUMP="${ncn_progname}"
9713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719
9720 fi
9721 fi
9722 OBJDUMP=$ac_cv_prog_OBJDUMP
9723 if test -n "$OBJDUMP"; then
9724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9725 $as_echo "$OBJDUMP" >&6; }
9726 else
9727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 fi
9730
9731
9732   fi
9733   test -n "$ac_cv_prog_OBJDUMP" && break
9734 done
9735
9736 if test -z "$ac_cv_prog_OBJDUMP" ; then
9737   set dummy objdump
9738   if test $build = $host ; then
9739     OBJDUMP="$2"
9740   else
9741     OBJDUMP="${ncn_tool_prefix}$2"
9742   fi
9743 fi
9744
9745
9746
9747 if test -n "$READELF"; then
9748   ac_cv_prog_READELF=$READELF
9749 elif test -n "$ac_cv_prog_READELF"; then
9750   READELF=$ac_cv_prog_READELF
9751 fi
9752
9753 if test -n "$ac_cv_prog_READELF"; then
9754   for ncn_progname in readelf; do
9755     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_progname}; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if test "${ac_cv_prog_READELF+set}" = set; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   if test -n "$READELF"; then
9763   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9767 do
9768   IFS=$as_save_IFS
9769   test -z "$as_dir" && as_dir=.
9770     for ac_exec_ext in '' $ac_executable_extensions; do
9771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772     ac_cv_prog_READELF="${ncn_progname}"
9773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774     break 2
9775   fi
9776 done
9777   done
9778 IFS=$as_save_IFS
9779
9780 fi
9781 fi
9782 READELF=$ac_cv_prog_READELF
9783 if test -n "$READELF"; then
9784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9785 $as_echo "$READELF" >&6; }
9786 else
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9789 fi
9790
9791
9792   done
9793 fi
9794
9795 for ncn_progname in readelf; do
9796   if test -n "$ncn_tool_prefix"; then
9797     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9798 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if test "${ac_cv_prog_READELF+set}" = set; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   if test -n "$READELF"; then
9805   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9809 do
9810   IFS=$as_save_IFS
9811   test -z "$as_dir" && as_dir=.
9812     for ac_exec_ext in '' $ac_executable_extensions; do
9813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9814     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9816     break 2
9817   fi
9818 done
9819   done
9820 IFS=$as_save_IFS
9821
9822 fi
9823 fi
9824 READELF=$ac_cv_prog_READELF
9825 if test -n "$READELF"; then
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9827 $as_echo "$READELF" >&6; }
9828 else
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9831 fi
9832
9833
9834   fi
9835   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9836     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if test "${ac_cv_prog_READELF+set}" = set; then :
9841   $as_echo_n "(cached) " >&6
9842 else
9843   if test -n "$READELF"; then
9844   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849   IFS=$as_save_IFS
9850   test -z "$as_dir" && as_dir=.
9851     for ac_exec_ext in '' $ac_executable_extensions; do
9852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853     ac_cv_prog_READELF="${ncn_progname}"
9854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855     break 2
9856   fi
9857 done
9858   done
9859 IFS=$as_save_IFS
9860
9861 fi
9862 fi
9863 READELF=$ac_cv_prog_READELF
9864 if test -n "$READELF"; then
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9866 $as_echo "$READELF" >&6; }
9867 else
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9870 fi
9871
9872
9873   fi
9874   test -n "$ac_cv_prog_READELF" && break
9875 done
9876
9877 if test -z "$ac_cv_prog_READELF" ; then
9878   set dummy readelf
9879   if test $build = $host ; then
9880     READELF="$2"
9881   else
9882     READELF="${ncn_tool_prefix}$2"
9883   fi
9884 fi
9885
9886
9887
9888
9889
9890
9891 # Target tools.
9892
9893 # Check whether --with-build-time-tools was given.
9894 if test "${with_build_time_tools+set}" = set; then :
9895   withval=$with_build_time_tools; case x"$withval" in
9896      x/*) ;;
9897      *)
9898        with_build_time_tools=
9899        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9900 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9901        ;;
9902    esac
9903 else
9904   with_build_time_tools=
9905 fi
9906
9907
9908
9909
9910 if test -n "$CC_FOR_TARGET"; then
9911   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9912 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9913   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9914 fi
9915
9916 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9917   for ncn_progname in cc gcc; do
9918     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9919 set dummy ${ncn_progname}; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   if test -n "$CC_FOR_TARGET"; then
9926   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933     for ac_exec_ext in '' $ac_executable_extensions; do
9934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937     break 2
9938   fi
9939 done
9940   done
9941 IFS=$as_save_IFS
9942
9943 fi
9944 fi
9945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9946 if test -n "$CC_FOR_TARGET"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9948 $as_echo "$CC_FOR_TARGET" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953
9954
9955   done
9956 fi
9957
9958 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9959   for ncn_progname in cc gcc; do
9960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9961 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9962     if test -x $with_build_time_tools/${ncn_progname}; then
9963       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9965 $as_echo "yes" >&6; }
9966       break
9967     else
9968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970     fi
9971   done
9972 fi
9973
9974 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9975   for ncn_progname in cc gcc; do
9976     if test -n "$ncn_target_tool_prefix"; then
9977       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   if test -n "$CC_FOR_TARGET"; then
9985   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992     for ac_exec_ext in '' $ac_executable_extensions; do
9993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999   done
10000 IFS=$as_save_IFS
10001
10002 fi
10003 fi
10004 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10005 if test -n "$CC_FOR_TARGET"; then
10006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10007 $as_echo "$CC_FOR_TARGET" >&6; }
10008 else
10009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10011 fi
10012
10013
10014     fi
10015     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10016       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_progname}; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   if test -n "$CC_FOR_TARGET"; then
10024   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029   IFS=$as_save_IFS
10030   test -z "$as_dir" && as_dir=.
10031     for ac_exec_ext in '' $ac_executable_extensions; do
10032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10033     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035     break 2
10036   fi
10037 done
10038   done
10039 IFS=$as_save_IFS
10040
10041 fi
10042 fi
10043 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10044 if test -n "$CC_FOR_TARGET"; then
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10046 $as_echo "$CC_FOR_TARGET" >&6; }
10047 else
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10050 fi
10051
10052
10053     fi
10054     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10055   done
10056 fi
10057
10058 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10059   set dummy cc gcc
10060   if test $build = $target ; then
10061     CC_FOR_TARGET="$2"
10062   else
10063     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10064   fi
10065 else
10066   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10067 fi
10068
10069
10070
10071 if test -n "$CXX_FOR_TARGET"; then
10072   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10073 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10074   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10075 fi
10076
10077 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10078   for ncn_progname in c++ g++ cxx gxx; do
10079     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10080 set dummy ${ncn_progname}; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10084   $as_echo_n "(cached) " >&6
10085 else
10086   if test -n "$CXX_FOR_TARGET"; then
10087   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10088 else
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10091 do
10092   IFS=$as_save_IFS
10093   test -z "$as_dir" && as_dir=.
10094     for ac_exec_ext in '' $ac_executable_extensions; do
10095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098     break 2
10099   fi
10100 done
10101   done
10102 IFS=$as_save_IFS
10103
10104 fi
10105 fi
10106 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10107 if test -n "$CXX_FOR_TARGET"; then
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10109 $as_echo "$CXX_FOR_TARGET" >&6; }
10110 else
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114
10115
10116   done
10117 fi
10118
10119 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10120   for ncn_progname in c++ g++ cxx gxx; do
10121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10122 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10123     if test -x $with_build_time_tools/${ncn_progname}; then
10124       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126 $as_echo "yes" >&6; }
10127       break
10128     else
10129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10131     fi
10132   done
10133 fi
10134
10135 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10136   for ncn_progname in c++ g++ cxx gxx; do
10137     if test -n "$ncn_target_tool_prefix"; then
10138       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10139 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141 $as_echo_n "checking for $ac_word... " >&6; }
10142 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   if test -n "$CXX_FOR_TARGET"; then
10146   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10147 else
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10150 do
10151   IFS=$as_save_IFS
10152   test -z "$as_dir" && as_dir=.
10153     for ac_exec_ext in '' $ac_executable_extensions; do
10154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157     break 2
10158   fi
10159 done
10160   done
10161 IFS=$as_save_IFS
10162
10163 fi
10164 fi
10165 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10166 if test -n "$CXX_FOR_TARGET"; then
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10168 $as_echo "$CXX_FOR_TARGET" >&6; }
10169 else
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10172 fi
10173
10174
10175     fi
10176     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10177       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178 set dummy ${ncn_progname}; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   if test -n "$CXX_FOR_TARGET"; then
10185   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190   IFS=$as_save_IFS
10191   test -z "$as_dir" && as_dir=.
10192     for ac_exec_ext in '' $ac_executable_extensions; do
10193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196     break 2
10197   fi
10198 done
10199   done
10200 IFS=$as_save_IFS
10201
10202 fi
10203 fi
10204 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10205 if test -n "$CXX_FOR_TARGET"; then
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10207 $as_echo "$CXX_FOR_TARGET" >&6; }
10208 else
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10212
10213
10214     fi
10215     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10216   done
10217 fi
10218
10219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10220   set dummy c++ g++ cxx gxx
10221   if test $build = $target ; then
10222     CXX_FOR_TARGET="$2"
10223   else
10224     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10225   fi
10226 else
10227   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10228 fi
10229
10230
10231
10232 if test -n "$GCC_FOR_TARGET"; then
10233   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10234 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10235   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10236 fi
10237
10238 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10239   for ncn_progname in gcc; do
10240     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241 set dummy ${ncn_progname}; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   if test -n "$GCC_FOR_TARGET"; then
10248   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10252 do
10253   IFS=$as_save_IFS
10254   test -z "$as_dir" && as_dir=.
10255     for ac_exec_ext in '' $ac_executable_extensions; do
10256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259     break 2
10260   fi
10261 done
10262   done
10263 IFS=$as_save_IFS
10264
10265 fi
10266 fi
10267 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10268 if test -n "$GCC_FOR_TARGET"; then
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10270 $as_echo "$GCC_FOR_TARGET" >&6; }
10271 else
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274 fi
10275
10276
10277   done
10278 fi
10279
10280 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10281   for ncn_progname in gcc; do
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10284     if test -x $with_build_time_tools/${ncn_progname}; then
10285       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10288       break
10289     else
10290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292     fi
10293   done
10294 fi
10295
10296 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10297   for ncn_progname in gcc; do
10298     if test -n "$ncn_target_tool_prefix"; then
10299       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10304   $as_echo_n "(cached) " >&6
10305 else
10306   if test -n "$GCC_FOR_TARGET"; then
10307   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314     for ac_exec_ext in '' $ac_executable_extensions; do
10315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321   done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10327 if test -n "$GCC_FOR_TARGET"; then
10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10329 $as_echo "$GCC_FOR_TARGET" >&6; }
10330 else
10331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10333 fi
10334
10335
10336     fi
10337     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10338       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   if test -n "$GCC_FOR_TARGET"; then
10346   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351   IFS=$as_save_IFS
10352   test -z "$as_dir" && as_dir=.
10353     for ac_exec_ext in '' $ac_executable_extensions; do
10354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357     break 2
10358   fi
10359 done
10360   done
10361 IFS=$as_save_IFS
10362
10363 fi
10364 fi
10365 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10366 if test -n "$GCC_FOR_TARGET"; then
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10368 $as_echo "$GCC_FOR_TARGET" >&6; }
10369 else
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 fi
10373
10374
10375     fi
10376     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10377   done
10378 fi
10379
10380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10381   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10382 else
10383   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10384 fi
10385
10386
10387
10388 if test -n "$GFORTRAN_FOR_TARGET"; then
10389   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10390 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10391   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10392 fi
10393
10394 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10395   for ncn_progname in gfortran; do
10396     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10397 set dummy ${ncn_progname}; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10401   $as_echo_n "(cached) " >&6
10402 else
10403   if test -n "$GFORTRAN_FOR_TARGET"; then
10404   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10408 do
10409   IFS=$as_save_IFS
10410   test -z "$as_dir" && as_dir=.
10411     for ac_exec_ext in '' $ac_executable_extensions; do
10412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10413     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415     break 2
10416   fi
10417 done
10418   done
10419 IFS=$as_save_IFS
10420
10421 fi
10422 fi
10423 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10424 if test -n "$GFORTRAN_FOR_TARGET"; then
10425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10426 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10427 else
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10430 fi
10431
10432
10433   done
10434 fi
10435
10436 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10437   for ncn_progname in gfortran; do
10438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10439 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10440     if test -x $with_build_time_tools/${ncn_progname}; then
10441       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10443 $as_echo "yes" >&6; }
10444       break
10445     else
10446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10448     fi
10449   done
10450 fi
10451
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10453   for ncn_progname in gfortran; do
10454     if test -n "$ncn_target_tool_prefix"; then
10455       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10456 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10460   $as_echo_n "(cached) " >&6
10461 else
10462   if test -n "$GFORTRAN_FOR_TARGET"; then
10463   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10467 do
10468   IFS=$as_save_IFS
10469   test -z "$as_dir" && as_dir=.
10470     for ac_exec_ext in '' $ac_executable_extensions; do
10471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474     break 2
10475   fi
10476 done
10477   done
10478 IFS=$as_save_IFS
10479
10480 fi
10481 fi
10482 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10483 if test -n "$GFORTRAN_FOR_TARGET"; then
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10485 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10486 else
10487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10489 fi
10490
10491
10492     fi
10493     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10494       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10495 set dummy ${ncn_progname}; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10499   $as_echo_n "(cached) " >&6
10500 else
10501   if test -n "$GFORTRAN_FOR_TARGET"; then
10502   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507   IFS=$as_save_IFS
10508   test -z "$as_dir" && as_dir=.
10509     for ac_exec_ext in '' $ac_executable_extensions; do
10510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513     break 2
10514   fi
10515 done
10516   done
10517 IFS=$as_save_IFS
10518
10519 fi
10520 fi
10521 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10522 if test -n "$GFORTRAN_FOR_TARGET"; then
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10524 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10525 else
10526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10528 fi
10529
10530
10531     fi
10532     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10533   done
10534 fi
10535
10536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10537   set dummy gfortran
10538   if test $build = $target ; then
10539     GFORTRAN_FOR_TARGET="$2"
10540   else
10541     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10542   fi
10543 else
10544   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10545 fi
10546
10547
10548
10549 if test -n "$GOC_FOR_TARGET"; then
10550   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10551 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10552   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10553 fi
10554
10555 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10556   for ncn_progname in gccgo; do
10557     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10558 set dummy ${ncn_progname}; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   if test -n "$GOC_FOR_TARGET"; then
10565   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10566 else
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10569 do
10570   IFS=$as_save_IFS
10571   test -z "$as_dir" && as_dir=.
10572     for ac_exec_ext in '' $ac_executable_extensions; do
10573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576     break 2
10577   fi
10578 done
10579   done
10580 IFS=$as_save_IFS
10581
10582 fi
10583 fi
10584 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10585 if test -n "$GOC_FOR_TARGET"; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10587 $as_echo "$GOC_FOR_TARGET" >&6; }
10588 else
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10591 fi
10592
10593
10594   done
10595 fi
10596
10597 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10598   for ncn_progname in gccgo; do
10599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10600 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10601     if test -x $with_build_time_tools/${ncn_progname}; then
10602       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604 $as_echo "yes" >&6; }
10605       break
10606     else
10607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10609     fi
10610   done
10611 fi
10612
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10614   for ncn_progname in gccgo; do
10615     if test -n "$ncn_target_tool_prefix"; then
10616       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10617 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   if test -n "$GOC_FOR_TARGET"; then
10624   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629   IFS=$as_save_IFS
10630   test -z "$as_dir" && as_dir=.
10631     for ac_exec_ext in '' $ac_executable_extensions; do
10632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635     break 2
10636   fi
10637 done
10638   done
10639 IFS=$as_save_IFS
10640
10641 fi
10642 fi
10643 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10644 if test -n "$GOC_FOR_TARGET"; then
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10646 $as_echo "$GOC_FOR_TARGET" >&6; }
10647 else
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651
10652
10653     fi
10654     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10655       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10656 set dummy ${ncn_progname}; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   if test -n "$GOC_FOR_TARGET"; then
10663   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10664 else
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668   IFS=$as_save_IFS
10669   test -z "$as_dir" && as_dir=.
10670     for ac_exec_ext in '' $ac_executable_extensions; do
10671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674     break 2
10675   fi
10676 done
10677   done
10678 IFS=$as_save_IFS
10679
10680 fi
10681 fi
10682 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10683 if test -n "$GOC_FOR_TARGET"; then
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10685 $as_echo "$GOC_FOR_TARGET" >&6; }
10686 else
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 fi
10690
10691
10692     fi
10693     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10694   done
10695 fi
10696
10697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10698   set dummy gccgo
10699   if test $build = $target ; then
10700     GOC_FOR_TARGET="$2"
10701   else
10702     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10703   fi
10704 else
10705   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10706 fi
10707
10708
10709
10710 cat > conftest.c << \EOF
10711 #ifdef __GNUC__
10712   gcc_yay;
10713 #endif
10714 EOF
10715 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10716   have_gcc_for_target=yes
10717 else
10718   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10719   have_gcc_for_target=no
10720 fi
10721 rm conftest.c
10722
10723
10724
10725
10726 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10727   if test -n "$with_build_time_tools"; then
10728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10729 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10730     if test -x $with_build_time_tools/ar; then
10731       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10732       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10734 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10735     else
10736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738     fi
10739   elif test $build != $host && test $have_gcc_for_target = yes; then
10740     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10741     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10742     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10743   fi
10744 fi
10745 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10746   # Extract the first word of "ar", so it can be a program name with args.
10747 set dummy ar; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   case $AR_FOR_TARGET in
10754   [\\/]* | ?:[\\/]*)
10755   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10756   ;;
10757   *)
10758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $gcc_cv_tool_dirs
10760 do
10761   IFS=$as_save_IFS
10762   test -z "$as_dir" && as_dir=.
10763     for ac_exec_ext in '' $ac_executable_extensions; do
10764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767     break 2
10768   fi
10769 done
10770   done
10771 IFS=$as_save_IFS
10772
10773   ;;
10774 esac
10775 fi
10776 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10777 if test -n "$AR_FOR_TARGET"; then
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10779 $as_echo "$AR_FOR_TARGET" >&6; }
10780 else
10781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10783 fi
10784
10785
10786 fi
10787 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10788
10789
10790 if test -n "$AR_FOR_TARGET"; then
10791   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10792 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10793   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10794 fi
10795
10796 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10797   for ncn_progname in ar; do
10798     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10799 set dummy ${ncn_progname}; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   if test -n "$AR_FOR_TARGET"; then
10806   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10807 else
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10810 do
10811   IFS=$as_save_IFS
10812   test -z "$as_dir" && as_dir=.
10813     for ac_exec_ext in '' $ac_executable_extensions; do
10814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10815     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817     break 2
10818   fi
10819 done
10820   done
10821 IFS=$as_save_IFS
10822
10823 fi
10824 fi
10825 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10826 if test -n "$AR_FOR_TARGET"; then
10827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10828 $as_echo "$AR_FOR_TARGET" >&6; }
10829 else
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10832 fi
10833
10834
10835   done
10836 fi
10837
10838 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10839   for ncn_progname in ar; do
10840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10841 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10842     if test -x $with_build_time_tools/${ncn_progname}; then
10843       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10844       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10845 $as_echo "yes" >&6; }
10846       break
10847     else
10848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10850     fi
10851   done
10852 fi
10853
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10855   for ncn_progname in ar; do
10856     if test -n "$ncn_target_tool_prefix"; then
10857       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   if test -n "$AR_FOR_TARGET"; then
10865   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10866 else
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870   IFS=$as_save_IFS
10871   test -z "$as_dir" && as_dir=.
10872     for ac_exec_ext in '' $ac_executable_extensions; do
10873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876     break 2
10877   fi
10878 done
10879   done
10880 IFS=$as_save_IFS
10881
10882 fi
10883 fi
10884 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10885 if test -n "$AR_FOR_TARGET"; then
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10887 $as_echo "$AR_FOR_TARGET" >&6; }
10888 else
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 fi
10892
10893
10894     fi
10895     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10896       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10897 set dummy ${ncn_progname}; ac_word=$2
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899 $as_echo_n "checking for $ac_word... " >&6; }
10900 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   if test -n "$AR_FOR_TARGET"; then
10904   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10905 else
10906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $PATH
10908 do
10909   IFS=$as_save_IFS
10910   test -z "$as_dir" && as_dir=.
10911     for ac_exec_ext in '' $ac_executable_extensions; do
10912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10913     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915     break 2
10916   fi
10917 done
10918   done
10919 IFS=$as_save_IFS
10920
10921 fi
10922 fi
10923 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10924 if test -n "$AR_FOR_TARGET"; then
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10926 $as_echo "$AR_FOR_TARGET" >&6; }
10927 else
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 fi
10931
10932
10933     fi
10934     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10935   done
10936 fi
10937
10938 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10939   set dummy ar
10940   if test $build = $target ; then
10941     AR_FOR_TARGET="$2"
10942   else
10943     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10944   fi
10945 else
10946   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10947 fi
10948
10949 else
10950   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10951 fi
10952
10953
10954
10955
10956 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10957   if test -n "$with_build_time_tools"; then
10958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10959 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10960     if test -x $with_build_time_tools/as; then
10961       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10962       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10964 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10965     else
10966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968     fi
10969   elif test $build != $host && test $have_gcc_for_target = yes; then
10970     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10971     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10972     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10973   fi
10974 fi
10975 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10976   # Extract the first word of "as", so it can be a program name with args.
10977 set dummy as; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10981   $as_echo_n "(cached) " >&6
10982 else
10983   case $AS_FOR_TARGET in
10984   [\\/]* | ?:[\\/]*)
10985   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10986   ;;
10987   *)
10988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989 for as_dir in $gcc_cv_tool_dirs
10990 do
10991   IFS=$as_save_IFS
10992   test -z "$as_dir" && as_dir=.
10993     for ac_exec_ext in '' $ac_executable_extensions; do
10994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997     break 2
10998   fi
10999 done
11000   done
11001 IFS=$as_save_IFS
11002
11003   ;;
11004 esac
11005 fi
11006 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11007 if test -n "$AS_FOR_TARGET"; then
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11009 $as_echo "$AS_FOR_TARGET" >&6; }
11010 else
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012 $as_echo "no" >&6; }
11013 fi
11014
11015
11016 fi
11017 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11018
11019
11020 if test -n "$AS_FOR_TARGET"; then
11021   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11022 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11023   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11024 fi
11025
11026 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11027   for ncn_progname in as; do
11028     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11029 set dummy ${ncn_progname}; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   if test -n "$AS_FOR_TARGET"; then
11036   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11037 else
11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041   IFS=$as_save_IFS
11042   test -z "$as_dir" && as_dir=.
11043     for ac_exec_ext in '' $ac_executable_extensions; do
11044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11045     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047     break 2
11048   fi
11049 done
11050   done
11051 IFS=$as_save_IFS
11052
11053 fi
11054 fi
11055 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11056 if test -n "$AS_FOR_TARGET"; then
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11058 $as_echo "$AS_FOR_TARGET" >&6; }
11059 else
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11062 fi
11063
11064
11065   done
11066 fi
11067
11068 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11069   for ncn_progname in as; do
11070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11071 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11072     if test -x $with_build_time_tools/${ncn_progname}; then
11073       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11075 $as_echo "yes" >&6; }
11076       break
11077     else
11078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080     fi
11081   done
11082 fi
11083
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11085   for ncn_progname in as; do
11086     if test -n "$ncn_target_tool_prefix"; then
11087       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11088 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11092   $as_echo_n "(cached) " >&6
11093 else
11094   if test -n "$AS_FOR_TARGET"; then
11095   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11099 do
11100   IFS=$as_save_IFS
11101   test -z "$as_dir" && as_dir=.
11102     for ac_exec_ext in '' $ac_executable_extensions; do
11103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106     break 2
11107   fi
11108 done
11109   done
11110 IFS=$as_save_IFS
11111
11112 fi
11113 fi
11114 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11115 if test -n "$AS_FOR_TARGET"; then
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11117 $as_echo "$AS_FOR_TARGET" >&6; }
11118 else
11119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11121 fi
11122
11123
11124     fi
11125     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11126       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127 set dummy ${ncn_progname}; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11131   $as_echo_n "(cached) " >&6
11132 else
11133   if test -n "$AS_FOR_TARGET"; then
11134   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11135 else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11138 do
11139   IFS=$as_save_IFS
11140   test -z "$as_dir" && as_dir=.
11141     for ac_exec_ext in '' $ac_executable_extensions; do
11142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11143     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145     break 2
11146   fi
11147 done
11148   done
11149 IFS=$as_save_IFS
11150
11151 fi
11152 fi
11153 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11154 if test -n "$AS_FOR_TARGET"; then
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11156 $as_echo "$AS_FOR_TARGET" >&6; }
11157 else
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 fi
11161
11162
11163     fi
11164     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11165   done
11166 fi
11167
11168 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11169   set dummy as
11170   if test $build = $target ; then
11171     AS_FOR_TARGET="$2"
11172   else
11173     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11174   fi
11175 else
11176   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11177 fi
11178
11179 else
11180   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11181 fi
11182
11183
11184
11185
11186 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11187   if test -n "$with_build_time_tools"; then
11188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11189 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11190     if test -x $with_build_time_tools/dlltool; then
11191       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11192       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11194 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11195     else
11196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198     fi
11199   elif test $build != $host && test $have_gcc_for_target = yes; then
11200     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11201     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11202     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11203   fi
11204 fi
11205 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11206   # Extract the first word of "dlltool", so it can be a program name with args.
11207 set dummy dlltool; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   case $DLLTOOL_FOR_TARGET in
11214   [\\/]* | ?:[\\/]*)
11215   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11216   ;;
11217   *)
11218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $gcc_cv_tool_dirs
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227     break 2
11228   fi
11229 done
11230   done
11231 IFS=$as_save_IFS
11232
11233   ;;
11234 esac
11235 fi
11236 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11237 if test -n "$DLLTOOL_FOR_TARGET"; then
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11239 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11240 else
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246 fi
11247 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11248
11249
11250 if test -n "$DLLTOOL_FOR_TARGET"; then
11251   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11252 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11253   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11254 fi
11255
11256 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11257   for ncn_progname in dlltool; do
11258     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11259 set dummy ${ncn_progname}; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   if test -n "$DLLTOOL_FOR_TARGET"; then
11266   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11270 do
11271   IFS=$as_save_IFS
11272   test -z "$as_dir" && as_dir=.
11273     for ac_exec_ext in '' $ac_executable_extensions; do
11274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11275     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277     break 2
11278   fi
11279 done
11280   done
11281 IFS=$as_save_IFS
11282
11283 fi
11284 fi
11285 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11286 if test -n "$DLLTOOL_FOR_TARGET"; then
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11288 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 fi
11293
11294
11295   done
11296 fi
11297
11298 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11299   for ncn_progname in dlltool; do
11300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11301 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11302     if test -x $with_build_time_tools/${ncn_progname}; then
11303       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11305 $as_echo "yes" >&6; }
11306       break
11307     else
11308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310     fi
11311   done
11312 fi
11313
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11315   for ncn_progname in dlltool; do
11316     if test -n "$ncn_target_tool_prefix"; then
11317       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11318 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11322   $as_echo_n "(cached) " >&6
11323 else
11324   if test -n "$DLLTOOL_FOR_TARGET"; then
11325   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11326 else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330   IFS=$as_save_IFS
11331   test -z "$as_dir" && as_dir=.
11332     for ac_exec_ext in '' $ac_executable_extensions; do
11333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336     break 2
11337   fi
11338 done
11339   done
11340 IFS=$as_save_IFS
11341
11342 fi
11343 fi
11344 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11345 if test -n "$DLLTOOL_FOR_TARGET"; then
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11347 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11348 else
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352
11353
11354     fi
11355     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11356       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11357 set dummy ${ncn_progname}; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   if test -n "$DLLTOOL_FOR_TARGET"; then
11364   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11365 else
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369   IFS=$as_save_IFS
11370   test -z "$as_dir" && as_dir=.
11371     for ac_exec_ext in '' $ac_executable_extensions; do
11372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11373     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375     break 2
11376   fi
11377 done
11378   done
11379 IFS=$as_save_IFS
11380
11381 fi
11382 fi
11383 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11384 if test -n "$DLLTOOL_FOR_TARGET"; then
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11386 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11387 else
11388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393     fi
11394     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11395   done
11396 fi
11397
11398 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11399   set dummy dlltool
11400   if test $build = $target ; then
11401     DLLTOOL_FOR_TARGET="$2"
11402   else
11403     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11404   fi
11405 else
11406   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11407 fi
11408
11409 else
11410   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11411 fi
11412
11413
11414
11415
11416 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11417   if test -n "$with_build_time_tools"; then
11418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11419 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11420     if test -x $with_build_time_tools/ld; then
11421       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11422       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11424 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11425     else
11426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428     fi
11429   elif test $build != $host && test $have_gcc_for_target = yes; then
11430     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11431     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11432     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11433   fi
11434 fi
11435 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11436   # Extract the first word of "ld", so it can be a program name with args.
11437 set dummy ld; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   case $LD_FOR_TARGET in
11444   [\\/]* | ?:[\\/]*)
11445   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11446   ;;
11447   *)
11448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $gcc_cv_tool_dirs
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462
11463   ;;
11464 esac
11465 fi
11466 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11467 if test -n "$LD_FOR_TARGET"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11469 $as_echo "$LD_FOR_TARGET" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476 fi
11477 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11478
11479
11480 if test -n "$LD_FOR_TARGET"; then
11481   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11482 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11483   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11484 fi
11485
11486 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11487   for ncn_progname in ld; do
11488     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11489 set dummy ${ncn_progname}; ac_word=$2
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491 $as_echo_n "checking for $ac_word... " >&6; }
11492 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11493   $as_echo_n "(cached) " >&6
11494 else
11495   if test -n "$LD_FOR_TARGET"; then
11496   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11497 else
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH
11500 do
11501   IFS=$as_save_IFS
11502   test -z "$as_dir" && as_dir=.
11503     for ac_exec_ext in '' $ac_executable_extensions; do
11504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11505     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507     break 2
11508   fi
11509 done
11510   done
11511 IFS=$as_save_IFS
11512
11513 fi
11514 fi
11515 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11516 if test -n "$LD_FOR_TARGET"; then
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11518 $as_echo "$LD_FOR_TARGET" >&6; }
11519 else
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11522 fi
11523
11524
11525   done
11526 fi
11527
11528 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11529   for ncn_progname in ld; do
11530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11531 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11532     if test -x $with_build_time_tools/${ncn_progname}; then
11533       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11535 $as_echo "yes" >&6; }
11536       break
11537     else
11538       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540     fi
11541   done
11542 fi
11543
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11545   for ncn_progname in ld; do
11546     if test -n "$ncn_target_tool_prefix"; then
11547       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11552   $as_echo_n "(cached) " >&6
11553 else
11554   if test -n "$LD_FOR_TARGET"; then
11555   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11556 else
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11559 do
11560   IFS=$as_save_IFS
11561   test -z "$as_dir" && as_dir=.
11562     for ac_exec_ext in '' $ac_executable_extensions; do
11563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11564     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566     break 2
11567   fi
11568 done
11569   done
11570 IFS=$as_save_IFS
11571
11572 fi
11573 fi
11574 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11575 if test -n "$LD_FOR_TARGET"; then
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11577 $as_echo "$LD_FOR_TARGET" >&6; }
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 fi
11582
11583
11584     fi
11585     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11586       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11587 set dummy ${ncn_progname}; ac_word=$2
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589 $as_echo_n "checking for $ac_word... " >&6; }
11590 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   if test -n "$LD_FOR_TARGET"; then
11594   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608   done
11609 IFS=$as_save_IFS
11610
11611 fi
11612 fi
11613 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11614 if test -n "$LD_FOR_TARGET"; then
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11616 $as_echo "$LD_FOR_TARGET" >&6; }
11617 else
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 fi
11621
11622
11623     fi
11624     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11625   done
11626 fi
11627
11628 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11629   set dummy ld
11630   if test $build = $target ; then
11631     LD_FOR_TARGET="$2"
11632   else
11633     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11634   fi
11635 else
11636   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11637 fi
11638
11639 else
11640   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11641 fi
11642
11643
11644
11645
11646 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11647   if test -n "$with_build_time_tools"; then
11648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11649 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11650     if test -x $with_build_time_tools/lipo; then
11651       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11652       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11654 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11655     else
11656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658     fi
11659   elif test $build != $host && test $have_gcc_for_target = yes; then
11660     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11661     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11662     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11663   fi
11664 fi
11665 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11666   # Extract the first word of "lipo", so it can be a program name with args.
11667 set dummy lipo; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11671   $as_echo_n "(cached) " >&6
11672 else
11673   case $LIPO_FOR_TARGET in
11674   [\\/]* | ?:[\\/]*)
11675   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11676   ;;
11677   *)
11678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $gcc_cv_tool_dirs
11680 do
11681   IFS=$as_save_IFS
11682   test -z "$as_dir" && as_dir=.
11683     for ac_exec_ext in '' $ac_executable_extensions; do
11684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687     break 2
11688   fi
11689 done
11690   done
11691 IFS=$as_save_IFS
11692
11693   ;;
11694 esac
11695 fi
11696 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11697 if test -n "$LIPO_FOR_TARGET"; then
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11699 $as_echo "$LIPO_FOR_TARGET" >&6; }
11700 else
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704
11705
11706 fi
11707 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11708
11709
11710 if test -n "$LIPO_FOR_TARGET"; then
11711   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11712 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11713   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11714 fi
11715
11716 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11717   for ncn_progname in lipo; do
11718     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11719 set dummy ${ncn_progname}; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   if test -n "$LIPO_FOR_TARGET"; then
11726   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731   IFS=$as_save_IFS
11732   test -z "$as_dir" && as_dir=.
11733     for ac_exec_ext in '' $ac_executable_extensions; do
11734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11737     break 2
11738   fi
11739 done
11740   done
11741 IFS=$as_save_IFS
11742
11743 fi
11744 fi
11745 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11746 if test -n "$LIPO_FOR_TARGET"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11748 $as_echo "$LIPO_FOR_TARGET" >&6; }
11749 else
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753
11754
11755   done
11756 fi
11757
11758 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11759   for ncn_progname in lipo; do
11760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11761 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11762     if test -x $with_build_time_tools/${ncn_progname}; then
11763       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11765 $as_echo "yes" >&6; }
11766       break
11767     else
11768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770     fi
11771   done
11772 fi
11773
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11775   for ncn_progname in lipo; do
11776     if test -n "$ncn_target_tool_prefix"; then
11777       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784   if test -n "$LIPO_FOR_TARGET"; then
11785   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11789 do
11790   IFS=$as_save_IFS
11791   test -z "$as_dir" && as_dir=.
11792     for ac_exec_ext in '' $ac_executable_extensions; do
11793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799   done
11800 IFS=$as_save_IFS
11801
11802 fi
11803 fi
11804 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11805 if test -n "$LIPO_FOR_TARGET"; then
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11807 $as_echo "$LIPO_FOR_TARGET" >&6; }
11808 else
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811 fi
11812
11813
11814     fi
11815     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11816       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11817 set dummy ${ncn_progname}; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819 $as_echo_n "checking for $ac_word... " >&6; }
11820 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   if test -n "$LIPO_FOR_TARGET"; then
11824   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11825 else
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11828 do
11829   IFS=$as_save_IFS
11830   test -z "$as_dir" && as_dir=.
11831     for ac_exec_ext in '' $ac_executable_extensions; do
11832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835     break 2
11836   fi
11837 done
11838   done
11839 IFS=$as_save_IFS
11840
11841 fi
11842 fi
11843 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11844 if test -n "$LIPO_FOR_TARGET"; then
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11846 $as_echo "$LIPO_FOR_TARGET" >&6; }
11847 else
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850 fi
11851
11852
11853     fi
11854     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11855   done
11856 fi
11857
11858 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11859   set dummy lipo
11860   if test $build = $target ; then
11861     LIPO_FOR_TARGET="$2"
11862   else
11863     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11864   fi
11865 else
11866   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11867 fi
11868
11869 else
11870   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11871 fi
11872
11873
11874
11875
11876 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11877   if test -n "$with_build_time_tools"; then
11878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11879 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11880     if test -x $with_build_time_tools/nm; then
11881       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11882       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11884 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11885     else
11886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888     fi
11889   elif test $build != $host && test $have_gcc_for_target = yes; then
11890     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11891     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11892     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11893   fi
11894 fi
11895 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11896   # Extract the first word of "nm", so it can be a program name with args.
11897 set dummy nm; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11901   $as_echo_n "(cached) " >&6
11902 else
11903   case $NM_FOR_TARGET in
11904   [\\/]* | ?:[\\/]*)
11905   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11906   ;;
11907   *)
11908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $gcc_cv_tool_dirs
11910 do
11911   IFS=$as_save_IFS
11912   test -z "$as_dir" && as_dir=.
11913     for ac_exec_ext in '' $ac_executable_extensions; do
11914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917     break 2
11918   fi
11919 done
11920   done
11921 IFS=$as_save_IFS
11922
11923   ;;
11924 esac
11925 fi
11926 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11927 if test -n "$NM_FOR_TARGET"; then
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11929 $as_echo "$NM_FOR_TARGET" >&6; }
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936 fi
11937 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11938
11939
11940 if test -n "$NM_FOR_TARGET"; then
11941   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11942 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11943   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11944 fi
11945
11946 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11947   for ncn_progname in nm; do
11948     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949 set dummy ${ncn_progname}; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   if test -n "$NM_FOR_TARGET"; then
11956   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973 fi
11974 fi
11975 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11976 if test -n "$NM_FOR_TARGET"; then
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11978 $as_echo "$NM_FOR_TARGET" >&6; }
11979 else
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 fi
11983
11984
11985   done
11986 fi
11987
11988 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11989   for ncn_progname in nm; do
11990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11991 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11992     if test -x $with_build_time_tools/${ncn_progname}; then
11993       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11995 $as_echo "yes" >&6; }
11996       break
11997     else
11998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12000     fi
12001   done
12002 fi
12003
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12005   for ncn_progname in nm; do
12006     if test -n "$ncn_target_tool_prefix"; then
12007       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   if test -n "$NM_FOR_TARGET"; then
12015   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020   IFS=$as_save_IFS
12021   test -z "$as_dir" && as_dir=.
12022     for ac_exec_ext in '' $ac_executable_extensions; do
12023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026     break 2
12027   fi
12028 done
12029   done
12030 IFS=$as_save_IFS
12031
12032 fi
12033 fi
12034 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12035 if test -n "$NM_FOR_TARGET"; then
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12037 $as_echo "$NM_FOR_TARGET" >&6; }
12038 else
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 fi
12042
12043
12044     fi
12045     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12046       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12047 set dummy ${ncn_progname}; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12051   $as_echo_n "(cached) " >&6
12052 else
12053   if test -n "$NM_FOR_TARGET"; then
12054   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12058 do
12059   IFS=$as_save_IFS
12060   test -z "$as_dir" && as_dir=.
12061     for ac_exec_ext in '' $ac_executable_extensions; do
12062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12063     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065     break 2
12066   fi
12067 done
12068   done
12069 IFS=$as_save_IFS
12070
12071 fi
12072 fi
12073 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12074 if test -n "$NM_FOR_TARGET"; then
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12076 $as_echo "$NM_FOR_TARGET" >&6; }
12077 else
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 fi
12081
12082
12083     fi
12084     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12085   done
12086 fi
12087
12088 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12089   set dummy nm
12090   if test $build = $target ; then
12091     NM_FOR_TARGET="$2"
12092   else
12093     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12094   fi
12095 else
12096   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12097 fi
12098
12099 else
12100   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12101 fi
12102
12103
12104
12105
12106 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12107   if test -n "$with_build_time_tools"; then
12108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12109 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12110     if test -x $with_build_time_tools/objcopy; then
12111       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12112       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12114 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12115     else
12116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118     fi
12119   elif test $build != $host && test $have_gcc_for_target = yes; then
12120     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12121     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12122     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12123   fi
12124 fi
12125 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12126   # Extract the first word of "objcopy", so it can be a program name with args.
12127 set dummy objcopy; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133   case $OBJCOPY_FOR_TARGET in
12134   [\\/]* | ?:[\\/]*)
12135   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12136   ;;
12137   *)
12138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $gcc_cv_tool_dirs
12140 do
12141   IFS=$as_save_IFS
12142   test -z "$as_dir" && as_dir=.
12143     for ac_exec_ext in '' $ac_executable_extensions; do
12144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12145     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147     break 2
12148   fi
12149 done
12150   done
12151 IFS=$as_save_IFS
12152
12153   ;;
12154 esac
12155 fi
12156 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12157 if test -n "$OBJCOPY_FOR_TARGET"; then
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12159 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12160 else
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 fi
12164
12165
12166 fi
12167 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12168
12169
12170 if test -n "$OBJCOPY_FOR_TARGET"; then
12171   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12172 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12173   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12174 fi
12175
12176 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12177   for ncn_progname in objcopy; do
12178     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12179 set dummy ${ncn_progname}; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12183   $as_echo_n "(cached) " >&6
12184 else
12185   if test -n "$OBJCOPY_FOR_TARGET"; then
12186   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12187 else
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191   IFS=$as_save_IFS
12192   test -z "$as_dir" && as_dir=.
12193     for ac_exec_ext in '' $ac_executable_extensions; do
12194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197     break 2
12198   fi
12199 done
12200   done
12201 IFS=$as_save_IFS
12202
12203 fi
12204 fi
12205 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12206 if test -n "$OBJCOPY_FOR_TARGET"; then
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12208 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215   done
12216 fi
12217
12218 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12219   for ncn_progname in objcopy; do
12220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12221 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12222     if test -x $with_build_time_tools/${ncn_progname}; then
12223       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226       break
12227     else
12228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230     fi
12231   done
12232 fi
12233
12234 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12235   for ncn_progname in objcopy; do
12236     if test -n "$ncn_target_tool_prefix"; then
12237       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12238 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   if test -n "$OBJCOPY_FOR_TARGET"; then
12245   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12246 else
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252     for ac_exec_ext in '' $ac_executable_extensions; do
12253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259   done
12260 IFS=$as_save_IFS
12261
12262 fi
12263 fi
12264 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12265 if test -n "$OBJCOPY_FOR_TARGET"; then
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12267 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12268 else
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271 fi
12272
12273
12274     fi
12275     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12276       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12277 set dummy ${ncn_progname}; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283   if test -n "$OBJCOPY_FOR_TARGET"; then
12284   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12288 do
12289   IFS=$as_save_IFS
12290   test -z "$as_dir" && as_dir=.
12291     for ac_exec_ext in '' $ac_executable_extensions; do
12292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295     break 2
12296   fi
12297 done
12298   done
12299 IFS=$as_save_IFS
12300
12301 fi
12302 fi
12303 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12304 if test -n "$OBJCOPY_FOR_TARGET"; then
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12306 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12307 else
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 fi
12311
12312
12313     fi
12314     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12315   done
12316 fi
12317
12318 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12319   set dummy objcopy
12320   if test $build = $target ; then
12321     OBJCOPY_FOR_TARGET="$2"
12322   else
12323     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12324   fi
12325 else
12326   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12327 fi
12328
12329 else
12330   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12331 fi
12332
12333
12334
12335
12336 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12337   if test -n "$with_build_time_tools"; then
12338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12339 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12340     if test -x $with_build_time_tools/objdump; then
12341       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12342       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12344 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12345     else
12346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348     fi
12349   elif test $build != $host && test $have_gcc_for_target = yes; then
12350     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12351     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12352     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12353   fi
12354 fi
12355 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12356   # Extract the first word of "objdump", so it can be a program name with args.
12357 set dummy objdump; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12361   $as_echo_n "(cached) " >&6
12362 else
12363   case $OBJDUMP_FOR_TARGET in
12364   [\\/]* | ?:[\\/]*)
12365   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12366   ;;
12367   *)
12368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $gcc_cv_tool_dirs
12370 do
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373     for ac_exec_ext in '' $ac_executable_extensions; do
12374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380   done
12381 IFS=$as_save_IFS
12382
12383   ;;
12384 esac
12385 fi
12386 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12387 if test -n "$OBJDUMP_FOR_TARGET"; then
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12389 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12390 else
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395
12396 fi
12397 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12398
12399
12400 if test -n "$OBJDUMP_FOR_TARGET"; then
12401   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12402 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12403   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12404 fi
12405
12406 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12407   for ncn_progname in objdump; do
12408     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12409 set dummy ${ncn_progname}; ac_word=$2
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411 $as_echo_n "checking for $ac_word... " >&6; }
12412 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   if test -n "$OBJDUMP_FOR_TARGET"; then
12416   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12417 else
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12420 do
12421   IFS=$as_save_IFS
12422   test -z "$as_dir" && as_dir=.
12423     for ac_exec_ext in '' $ac_executable_extensions; do
12424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12425     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427     break 2
12428   fi
12429 done
12430   done
12431 IFS=$as_save_IFS
12432
12433 fi
12434 fi
12435 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12436 if test -n "$OBJDUMP_FOR_TARGET"; then
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12438 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12439 else
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12442 fi
12443
12444
12445   done
12446 fi
12447
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12449   for ncn_progname in objdump; do
12450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12452     if test -x $with_build_time_tools/${ncn_progname}; then
12453       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456       break
12457     else
12458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460     fi
12461   done
12462 fi
12463
12464 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12465   for ncn_progname in objdump; do
12466     if test -n "$ncn_target_tool_prefix"; then
12467       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   if test -n "$OBJDUMP_FOR_TARGET"; then
12475   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480   IFS=$as_save_IFS
12481   test -z "$as_dir" && as_dir=.
12482     for ac_exec_ext in '' $ac_executable_extensions; do
12483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486     break 2
12487   fi
12488 done
12489   done
12490 IFS=$as_save_IFS
12491
12492 fi
12493 fi
12494 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12495 if test -n "$OBJDUMP_FOR_TARGET"; then
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12497 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12498 else
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502
12503
12504     fi
12505     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12506       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12507 set dummy ${ncn_progname}; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   if test -n "$OBJDUMP_FOR_TARGET"; then
12514   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12515 else
12516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517 for as_dir in $PATH
12518 do
12519   IFS=$as_save_IFS
12520   test -z "$as_dir" && as_dir=.
12521     for ac_exec_ext in '' $ac_executable_extensions; do
12522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12523     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12525     break 2
12526   fi
12527 done
12528   done
12529 IFS=$as_save_IFS
12530
12531 fi
12532 fi
12533 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12534 if test -n "$OBJDUMP_FOR_TARGET"; then
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12536 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12537 else
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541
12542
12543     fi
12544     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12545   done
12546 fi
12547
12548 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12549   set dummy objdump
12550   if test $build = $target ; then
12551     OBJDUMP_FOR_TARGET="$2"
12552   else
12553     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12554   fi
12555 else
12556   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12557 fi
12558
12559 else
12560   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12561 fi
12562
12563
12564
12565
12566 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12567   if test -n "$with_build_time_tools"; then
12568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12569 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12570     if test -x $with_build_time_tools/ranlib; then
12571       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12572       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12574 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12575     else
12576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578     fi
12579   elif test $build != $host && test $have_gcc_for_target = yes; then
12580     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12581     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12582     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12583   fi
12584 fi
12585 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12586   # Extract the first word of "ranlib", so it can be a program name with args.
12587 set dummy ranlib; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   case $RANLIB_FOR_TARGET in
12594   [\\/]* | ?:[\\/]*)
12595   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12596   ;;
12597   *)
12598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $gcc_cv_tool_dirs
12600 do
12601   IFS=$as_save_IFS
12602   test -z "$as_dir" && as_dir=.
12603     for ac_exec_ext in '' $ac_executable_extensions; do
12604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607     break 2
12608   fi
12609 done
12610   done
12611 IFS=$as_save_IFS
12612
12613   ;;
12614 esac
12615 fi
12616 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12617 if test -n "$RANLIB_FOR_TARGET"; then
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12619 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12620 else
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624
12625
12626 fi
12627 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12628
12629
12630 if test -n "$RANLIB_FOR_TARGET"; then
12631   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12632 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12633   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12634 fi
12635
12636 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12637   for ncn_progname in ranlib; do
12638     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12639 set dummy ${ncn_progname}; ac_word=$2
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641 $as_echo_n "checking for $ac_word... " >&6; }
12642 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12643   $as_echo_n "(cached) " >&6
12644 else
12645   if test -n "$RANLIB_FOR_TARGET"; then
12646   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12647 else
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12650 do
12651   IFS=$as_save_IFS
12652   test -z "$as_dir" && as_dir=.
12653     for ac_exec_ext in '' $ac_executable_extensions; do
12654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12655     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657     break 2
12658   fi
12659 done
12660   done
12661 IFS=$as_save_IFS
12662
12663 fi
12664 fi
12665 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12666 if test -n "$RANLIB_FOR_TARGET"; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12668 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 fi
12673
12674
12675   done
12676 fi
12677
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12679   for ncn_progname in ranlib; do
12680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12681 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12682     if test -x $with_build_time_tools/${ncn_progname}; then
12683       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685 $as_echo "yes" >&6; }
12686       break
12687     else
12688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690     fi
12691   done
12692 fi
12693
12694 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12695   for ncn_progname in ranlib; do
12696     if test -n "$ncn_target_tool_prefix"; then
12697       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   if test -n "$RANLIB_FOR_TARGET"; then
12705   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712     for ac_exec_ext in '' $ac_executable_extensions; do
12713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12714     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716     break 2
12717   fi
12718 done
12719   done
12720 IFS=$as_save_IFS
12721
12722 fi
12723 fi
12724 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12725 if test -n "$RANLIB_FOR_TARGET"; then
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12727 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12728 else
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12731 fi
12732
12733
12734     fi
12735     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12736       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12737 set dummy ${ncn_progname}; ac_word=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   if test -n "$RANLIB_FOR_TARGET"; then
12744   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12745 else
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12748 do
12749   IFS=$as_save_IFS
12750   test -z "$as_dir" && as_dir=.
12751     for ac_exec_ext in '' $ac_executable_extensions; do
12752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755     break 2
12756   fi
12757 done
12758   done
12759 IFS=$as_save_IFS
12760
12761 fi
12762 fi
12763 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12764 if test -n "$RANLIB_FOR_TARGET"; then
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12766 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12767 else
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771
12772
12773     fi
12774     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12775   done
12776 fi
12777
12778 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12779   set dummy ranlib
12780   if test $build = $target ; then
12781     RANLIB_FOR_TARGET="$2"
12782   else
12783     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12784   fi
12785 else
12786   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12787 fi
12788
12789 else
12790   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12791 fi
12792
12793
12794
12795
12796 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12797   if test -n "$with_build_time_tools"; then
12798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12799 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12800     if test -x $with_build_time_tools/readelf; then
12801       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12802       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12804 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12805     else
12806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808     fi
12809   elif test $build != $host && test $have_gcc_for_target = yes; then
12810     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12811     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12812     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12813   fi
12814 fi
12815 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12816   # Extract the first word of "readelf", so it can be a program name with args.
12817 set dummy readelf; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823   case $READELF_FOR_TARGET in
12824   [\\/]* | ?:[\\/]*)
12825   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12826   ;;
12827   *)
12828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $gcc_cv_tool_dirs
12830 do
12831   IFS=$as_save_IFS
12832   test -z "$as_dir" && as_dir=.
12833     for ac_exec_ext in '' $ac_executable_extensions; do
12834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12835     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837     break 2
12838   fi
12839 done
12840   done
12841 IFS=$as_save_IFS
12842
12843   ;;
12844 esac
12845 fi
12846 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12847 if test -n "$READELF_FOR_TARGET"; then
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12849 $as_echo "$READELF_FOR_TARGET" >&6; }
12850 else
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12853 fi
12854
12855
12856 fi
12857 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12858
12859
12860 if test -n "$READELF_FOR_TARGET"; then
12861   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12862 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12863   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12864 fi
12865
12866 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12867   for ncn_progname in readelf; do
12868     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12869 set dummy ${ncn_progname}; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875   if test -n "$READELF_FOR_TARGET"; then
12876   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12877 else
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_exec_ext in '' $ac_executable_extensions; do
12884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12885     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887     break 2
12888   fi
12889 done
12890   done
12891 IFS=$as_save_IFS
12892
12893 fi
12894 fi
12895 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12896 if test -n "$READELF_FOR_TARGET"; then
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12898 $as_echo "$READELF_FOR_TARGET" >&6; }
12899 else
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 fi
12903
12904
12905   done
12906 fi
12907
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12909   for ncn_progname in readelf; do
12910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12911 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12912     if test -x $with_build_time_tools/${ncn_progname}; then
12913       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12915 $as_echo "yes" >&6; }
12916       break
12917     else
12918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12920     fi
12921   done
12922 fi
12923
12924 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12925   for ncn_progname in readelf; do
12926     if test -n "$ncn_target_tool_prefix"; then
12927       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12928 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930 $as_echo_n "checking for $ac_word... " >&6; }
12931 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12932   $as_echo_n "(cached) " >&6
12933 else
12934   if test -n "$READELF_FOR_TARGET"; then
12935   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12936 else
12937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12939 do
12940   IFS=$as_save_IFS
12941   test -z "$as_dir" && as_dir=.
12942     for ac_exec_ext in '' $ac_executable_extensions; do
12943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12944     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946     break 2
12947   fi
12948 done
12949   done
12950 IFS=$as_save_IFS
12951
12952 fi
12953 fi
12954 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12955 if test -n "$READELF_FOR_TARGET"; then
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12957 $as_echo "$READELF_FOR_TARGET" >&6; }
12958 else
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12961 fi
12962
12963
12964     fi
12965     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12966       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   if test -n "$READELF_FOR_TARGET"; then
12974   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979   IFS=$as_save_IFS
12980   test -z "$as_dir" && as_dir=.
12981     for ac_exec_ext in '' $ac_executable_extensions; do
12982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12983     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985     break 2
12986   fi
12987 done
12988   done
12989 IFS=$as_save_IFS
12990
12991 fi
12992 fi
12993 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12994 if test -n "$READELF_FOR_TARGET"; then
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12996 $as_echo "$READELF_FOR_TARGET" >&6; }
12997 else
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003     fi
13004     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13005   done
13006 fi
13007
13008 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13009   set dummy readelf
13010   if test $build = $target ; then
13011     READELF_FOR_TARGET="$2"
13012   else
13013     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13014   fi
13015 else
13016   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13017 fi
13018
13019 else
13020   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13021 fi
13022
13023
13024
13025
13026 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13027   if test -n "$with_build_time_tools"; then
13028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13029 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13030     if test -x $with_build_time_tools/strip; then
13031       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13032       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13034 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13035     else
13036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038     fi
13039   elif test $build != $host && test $have_gcc_for_target = yes; then
13040     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13041     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13042     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13043   fi
13044 fi
13045 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13046   # Extract the first word of "strip", so it can be a program name with args.
13047 set dummy strip; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053   case $STRIP_FOR_TARGET in
13054   [\\/]* | ?:[\\/]*)
13055   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13056   ;;
13057   *)
13058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $gcc_cv_tool_dirs
13060 do
13061   IFS=$as_save_IFS
13062   test -z "$as_dir" && as_dir=.
13063     for ac_exec_ext in '' $ac_executable_extensions; do
13064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067     break 2
13068   fi
13069 done
13070   done
13071 IFS=$as_save_IFS
13072
13073   ;;
13074 esac
13075 fi
13076 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13077 if test -n "$STRIP_FOR_TARGET"; then
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13079 $as_echo "$STRIP_FOR_TARGET" >&6; }
13080 else
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083 fi
13084
13085
13086 fi
13087 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13088
13089
13090 if test -n "$STRIP_FOR_TARGET"; then
13091   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13092 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13093   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13094 fi
13095
13096 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13097   for ncn_progname in strip; do
13098     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13099 set dummy ${ncn_progname}; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13103   $as_echo_n "(cached) " >&6
13104 else
13105   if test -n "$STRIP_FOR_TARGET"; then
13106   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13110 do
13111   IFS=$as_save_IFS
13112   test -z "$as_dir" && as_dir=.
13113     for ac_exec_ext in '' $ac_executable_extensions; do
13114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117     break 2
13118   fi
13119 done
13120   done
13121 IFS=$as_save_IFS
13122
13123 fi
13124 fi
13125 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13126 if test -n "$STRIP_FOR_TARGET"; then
13127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13128 $as_echo "$STRIP_FOR_TARGET" >&6; }
13129 else
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132 fi
13133
13134
13135   done
13136 fi
13137
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13139   for ncn_progname in strip; do
13140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13141 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13142     if test -x $with_build_time_tools/${ncn_progname}; then
13143       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13145 $as_echo "yes" >&6; }
13146       break
13147     else
13148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150     fi
13151   done
13152 fi
13153
13154 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13155   for ncn_progname in strip; do
13156     if test -n "$ncn_target_tool_prefix"; then
13157       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160 $as_echo_n "checking for $ac_word... " >&6; }
13161 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   if test -n "$STRIP_FOR_TARGET"; then
13165   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13166 else
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170   IFS=$as_save_IFS
13171   test -z "$as_dir" && as_dir=.
13172     for ac_exec_ext in '' $ac_executable_extensions; do
13173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13174     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176     break 2
13177   fi
13178 done
13179   done
13180 IFS=$as_save_IFS
13181
13182 fi
13183 fi
13184 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13185 if test -n "$STRIP_FOR_TARGET"; then
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13187 $as_echo "$STRIP_FOR_TARGET" >&6; }
13188 else
13189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 fi
13192
13193
13194     fi
13195     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13196       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13197 set dummy ${ncn_progname}; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13201   $as_echo_n "(cached) " >&6
13202 else
13203   if test -n "$STRIP_FOR_TARGET"; then
13204   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13205 else
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13208 do
13209   IFS=$as_save_IFS
13210   test -z "$as_dir" && as_dir=.
13211     for ac_exec_ext in '' $ac_executable_extensions; do
13212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215     break 2
13216   fi
13217 done
13218   done
13219 IFS=$as_save_IFS
13220
13221 fi
13222 fi
13223 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13224 if test -n "$STRIP_FOR_TARGET"; then
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13226 $as_echo "$STRIP_FOR_TARGET" >&6; }
13227 else
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230 fi
13231
13232
13233     fi
13234     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13235   done
13236 fi
13237
13238 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13239   set dummy strip
13240   if test $build = $target ; then
13241     STRIP_FOR_TARGET="$2"
13242   else
13243     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13244   fi
13245 else
13246   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13247 fi
13248
13249 else
13250   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13251 fi
13252
13253
13254
13255
13256 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13257   if test -n "$with_build_time_tools"; then
13258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13259 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13260     if test -x $with_build_time_tools/windres; then
13261       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13262       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13264 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13265     else
13266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268     fi
13269   elif test $build != $host && test $have_gcc_for_target = yes; then
13270     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13271     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13272     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13273   fi
13274 fi
13275 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13276   # Extract the first word of "windres", so it can be a program name with args.
13277 set dummy windres; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   case $WINDRES_FOR_TARGET in
13284   [\\/]* | ?:[\\/]*)
13285   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13286   ;;
13287   *)
13288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $gcc_cv_tool_dirs
13290 do
13291   IFS=$as_save_IFS
13292   test -z "$as_dir" && as_dir=.
13293     for ac_exec_ext in '' $ac_executable_extensions; do
13294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297     break 2
13298   fi
13299 done
13300   done
13301 IFS=$as_save_IFS
13302
13303   ;;
13304 esac
13305 fi
13306 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13307 if test -n "$WINDRES_FOR_TARGET"; then
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13309 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13310 else
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13313 fi
13314
13315
13316 fi
13317 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13318
13319
13320 if test -n "$WINDRES_FOR_TARGET"; then
13321   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13322 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13323   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13324 fi
13325
13326 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13327   for ncn_progname in windres; do
13328     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13329 set dummy ${ncn_progname}; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   if test -n "$WINDRES_FOR_TARGET"; then
13336   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13337 else
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13340 do
13341   IFS=$as_save_IFS
13342   test -z "$as_dir" && as_dir=.
13343     for ac_exec_ext in '' $ac_executable_extensions; do
13344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13345     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347     break 2
13348   fi
13349 done
13350   done
13351 IFS=$as_save_IFS
13352
13353 fi
13354 fi
13355 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13356 if test -n "$WINDRES_FOR_TARGET"; then
13357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13358 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13359 else
13360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13362 fi
13363
13364
13365   done
13366 fi
13367
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13369   for ncn_progname in windres; do
13370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13371 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13372     if test -x $with_build_time_tools/${ncn_progname}; then
13373       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 $as_echo "yes" >&6; }
13376       break
13377     else
13378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13380     fi
13381   done
13382 fi
13383
13384 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13385   for ncn_progname in windres; do
13386     if test -n "$ncn_target_tool_prefix"; then
13387       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13388 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   if test -n "$WINDRES_FOR_TARGET"; then
13395   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13396 else
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13399 do
13400   IFS=$as_save_IFS
13401   test -z "$as_dir" && as_dir=.
13402     for ac_exec_ext in '' $ac_executable_extensions; do
13403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13404     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406     break 2
13407   fi
13408 done
13409   done
13410 IFS=$as_save_IFS
13411
13412 fi
13413 fi
13414 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13415 if test -n "$WINDRES_FOR_TARGET"; then
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13417 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13418 else
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13421 fi
13422
13423
13424     fi
13425     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13426       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427 set dummy ${ncn_progname}; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   if test -n "$WINDRES_FOR_TARGET"; then
13434   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13438 do
13439   IFS=$as_save_IFS
13440   test -z "$as_dir" && as_dir=.
13441     for ac_exec_ext in '' $ac_executable_extensions; do
13442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13443     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445     break 2
13446   fi
13447 done
13448   done
13449 IFS=$as_save_IFS
13450
13451 fi
13452 fi
13453 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13454 if test -n "$WINDRES_FOR_TARGET"; then
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13456 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13457 else
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462
13463     fi
13464     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13465   done
13466 fi
13467
13468 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13469   set dummy windres
13470   if test $build = $target ; then
13471     WINDRES_FOR_TARGET="$2"
13472   else
13473     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13474   fi
13475 else
13476   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13477 fi
13478
13479 else
13480   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13481 fi
13482
13483
13484
13485
13486 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13487   if test -n "$with_build_time_tools"; then
13488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13489 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13490     if test -x $with_build_time_tools/windmc; then
13491       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13492       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13494 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13495     else
13496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498     fi
13499   elif test $build != $host && test $have_gcc_for_target = yes; then
13500     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13501     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13502     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13503   fi
13504 fi
13505 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13506   # Extract the first word of "windmc", so it can be a program name with args.
13507 set dummy windmc; ac_word=$2
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13509 $as_echo_n "checking for $ac_word... " >&6; }
13510 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13511   $as_echo_n "(cached) " >&6
13512 else
13513   case $WINDMC_FOR_TARGET in
13514   [\\/]* | ?:[\\/]*)
13515   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13516   ;;
13517   *)
13518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $gcc_cv_tool_dirs
13520 do
13521   IFS=$as_save_IFS
13522   test -z "$as_dir" && as_dir=.
13523     for ac_exec_ext in '' $ac_executable_extensions; do
13524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13525     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13527     break 2
13528   fi
13529 done
13530   done
13531 IFS=$as_save_IFS
13532
13533   ;;
13534 esac
13535 fi
13536 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13537 if test -n "$WINDMC_FOR_TARGET"; then
13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13539 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13540 else
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 fi
13544
13545
13546 fi
13547 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13548
13549
13550 if test -n "$WINDMC_FOR_TARGET"; then
13551   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13552 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13553   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13554 fi
13555
13556 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13557   for ncn_progname in windmc; do
13558     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13559 set dummy ${ncn_progname}; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   if test -n "$WINDMC_FOR_TARGET"; then
13566   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571   IFS=$as_save_IFS
13572   test -z "$as_dir" && as_dir=.
13573     for ac_exec_ext in '' $ac_executable_extensions; do
13574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577     break 2
13578   fi
13579 done
13580   done
13581 IFS=$as_save_IFS
13582
13583 fi
13584 fi
13585 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13586 if test -n "$WINDMC_FOR_TARGET"; then
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13588 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13589 else
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593
13594
13595   done
13596 fi
13597
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13599   for ncn_progname in windmc; do
13600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13601 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13602     if test -x $with_build_time_tools/${ncn_progname}; then
13603       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606       break
13607     else
13608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610     fi
13611   done
13612 fi
13613
13614 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13615   for ncn_progname in windmc; do
13616     if test -n "$ncn_target_tool_prefix"; then
13617       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   if test -n "$WINDMC_FOR_TARGET"; then
13625   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632     for ac_exec_ext in '' $ac_executable_extensions; do
13633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639   done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13645 if test -n "$WINDMC_FOR_TARGET"; then
13646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13647 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13648 else
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654     fi
13655     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13656       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13657 set dummy ${ncn_progname}; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13661   $as_echo_n "(cached) " >&6
13662 else
13663   if test -n "$WINDMC_FOR_TARGET"; then
13664   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13668 do
13669   IFS=$as_save_IFS
13670   test -z "$as_dir" && as_dir=.
13671     for ac_exec_ext in '' $ac_executable_extensions; do
13672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675     break 2
13676   fi
13677 done
13678   done
13679 IFS=$as_save_IFS
13680
13681 fi
13682 fi
13683 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13684 if test -n "$WINDMC_FOR_TARGET"; then
13685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13686 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13687 else
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13690 fi
13691
13692
13693     fi
13694     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13695   done
13696 fi
13697
13698 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13699   set dummy windmc
13700   if test $build = $target ; then
13701     WINDMC_FOR_TARGET="$2"
13702   else
13703     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13704   fi
13705 else
13706   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13707 fi
13708
13709 else
13710   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13711 fi
13712
13713
13714 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13717 $as_echo_n "checking where to find the target ar... " >&6; }
13718 if test "x${build}" != "x${host}" ; then
13719   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13720     # We already found the complete path
13721     ac_dir=`dirname $AR_FOR_TARGET`
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723 $as_echo "pre-installed in $ac_dir" >&6; }
13724   else
13725     # Canadian cross, just use what we found
13726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13728   fi
13729 else
13730   ok=yes
13731   case " ${configdirs} " in
13732     *" binutils "*) ;;
13733     *) ok=no ;;
13734   esac
13735
13736   if test $ok = yes; then
13737     # An in-tree tool is available and we can use it
13738     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13740 $as_echo "just compiled" >&6; }
13741   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13742     # We already found the complete path
13743     ac_dir=`dirname $AR_FOR_TARGET`
13744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13745 $as_echo "pre-installed in $ac_dir" >&6; }
13746   elif test "x$target" = "x$host"; then
13747     # We can use an host tool
13748     AR_FOR_TARGET='$(AR)'
13749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13750 $as_echo "host tool" >&6; }
13751   else
13752     # We need a cross tool
13753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754 $as_echo "pre-installed" >&6; }
13755   fi
13756 fi
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13759 $as_echo_n "checking where to find the target as... " >&6; }
13760 if test "x${build}" != "x${host}" ; then
13761   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13762     # We already found the complete path
13763     ac_dir=`dirname $AS_FOR_TARGET`
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13765 $as_echo "pre-installed in $ac_dir" >&6; }
13766   else
13767     # Canadian cross, just use what we found
13768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13769 $as_echo "pre-installed" >&6; }
13770   fi
13771 else
13772   ok=yes
13773   case " ${configdirs} " in
13774     *" gas "*) ;;
13775     *) ok=no ;;
13776   esac
13777
13778   if test $ok = yes; then
13779     # An in-tree tool is available and we can use it
13780     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13782 $as_echo "just compiled" >&6; }
13783   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13784     # We already found the complete path
13785     ac_dir=`dirname $AS_FOR_TARGET`
13786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13787 $as_echo "pre-installed in $ac_dir" >&6; }
13788   elif test "x$target" = "x$host"; then
13789     # We can use an host tool
13790     AS_FOR_TARGET='$(AS)'
13791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13792 $as_echo "host tool" >&6; }
13793   else
13794     # We need a cross tool
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796 $as_echo "pre-installed" >&6; }
13797   fi
13798 fi
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13801 $as_echo_n "checking where to find the target cc... " >&6; }
13802 if test "x${build}" != "x${host}" ; then
13803   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13804     # We already found the complete path
13805     ac_dir=`dirname $CC_FOR_TARGET`
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13807 $as_echo "pre-installed in $ac_dir" >&6; }
13808   else
13809     # Canadian cross, just use what we found
13810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13811 $as_echo "pre-installed" >&6; }
13812   fi
13813 else
13814   ok=yes
13815   case " ${configdirs} " in
13816     *" gcc "*) ;;
13817     *) ok=no ;;
13818   esac
13819
13820   if test $ok = yes; then
13821     # An in-tree tool is available and we can use it
13822     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13824 $as_echo "just compiled" >&6; }
13825   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13826     # We already found the complete path
13827     ac_dir=`dirname $CC_FOR_TARGET`
13828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829 $as_echo "pre-installed in $ac_dir" >&6; }
13830   elif test "x$target" = "x$host"; then
13831     # We can use an host tool
13832     CC_FOR_TARGET='$(CC)'
13833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13834 $as_echo "host tool" >&6; }
13835   else
13836     # We need a cross tool
13837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838 $as_echo "pre-installed" >&6; }
13839   fi
13840 fi
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13843 $as_echo_n "checking where to find the target c++... " >&6; }
13844 if test "x${build}" != "x${host}" ; then
13845   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13846     # We already found the complete path
13847     ac_dir=`dirname $CXX_FOR_TARGET`
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849 $as_echo "pre-installed in $ac_dir" >&6; }
13850   else
13851     # Canadian cross, just use what we found
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13854   fi
13855 else
13856   ok=yes
13857   case " ${configdirs} " in
13858     *" gcc "*) ;;
13859     *) ok=no ;;
13860   esac
13861   case ,${enable_languages}, in
13862     *,c++,*) ;;
13863     *) ok=no ;;
13864   esac
13865   if test $ok = yes; then
13866     # An in-tree tool is available and we can use it
13867     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'
13868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13869 $as_echo "just compiled" >&6; }
13870   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13871     # We already found the complete path
13872     ac_dir=`dirname $CXX_FOR_TARGET`
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874 $as_echo "pre-installed in $ac_dir" >&6; }
13875   elif test "x$target" = "x$host"; then
13876     # We can use an host tool
13877     CXX_FOR_TARGET='$(CXX)'
13878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13879 $as_echo "host tool" >&6; }
13880   else
13881     # We need a cross tool
13882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13883 $as_echo "pre-installed" >&6; }
13884   fi
13885 fi
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13888 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13889 if test "x${build}" != "x${host}" ; then
13890   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13891     # We already found the complete path
13892     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894 $as_echo "pre-installed in $ac_dir" >&6; }
13895   else
13896     # Canadian cross, just use what we found
13897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13899   fi
13900 else
13901   ok=yes
13902   case " ${configdirs} " in
13903     *" gcc "*) ;;
13904     *) ok=no ;;
13905   esac
13906   case ,${enable_languages}, in
13907     *,c++,*) ;;
13908     *) ok=no ;;
13909   esac
13910   if test $ok = yes; then
13911     # An in-tree tool is available and we can use it
13912     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'
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13914 $as_echo "just compiled" >&6; }
13915   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13916     # We already found the complete path
13917     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13919 $as_echo "pre-installed in $ac_dir" >&6; }
13920   elif test "x$target" = "x$host"; then
13921     # We can use an host tool
13922     RAW_CXX_FOR_TARGET='$(CXX)'
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13924 $as_echo "host tool" >&6; }
13925   else
13926     # We need a cross tool
13927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928 $as_echo "pre-installed" >&6; }
13929   fi
13930 fi
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13933 $as_echo_n "checking where to find the target dlltool... " >&6; }
13934 if test "x${build}" != "x${host}" ; then
13935   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13936     # We already found the complete path
13937     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939 $as_echo "pre-installed in $ac_dir" >&6; }
13940   else
13941     # Canadian cross, just use what we found
13942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943 $as_echo "pre-installed" >&6; }
13944   fi
13945 else
13946   ok=yes
13947   case " ${configdirs} " in
13948     *" binutils "*) ;;
13949     *) ok=no ;;
13950   esac
13951
13952   if test $ok = yes; then
13953     # An in-tree tool is available and we can use it
13954     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13956 $as_echo "just compiled" >&6; }
13957   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13958     # We already found the complete path
13959     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13961 $as_echo "pre-installed in $ac_dir" >&6; }
13962   elif test "x$target" = "x$host"; then
13963     # We can use an host tool
13964     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13966 $as_echo "host tool" >&6; }
13967   else
13968     # We need a cross tool
13969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13971   fi
13972 fi
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13975 $as_echo_n "checking where to find the target gcc... " >&6; }
13976 if test "x${build}" != "x${host}" ; then
13977   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13978     # We already found the complete path
13979     ac_dir=`dirname $GCC_FOR_TARGET`
13980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981 $as_echo "pre-installed in $ac_dir" >&6; }
13982   else
13983     # Canadian cross, just use what we found
13984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985 $as_echo "pre-installed" >&6; }
13986   fi
13987 else
13988   ok=yes
13989   case " ${configdirs} " in
13990     *" gcc "*) ;;
13991     *) ok=no ;;
13992   esac
13993
13994   if test $ok = yes; then
13995     # An in-tree tool is available and we can use it
13996     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13998 $as_echo "just compiled" >&6; }
13999   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14000     # We already found the complete path
14001     ac_dir=`dirname $GCC_FOR_TARGET`
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14003 $as_echo "pre-installed in $ac_dir" >&6; }
14004   elif test "x$target" = "x$host"; then
14005     # We can use an host tool
14006     GCC_FOR_TARGET='$()'
14007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14008 $as_echo "host tool" >&6; }
14009   else
14010     # We need a cross tool
14011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012 $as_echo "pre-installed" >&6; }
14013   fi
14014 fi
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14017 $as_echo_n "checking where to find the target gfortran... " >&6; }
14018 if test "x${build}" != "x${host}" ; then
14019   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14020     # We already found the complete path
14021     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023 $as_echo "pre-installed in $ac_dir" >&6; }
14024   else
14025     # Canadian cross, just use what we found
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14028   fi
14029 else
14030   ok=yes
14031   case " ${configdirs} " in
14032     *" gcc "*) ;;
14033     *) ok=no ;;
14034   esac
14035   case ,${enable_languages}, in
14036     *,fortran,*) ;;
14037     *) ok=no ;;
14038   esac
14039   if test $ok = yes; then
14040     # An in-tree tool is available and we can use it
14041     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043 $as_echo "just compiled" >&6; }
14044   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14045     # We already found the complete path
14046     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049   elif test "x$target" = "x$host"; then
14050     # We can use an host tool
14051     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053 $as_echo "host tool" >&6; }
14054   else
14055     # We need a cross tool
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14058   fi
14059 fi
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14062 $as_echo_n "checking where to find the target gccgo... " >&6; }
14063 if test "x${build}" != "x${host}" ; then
14064   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14065     # We already found the complete path
14066     ac_dir=`dirname $GOC_FOR_TARGET`
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068 $as_echo "pre-installed in $ac_dir" >&6; }
14069   else
14070     # Canadian cross, just use what we found
14071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14073   fi
14074 else
14075   ok=yes
14076   case " ${configdirs} " in
14077     *" gcc "*) ;;
14078     *) ok=no ;;
14079   esac
14080   case ,${enable_languages}, in
14081     *,go,*) ;;
14082     *) ok=no ;;
14083   esac
14084   if test $ok = yes; then
14085     # An in-tree tool is available and we can use it
14086     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14088 $as_echo "just compiled" >&6; }
14089   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14090     # We already found the complete path
14091     ac_dir=`dirname $GOC_FOR_TARGET`
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14093 $as_echo "pre-installed in $ac_dir" >&6; }
14094   elif test "x$target" = "x$host"; then
14095     # We can use an host tool
14096     GOC_FOR_TARGET='$(GOC)'
14097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14098 $as_echo "host tool" >&6; }
14099   else
14100     # We need a cross tool
14101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14102 $as_echo "pre-installed" >&6; }
14103   fi
14104 fi
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14107 $as_echo_n "checking where to find the target ld... " >&6; }
14108 if test "x${build}" != "x${host}" ; then
14109   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14110     # We already found the complete path
14111     ac_dir=`dirname $LD_FOR_TARGET`
14112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113 $as_echo "pre-installed in $ac_dir" >&6; }
14114   else
14115     # Canadian cross, just use what we found
14116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14117 $as_echo "pre-installed" >&6; }
14118   fi
14119 else
14120   ok=yes
14121   case " ${configdirs} " in
14122     *" ld "*) ;;
14123     *) ok=no ;;
14124   esac
14125
14126   if test $ok = yes; then
14127     # An in-tree tool is available and we can use it
14128     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130 $as_echo "just compiled" >&6; }
14131   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14132     # We already found the complete path
14133     ac_dir=`dirname $LD_FOR_TARGET`
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136   elif test "x$target" = "x$host"; then
14137     # We can use an host tool
14138     LD_FOR_TARGET='$(LD)'
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140 $as_echo "host tool" >&6; }
14141   else
14142     # We need a cross tool
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14145   fi
14146 fi
14147
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14149 $as_echo_n "checking where to find the target lipo... " >&6; }
14150 if test "x${build}" != "x${host}" ; then
14151   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14152     # We already found the complete path
14153     ac_dir=`dirname $LIPO_FOR_TARGET`
14154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155 $as_echo "pre-installed in $ac_dir" >&6; }
14156   else
14157     # Canadian cross, just use what we found
14158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14160   fi
14161 else
14162   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14163     # We already found the complete path
14164     ac_dir=`dirname $LIPO_FOR_TARGET`
14165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14166 $as_echo "pre-installed in $ac_dir" >&6; }
14167   elif test "x$target" = "x$host"; then
14168     # We can use an host tool
14169     LIPO_FOR_TARGET='$(LIPO)'
14170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14171 $as_echo "host tool" >&6; }
14172   else
14173     # We need a cross tool
14174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14175 $as_echo "pre-installed" >&6; }
14176   fi
14177 fi
14178
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14180 $as_echo_n "checking where to find the target nm... " >&6; }
14181 if test "x${build}" != "x${host}" ; then
14182   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14183     # We already found the complete path
14184     ac_dir=`dirname $NM_FOR_TARGET`
14185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187   else
14188     # Canadian cross, just use what we found
14189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14191   fi
14192 else
14193   ok=yes
14194   case " ${configdirs} " in
14195     *" binutils "*) ;;
14196     *) ok=no ;;
14197   esac
14198
14199   if test $ok = yes; then
14200     # An in-tree tool is available and we can use it
14201     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14203 $as_echo "just compiled" >&6; }
14204   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14205     # We already found the complete path
14206     ac_dir=`dirname $NM_FOR_TARGET`
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14208 $as_echo "pre-installed in $ac_dir" >&6; }
14209   elif test "x$target" = "x$host"; then
14210     # We can use an host tool
14211     NM_FOR_TARGET='$(NM)'
14212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14213 $as_echo "host tool" >&6; }
14214   else
14215     # We need a cross tool
14216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14217 $as_echo "pre-installed" >&6; }
14218   fi
14219 fi
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14222 $as_echo_n "checking where to find the target objcopy... " >&6; }
14223 if test "x${build}" != "x${host}" ; then
14224   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14225     # We already found the complete path
14226     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14228 $as_echo "pre-installed in $ac_dir" >&6; }
14229   else
14230     # Canadian cross, just use what we found
14231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232 $as_echo "pre-installed" >&6; }
14233   fi
14234 else
14235   ok=yes
14236   case " ${configdirs} " in
14237     *" binutils "*) ;;
14238     *) ok=no ;;
14239   esac
14240
14241   if test $ok = yes; then
14242     # An in-tree tool is available and we can use it
14243     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14245 $as_echo "just compiled" >&6; }
14246   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14247     # We already found the complete path
14248     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251   elif test "x$target" = "x$host"; then
14252     # We can use an host tool
14253     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14255 $as_echo "host tool" >&6; }
14256   else
14257     # We need a cross tool
14258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14259 $as_echo "pre-installed" >&6; }
14260   fi
14261 fi
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14264 $as_echo_n "checking where to find the target objdump... " >&6; }
14265 if test "x${build}" != "x${host}" ; then
14266   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14267     # We already found the complete path
14268     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14270 $as_echo "pre-installed in $ac_dir" >&6; }
14271   else
14272     # Canadian cross, just use what we found
14273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14275   fi
14276 else
14277   ok=yes
14278   case " ${configdirs} " in
14279     *" binutils "*) ;;
14280     *) ok=no ;;
14281   esac
14282
14283   if test $ok = yes; then
14284     # An in-tree tool is available and we can use it
14285     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14287 $as_echo "just compiled" >&6; }
14288   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14289     # We already found the complete path
14290     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14292 $as_echo "pre-installed in $ac_dir" >&6; }
14293   elif test "x$target" = "x$host"; then
14294     # We can use an host tool
14295     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14297 $as_echo "host tool" >&6; }
14298   else
14299     # We need a cross tool
14300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14301 $as_echo "pre-installed" >&6; }
14302   fi
14303 fi
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14306 $as_echo_n "checking where to find the target ranlib... " >&6; }
14307 if test "x${build}" != "x${host}" ; then
14308   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14309     # We already found the complete path
14310     ac_dir=`dirname $RANLIB_FOR_TARGET`
14311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14312 $as_echo "pre-installed in $ac_dir" >&6; }
14313   else
14314     # Canadian cross, just use what we found
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316 $as_echo "pre-installed" >&6; }
14317   fi
14318 else
14319   ok=yes
14320   case " ${configdirs} " in
14321     *" binutils "*) ;;
14322     *) ok=no ;;
14323   esac
14324
14325   if test $ok = yes; then
14326     # An in-tree tool is available and we can use it
14327     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14329 $as_echo "just compiled" >&6; }
14330   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14331     # We already found the complete path
14332     ac_dir=`dirname $RANLIB_FOR_TARGET`
14333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14334 $as_echo "pre-installed in $ac_dir" >&6; }
14335   elif test "x$target" = "x$host"; then
14336     # We can use an host tool
14337     RANLIB_FOR_TARGET='$(RANLIB)'
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14339 $as_echo "host tool" >&6; }
14340   else
14341     # We need a cross tool
14342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14343 $as_echo "pre-installed" >&6; }
14344   fi
14345 fi
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14348 $as_echo_n "checking where to find the target readelf... " >&6; }
14349 if test "x${build}" != "x${host}" ; then
14350   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14351     # We already found the complete path
14352     ac_dir=`dirname $READELF_FOR_TARGET`
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354 $as_echo "pre-installed in $ac_dir" >&6; }
14355   else
14356     # Canadian cross, just use what we found
14357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358 $as_echo "pre-installed" >&6; }
14359   fi
14360 else
14361   ok=yes
14362   case " ${configdirs} " in
14363     *" binutils "*) ;;
14364     *) ok=no ;;
14365   esac
14366
14367   if test $ok = yes; then
14368     # An in-tree tool is available and we can use it
14369     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14371 $as_echo "just compiled" >&6; }
14372   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14373     # We already found the complete path
14374     ac_dir=`dirname $READELF_FOR_TARGET`
14375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376 $as_echo "pre-installed in $ac_dir" >&6; }
14377   elif test "x$target" = "x$host"; then
14378     # We can use an host tool
14379     READELF_FOR_TARGET='$(READELF)'
14380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14381 $as_echo "host tool" >&6; }
14382   else
14383     # We need a cross tool
14384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385 $as_echo "pre-installed" >&6; }
14386   fi
14387 fi
14388
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14390 $as_echo_n "checking where to find the target strip... " >&6; }
14391 if test "x${build}" != "x${host}" ; then
14392   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14393     # We already found the complete path
14394     ac_dir=`dirname $STRIP_FOR_TARGET`
14395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396 $as_echo "pre-installed in $ac_dir" >&6; }
14397   else
14398     # Canadian cross, just use what we found
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400 $as_echo "pre-installed" >&6; }
14401   fi
14402 else
14403   ok=yes
14404   case " ${configdirs} " in
14405     *" binutils "*) ;;
14406     *) ok=no ;;
14407   esac
14408
14409   if test $ok = yes; then
14410     # An in-tree tool is available and we can use it
14411     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14413 $as_echo "just compiled" >&6; }
14414   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14415     # We already found the complete path
14416     ac_dir=`dirname $STRIP_FOR_TARGET`
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418 $as_echo "pre-installed in $ac_dir" >&6; }
14419   elif test "x$target" = "x$host"; then
14420     # We can use an host tool
14421     STRIP_FOR_TARGET='$(STRIP)'
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14423 $as_echo "host tool" >&6; }
14424   else
14425     # We need a cross tool
14426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14427 $as_echo "pre-installed" >&6; }
14428   fi
14429 fi
14430
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14432 $as_echo_n "checking where to find the target windres... " >&6; }
14433 if test "x${build}" != "x${host}" ; then
14434   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14435     # We already found the complete path
14436     ac_dir=`dirname $WINDRES_FOR_TARGET`
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14438 $as_echo "pre-installed in $ac_dir" >&6; }
14439   else
14440     # Canadian cross, just use what we found
14441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442 $as_echo "pre-installed" >&6; }
14443   fi
14444 else
14445   ok=yes
14446   case " ${configdirs} " in
14447     *" binutils "*) ;;
14448     *) ok=no ;;
14449   esac
14450
14451   if test $ok = yes; then
14452     # An in-tree tool is available and we can use it
14453     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14455 $as_echo "just compiled" >&6; }
14456   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14457     # We already found the complete path
14458     ac_dir=`dirname $WINDRES_FOR_TARGET`
14459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460 $as_echo "pre-installed in $ac_dir" >&6; }
14461   elif test "x$target" = "x$host"; then
14462     # We can use an host tool
14463     WINDRES_FOR_TARGET='$(WINDRES)'
14464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14465 $as_echo "host tool" >&6; }
14466   else
14467     # We need a cross tool
14468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14469 $as_echo "pre-installed" >&6; }
14470   fi
14471 fi
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14474 $as_echo_n "checking where to find the target windmc... " >&6; }
14475 if test "x${build}" != "x${host}" ; then
14476   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14477     # We already found the complete path
14478     ac_dir=`dirname $WINDMC_FOR_TARGET`
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480 $as_echo "pre-installed in $ac_dir" >&6; }
14481   else
14482     # Canadian cross, just use what we found
14483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484 $as_echo "pre-installed" >&6; }
14485   fi
14486 else
14487   ok=yes
14488   case " ${configdirs} " in
14489     *" binutils "*) ;;
14490     *) ok=no ;;
14491   esac
14492
14493   if test $ok = yes; then
14494     # An in-tree tool is available and we can use it
14495     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497 $as_echo "just compiled" >&6; }
14498   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14499     # We already found the complete path
14500     ac_dir=`dirname $WINDMC_FOR_TARGET`
14501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502 $as_echo "pre-installed in $ac_dir" >&6; }
14503   elif test "x$target" = "x$host"; then
14504     # We can use an host tool
14505     WINDMC_FOR_TARGET='$(WINDMC)'
14506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507 $as_echo "host tool" >&6; }
14508   else
14509     # We need a cross tool
14510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511 $as_echo "pre-installed" >&6; }
14512   fi
14513 fi
14514
14515
14516
14517
14518
14519 # Certain tools may need extra flags.
14520 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14521 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14522 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14523
14524 # When building target libraries, except in a Canadian cross, we use
14525 # the same toolchain as the compiler we just built.
14526 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14527 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14528 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14529 if test $host = $build; then
14530   case " $configdirs " in
14531     *" gcc "*)
14532       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14533       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14534       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14535       ;;
14536   esac
14537 fi
14538
14539
14540
14541
14542
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14545 # Check whether --enable-maintainer-mode was given.
14546 if test "${enable_maintainer_mode+set}" = set; then :
14547   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14548 else
14549   USE_MAINTAINER_MODE=no
14550 fi
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14553 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14554
14555
14556 if test "$USE_MAINTAINER_MODE" = yes; then
14557   MAINTAINER_MODE_TRUE=
14558   MAINTAINER_MODE_FALSE='#'
14559 else
14560   MAINTAINER_MODE_TRUE='#'
14561   MAINTAINER_MODE_FALSE=
14562 fi
14563 MAINT=$MAINTAINER_MODE_TRUE
14564
14565 # ---------------------
14566 # GCC bootstrap support
14567 # ---------------------
14568
14569 # Stage specific cflags for build.
14570 stage1_cflags="-g"
14571 case $build in
14572   vax-*-*)
14573     case ${GCC} in
14574       yes) stage1_cflags="-g -Wa,-J" ;;
14575       *) stage1_cflags="-g -J" ;;
14576     esac ;;
14577 esac
14578
14579
14580
14581 # Enable --enable-checking in stage1 of the compiler.
14582 # Check whether --enable-stage1-checking was given.
14583 if test "${enable_stage1_checking+set}" = set; then :
14584   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14585 else
14586   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14587   # For --disable-checking or implicit --enable-checking=release, avoid
14588   # setting --enable-checking=gc in the default stage1 checking for LTO
14589   # bootstraps.  See PR62077.
14590   case $BUILD_CONFIG in
14591     *lto*)
14592       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14593     *)
14594       stage1_checking=--enable-checking=yes,types;;
14595   esac
14596   if test "x$enable_checking" = x && \
14597      test -d ${srcdir}/gcc && \
14598      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14599     stage1_checking=--enable-checking=yes,types,extra
14600   fi
14601 else
14602   stage1_checking=--enable-checking=$enable_checking,types
14603 fi
14604 fi
14605
14606
14607
14608 # Enable -Werror in bootstrap stage2 and later.
14609 # Check whether --enable-werror was given.
14610 if test "${enable_werror+set}" = set; then :
14611   enableval=$enable_werror;
14612 else
14613   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14614   enable_werror=yes
14615 else
14616   enable_werror=no
14617 fi
14618 fi
14619
14620 case ${enable_werror} in
14621   yes) stage2_werror_flag="--enable-werror-always" ;;
14622   *) stage2_werror_flag="" ;;
14623 esac
14624
14625
14626 # Enable --enable-host-shared.
14627 # Check whether --enable-host-shared was given.
14628 if test "${enable_host_shared+set}" = set; then :
14629   enableval=$enable_host_shared; host_shared=$enableval
14630 else
14631   host_shared=no
14632 fi
14633
14634
14635
14636 # PR jit/64780: Require the user to explicitly specify
14637 # --enable-host-shared if the jit is enabled, hinting
14638 # that they might want to do a separate configure/build of
14639 # the jit, to avoid users from slowing down the rest of the
14640 # compiler by enabling the jit.
14641 if test ${host_shared} = "no" ; then
14642   case "${enable_languages}" in
14643     *jit*)
14644       as_fn_error "
14645 Enabling language \"jit\" requires --enable-host-shared.
14646
14647 --enable-host-shared typically slows the rest of the compiler down by
14648 a few %, so you must explicitly enable it.
14649
14650 If you want to build both the jit and the regular compiler, it is often
14651 best to do this via two separate configure/builds, in separate
14652 directories, to avoid imposing the performance cost of
14653 --enable-host-shared on the regular compiler." "$LINENO" 5
14654       ;;
14655     *)
14656       ;;
14657   esac
14658 fi
14659
14660 # Specify what files to not compare during bootstrap.
14661
14662 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14663 case "$target" in
14664   hppa*64*-*-hpux*) ;;
14665   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14666   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14667 esac
14668
14669
14670 ac_config_files="$ac_config_files Makefile"
14671
14672 cat >confcache <<\_ACEOF
14673 # This file is a shell script that caches the results of configure
14674 # tests run on this system so they can be shared between configure
14675 # scripts and configure runs, see configure's option --config-cache.
14676 # It is not useful on other systems.  If it contains results you don't
14677 # want to keep, you may remove or edit it.
14678 #
14679 # config.status only pays attention to the cache file if you give it
14680 # the --recheck option to rerun configure.
14681 #
14682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14684 # following values.
14685
14686 _ACEOF
14687
14688 # The following way of writing the cache mishandles newlines in values,
14689 # but we know of no workaround that is simple, portable, and efficient.
14690 # So, we kill variables containing newlines.
14691 # Ultrix sh set writes to stderr and can't be redirected directly,
14692 # and sets the high bit in the cache file unless we assign to the vars.
14693 (
14694   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14695     eval ac_val=\$$ac_var
14696     case $ac_val in #(
14697     *${as_nl}*)
14698       case $ac_var in #(
14699       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14701       esac
14702       case $ac_var in #(
14703       _ | IFS | as_nl) ;; #(
14704       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14705       *) { eval $ac_var=; unset $ac_var;} ;;
14706       esac ;;
14707     esac
14708   done
14709
14710   (set) 2>&1 |
14711     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14712     *${as_nl}ac_space=\ *)
14713       # `set' does not quote correctly, so add quotes: double-quote
14714       # substitution turns \\\\ into \\, and sed turns \\ into \.
14715       sed -n \
14716         "s/'/'\\\\''/g;
14717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14718       ;; #(
14719     *)
14720       # `set' quotes correctly as required by POSIX, so do not add quotes.
14721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14722       ;;
14723     esac |
14724     sort
14725 ) |
14726   sed '
14727      /^ac_cv_env_/b end
14728      t clear
14729      :clear
14730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14731      t end
14732      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14733      :end' >>confcache
14734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14735   if test -w "$cache_file"; then
14736     test "x$cache_file" != "x/dev/null" &&
14737       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14738 $as_echo "$as_me: updating cache $cache_file" >&6;}
14739     cat confcache >$cache_file
14740   else
14741     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14743   fi
14744 fi
14745 rm -f confcache
14746
14747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14748 # Let make expand exec_prefix.
14749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14750
14751 # Transform confdefs.h into DEFS.
14752 # Protect against shell expansion while executing Makefile rules.
14753 # Protect against Makefile macro expansion.
14754 #
14755 # If the first sed substitution is executed (which looks for macros that
14756 # take arguments), then branch to the quote section.  Otherwise,
14757 # look for a macro that doesn't take arguments.
14758 ac_script='
14759 :mline
14760 /\\$/{
14761  N
14762  s,\\\n,,
14763  b mline
14764 }
14765 t clear
14766 :clear
14767 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14768 t quote
14769 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14770 t quote
14771 b any
14772 :quote
14773 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14774 s/\[/\\&/g
14775 s/\]/\\&/g
14776 s/\$/$$/g
14777 H
14778 :any
14779 ${
14780         g
14781         s/^\n//
14782         s/\n/ /g
14783         p
14784 }
14785 '
14786 DEFS=`sed -n "$ac_script" confdefs.h`
14787
14788
14789 ac_libobjs=
14790 ac_ltlibobjs=
14791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14792   # 1. Remove the extension, and $U if already installed.
14793   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14794   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14795   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14796   #    will be set to the directory where LIBOBJS objects are built.
14797   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14798   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14799 done
14800 LIBOBJS=$ac_libobjs
14801
14802 LTLIBOBJS=$ac_ltlibobjs
14803
14804
14805
14806 : ${CONFIG_STATUS=./config.status}
14807 ac_write_fail=0
14808 ac_clean_files_save=$ac_clean_files
14809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14811 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14812 as_write_fail=0
14813 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14814 #! $SHELL
14815 # Generated by $as_me.
14816 # Run this file to recreate the current configuration.
14817 # Compiler output produced by configure, useful for debugging
14818 # configure, is in config.log if it exists.
14819
14820 debug=false
14821 ac_cs_recheck=false
14822 ac_cs_silent=false
14823
14824 SHELL=\${CONFIG_SHELL-$SHELL}
14825 export SHELL
14826 _ASEOF
14827 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14828 ## -------------------- ##
14829 ## M4sh Initialization. ##
14830 ## -------------------- ##
14831
14832 # Be more Bourne compatible
14833 DUALCASE=1; export DUALCASE # for MKS sh
14834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14835   emulate sh
14836   NULLCMD=:
14837   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14838   # is contrary to our usage.  Disable this feature.
14839   alias -g '${1+"$@"}'='"$@"'
14840   setopt NO_GLOB_SUBST
14841 else
14842   case `(set -o) 2>/dev/null` in #(
14843   *posix*) :
14844     set -o posix ;; #(
14845   *) :
14846      ;;
14847 esac
14848 fi
14849
14850
14851 as_nl='
14852 '
14853 export as_nl
14854 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14855 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14856 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14858 # Prefer a ksh shell builtin over an external printf program on Solaris,
14859 # but without wasting forks for bash or zsh.
14860 if test -z "$BASH_VERSION$ZSH_VERSION" \
14861     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14862   as_echo='print -r --'
14863   as_echo_n='print -rn --'
14864 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14865   as_echo='printf %s\n'
14866   as_echo_n='printf %s'
14867 else
14868   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14869     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14870     as_echo_n='/usr/ucb/echo -n'
14871   else
14872     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14873     as_echo_n_body='eval
14874       arg=$1;
14875       case $arg in #(
14876       *"$as_nl"*)
14877         expr "X$arg" : "X\\(.*\\)$as_nl";
14878         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14879       esac;
14880       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14881     '
14882     export as_echo_n_body
14883     as_echo_n='sh -c $as_echo_n_body as_echo'
14884   fi
14885   export as_echo_body
14886   as_echo='sh -c $as_echo_body as_echo'
14887 fi
14888
14889 # The user is always right.
14890 if test "${PATH_SEPARATOR+set}" != set; then
14891   PATH_SEPARATOR=:
14892   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14893     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14894       PATH_SEPARATOR=';'
14895   }
14896 fi
14897
14898
14899 # IFS
14900 # We need space, tab and new line, in precisely that order.  Quoting is
14901 # there to prevent editors from complaining about space-tab.
14902 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14903 # splitting by setting IFS to empty value.)
14904 IFS=" ""        $as_nl"
14905
14906 # Find who we are.  Look in the path if we contain no directory separator.
14907 case $0 in #((
14908   *[\\/]* ) as_myself=$0 ;;
14909   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14910 for as_dir in $PATH
14911 do
14912   IFS=$as_save_IFS
14913   test -z "$as_dir" && as_dir=.
14914     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14915   done
14916 IFS=$as_save_IFS
14917
14918      ;;
14919 esac
14920 # We did not find ourselves, most probably we were run as `sh COMMAND'
14921 # in which case we are not to be found in the path.
14922 if test "x$as_myself" = x; then
14923   as_myself=$0
14924 fi
14925 if test ! -f "$as_myself"; then
14926   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14927   exit 1
14928 fi
14929
14930 # Unset variables that we do not need and which cause bugs (e.g. in
14931 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14932 # suppresses any "Segmentation fault" message there.  '((' could
14933 # trigger a bug in pdksh 5.2.14.
14934 for as_var in BASH_ENV ENV MAIL MAILPATH
14935 do eval test x\${$as_var+set} = xset \
14936   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14937 done
14938 PS1='$ '
14939 PS2='> '
14940 PS4='+ '
14941
14942 # NLS nuisances.
14943 LC_ALL=C
14944 export LC_ALL
14945 LANGUAGE=C
14946 export LANGUAGE
14947
14948 # CDPATH.
14949 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14950
14951
14952 # as_fn_error ERROR [LINENO LOG_FD]
14953 # ---------------------------------
14954 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14955 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14956 # script with status $?, using 1 if that was 0.
14957 as_fn_error ()
14958 {
14959   as_status=$?; test $as_status -eq 0 && as_status=1
14960   if test "$3"; then
14961     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14962     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14963   fi
14964   $as_echo "$as_me: error: $1" >&2
14965   as_fn_exit $as_status
14966 } # as_fn_error
14967
14968
14969 # as_fn_set_status STATUS
14970 # -----------------------
14971 # Set $? to STATUS, without forking.
14972 as_fn_set_status ()
14973 {
14974   return $1
14975 } # as_fn_set_status
14976
14977 # as_fn_exit STATUS
14978 # -----------------
14979 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14980 as_fn_exit ()
14981 {
14982   set +e
14983   as_fn_set_status $1
14984   exit $1
14985 } # as_fn_exit
14986
14987 # as_fn_unset VAR
14988 # ---------------
14989 # Portably unset VAR.
14990 as_fn_unset ()
14991 {
14992   { eval $1=; unset $1;}
14993 }
14994 as_unset=as_fn_unset
14995 # as_fn_append VAR VALUE
14996 # ----------------------
14997 # Append the text in VALUE to the end of the definition contained in VAR. Take
14998 # advantage of any shell optimizations that allow amortized linear growth over
14999 # repeated appends, instead of the typical quadratic growth present in naive
15000 # implementations.
15001 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15002   eval 'as_fn_append ()
15003   {
15004     eval $1+=\$2
15005   }'
15006 else
15007   as_fn_append ()
15008   {
15009     eval $1=\$$1\$2
15010   }
15011 fi # as_fn_append
15012
15013 # as_fn_arith ARG...
15014 # ------------------
15015 # Perform arithmetic evaluation on the ARGs, and store the result in the
15016 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15017 # must be portable across $(()) and expr.
15018 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15019   eval 'as_fn_arith ()
15020   {
15021     as_val=$(( $* ))
15022   }'
15023 else
15024   as_fn_arith ()
15025   {
15026     as_val=`expr "$@" || test $? -eq 1`
15027   }
15028 fi # as_fn_arith
15029
15030
15031 if expr a : '\(a\)' >/dev/null 2>&1 &&
15032    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15033   as_expr=expr
15034 else
15035   as_expr=false
15036 fi
15037
15038 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15039   as_basename=basename
15040 else
15041   as_basename=false
15042 fi
15043
15044 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15045   as_dirname=dirname
15046 else
15047   as_dirname=false
15048 fi
15049
15050 as_me=`$as_basename -- "$0" ||
15051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15052          X"$0" : 'X\(//\)$' \| \
15053          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15054 $as_echo X/"$0" |
15055     sed '/^.*\/\([^/][^/]*\)\/*$/{
15056             s//\1/
15057             q
15058           }
15059           /^X\/\(\/\/\)$/{
15060             s//\1/
15061             q
15062           }
15063           /^X\/\(\/\).*/{
15064             s//\1/
15065             q
15066           }
15067           s/.*/./; q'`
15068
15069 # Avoid depending upon Character Ranges.
15070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15073 as_cr_digits='0123456789'
15074 as_cr_alnum=$as_cr_Letters$as_cr_digits
15075
15076 ECHO_C= ECHO_N= ECHO_T=
15077 case `echo -n x` in #(((((
15078 -n*)
15079   case `echo 'xy\c'` in
15080   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15081   xy)  ECHO_C='\c';;
15082   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15083        ECHO_T=' ';;
15084   esac;;
15085 *)
15086   ECHO_N='-n';;
15087 esac
15088
15089 rm -f conf$$ conf$$.exe conf$$.file
15090 if test -d conf$$.dir; then
15091   rm -f conf$$.dir/conf$$.file
15092 else
15093   rm -f conf$$.dir
15094   mkdir conf$$.dir 2>/dev/null
15095 fi
15096 if (echo >conf$$.file) 2>/dev/null; then
15097   if ln -s conf$$.file conf$$ 2>/dev/null; then
15098     as_ln_s='ln -s'
15099     # ... but there are two gotchas:
15100     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15101     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15102     # In both cases, we have to default to `cp -p'.
15103     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15104       as_ln_s='cp -p'
15105   elif ln conf$$.file conf$$ 2>/dev/null; then
15106     as_ln_s=ln
15107   else
15108     as_ln_s='cp -p'
15109   fi
15110 else
15111   as_ln_s='cp -p'
15112 fi
15113 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15114 rmdir conf$$.dir 2>/dev/null
15115
15116
15117 # as_fn_mkdir_p
15118 # -------------
15119 # Create "$as_dir" as a directory, including parents if necessary.
15120 as_fn_mkdir_p ()
15121 {
15122
15123   case $as_dir in #(
15124   -*) as_dir=./$as_dir;;
15125   esac
15126   test -d "$as_dir" || eval $as_mkdir_p || {
15127     as_dirs=
15128     while :; do
15129       case $as_dir in #(
15130       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15131       *) as_qdir=$as_dir;;
15132       esac
15133       as_dirs="'$as_qdir' $as_dirs"
15134       as_dir=`$as_dirname -- "$as_dir" ||
15135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15136          X"$as_dir" : 'X\(//\)[^/]' \| \
15137          X"$as_dir" : 'X\(//\)$' \| \
15138          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15139 $as_echo X"$as_dir" |
15140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15141             s//\1/
15142             q
15143           }
15144           /^X\(\/\/\)[^/].*/{
15145             s//\1/
15146             q
15147           }
15148           /^X\(\/\/\)$/{
15149             s//\1/
15150             q
15151           }
15152           /^X\(\/\).*/{
15153             s//\1/
15154             q
15155           }
15156           s/.*/./; q'`
15157       test -d "$as_dir" && break
15158     done
15159     test -z "$as_dirs" || eval "mkdir $as_dirs"
15160   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15161
15162
15163 } # as_fn_mkdir_p
15164 if mkdir -p . 2>/dev/null; then
15165   as_mkdir_p='mkdir -p "$as_dir"'
15166 else
15167   test -d ./-p && rmdir ./-p
15168   as_mkdir_p=false
15169 fi
15170
15171 if test -x / >/dev/null 2>&1; then
15172   as_test_x='test -x'
15173 else
15174   if ls -dL / >/dev/null 2>&1; then
15175     as_ls_L_option=L
15176   else
15177     as_ls_L_option=
15178   fi
15179   as_test_x='
15180     eval sh -c '\''
15181       if test -d "$1"; then
15182         test -d "$1/.";
15183       else
15184         case $1 in #(
15185         -*)set "./$1";;
15186         esac;
15187         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15188         ???[sx]*):;;*)false;;esac;fi
15189     '\'' sh
15190   '
15191 fi
15192 as_executable_p=$as_test_x
15193
15194 # Sed expression to map a string onto a valid CPP name.
15195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15196
15197 # Sed expression to map a string onto a valid variable name.
15198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15199
15200
15201 exec 6>&1
15202 ## ----------------------------------- ##
15203 ## Main body of $CONFIG_STATUS script. ##
15204 ## ----------------------------------- ##
15205 _ASEOF
15206 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15207
15208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209 # Save the log message, to keep $0 and so on meaningful, and to
15210 # report actual input values of CONFIG_FILES etc. instead of their
15211 # values after options handling.
15212 ac_log="
15213 This file was extended by $as_me, which was
15214 generated by GNU Autoconf 2.64.  Invocation command line was
15215
15216   CONFIG_FILES    = $CONFIG_FILES
15217   CONFIG_HEADERS  = $CONFIG_HEADERS
15218   CONFIG_LINKS    = $CONFIG_LINKS
15219   CONFIG_COMMANDS = $CONFIG_COMMANDS
15220   $ $0 $@
15221
15222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15223 "
15224
15225 _ACEOF
15226
15227 case $ac_config_files in *"
15228 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15229 esac
15230
15231
15232
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 # Files that config.status was made for.
15235 config_files="$ac_config_files"
15236
15237 _ACEOF
15238
15239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15240 ac_cs_usage="\
15241 \`$as_me' instantiates files and other configuration actions
15242 from templates according to the current configuration.  Unless the files
15243 and actions are specified as TAGs, all are instantiated by default.
15244
15245 Usage: $0 [OPTION]... [TAG]...
15246
15247   -h, --help       print this help, then exit
15248   -V, --version    print version number and configuration settings, then exit
15249   -q, --quiet, --silent
15250                    do not print progress messages
15251   -d, --debug      don't remove temporary files
15252       --recheck    update $as_me by reconfiguring in the same conditions
15253       --file=FILE[:TEMPLATE]
15254                    instantiate the configuration file FILE
15255
15256 Configuration files:
15257 $config_files
15258
15259 Report bugs to the package provider."
15260
15261 _ACEOF
15262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263 ac_cs_version="\\
15264 config.status
15265 configured by $0, generated by GNU Autoconf 2.64,
15266   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15267
15268 Copyright (C) 2009 Free Software Foundation, Inc.
15269 This config.status script is free software; the Free Software Foundation
15270 gives unlimited permission to copy, distribute and modify it."
15271
15272 ac_pwd='$ac_pwd'
15273 srcdir='$srcdir'
15274 INSTALL='$INSTALL'
15275 AWK='$AWK'
15276 test -n "\$AWK" || AWK=awk
15277 _ACEOF
15278
15279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 # The default lists apply if the user does not specify any file.
15281 ac_need_defaults=:
15282 while test $# != 0
15283 do
15284   case $1 in
15285   --*=*)
15286     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15287     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15288     ac_shift=:
15289     ;;
15290   *)
15291     ac_option=$1
15292     ac_optarg=$2
15293     ac_shift=shift
15294     ;;
15295   esac
15296
15297   case $ac_option in
15298   # Handling of the options.
15299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15300     ac_cs_recheck=: ;;
15301   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15302     $as_echo "$ac_cs_version"; exit ;;
15303   --debug | --debu | --deb | --de | --d | -d )
15304     debug=: ;;
15305   --file | --fil | --fi | --f )
15306     $ac_shift
15307     case $ac_optarg in
15308     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15309     esac
15310     as_fn_append CONFIG_FILES " '$ac_optarg'"
15311     ac_need_defaults=false;;
15312   --he | --h |  --help | --hel | -h )
15313     $as_echo "$ac_cs_usage"; exit ;;
15314   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15315   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15316     ac_cs_silent=: ;;
15317
15318   # This is an error.
15319   -*) as_fn_error "unrecognized option: \`$1'
15320 Try \`$0 --help' for more information." ;;
15321
15322   *) as_fn_append ac_config_targets " $1"
15323      ac_need_defaults=false ;;
15324
15325   esac
15326   shift
15327 done
15328
15329 ac_configure_extra_args=
15330
15331 if $ac_cs_silent; then
15332   exec 6>/dev/null
15333   ac_configure_extra_args="$ac_configure_extra_args --silent"
15334 fi
15335
15336 _ACEOF
15337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338 if \$ac_cs_recheck; then
15339   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15340   shift
15341   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15342   CONFIG_SHELL='$SHELL'
15343   export CONFIG_SHELL
15344   exec "\$@"
15345 fi
15346
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 exec 5>>config.log
15350 {
15351   echo
15352   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15353 ## Running $as_me. ##
15354 _ASBOX
15355   $as_echo "$ac_log"
15356 } >&5
15357
15358 _ACEOF
15359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15360 #
15361 # INIT-COMMANDS
15362 #
15363 extrasub_build="$extrasub_build"
15364    extrasub_host="$extrasub_host"
15365    extrasub_target="$extrasub_target"
15366
15367 _ACEOF
15368
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370
15371 # Handling of arguments.
15372 for ac_config_target in $ac_config_targets
15373 do
15374   case $ac_config_target in
15375     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15376
15377   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15378   esac
15379 done
15380
15381
15382 # If the user did not use the arguments to specify the items to instantiate,
15383 # then the envvar interface is used.  Set only those that are not.
15384 # We use the long form for the default assignment because of an extremely
15385 # bizarre bug on SunOS 4.1.3.
15386 if $ac_need_defaults; then
15387   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15388 fi
15389
15390 # Have a temporary directory for convenience.  Make it in the build tree
15391 # simply because there is no reason against having it here, and in addition,
15392 # creating and moving files from /tmp can sometimes cause problems.
15393 # Hook for its removal unless debugging.
15394 # Note that there is a small window in which the directory will not be cleaned:
15395 # after its creation but before its name has been assigned to `$tmp'.
15396 $debug ||
15397 {
15398   tmp=
15399   trap 'exit_status=$?
15400   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15401 ' 0
15402   trap 'as_fn_exit 1' 1 2 13 15
15403 }
15404 # Create a (secure) tmp directory for tmp files.
15405
15406 {
15407   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15408   test -n "$tmp" && test -d "$tmp"
15409 }  ||
15410 {
15411   tmp=./conf$$-$RANDOM
15412   (umask 077 && mkdir "$tmp")
15413 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15414
15415 # Set up the scripts for CONFIG_FILES section.
15416 # No need to generate them if there are no CONFIG_FILES.
15417 # This happens for instance with `./config.status config.h'.
15418 if test -n "$CONFIG_FILES"; then
15419
15420 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15421   ac_cs_awk_getline=:
15422   ac_cs_awk_pipe_init=
15423   ac_cs_awk_read_file='
15424       while ((getline aline < (F[key])) > 0)
15425         print(aline)
15426       close(F[key])'
15427   ac_cs_awk_pipe_fini=
15428 else
15429   ac_cs_awk_getline=false
15430   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15431   ac_cs_awk_read_file='
15432       print "|#_!!_#|"
15433       print "cat " F[key] " &&"
15434       '$ac_cs_awk_pipe_init
15435   # The final `:' finishes the AND list.
15436   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15437 fi
15438 ac_cr=`echo X | tr X '\015'`
15439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15440 # But we know of no other shell where ac_cr would be empty at this
15441 # point, so we can use a bashism as a fallback.
15442 if test "x$ac_cr" = x; then
15443   eval ac_cr=\$\'\\r\'
15444 fi
15445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15447   ac_cs_awk_cr='\r'
15448 else
15449   ac_cs_awk_cr=$ac_cr
15450 fi
15451
15452 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15453 _ACEOF
15454
15455 # Create commands to substitute file output variables.
15456 {
15457   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15458   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15459   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15460   echo "_ACAWK" &&
15461   echo "_ACEOF"
15462 } >conf$$files.sh &&
15463 . ./conf$$files.sh ||
15464   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15465 rm -f conf$$files.sh
15466
15467 {
15468   echo "cat >conf$$subs.awk <<_ACEOF" &&
15469   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15470   echo "_ACEOF"
15471 } >conf$$subs.sh ||
15472   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15473 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15474 ac_delim='%!_!# '
15475 for ac_last_try in false false false false false :; do
15476   . ./conf$$subs.sh ||
15477     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15478
15479   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15480   if test $ac_delim_n = $ac_delim_num; then
15481     break
15482   elif $ac_last_try; then
15483     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15484   else
15485     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15486   fi
15487 done
15488 rm -f conf$$subs.sh
15489
15490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15491 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15492 _ACEOF
15493 sed -n '
15494 h
15495 s/^/S["/; s/!.*/"]=/
15496 p
15497 g
15498 s/^[^!]*!//
15499 :repl
15500 t repl
15501 s/'"$ac_delim"'$//
15502 t delim
15503 :nl
15504 h
15505 s/\(.\{148\}\).*/\1/
15506 t more1
15507 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15508 p
15509 n
15510 b repl
15511 :more1
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15513 p
15514 g
15515 s/.\{148\}//
15516 t nl
15517 :delim
15518 h
15519 s/\(.\{148\}\).*/\1/
15520 t more2
15521 s/["\\]/\\&/g; s/^/"/; s/$/"/
15522 p
15523 b
15524 :more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15526 p
15527 g
15528 s/.\{148\}//
15529 t delim
15530 ' <conf$$subs.awk | sed '
15531 /^[^""]/{
15532   N
15533   s/\n//
15534 }
15535 ' >>$CONFIG_STATUS || ac_write_fail=1
15536 rm -f conf$$subs.awk
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 _ACAWK
15539 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15540   for (key in S) S_is_set[key] = 1
15541   FS = "\a"
15542   \$ac_cs_awk_pipe_init
15543 }
15544 {
15545   line = $ 0
15546   nfields = split(line, field, "@")
15547   substed = 0
15548   len = length(field[1])
15549   for (i = 2; i < nfields; i++) {
15550     key = field[i]
15551     keylen = length(key)
15552     if (S_is_set[key]) {
15553       value = S[key]
15554       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15555       len += length(value) + length(field[++i])
15556       substed = 1
15557     } else
15558       len += 1 + keylen
15559   }
15560   if (nfields == 3 && !substed) {
15561     key = field[2]
15562     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15563       \$ac_cs_awk_read_file
15564       next
15565     }
15566   }
15567   print line
15568 }
15569 \$ac_cs_awk_pipe_fini
15570 _ACAWK
15571 _ACEOF
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15574   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15575 else
15576   cat
15577 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15578   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15579 _ACEOF
15580
15581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15583 # trailing colons and then remove the whole line if VPATH becomes empty
15584 # (actually we leave an empty line to preserve line numbers).
15585 if test "x$srcdir" = x.; then
15586   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15587 s/:*\$(srcdir):*/:/
15588 s/:*\${srcdir}:*/:/
15589 s/:*@srcdir@:*/:/
15590 s/^\([^=]*=[     ]*\):*/\1/
15591 s/:*$//
15592 s/^[^=]*=[       ]*$//
15593 }'
15594 fi
15595
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 fi # test -n "$CONFIG_FILES"
15598
15599
15600 eval set X "  :F $CONFIG_FILES      "
15601 shift
15602 for ac_tag
15603 do
15604   case $ac_tag in
15605   :[FHLC]) ac_mode=$ac_tag; continue;;
15606   esac
15607   case $ac_mode$ac_tag in
15608   :[FHL]*:*);;
15609   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15610   :[FH]-) ac_tag=-:-;;
15611   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15612   esac
15613   ac_save_IFS=$IFS
15614   IFS=:
15615   set x $ac_tag
15616   IFS=$ac_save_IFS
15617   shift
15618   ac_file=$1
15619   shift
15620
15621   case $ac_mode in
15622   :L) ac_source=$1;;
15623   :[FH])
15624     ac_file_inputs=
15625     for ac_f
15626     do
15627       case $ac_f in
15628       -) ac_f="$tmp/stdin";;
15629       *) # Look for the file first in the build tree, then in the source tree
15630          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15631          # because $ac_f cannot contain `:'.
15632          test -f "$ac_f" ||
15633            case $ac_f in
15634            [\\/$]*) false;;
15635            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15636            esac ||
15637            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15638       esac
15639       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15640       as_fn_append ac_file_inputs " '$ac_f'"
15641     done
15642
15643     # Let's still pretend it is `configure' which instantiates (i.e., don't
15644     # use $as_me), people would be surprised to read:
15645     #    /* config.h.  Generated by config.status.  */
15646     configure_input='Generated from '`
15647           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15648         `' by configure.'
15649     if test x"$ac_file" != x-; then
15650       configure_input="$ac_file.  $configure_input"
15651       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15652 $as_echo "$as_me: creating $ac_file" >&6;}
15653     fi
15654     # Neutralize special characters interpreted by sed in replacement strings.
15655     case $configure_input in #(
15656     *\&* | *\|* | *\\* )
15657        ac_sed_conf_input=`$as_echo "$configure_input" |
15658        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15659     *) ac_sed_conf_input=$configure_input;;
15660     esac
15661
15662     case $ac_tag in
15663     *:-:* | *:-) cat >"$tmp/stdin" \
15664       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15665     esac
15666     ;;
15667   esac
15668
15669   ac_dir=`$as_dirname -- "$ac_file" ||
15670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15671          X"$ac_file" : 'X\(//\)[^/]' \| \
15672          X"$ac_file" : 'X\(//\)$' \| \
15673          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15674 $as_echo X"$ac_file" |
15675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15676             s//\1/
15677             q
15678           }
15679           /^X\(\/\/\)[^/].*/{
15680             s//\1/
15681             q
15682           }
15683           /^X\(\/\/\)$/{
15684             s//\1/
15685             q
15686           }
15687           /^X\(\/\).*/{
15688             s//\1/
15689             q
15690           }
15691           s/.*/./; q'`
15692   as_dir="$ac_dir"; as_fn_mkdir_p
15693   ac_builddir=.
15694
15695 case "$ac_dir" in
15696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15697 *)
15698   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15699   # A ".." for each directory in $ac_dir_suffix.
15700   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15701   case $ac_top_builddir_sub in
15702   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15703   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15704   esac ;;
15705 esac
15706 ac_abs_top_builddir=$ac_pwd
15707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15708 # for backward compatibility:
15709 ac_top_builddir=$ac_top_build_prefix
15710
15711 case $srcdir in
15712   .)  # We are building in place.
15713     ac_srcdir=.
15714     ac_top_srcdir=$ac_top_builddir_sub
15715     ac_abs_top_srcdir=$ac_pwd ;;
15716   [\\/]* | ?:[\\/]* )  # Absolute name.
15717     ac_srcdir=$srcdir$ac_dir_suffix;
15718     ac_top_srcdir=$srcdir
15719     ac_abs_top_srcdir=$srcdir ;;
15720   *) # Relative name.
15721     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15722     ac_top_srcdir=$ac_top_build_prefix$srcdir
15723     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15724 esac
15725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15726
15727
15728   case $ac_mode in
15729   :F)
15730   #
15731   # CONFIG_FILE
15732   #
15733
15734   case $INSTALL in
15735   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15736   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15737   esac
15738 _ACEOF
15739
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741 # If the template does not know about datarootdir, expand it.
15742 # FIXME: This hack should be removed a few years after 2.60.
15743 ac_datarootdir_hack=; ac_datarootdir_seen=
15744 ac_sed_dataroot='
15745 /datarootdir/ {
15746   p
15747   q
15748 }
15749 /@datadir@/p
15750 /@docdir@/p
15751 /@infodir@/p
15752 /@localedir@/p
15753 /@mandir@/p'
15754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15755 *datarootdir*) ac_datarootdir_seen=yes;;
15756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15759 _ACEOF
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761   ac_datarootdir_hack='
15762   s&@datadir@&$datadir&g
15763   s&@docdir@&$docdir&g
15764   s&@infodir@&$infodir&g
15765   s&@localedir@&$localedir&g
15766   s&@mandir@&$mandir&g
15767   s&\\\${datarootdir}&$datarootdir&g' ;;
15768 esac
15769 _ACEOF
15770
15771 # Neutralize VPATH when `$srcdir' = `.'.
15772 # Shell code in configure.ac might set extrasub.
15773 # FIXME: do we really want to maintain this feature?
15774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15775 ac_sed_extra="$ac_vpsub
15776 $extrasub
15777 _ACEOF
15778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779 :t
15780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15781 s|@configure_input@|$ac_sed_conf_input|;t t
15782 s&@top_builddir@&$ac_top_builddir_sub&;t t
15783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15784 s&@srcdir@&$ac_srcdir&;t t
15785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15786 s&@top_srcdir@&$ac_top_srcdir&;t t
15787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15788 s&@builddir@&$ac_builddir&;t t
15789 s&@abs_builddir@&$ac_abs_builddir&;t t
15790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15791 s&@INSTALL@&$ac_INSTALL&;t t
15792 $ac_datarootdir_hack
15793 "
15794 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15795 if $ac_cs_awk_getline; then
15796   $AWK -f "$tmp/subs.awk"
15797 else
15798   $AWK -f "$tmp/subs.awk" | $SHELL
15799 fi >$tmp/out \
15800   || as_fn_error "could not create $ac_file" "$LINENO" 5
15801
15802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15803   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15804   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15806 which seems to be undefined.  Please make sure it is defined." >&5
15807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15808 which seems to be undefined.  Please make sure it is defined." >&2;}
15809
15810   rm -f "$tmp/stdin"
15811   case $ac_file in
15812   -) cat "$tmp/out" && rm -f "$tmp/out";;
15813   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15814   esac \
15815   || as_fn_error "could not create $ac_file" "$LINENO" 5
15816  ;;
15817
15818
15819
15820   esac
15821
15822
15823   case $ac_file$ac_mode in
15824     "Makefile":F) sed "$extrasub_build" Makefile |
15825    sed "$extrasub_host" |
15826    sed "$extrasub_target" > mf$$
15827    mv -f mf$$ Makefile ;;
15828
15829   esac
15830 done # for ac_tag
15831
15832
15833 as_fn_exit 0
15834 _ACEOF
15835 ac_clean_files=$ac_clean_files_save
15836
15837 test $ac_write_fail = 0 ||
15838   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15839
15840
15841 # configure is writing to config.log, and then calls config.status.
15842 # config.status does its own redirection, appending to config.log.
15843 # Unfortunately, on DOS this fails, as config.log is still kept open
15844 # by configure, so config.status won't be able to write to it; its
15845 # output is simply discarded.  So we exec the FD to /dev/null,
15846 # effectively closing config.log, so it can be properly (re)opened and
15847 # appended to by config.status.  When coming back to configure, we
15848 # need to make the FD available again.
15849 if test "$no_create" != yes; then
15850   ac_cs_success=:
15851   ac_config_status_args=
15852   test "$silent" = yes &&
15853     ac_config_status_args="$ac_config_status_args --quiet"
15854   exec 5>/dev/null
15855   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15856   exec 5>>config.log
15857   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15858   # would make configure fail if this is the last instruction.
15859   $ac_cs_success || as_fn_exit $?
15860 fi
15861 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15862   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15863 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15864 fi
15865