rs6000.md (div<mode>3): Fix comment.
[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 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_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 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 EXTRA_CONFIGARGS_LIBJAVA
677 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 enable_gold
751 enable_ld
752 enable_libquadmath
753 enable_libquadmath_support
754 enable_libada
755 enable_libssp
756 enable_libstdcxx
757 enable_static_libjava
758 enable_bootstrap
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_libs
772 with_stage1_ldflags
773 with_boot_libs
774 with_boot_ldflags
775 with_cloog
776 with_isl
777 with_isl_include
778 with_isl_lib
779 enable_isl_version_check
780 with_cloog_include
781 with_cloog_lib
782 enable_cloog_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
798 '
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 build_configargs
811 host_configargs
812 target_configargs
813 AR
814 AS
815 DLLTOOL
816 LD
817 LIPO
818 NM
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *)    ac_optarg=yes ;;
908   esac
909
910   # Accept the important Cygnus configure options, so we can diagnose typos.
911
912   case $ac_dashdash$ac_option in
913   --)
914     ac_dashdash=yes ;;
915
916   -bindir | --bindir | --bindi | --bind | --bin | --bi)
917     ac_prev=bindir ;;
918   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919     bindir=$ac_optarg ;;
920
921   -build | --build | --buil | --bui | --bu)
922     ac_prev=build_alias ;;
923   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924     build_alias=$ac_optarg ;;
925
926   -cache-file | --cache-file | --cache-fil | --cache-fi \
927   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928     ac_prev=cache_file ;;
929   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931     cache_file=$ac_optarg ;;
932
933   --config-cache | -C)
934     cache_file=config.cache ;;
935
936   -datadir | --datadir | --datadi | --datad)
937     ac_prev=datadir ;;
938   -datadir=* | --datadir=* | --datadi=* | --datad=*)
939     datadir=$ac_optarg ;;
940
941   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942   | --dataroo | --dataro | --datar)
943     ac_prev=datarootdir ;;
944   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946     datarootdir=$ac_optarg ;;
947
948   -disable-* | --disable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=no ;;
963
964   -docdir | --docdir | --docdi | --doc | --do)
965     ac_prev=docdir ;;
966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967     docdir=$ac_optarg ;;
968
969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970     ac_prev=dvidir ;;
971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972     dvidir=$ac_optarg ;;
973
974   -enable-* | --enable-*)
975     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976     # Reject names that are not valid shell variable names.
977     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978       as_fn_error "invalid feature name: $ac_useropt"
979     ac_useropt_orig=$ac_useropt
980     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981     case $ac_user_opts in
982       *"
983 "enable_$ac_useropt"
984 "*) ;;
985       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986          ac_unrecognized_sep=', ';;
987     esac
988     eval enable_$ac_useropt=\$ac_optarg ;;
989
990   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992   | --exec | --exe | --ex)
993     ac_prev=exec_prefix ;;
994   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996   | --exec=* | --exe=* | --ex=*)
997     exec_prefix=$ac_optarg ;;
998
999   -gas | --gas | --ga | --g)
1000     # Obsolete; use --with-gas.
1001     with_gas=yes ;;
1002
1003   -help | --help | --hel | --he | -h)
1004     ac_init_help=long ;;
1005   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006     ac_init_help=recursive ;;
1007   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008     ac_init_help=short ;;
1009
1010   -host | --host | --hos | --ho)
1011     ac_prev=host_alias ;;
1012   -host=* | --host=* | --hos=* | --ho=*)
1013     host_alias=$ac_optarg ;;
1014
1015   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016     ac_prev=htmldir ;;
1017   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018   | --ht=*)
1019     htmldir=$ac_optarg ;;
1020
1021   -includedir | --includedir | --includedi | --included | --include \
1022   | --includ | --inclu | --incl | --inc)
1023     ac_prev=includedir ;;
1024   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025   | --includ=* | --inclu=* | --incl=* | --inc=*)
1026     includedir=$ac_optarg ;;
1027
1028   -infodir | --infodir | --infodi | --infod | --info | --inf)
1029     ac_prev=infodir ;;
1030   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031     infodir=$ac_optarg ;;
1032
1033   -libdir | --libdir | --libdi | --libd)
1034     ac_prev=libdir ;;
1035   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036     libdir=$ac_optarg ;;
1037
1038   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039   | --libexe | --libex | --libe)
1040     ac_prev=libexecdir ;;
1041   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042   | --libexe=* | --libex=* | --libe=*)
1043     libexecdir=$ac_optarg ;;
1044
1045   -localedir | --localedir | --localedi | --localed | --locale)
1046     ac_prev=localedir ;;
1047   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048     localedir=$ac_optarg ;;
1049
1050   -localstatedir | --localstatedir | --localstatedi | --localstated \
1051   | --localstate | --localstat | --localsta | --localst | --locals)
1052     ac_prev=localstatedir ;;
1053   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055     localstatedir=$ac_optarg ;;
1056
1057   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058     ac_prev=mandir ;;
1059   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060     mandir=$ac_optarg ;;
1061
1062   -nfp | --nfp | --nf)
1063     # Obsolete; use --without-fp.
1064     with_fp=no ;;
1065
1066   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067   | --no-cr | --no-c | -n)
1068     no_create=yes ;;
1069
1070   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072     no_recursion=yes ;;
1073
1074   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076   | --oldin | --oldi | --old | --ol | --o)
1077     ac_prev=oldincludedir ;;
1078   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081     oldincludedir=$ac_optarg ;;
1082
1083   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084     ac_prev=prefix ;;
1085   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086     prefix=$ac_optarg ;;
1087
1088   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089   | --program-pre | --program-pr | --program-p)
1090     ac_prev=program_prefix ;;
1091   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093     program_prefix=$ac_optarg ;;
1094
1095   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096   | --program-suf | --program-su | --program-s)
1097     ac_prev=program_suffix ;;
1098   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100     program_suffix=$ac_optarg ;;
1101
1102   -program-transform-name | --program-transform-name \
1103   | --program-transform-nam | --program-transform-na \
1104   | --program-transform-n | --program-transform- \
1105   | --program-transform | --program-transfor \
1106   | --program-transfo | --program-transf \
1107   | --program-trans | --program-tran \
1108   | --progr-tra | --program-tr | --program-t)
1109     ac_prev=program_transform_name ;;
1110   -program-transform-name=* | --program-transform-name=* \
1111   | --program-transform-nam=* | --program-transform-na=* \
1112   | --program-transform-n=* | --program-transform-=* \
1113   | --program-transform=* | --program-transfor=* \
1114   | --program-transfo=* | --program-transf=* \
1115   | --program-trans=* | --program-tran=* \
1116   | --progr-tra=* | --program-tr=* | --program-t=*)
1117     program_transform_name=$ac_optarg ;;
1118
1119   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120     ac_prev=pdfdir ;;
1121   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122     pdfdir=$ac_optarg ;;
1123
1124   -psdir | --psdir | --psdi | --psd | --ps)
1125     ac_prev=psdir ;;
1126   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127     psdir=$ac_optarg ;;
1128
1129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130   | -silent | --silent | --silen | --sile | --sil)
1131     silent=yes ;;
1132
1133   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134     ac_prev=sbindir ;;
1135   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136   | --sbi=* | --sb=*)
1137     sbindir=$ac_optarg ;;
1138
1139   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141   | --sharedst | --shareds | --shared | --share | --shar \
1142   | --sha | --sh)
1143     ac_prev=sharedstatedir ;;
1144   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147   | --sha=* | --sh=*)
1148     sharedstatedir=$ac_optarg ;;
1149
1150   -site | --site | --sit)
1151     ac_prev=site ;;
1152   -site=* | --site=* | --sit=*)
1153     site=$ac_optarg ;;
1154
1155   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156     ac_prev=srcdir ;;
1157   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158     srcdir=$ac_optarg ;;
1159
1160   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161   | --syscon | --sysco | --sysc | --sys | --sy)
1162     ac_prev=sysconfdir ;;
1163   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165     sysconfdir=$ac_optarg ;;
1166
1167   -target | --target | --targe | --targ | --tar | --ta | --t)
1168     ac_prev=target_alias ;;
1169   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170     target_alias=$ac_optarg ;;
1171
1172   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173     verbose=yes ;;
1174
1175   -version | --version | --versio | --versi | --vers | -V)
1176     ac_init_version=: ;;
1177
1178   -with-* | --with-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error "invalid package name: $ac_useropt"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=\$ac_optarg ;;
1193
1194   -without-* | --without-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error "invalid package name: $ac_useropt"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=no ;;
1209
1210   --x)
1211     # Obsolete; use --with-x.
1212     with_x=yes ;;
1213
1214   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215   | --x-incl | --x-inc | --x-in | --x-i)
1216     ac_prev=x_includes ;;
1217   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219     x_includes=$ac_optarg ;;
1220
1221   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223     ac_prev=x_libraries ;;
1224   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226     x_libraries=$ac_optarg ;;
1227
1228   -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1230     ;;
1231
1232   *=*)
1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234     # Reject names that are not valid shell variable names.
1235     case $ac_envvar in #(
1236       '' | [0-9]* | *[!_$as_cr_alnum]* )
1237       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238     esac
1239     eval $ac_envvar=\$ac_optarg
1240     export $ac_envvar ;;
1241
1242   *)
1243     # FIXME: should be removed in autoconf 3.0.
1244     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248     ;;
1249
1250   esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255   as_fn_error "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259   case $enable_option_checking in
1260     no) ;;
1261     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263   esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   # Remove trailing slashes.
1274   case $ac_val in
1275     */ )
1276       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277       eval $ac_var=\$ac_val;;
1278   esac
1279   # Be sure to have absolute directory names.
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299     If a cross compiler is detected then cross compile mode will be used." >&2
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316   as_fn_error "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321   ac_srcdir_defaulted=yes
1322   # Try the directory containing this script, then the parent directory.
1323   ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325          X"$as_myself" : 'X\(//\)[^/]' \| \
1326          X"$as_myself" : 'X\(//\)$' \| \
1327          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)[^/].*/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\).*/{
1342             s//\1/
1343             q
1344           }
1345           s/.*/./; q'`
1346   srcdir=$ac_confdir
1347   if test ! -r "$srcdir/$ac_unique_file"; then
1348     srcdir=..
1349   fi
1350 else
1351   ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360         pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363   srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372   *" "*)
1373     as_fn_error "path to source, $srcdir, contains spaces"
1374     ;;
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR            user executables [EPREFIX/bin]
1427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR        program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR            object code libraries [EPREFIX/lib]
1433   --includedir=DIR        C header files [PREFIX/include]
1434   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR           info documentation [DATAROOTDIR/info]
1438   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR            man documentation [DATAROOTDIR/man]
1440   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1441   --htmldir=DIR           html documentation [DOCDIR]
1442   --dvidir=DIR            dvi documentation [DOCDIR]
1443   --pdfdir=DIR            pdf documentation [DOCDIR]
1444   --psdir=DIR             ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457   --target=TARGET   configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462
1463   cat <<\_ACEOF
1464
1465 Optional Features:
1466   --disable-option-checking  ignore unrecognized --enable/--with options
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1470   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1471   --disable-libquadmath   do not build libquadmath directory
1472   --disable-libquadmath-support
1473                           disable libquadmath support for Fortran
1474   --enable-libada         build libada directory
1475   --enable-libssp         build libssp directory
1476   --disable-libstdcxx     do not build libstdc++-v3 directory
1477   --enable-static-libjava[=ARG]
1478                           build static libjava [default=no]
1479   --enable-bootstrap      enable bootstrapping [yes if native build]
1480   --disable-isl-version-check
1481                           disable check for ISL version
1482   --disable-cloog-version-check
1483                           disable check for CLooG version
1484   --enable-lto            enable link time optimization support
1485   --enable-linker-plugin-configure-flags=FLAGS
1486                           additional flags for configuring linker plugins
1487                           [none]
1488   --enable-linker-plugin-flags=FLAGS
1489                           additional flags for configuring and building linker
1490                           plugins [none]
1491   --enable-stage1-languages[=all]
1492                           choose additional languages to build during stage1.
1493                           Mostly useful for compiler development
1494   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1495                           Objective-C runtime
1496   --enable-vtable-verify    Enable vtable verification feature
1497   --enable-serial-[{host,target,build}-]configure
1498                           force sequential configuration of sub-packages for
1499                           the host, target or build machine, or all
1500                           sub-packages
1501   --enable-maintainer-mode
1502                           enable make rules and dependencies not useful (and
1503                           sometimes confusing) to the casual installer
1504   --enable-stage1-checking[=all]
1505                           choose additional checking for stage1 of the
1506                           compiler
1507   --enable-werror         enable -Werror in bootstrap stage2 and later
1508   --enable-host-shared    build host code as shared libraries
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1514   --with-mpc=PATH         specify prefix directory for installed MPC package.
1515                           Equivalent to --with-mpc-include=PATH/include plus
1516                           --with-mpc-lib=PATH/lib
1517   --with-mpc-include=PATH specify directory for installed MPC include files
1518   --with-mpc-lib=PATH     specify directory for the installed MPC library
1519   --with-mpfr-dir=PATH    this option has been REMOVED
1520   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1521                           Equivalent to --with-mpfr-include=PATH/include plus
1522                           --with-mpfr-lib=PATH/lib
1523   --with-mpfr-include=PATH
1524                           specify directory for installed MPFR include files
1525   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1526   --with-gmp-dir=PATH     this option has been REMOVED
1527   --with-gmp=PATH         specify prefix directory for the installed GMP
1528                           package. Equivalent to
1529                           --with-gmp-include=PATH/include plus
1530                           --with-gmp-lib=PATH/lib
1531   --with-gmp-include=PATH specify directory for installed GMP include files
1532   --with-gmp-lib=PATH     specify directory for the installed GMP library
1533   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534                           linking with PPL
1535   --with-stage1-libs=LIBS libraries for stage1
1536   --with-stage1-ldflags=FLAGS
1537                           linker flags for stage1
1538   --with-boot-libs=LIBS   libraries for stage2 and later
1539   --with-boot-ldflags=FLAGS
1540                           linker flags for stage2 and later
1541   --with-cloog=PATH       Specify prefix directory for the installed CLooG-ISL
1542                           package. Equivalent to
1543                           --with-cloog-include=PATH/include plus
1544                           --with-cloog-lib=PATH/lib
1545   --with-isl=PATH         Specify prefix directory for the installed ISL
1546                           package. Equivalent to
1547                           --with-isl-include=PATH/include plus
1548                           --with-isl-lib=PATH/lib
1549   --with-isl-include=PATH Specify directory for installed ISL include files
1550   --with-isl-lib=PATH     Specify the directory for the installed ISL library
1551   --with-cloog-include=PATH
1552                           Specify directory for installed CLooG include files
1553   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1554                           library
1555   --with-build-sysroot=SYSROOT
1556                           use sysroot as the system root during the build
1557   --with-debug-prefix-map='A=B C=D ...'
1558                           map A to B, C to D ... in debug information
1559   --with-build-config='NAME NAME2...'
1560                           use config/NAME.mk build configuration
1561   --with-build-time-tools=PATH
1562                           use given path to find target tools during the build
1563
1564 Some influential environment variables:
1565   CC          C compiler command
1566   CFLAGS      C compiler flags
1567   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568               nonstandard directory <lib dir>
1569   LIBS        libraries to pass to the linker, e.g. -l<library>
1570   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571               you have headers in a nonstandard directory <include dir>
1572   CXX         C++ compiler command
1573   CXXFLAGS    C++ compiler flags
1574   build_configargs
1575               additional configure arguments for build directories
1576   host_configargs
1577               additional configure arguments for host directories
1578   target_configargs
1579               additional configure arguments for target directories
1580   AR          AR for the host
1581   AS          AS for the host
1582   DLLTOOL     DLLTOOL for the host
1583   LD          LD for the host
1584   LIPO        LIPO for the host
1585   NM          NM for the host
1586   RANLIB      RANLIB for the host
1587   STRIP       STRIP for the host
1588   WINDRES     WINDRES for the host
1589   WINDMC      WINDMC for the host
1590   OBJCOPY     OBJCOPY for the host
1591   OBJDUMP     OBJDUMP for the host
1592   READELF     READELF for the host
1593   CC_FOR_TARGET
1594               CC for the target
1595   CXX_FOR_TARGET
1596               CXX for the target
1597   GCC_FOR_TARGET
1598               GCC for the target
1599   GCJ_FOR_TARGET
1600               GCJ for the target
1601   GFORTRAN_FOR_TARGET
1602               GFORTRAN for the target
1603   GOC_FOR_TARGET
1604               GOC for the target
1605   AR_FOR_TARGET
1606               AR for the target
1607   AS_FOR_TARGET
1608               AS for the target
1609   DLLTOOL_FOR_TARGET
1610               DLLTOOL for the target
1611   LD_FOR_TARGET
1612               LD for the target
1613   LIPO_FOR_TARGET
1614               LIPO for the target
1615   NM_FOR_TARGET
1616               NM for the target
1617   OBJDUMP_FOR_TARGET
1618               OBJDUMP for the target
1619   RANLIB_FOR_TARGET
1620               RANLIB for the target
1621   READELF_FOR_TARGET
1622               READELF for the target
1623   STRIP_FOR_TARGET
1624               STRIP for the target
1625   WINDRES_FOR_TARGET
1626               WINDRES for the target
1627   WINDMC_FOR_TARGET
1628               WINDMC for the target
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639   # If there are subdirs, report their specific --help.
1640   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641     test -d "$ac_dir" ||
1642       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643       continue
1644     ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650   # A ".." for each directory in $ac_dir_suffix.
1651   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652   case $ac_top_builddir_sub in
1653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655   esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663   .)  # We are building in place.
1664     ac_srcdir=.
1665     ac_top_srcdir=$ac_top_builddir_sub
1666     ac_abs_top_srcdir=$ac_pwd ;;
1667   [\\/]* | ?:[\\/]* )  # Absolute name.
1668     ac_srcdir=$srcdir$ac_dir_suffix;
1669     ac_top_srcdir=$srcdir
1670     ac_abs_top_srcdir=$srcdir ;;
1671   *) # Relative name.
1672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673     ac_top_srcdir=$ac_top_build_prefix$srcdir
1674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678     cd "$ac_dir" || { ac_status=$?; continue; }
1679     # Check for guested configure.
1680     if test -f "$ac_srcdir/configure.gnu"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683     elif test -f "$ac_srcdir/configure"; then
1684       echo &&
1685       $SHELL "$ac_srcdir/configure" --help=recursive
1686     else
1687       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688     fi || ac_status=$?
1689     cd "$ac_pwd" || { ac_status=$?; break; }
1690   done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695   cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.64
1698
1699 Copyright (C) 2009 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703   exit
1704 fi
1705
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1709
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   rm -f conftest.$ac_objext
1717   if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_compile") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && {
1733          test -z "$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        } && test -s conftest.$ac_objext; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744   return $ac_retval
1745
1746 } # ac_fn_c_try_compile
1747
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   rm -f conftest.$ac_objext
1755   if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_compile") 2>conftest.err
1763   ac_status=$?
1764   if test -s conftest.err; then
1765     grep -v '^ *+' conftest.err >conftest.er1
1766     cat conftest.er1 >&5
1767     mv -f conftest.er1 conftest.err
1768   fi
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && {
1771          test -z "$ac_cxx_werror_flag" ||
1772          test ! -s conftest.err
1773        } && test -s conftest.$ac_objext; then :
1774   ac_retval=0
1775 else
1776   $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779         ac_retval=1
1780 fi
1781   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782   return $ac_retval
1783
1784 } # ac_fn_cxx_try_compile
1785
1786 # ac_fn_cxx_try_link LINENO
1787 # -------------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_link ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   rm -f conftest.$ac_objext conftest$ac_exeext
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && {
1809          test -z "$ac_cxx_werror_flag" ||
1810          test ! -s conftest.err
1811        } && test -s conftest$ac_exeext && {
1812          test "$cross_compiling" = yes ||
1813          $as_test_x conftest$ac_exeext
1814        }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820         ac_retval=1
1821 fi
1822   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824   # interfere with the next link command; also delete a directory that is
1825   # left behind by Apple's compiler.  We do this before executing the actions.
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828   return $ac_retval
1829
1830 } # ac_fn_cxx_try_link
1831
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext conftest$ac_exeext
1839   if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_link") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest$ac_exeext && {
1858          test "$cross_compiling" = yes ||
1859          $as_test_x conftest$ac_exeext
1860        }; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866         ac_retval=1
1867 fi
1868   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870   # interfere with the next link command; also delete a directory that is
1871   # left behind by Apple's compiler.  We do this before executing the actions.
1872   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874   return $ac_retval
1875
1876 } # ac_fn_c_try_link
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1880
1881 It was created by $as_me, which was
1882 generated by GNU Autoconf 2.64.  Invocation command line was
1883
1884   $ $0 $@
1885
1886 _ACEOF
1887 exec 5>>config.log
1888 {
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1893
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1902
1903 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1904 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1907 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1908 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1909 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1910
1911 _ASUNAME
1912
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918     $as_echo "PATH: $as_dir"
1919   done
1920 IFS=$as_save_IFS
1921
1922 } >&5
1923
1924 cat >&5 <<_ACEOF
1925
1926
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1930
1931 _ACEOF
1932
1933
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1944 do
1945   for ac_arg
1946   do
1947     case $ac_arg in
1948     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950     | -silent | --silent | --silen | --sile | --sil)
1951       continue ;;
1952     *\'*)
1953       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954     esac
1955     case $ac_pass in
1956     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957     2)
1958       as_fn_append ac_configure_args1 " '$ac_arg'"
1959       if test $ac_must_keep_next = true; then
1960         ac_must_keep_next=false # Got value, back to normal.
1961       else
1962         case $ac_arg in
1963           *=* | --config-cache | -C | -disable-* | --disable-* \
1964           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966           | -with-* | --with-* | -without-* | --without-* | --x)
1967             case "$ac_configure_args0 " in
1968               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969             esac
1970             ;;
1971           -* ) ac_must_keep_next=true ;;
1972         esac
1973       fi
1974       as_fn_append ac_configure_args " '$ac_arg'"
1975       ;;
1976     esac
1977   done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1981
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log.  We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988   # Save into config.log some information that might help in debugging.
1989   {
1990     echo
1991
1992     cat <<\_ASBOX
1993 ## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##
1996 _ASBOX
1997     echo
1998     # The following way of writing the cache mishandles newlines in values,
1999 (
2000   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001     eval ac_val=\$$ac_var
2002     case $ac_val in #(
2003     *${as_nl}*)
2004       case $ac_var in #(
2005       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007       esac
2008       case $ac_var in #(
2009       _ | IFS | as_nl) ;; #(
2010       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011       *) { eval $ac_var=; unset $ac_var;} ;;
2012       esac ;;
2013     esac
2014   done
2015   (set) 2>&1 |
2016     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017     *${as_nl}ac_space=\ *)
2018       sed -n \
2019         "s/'\''/'\''\\\\'\'''\''/g;
2020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021       ;; #(
2022     *)
2023       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024       ;;
2025     esac |
2026     sort
2027 )
2028     echo
2029
2030     cat <<\_ASBOX
2031 ## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##
2034 _ASBOX
2035     echo
2036     for ac_var in $ac_subst_vars
2037     do
2038       eval ac_val=\$$ac_var
2039       case $ac_val in
2040       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041       esac
2042       $as_echo "$ac_var='\''$ac_val'\''"
2043     done | sort
2044     echo
2045
2046     if test -n "$ac_subst_files"; then
2047       cat <<\_ASBOX
2048 ## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##
2051 _ASBOX
2052       echo
2053       for ac_var in $ac_subst_files
2054       do
2055         eval ac_val=\$$ac_var
2056         case $ac_val in
2057         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058         esac
2059         $as_echo "$ac_var='\''$ac_val'\''"
2060       done | sort
2061       echo
2062     fi
2063
2064     if test -s confdefs.h; then
2065       cat <<\_ASBOX
2066 ## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##
2069 _ASBOX
2070       echo
2071       cat confdefs.h
2072       echo
2073     fi
2074     test "$ac_signal" != 0 &&
2075       $as_echo "$as_me: caught signal $ac_signal"
2076     $as_echo "$as_me: exit $exit_status"
2077   } >&5
2078   rm -f core *.core core.conftest.* &&
2079     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080     exit $exit_status
2081 ' 0
2082 for ac_signal in 1 2 13 15; do
2083   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 done
2085 ac_signal=0
2086
2087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2088 rm -f -r conftest* confdefs.h
2089
2090 $as_echo "/* confdefs.h */" > confdefs.h
2091
2092 # Predefined preprocessor variables.
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_URL "$PACKAGE_URL"
2116 _ACEOF
2117
2118
2119 # Let the site file select an alternate cache file if it wants to.
2120 # Prefer an explicitly selected file to automatically selected ones.
2121 ac_site_file1=NONE
2122 ac_site_file2=NONE
2123 if test -n "$CONFIG_SITE"; then
2124   ac_site_file1=$CONFIG_SITE
2125 elif test "x$prefix" != xNONE; then
2126   ac_site_file1=$prefix/share/config.site
2127   ac_site_file2=$prefix/etc/config.site
2128 else
2129   ac_site_file1=$ac_default_prefix/share/config.site
2130   ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134   test "x$ac_site_file" = xNONE && continue
2135   if test -r "$ac_site_file"; then
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138     sed 's/^/| /' "$ac_site_file" >&5
2139     . "$ac_site_file"
2140   fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144   # Some versions of bash will fail to source /dev/null (special
2145   # files actually), so we avoid doing that.
2146   if test -f "$cache_file"; then
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149     case $cache_file in
2150       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151       *)                      . "./$cache_file";;
2152     esac
2153   fi
2154 else
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157   >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165   eval ac_new_set=\$ac_env_${ac_var}_set
2166   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167   eval ac_new_val=\$ac_env_${ac_var}_value
2168   case $ac_old_set,$ac_new_set in
2169     set,)
2170       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172       ac_cache_corrupted=: ;;
2173     ,set)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,);;
2178     *)
2179       if test "x$ac_old_val" != "x$ac_new_val"; then
2180         # differences in whitespace do not lead to failure.
2181         ac_old_val_w=`echo x $ac_old_val`
2182         ac_new_val_w=`echo x $ac_new_val`
2183         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186           ac_cache_corrupted=:
2187         else
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190           eval $ac_var=\$ac_old_val
2191         fi
2192         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2193 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2196       fi;;
2197   esac
2198   # Pass precious variables to config.status.
2199   if test "$ac_new_set" = set; then
2200     case $ac_new_val in
2201     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202     *) ac_arg=$ac_var=$ac_new_val ;;
2203     esac
2204     case " $ac_configure_args " in
2205       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2206       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207     esac
2208   fi
2209 done
2210 if $ac_cache_corrupted; then
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235 progname=$0
2236 # if PWD already has a value, it is probably wrong.
2237 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2238
2239 # Export original configure arguments for use by sub-configures.
2240 # Quote arguments with shell meta charatcers.
2241 TOPLEVEL_CONFIGURE_ARGUMENTS=
2242 set -- "$progname" "$@"
2243 for ac_arg
2244 do
2245   case "$ac_arg" in
2246   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2247     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2248     # if the argument is of the form -foo=baz, quote the baz part only
2249     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2250   *) ;;
2251   esac
2252   # Add the quoted argument to the list.
2253   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2254 done
2255 if test "$silent" = yes; then
2256   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2257 fi
2258 # Remove the initial space we just introduced and, as these will be
2259 # expanded by make, quote '$'.
2260 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2261
2262
2263 # Find the build, host, and target systems.
2264 ac_aux_dir=
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266   for ac_t in install-sh install.sh shtool; do
2267     if test -f "$ac_dir/$ac_t"; then
2268       ac_aux_dir=$ac_dir
2269       ac_install_sh="$ac_aux_dir/$ac_t -c"
2270       break 2
2271     fi
2272   done
2273 done
2274 if test -z "$ac_aux_dir"; then
2275   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2276 fi
2277
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2285
2286
2287 # Make sure we can run config.sub.
2288 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2289   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2292 $as_echo_n "checking build system type... " >&6; }
2293 if test "${ac_cv_build+set}" = set; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   ac_build_alias=$build_alias
2297 test "x$ac_build_alias" = x &&
2298   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2299 test "x$ac_build_alias" = x &&
2300   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2302   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2303
2304 fi
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2306 $as_echo "$ac_cv_build" >&6; }
2307 case $ac_cv_build in
2308 *-*-*) ;;
2309 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2310 esac
2311 build=$ac_cv_build
2312 ac_save_IFS=$IFS; IFS='-'
2313 set x $ac_cv_build
2314 shift
2315 build_cpu=$1
2316 build_vendor=$2
2317 shift; shift
2318 # Remember, the first character of IFS is used to create $*,
2319 # except with old shells:
2320 build_os=$*
2321 IFS=$ac_save_IFS
2322 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323
2324
2325  case ${build_alias} in
2326   "") build_noncanonical=${build} ;;
2327   *) build_noncanonical=${build_alias} ;;
2328 esac
2329
2330
2331
2332  case ${host_alias} in
2333   "") host_noncanonical=${build_noncanonical} ;;
2334   *) host_noncanonical=${host_alias} ;;
2335 esac
2336
2337
2338
2339  case ${target_alias} in
2340   "") target_noncanonical=${host_noncanonical} ;;
2341   *) target_noncanonical=${target_alias} ;;
2342 esac
2343
2344
2345
2346
2347 test "$host_noncanonical" = "$target_noncanonical" &&
2348   test "$program_prefix$program_suffix$program_transform_name" = \
2349     NONENONEs,x,x, &&
2350   program_transform_name=s,y,y,
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2353 $as_echo_n "checking host system type... " >&6; }
2354 if test "${ac_cv_host+set}" = set; then :
2355   $as_echo_n "(cached) " >&6
2356 else
2357   if test "x$host_alias" = x; then
2358   ac_cv_host=$ac_cv_build
2359 else
2360   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2361     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 fi
2363
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2366 $as_echo "$ac_cv_host" >&6; }
2367 case $ac_cv_host in
2368 *-*-*) ;;
2369 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2370 esac
2371 host=$ac_cv_host
2372 ac_save_IFS=$IFS; IFS='-'
2373 set x $ac_cv_host
2374 shift
2375 host_cpu=$1
2376 host_vendor=$2
2377 shift; shift
2378 # Remember, the first character of IFS is used to create $*,
2379 # except with old shells:
2380 host_os=$*
2381 IFS=$ac_save_IFS
2382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2386 $as_echo_n "checking target system type... " >&6; }
2387 if test "${ac_cv_target+set}" = set; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   if test "x$target_alias" = x; then
2391   ac_cv_target=$ac_cv_host
2392 else
2393   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2394     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 fi
2396
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2401 *-*-*) ;;
2402 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2403 esac
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_target
2407 shift
2408 target_cpu=$1
2409 target_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 target_os=$*
2414 IFS=$ac_save_IFS
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2416
2417
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421   test "$program_prefix$program_suffix$program_transform_name" = \
2422     NONENONEs,x,x, &&
2423   program_prefix=${target_alias}-
2424
2425 test "$program_prefix" != NONE &&
2426   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427 # Use a double $ so make ignores it.
2428 test "$program_suffix" != NONE &&
2429   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430 # Double any \ or $.
2431 # By default was `s,x,x', remove it if useless.
2432 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434
2435
2436
2437 # Get 'install' or 'install-sh' and its variants.
2438 # Find a good install program.  We prefer a C program (faster),
2439 # so one script is as good as another.  But avoid the broken or
2440 # incompatible versions:
2441 # SysV /etc/install, /usr/sbin/install
2442 # SunOS /usr/etc/install
2443 # IRIX /sbin/install
2444 # AIX /bin/install
2445 # AmigaOS /C/install, which installs bootblocks on floppy discs
2446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449 # OS/2's system install, which has a completely different semantic
2450 # ./install, which can be erroneously created by make from ./install.sh.
2451 # Reject install programs that cannot install multiple files.
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2454 if test -z "$INSTALL"; then
2455 if test "${ac_cv_path_install+set}" = set; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463     # Account for people who put trailing slashes in PATH elements.
2464 case $as_dir/ in #((
2465   ./ | .// | /[cC]/* | \
2466   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2468   /usr/ucb/* ) ;;
2469   *)
2470     # OSF1 and SCO ODT 3.0 have their own names for install.
2471     # Don't use installbsd from OSF since it installs stuff as root
2472     # by default.
2473     for ac_prog in ginstall scoinst install; do
2474       for ac_exec_ext in '' $ac_executable_extensions; do
2475         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2476           if test $ac_prog = install &&
2477             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478             # AIX install.  It has an incompatible calling convention.
2479             :
2480           elif test $ac_prog = install &&
2481             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # program-specific install script used by HP pwplus--don't use.
2483             :
2484           else
2485             rm -rf conftest.one conftest.two conftest.dir
2486             echo one > conftest.one
2487             echo two > conftest.two
2488             mkdir conftest.dir
2489             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490               test -s conftest.one && test -s conftest.two &&
2491               test -s conftest.dir/conftest.one &&
2492               test -s conftest.dir/conftest.two
2493             then
2494               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495               break 3
2496             fi
2497           fi
2498         fi
2499       done
2500     done
2501     ;;
2502 esac
2503
2504   done
2505 IFS=$as_save_IFS
2506
2507 rm -rf conftest.one conftest.two conftest.dir
2508
2509 fi
2510   if test "${ac_cv_path_install+set}" = set; then
2511     INSTALL=$ac_cv_path_install
2512   else
2513     # As a last resort, use the slow shell script.  Don't cache a
2514     # value for INSTALL within a source directory, because that will
2515     # break other packages using the cache if that directory is
2516     # removed, or if the value is a relative name.
2517     INSTALL=$ac_install_sh
2518   fi
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2521 $as_echo "$INSTALL" >&6; }
2522
2523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524 # It thinks the first close brace ends the variable substitution.
2525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
2527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528
2529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2532 $as_echo_n "checking whether ln works... " >&6; }
2533 if test "${acx_cv_prog_LN+set}" = set; then :
2534   $as_echo_n "(cached) " >&6
2535 else
2536   rm -f conftestdata_t
2537 echo >conftestdata_f
2538 if ln conftestdata_f conftestdata_t 2>/dev/null
2539 then
2540   acx_cv_prog_LN=ln
2541 else
2542   acx_cv_prog_LN=no
2543 fi
2544 rm -f conftestdata_f conftestdata_t
2545
2546 fi
2547 if test $acx_cv_prog_LN = no; then
2548   LN="cp"
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2550 $as_echo "no, using $LN" >&6; }
2551 else
2552   LN="$acx_cv_prog_LN"
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2555 fi
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2558 $as_echo_n "checking whether ln -s works... " >&6; }
2559 LN_S=$as_ln_s
2560 if test "$LN_S" = "ln -s"; then
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2563 else
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2565 $as_echo "no, using $LN_S" >&6; }
2566 fi
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2570 if test "${ac_cv_path_SED+set}" = set; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2574      for ac_i in 1 2 3 4 5 6 7; do
2575        ac_script="$ac_script$as_nl$ac_script"
2576      done
2577      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2578      { ac_script=; unset ac_script;}
2579      if test -z "$SED"; then
2580   ac_path_SED_found=false
2581   # Loop through the user's path and test for each of PROGNAME-LIST
2582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587     for ac_prog in sed gsed; do
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2590       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2591 # Check for GNU ac_path_SED and select it if it is found.
2592   # Check for GNU $ac_path_SED
2593 case `"$ac_path_SED" --version 2>&1` in
2594 *GNU*)
2595   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2596 *)
2597   ac_count=0
2598   $as_echo_n 0123456789 >"conftest.in"
2599   while :
2600   do
2601     cat "conftest.in" "conftest.in" >"conftest.tmp"
2602     mv "conftest.tmp" "conftest.in"
2603     cp "conftest.in" "conftest.nl"
2604     $as_echo '' >> "conftest.nl"
2605     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2606     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2607     as_fn_arith $ac_count + 1 && ac_count=$as_val
2608     if test $ac_count -gt ${ac_path_SED_max-0}; then
2609       # Best one so far, save it but keep looking for a better one
2610       ac_cv_path_SED="$ac_path_SED"
2611       ac_path_SED_max=$ac_count
2612     fi
2613     # 10*(2^10) chars as input seems more than enough
2614     test $ac_count -gt 10 && break
2615   done
2616   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2617 esac
2618
2619       $ac_path_SED_found && break 3
2620     done
2621   done
2622   done
2623 IFS=$as_save_IFS
2624   if test -z "$ac_cv_path_SED"; then
2625     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2626   fi
2627 else
2628   ac_cv_path_SED=$SED
2629 fi
2630
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2633 $as_echo "$ac_cv_path_SED" >&6; }
2634  SED="$ac_cv_path_SED"
2635   rm -f conftest.sed
2636
2637 for ac_prog in gawk mawk nawk awk
2638 do
2639   # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_AWK+set}" = set; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$AWK"; then
2647   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_AWK="$ac_prog"
2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 AWK=$ac_cv_prog_AWK
2667 if test -n "$AWK"; then
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669 $as_echo "$AWK" >&6; }
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676   test -n "$AWK" && break
2677 done
2678
2679
2680 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2681
2682 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2683 # a relative path.
2684 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2685   INSTALL="${srcpwd}/install-sh -c"
2686 fi
2687
2688 # Set srcdir to "." if that's what it is.
2689 # This is important for multilib support.
2690 pwd=`${PWDCMD-pwd}`
2691 if test "${pwd}" = "${srcpwd}" ; then
2692   srcdir=.
2693 fi
2694
2695 topsrcdir=$srcpwd
2696
2697 extra_host_args=
2698
2699 ### To add a new directory to the tree, first choose whether it is a target
2700 ### or a host dependent tool.  Then put it into the appropriate list
2701 ### (library or tools, host or target), doing a dependency sort.
2702
2703 # Subdirs will be configured in the order listed in build_configdirs,
2704 # configdirs, or target_configdirs; see the serialization section below.
2705
2706 # Dependency sorting is only needed when *configuration* must be done in
2707 # a particular order.  In all cases a dependency should be specified in
2708 # the Makefile, whether or not it's implicitly specified here.
2709
2710 # Double entries in build_configdirs, configdirs, or target_configdirs may
2711 # cause circular dependencies and break everything horribly.
2712
2713 # these library is used by various programs built for the build
2714 # environment
2715 #
2716 build_libs="build-libiberty"
2717
2718 # these tools are built for the build environment
2719 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2720
2721 # these libraries are used by various programs built for the host environment
2722 #f
2723 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2724
2725 # these tools are built for the host environment
2726 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2727 # know that we are building the simulator.
2728 # binutils, gas and ld appear in that order because it makes sense to run
2729 # "make check" in that particular order.
2730 # If --enable-gold is used, "gold" may replace "ld".
2731 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2732
2733 # libgcj represents the runtime libraries only used by gcj.
2734 libgcj="target-libffi \
2735         target-zlib \
2736         target-libjava"
2737
2738 # these libraries are built for the target environment, and are built after
2739 # the host libraries and the host tools (which may be a cross compiler)
2740 # Note that libiberty is not a target library.
2741 target_libraries="target-libgcc \
2742                 target-libbacktrace \
2743                 target-libgloss \
2744                 target-newlib \
2745                 target-libgomp \
2746                 target-libcilkrts \
2747                 target-libatomic \
2748                 target-libitm \
2749                 target-libstdc++-v3 \
2750                 target-libsanitizer \
2751                 target-libvtv \
2752                 target-libssp \
2753                 target-libquadmath \
2754                 target-libgfortran \
2755                 target-boehm-gc \
2756                 ${libgcj} \
2757                 target-libobjc \
2758                 target-libada \
2759                 target-libgo"
2760
2761 # these tools are built using the target libraries, and are intended to
2762 # run only in the target environment
2763 #
2764 # note: any program that *uses* libraries that are in the "target_libraries"
2765 # list belongs in this list.
2766 #
2767 target_tools="target-rda"
2768
2769 ################################################################################
2770
2771 ## All tools belong in one of the four categories, and are assigned above
2772 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2773 ## is important because configure will choke if they ever get through.
2774 ## ${configdirs} is directories we build using the host tools.
2775 ## ${target_configdirs} is directories we build using the target tools.
2776 configdirs=`echo ${host_libs} ${host_tools}`
2777 target_configdirs=`echo ${target_libraries} ${target_tools}`
2778 build_configdirs=`echo ${build_libs} ${build_tools}`
2779
2780
2781
2782 ################################################################################
2783
2784 srcname="gnu development package"
2785
2786 # This gets set non-empty for some net releases of packages.
2787 appdirs=""
2788
2789 # Define is_cross_compiler to save on calls to 'test'.
2790 is_cross_compiler=
2791 if test x"${host}" = x"${target}" ; then
2792   is_cross_compiler=no
2793 else
2794   is_cross_compiler=yes
2795 fi
2796
2797 # Find the build and target subdir names.
2798
2799 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2800 # have matching libraries, they should use host libraries: Makefile.tpl
2801 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2802 # However, they still use the build modules, because the corresponding
2803 # host modules (e.g. bison) are only built for the host when bootstrap
2804 # finishes. So:
2805 # - build_subdir is where we find build modules, and never changes.
2806 # - build_libsubdir is where we find build libraries, and can be overridden.
2807
2808 # Prefix 'build-' so this never conflicts with target_subdir.
2809 build_subdir="build-${build_noncanonical}"
2810
2811 # Check whether --with-build-libsubdir was given.
2812 if test "${with_build_libsubdir+set}" = set; then :
2813   withval=$with_build_libsubdir; build_libsubdir="$withval"
2814 else
2815   build_libsubdir="$build_subdir"
2816 fi
2817
2818 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2819 if ( test $srcdir = . && test -d gcc ) \
2820    || test -d $srcdir/../host-${host_noncanonical}; then
2821   host_subdir="host-${host_noncanonical}"
2822 else
2823   host_subdir=.
2824 fi
2825 # No prefix.
2826 target_subdir=${target_noncanonical}
2827
2828 # Be sure to cover against remnants of an in-tree build.
2829 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2830   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2831 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2832 fi
2833
2834 # Skipdirs are removed silently.
2835 skipdirs=
2836 # Noconfigdirs are removed loudly.
2837 noconfigdirs=""
2838
2839 use_gnu_ld=
2840 # Make sure we don't let GNU ld be added if we didn't want it.
2841 if test x$with_gnu_ld = xno ; then
2842   use_gnu_ld=no
2843   noconfigdirs="$noconfigdirs ld gold"
2844 fi
2845
2846 use_gnu_as=
2847 # Make sure we don't let GNU as be added if we didn't want it.
2848 if test x$with_gnu_as = xno ; then
2849   use_gnu_as=no
2850   noconfigdirs="$noconfigdirs gas"
2851 fi
2852
2853 use_included_zlib=
2854 # Make sure we don't let ZLIB be added if we didn't want it.
2855 if test x$with_system_zlib = xyes ; then
2856   use_included_zlib=no
2857   noconfigdirs="$noconfigdirs zlib"
2858 fi
2859
2860 # some tools are so dependent upon X11 that if we're not building with X,
2861 # it's not even worth trying to configure, much less build, that tool.
2862
2863 case ${with_x} in
2864   yes | "") ;; # the default value for this tree is that X11 is available
2865   no)
2866     skipdirs="${skipdirs} tk itcl libgui"
2867     # We won't be able to build gdbtk without X.
2868     enable_gdbtk=no
2869     ;;
2870   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2871 esac
2872
2873 # Some are only suitable for cross toolchains.
2874 # Remove these if host=target.
2875 cross_only="target-libgloss target-newlib target-opcodes"
2876
2877 case $is_cross_compiler in
2878   no) skipdirs="${skipdirs} ${cross_only}" ;;
2879 esac
2880
2881 # If both --with-headers and --with-libs are specified, default to
2882 # --without-newlib.
2883 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2884    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2885   if test x"${with_newlib}" = x ; then
2886     with_newlib=no
2887   fi
2888 fi
2889
2890 # Recognize --with-newlib/--without-newlib.
2891 case ${with_newlib} in
2892   no) skipdirs="${skipdirs} target-newlib" ;;
2893   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2894 esac
2895
2896 # Handle --enable-gold, --enable-ld.
2897 # --disable-gold [--enable-ld]
2898 #     Build only ld.  Default option.
2899 # --enable-gold [--enable-ld]
2900 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2901 #     as "ld.bfd" and "ld".
2902 # --enable-gold=default [--enable-ld]
2903 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2904 #     install ld as "ld.bfd".
2905 # --enable-gold[=default] --disable-ld
2906 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2907 # --enable-gold --enable-ld=default
2908 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2909 #     and ld.bfd).
2910 #     In other words, ld is default
2911 # --enable-gold=default --enable-ld=default
2912 #     Error.
2913
2914 default_ld=
2915 # Check whether --enable-gold was given.
2916 if test "${enable_gold+set}" = set; then :
2917   enableval=$enable_gold; ENABLE_GOLD=$enableval
2918 else
2919   ENABLE_GOLD=no
2920 fi
2921
2922 case "${ENABLE_GOLD}" in
2923   yes|default)
2924     # Check for ELF target.
2925     is_elf=no
2926     case "${target}" in
2927       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2928       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2929       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2930       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2931         case "${target}" in
2932           *-*-linux*aout* | *-*-linux*oldld*)
2933             ;;
2934           *)
2935             is_elf=yes
2936             ;;
2937         esac
2938     esac
2939
2940     if test "$is_elf" = "yes"; then
2941       # Check for target supported by gold.
2942       case "${target}" in
2943         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2944           configdirs="$configdirs gold"
2945           if test x${ENABLE_GOLD} = xdefault; then
2946             default_ld=gold
2947           fi
2948           ENABLE_GOLD=yes
2949           ;;
2950       esac
2951     fi
2952     ;;
2953   no)
2954     ;;
2955   *)
2956     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2957     ;;
2958 esac
2959
2960 # Check whether --enable-ld was given.
2961 if test "${enable_ld+set}" = set; then :
2962   enableval=$enable_ld; ENABLE_LD=$enableval
2963 else
2964   ENABLE_LD=yes
2965 fi
2966
2967
2968 case "${ENABLE_LD}" in
2969   default)
2970     if test x${default_ld} != x; then
2971       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2972     fi
2973     ;;
2974   yes)
2975     ;;
2976   no)
2977     if test x${ENABLE_GOLD} != xyes; then
2978       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2979 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2980     fi
2981     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2982     ;;
2983   *)
2984     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2985     ;;
2986 esac
2987
2988 # Configure extra directories which are host specific
2989
2990 case "${host}" in
2991   *-cygwin*)
2992     configdirs="$configdirs libtermcap" ;;
2993 esac
2994
2995 # A target can indicate whether a language isn't supported for some reason.
2996 # Only spaces may be used in this macro; not newlines or tabs.
2997 unsupported_languages=
2998
2999 # Remove more programs from consideration, based on the host or
3000 # target this usually means that a port of the program doesn't
3001 # exist yet.
3002
3003 case "${host}" in
3004   i[3456789]86-*-msdosdjgpp*)
3005     noconfigdirs="$noconfigdirs tcl tk itcl"
3006     ;;
3007 esac
3008
3009
3010 # Check whether --enable-libquadmath was given.
3011 if test "${enable_libquadmath+set}" = set; then :
3012   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3013 else
3014   ENABLE_LIBQUADMATH=yes
3015 fi
3016
3017 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3018   noconfigdirs="$noconfigdirs target-libquadmath"
3019 fi
3020
3021
3022 # Check whether --enable-libquadmath-support was given.
3023 if test "${enable_libquadmath_support+set}" = set; then :
3024   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3025 else
3026   ENABLE_LIBQUADMATH_SUPPORT=yes
3027 fi
3028
3029 enable_libquadmath_support=
3030 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3031   enable_libquadmath_support=no
3032 fi
3033
3034
3035 # Check whether --enable-libada was given.
3036 if test "${enable_libada+set}" = set; then :
3037   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3038 else
3039   ENABLE_LIBADA=yes
3040 fi
3041
3042 if test "${ENABLE_LIBADA}" != "yes" ; then
3043   noconfigdirs="$noconfigdirs gnattools"
3044 fi
3045
3046 # Check whether --enable-libssp was given.
3047 if test "${enable_libssp+set}" = set; then :
3048   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3049 else
3050   ENABLE_LIBSSP=yes
3051 fi
3052
3053
3054 # Check whether --enable-libstdcxx was given.
3055 if test "${enable_libstdcxx+set}" = set; then :
3056   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3057 else
3058   ENABLE_LIBSTDCXX=default
3059 fi
3060
3061 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3062   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3063 fi
3064
3065 # Save it here so that, even in case of --enable-libgcj, if the Java
3066 # front-end isn't enabled, we still get libgcj disabled.
3067 libgcj_saved=$libgcj
3068 case $enable_libgcj in
3069 yes)
3070   # If we reset it here, it won't get added to noconfigdirs in the
3071   # target-specific build rules, so it will be forcibly enabled
3072   # (unless the Java language itself isn't enabled).
3073   libgcj=
3074   ;;
3075 no)
3076   # Make sure we get it printed in the list of not supported target libs.
3077   # Don't disable libffi, though, other languages use it.
3078   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3079   # Clear libgcj_saved so that even if java is enabled libffi won't be
3080   # built.
3081   libgcj_saved=
3082   ;;
3083 esac
3084
3085 # Check whether --enable-static-libjava was given.
3086 if test "${enable_static_libjava+set}" = set; then :
3087   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3088 else
3089   ENABLE_STATIC_LIBJAVA=no
3090 fi
3091
3092 enable_static_libjava=
3093 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3094   enable_static_libjava=yes
3095 fi
3096
3097 if test x$enable_static_libjava != xyes ; then
3098   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3099 fi
3100
3101
3102 # Disable libgomp on non POSIX hosted systems.
3103 if test x$enable_libgomp = x ; then
3104     # Enable libgomp by default on hosted POSIX systems.
3105     case "${target}" in
3106     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3107         ;;
3108     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3109         ;;
3110     *-*-solaris2* | *-*-hpux11*)
3111         ;;
3112     *-*-darwin* | *-*-aix*)
3113         ;;
3114     *)
3115         noconfigdirs="$noconfigdirs target-libgomp"
3116         ;;
3117     esac
3118 fi
3119
3120 # Disable libatomic on unsupported systems.
3121 if test -d ${srcdir}/libatomic; then
3122     if test x$enable_libatomic = x; then
3123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3124 $as_echo_n "checking for libatomic support... " >&6; }
3125         if (srcdir=${srcdir}/libatomic; \
3126                 . ${srcdir}/configure.tgt; \
3127                 test -n "$UNSUPPORTED")
3128         then
3129             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131             noconfigdirs="$noconfigdirs target-libatomic"
3132         else
3133             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135         fi
3136     fi
3137 fi
3138
3139 # Disable libcilkrts on unsupported systems.
3140 if test -d ${srcdir}/libcilkrts; then
3141     if test x$enable_libcilkrts = x; then
3142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3143 $as_echo_n "checking for libcilkrts support... " >&6; }
3144         if (srcdir=${srcdir}/libcilkrts; \
3145                 . ${srcdir}/configure.tgt; \
3146                 test -n "$UNSUPPORTED")
3147         then
3148             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150             noconfigdirs="$noconfigdirs target-libcilkrts"
3151         else
3152             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3154         fi
3155     fi
3156 fi
3157
3158 # Disable libitm on unsupported systems.
3159 if test -d ${srcdir}/libitm; then
3160     if test x$enable_libitm = x; then
3161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3162 $as_echo_n "checking for libitm support... " >&6; }
3163         if (srcdir=${srcdir}/libitm; \
3164                 . ${srcdir}/configure.tgt; \
3165                 test -n "$UNSUPPORTED")
3166         then
3167             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169             noconfigdirs="$noconfigdirs target-libitm"
3170         else
3171             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173         fi
3174     fi
3175 fi
3176
3177 # Disable libsanitizer on unsupported systems.
3178 if test -d ${srcdir}/libsanitizer; then
3179     if test x$enable_libsanitizer = x; then
3180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3181 $as_echo_n "checking for libsanitizer support... " >&6; }
3182         if (srcdir=${srcdir}/libsanitizer; \
3183                 . ${srcdir}/configure.tgt; \
3184                 test -n "$UNSUPPORTED")
3185         then
3186             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188             noconfigdirs="$noconfigdirs target-libsanitizer"
3189         else
3190             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192         fi
3193     fi
3194 fi
3195
3196 # Disable libvtv on unsupported systems.
3197 if test -d ${srcdir}/libvtv; then
3198     if test x$enable_libvtv = x; then
3199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3200 $as_echo_n "checking for libvtv support... " >&6; }
3201         if (srcdir=${srcdir}/libvtv; \
3202                 . ${srcdir}/configure.tgt; \
3203                 test "$VTV_SUPPORTED" != "yes")
3204         then
3205             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207             noconfigdirs="$noconfigdirs target-libvtv"
3208         else
3209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3211         fi
3212     fi
3213 fi
3214
3215 # Disable libquadmath for some systems.
3216 case "${target}" in
3217   avr-*-*)
3218     noconfigdirs="$noconfigdirs target-libquadmath"
3219     ;;
3220   # libquadmath is unused on AIX and libquadmath build process use of
3221   # LD_LIBRARY_PATH can break AIX bootstrap.
3222   powerpc-*-aix* | rs6000-*-aix*)
3223     noconfigdirs="$noconfigdirs target-libquadmath"
3224     ;;
3225 esac
3226
3227 # Disable libssp for some systems.
3228 case "${target}" in
3229   avr-*-*)
3230     # No hosted I/O support.
3231     noconfigdirs="$noconfigdirs target-libssp"
3232     ;;
3233   powerpc-*-aix* | rs6000-*-aix*)
3234     noconfigdirs="$noconfigdirs target-libssp"
3235     ;;
3236   rl78-*-*)
3237     # libssp uses a misaligned load to trigger a fault, but the RL78
3238     # doesn't fault for those - instead, it gives a build-time error
3239     # for explicit misaligned loads.
3240     noconfigdirs="$noconfigdirs target-libssp"
3241     ;;
3242 esac
3243
3244 # Disable libstdc++-v3 for some systems.
3245 # Allow user to override this if they pass --enable-libstdc++-v3
3246 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3247   case "${target}" in
3248     *-*-vxworks*)
3249       # VxWorks uses the Dinkumware C++ library.
3250       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3251       ;;
3252     arm*-wince-pe*)
3253       # the C++ libraries don't build on top of CE's C libraries
3254       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3255       ;;
3256     avr-*-*)
3257       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3258       ;;
3259   esac
3260 fi
3261
3262 # Disable Fortran for some systems.
3263 case "${target}" in
3264   mmix-*-*)
3265     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3266     unsupported_languages="$unsupported_languages fortran"
3267     ;;
3268 esac
3269
3270 # Disable Java if libffi is not supported.
3271 case "${target}" in
3272   aarch64-*-*)
3273     ;;
3274   alpha*-*-*)
3275     ;;
3276   arm*-*-*)
3277     ;;
3278   cris-*-*)
3279     ;;
3280   frv-*-*)
3281     ;;
3282   hppa*-*-linux*)
3283     ;;
3284   hppa*-*-hpux*)
3285     ;;
3286   i?86-*-*)
3287     ;;
3288   ia64*-*-*)
3289     ;;
3290   m32r*-*-*)
3291     ;;
3292   m68k-*-*)
3293     ;;
3294   mips*-*-rtems*)
3295     ;;
3296   mips*-*-linux*)
3297     ;;
3298   powerpc*-*-linux*)
3299     ;;
3300   powerpc-*-darwin*)
3301     ;;
3302   powerpc-*-aix* | rs6000-*-aix*)
3303     ;;
3304   powerpc-*-freebsd*)
3305     ;;
3306   powerpc64-*-freebsd*)
3307     ;;
3308   powerpc*-*-rtems*)
3309     ;;
3310   s390-*-* | s390x-*-*)
3311     ;;
3312   sh-*-* | sh[34]*-*-*)
3313     ;;
3314   sh64-*-* | sh5*-*-*)
3315     ;;
3316   sparc*-*-*)
3317     ;;
3318   x86_64-*-*)
3319     ;;
3320   *-*-*)
3321     unsupported_languages="$unsupported_languages java"
3322     ;;
3323 esac
3324
3325 # Disable Java, libgcj or related libraries for some systems.
3326 case "${target}" in
3327   powerpc-*-darwin*)
3328     ;;
3329   i[3456789]86-*-darwin*)
3330     ;;
3331   x86_64-*-darwin[912]*)
3332     ;;
3333   *-*-darwin*)
3334     noconfigdirs="$noconfigdirs ${libgcj}"
3335     ;;
3336   *-*-netware*)
3337     noconfigdirs="$noconfigdirs ${libgcj}"
3338     ;;
3339   *-*-rtems*)
3340     noconfigdirs="$noconfigdirs ${libgcj}"
3341     ;;
3342   *-*-tpf*)
3343     noconfigdirs="$noconfigdirs ${libgcj}"
3344     ;;
3345   *-*-uclinux*)
3346     noconfigdirs="$noconfigdirs ${libgcj}"
3347     ;;
3348   *-*-vxworks*)
3349     noconfigdirs="$noconfigdirs ${libgcj}"
3350     ;;
3351   alpha*-*-*vms*)
3352     noconfigdirs="$noconfigdirs ${libgcj}"
3353     ;;
3354   arm-wince-pe)
3355     noconfigdirs="$noconfigdirs ${libgcj}"
3356     ;;
3357   arm*-*-symbianelf*)
3358     noconfigdirs="$noconfigdirs ${libgcj}"
3359     ;;
3360   bfin-*-*)
3361     noconfigdirs="$noconfigdirs target-boehm-gc"
3362     ;;
3363   cris-*-* | crisv32-*-*)
3364     unsupported_languages="$unsupported_languages java"
3365     case "${target}" in
3366       *-*-linux*)
3367         ;;
3368       *) # See PR46792 regarding target-libffi.
3369         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3370     esac
3371     ;;
3372   hppa*64*-*-linux*)
3373     # In this case, it's because the hppa64-linux target is for
3374     # the kernel only at this point and has no libc, and thus no
3375     # headers, crt*.o, etc., all of which are needed by these.
3376     unsupported_languages="$unsupported_languages java"
3377     ;;
3378   hppa*64*-*-hpux*)
3379     noconfigdirs="$noconfigdirs ${libgcj}"
3380     ;;
3381   hppa*-hp-hpux11*)
3382     ;;
3383   hppa*-*-hpux*)
3384     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3385     # build on HP-UX 10.20.
3386     noconfigdirs="$noconfigdirs ${libgcj}"
3387     ;;
3388   ia64*-*-*vms*)
3389     noconfigdirs="$noconfigdirs ${libgcj}"
3390     ;;
3391   i[3456789]86-w64-mingw*)
3392     noconfigdirs="$noconfigdirs ${libgcj}"
3393     ;;
3394   i[3456789]86-*-mingw*)
3395     noconfigdirs="$noconfigdirs ${libgcj}"
3396     ;;
3397   x86_64-*-mingw*)
3398     noconfigdirs="$noconfigdirs ${libgcj}"
3399     ;;
3400   mmix-*-*)
3401     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3402     ;;
3403   powerpc-*-aix*)
3404     # copied from rs6000-*-* entry
3405     noconfigdirs="$noconfigdirs ${libgcj}"
3406     ;;
3407   rs6000-*-aix*)
3408     noconfigdirs="$noconfigdirs ${libgcj}"
3409     ;;
3410   *-*-lynxos*)
3411     noconfigdirs="$noconfigdirs ${libgcj}"
3412     ;;
3413 esac
3414
3415 # Disable libgo for some systems where it is known to not work.
3416 # For testing, you can easily override this with --enable-libgo.
3417 if test x$enable_libgo = x; then
3418     case "${target}" in
3419     *-*-darwin*)
3420         # PR 46986
3421         noconfigdirs="$noconfigdirs target-libgo"
3422         ;;
3423     *-*-cygwin* | *-*-mingw*)
3424         noconfigdirs="$noconfigdirs target-libgo"
3425         ;;
3426     *-*-aix*)
3427         noconfigdirs="$noconfigdirs target-libgo"
3428         ;;
3429     esac
3430 fi
3431
3432 # Default libgloss CPU subdirectory.
3433 libgloss_dir="$target_cpu"
3434
3435 case "${target}" in
3436   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3437     libgloss_dir=wince
3438     ;;
3439   aarch64*-*-* )
3440     libgloss_dir=aarch64
3441     ;;
3442   arm*-*-*)
3443     libgloss_dir=arm
3444     ;;
3445   cris-*-* | crisv32-*-*)
3446     libgloss_dir=cris
3447     ;;
3448   hppa*-*-*)
3449     libgloss_dir=pa
3450     ;;
3451   i[3456789]86-*-*)
3452     libgloss_dir=i386
3453     ;;
3454   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3455     libgloss_dir=m68hc11
3456     ;;
3457   m68*-*-* | fido-*-*)
3458     libgloss_dir=m68k
3459     ;;
3460   mips*-*-*)
3461     libgloss_dir=mips
3462     ;;
3463   powerpc*-*-*)
3464     libgloss_dir=rs6000
3465     ;;
3466   sparc*-*-*)
3467     libgloss_dir=sparc
3468     ;;
3469 esac
3470
3471 # Disable newlib and libgloss for various target OSes.
3472 case "${target}" in
3473   alpha*-dec-osf*)
3474     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3475     ;;
3476   i[3456789]86-*-linux*)
3477     # This section makes it possible to build newlib natively on linux.
3478     # If we are using a cross compiler then don't configure newlib.
3479     if test x${is_cross_compiler} != xno ; then
3480       noconfigdirs="$noconfigdirs target-newlib"
3481     fi
3482     noconfigdirs="$noconfigdirs target-libgloss"
3483     # If we are not using a cross compiler, do configure newlib.
3484     # Note however, that newlib will only be configured in this situation
3485     # if the --with-newlib option has been given, because otherwise
3486     # 'target-newlib' will appear in skipdirs.
3487     ;;
3488   i[3456789]86-*-rdos*)
3489     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3490     ;;
3491   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3492     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3493     ;;
3494   sparc-*-sunos4*)
3495     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3496     ;;
3497   *-*-aix*)
3498     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499     ;;
3500   *-*-beos*)
3501     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3502     ;;
3503   *-*-chorusos)
3504     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505     ;;
3506   *-*-dragonfly*)
3507     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508     ;;
3509   *-*-freebsd*)
3510     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3511     ;;
3512   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3513     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3514     ;;
3515   *-*-lynxos*)
3516     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517     ;;
3518   *-*-mingw*)
3519     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520     ;;
3521   *-*-netbsd*)
3522     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523     ;;
3524   *-*-netware*)
3525     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526     ;;
3527   *-*-tpf*)
3528     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529     ;;
3530   *-*-uclinux*)
3531     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532     ;;
3533   *-*-vxworks*)
3534     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535     ;;
3536 esac
3537
3538 case "${target}" in
3539   *-*-chorusos)
3540     ;;
3541   powerpc-*-darwin*)
3542     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3543     noconfigdirs="$noconfigdirs sim target-rda"
3544     ;;
3545   i[3456789]86-*-darwin*)
3546     noconfigdirs="$noconfigdirs ld gprof"
3547     noconfigdirs="$noconfigdirs sim target-rda"
3548     ;;
3549   x86_64-*-darwin[912]*)
3550     noconfigdirs="$noconfigdirs ld gas gprof"
3551     noconfigdirs="$noconfigdirs sim target-rda"
3552     ;;
3553   *-*-darwin*)
3554     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3555     noconfigdirs="$noconfigdirs sim target-rda"
3556     ;;
3557   *-*-dragonfly*)
3558     ;;
3559   *-*-freebsd*)
3560     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3561         && test -f /usr/local/include/gmp.h; then
3562       with_gmp=/usr/local
3563     fi
3564     ;;
3565   *-*-kaos*)
3566     # Remove unsupported stuff on all kaOS configurations.
3567     noconfigdirs="$noconfigdirs target-libgloss"
3568     ;;
3569   *-*-netbsd*)
3570     ;;
3571   *-*-netware*)
3572     ;;
3573   *-*-rtems*)
3574     noconfigdirs="$noconfigdirs target-libgloss"
3575     ;;
3576     # The tpf target doesn't support gdb yet.
3577   *-*-tpf*)
3578     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3579     ;;
3580   *-*-uclinux*)
3581     noconfigdirs="$noconfigdirs target-rda"
3582     ;;
3583   *-*-vxworks*)
3584     ;;
3585   alpha*-dec-osf*)
3586     # ld works, but does not support shared libraries.
3587     # gas doesn't generate exception information.
3588     noconfigdirs="$noconfigdirs gas ld"
3589     ;;
3590   alpha*-*-*vms*)
3591     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3592     ;;
3593   alpha*-*-*)
3594     # newlib is not 64 bit ready
3595     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596     ;;
3597   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3598     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3599     ;;
3600   arc-*-*|arceb-*-*)
3601     noconfigdirs="$noconfigdirs target-libgloss"
3602     ;;
3603   arm-*-pe*)
3604     noconfigdirs="$noconfigdirs target-libgloss"
3605     ;;
3606   arm-*-riscix*)
3607     noconfigdirs="$noconfigdirs ld target-libgloss"
3608     ;;
3609   avr-*-rtems*)
3610     ;;
3611   avr-*-*)
3612     if test x${with_avrlibc} != xno; then
3613       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614     fi
3615     ;;
3616   c4x-*-* | tic4x-*-*)
3617     noconfigdirs="$noconfigdirs target-libgloss"
3618     ;;
3619   tic54x-*-*)
3620     noconfigdirs="$noconfigdirs target-libgloss gdb"
3621     ;;
3622   d10v-*-*)
3623     noconfigdirs="$noconfigdirs target-libgloss"
3624     ;;
3625   d30v-*-*)
3626     noconfigdirs="$noconfigdirs gdb"
3627     ;;
3628   fr30-*-elf*)
3629     noconfigdirs="$noconfigdirs gdb"
3630     ;;
3631   moxie-*-*)
3632     noconfigdirs="$noconfigdirs gprof"
3633     ;;
3634   h8300*-*-*)
3635     noconfigdirs="$noconfigdirs target-libgloss"
3636     ;;
3637   h8500-*-*)
3638     noconfigdirs="$noconfigdirs target-libgloss"
3639     ;;
3640   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3641     ;;
3642   hppa*64*-*-linux*)
3643     ;;
3644   hppa*-*-linux*)
3645     ;;
3646   hppa*-*-*elf* | \
3647   hppa*-*-lites* | \
3648   hppa*-*-openbsd* | \
3649   hppa*64*-*-*)
3650     ;;
3651   hppa*-hp-hpux11*)
3652     noconfigdirs="$noconfigdirs ld"
3653     ;;
3654   hppa*-*-pro*)
3655     ;;
3656   hppa*-*-*)
3657     noconfigdirs="$noconfigdirs ld"
3658     ;;
3659   i960-*-*)
3660     noconfigdirs="$noconfigdirs gdb"
3661     ;;
3662   ia64*-*-elf*)
3663     # No gdb support yet.
3664     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3665     ;;
3666   ia64*-**-hpux*)
3667     # No ld support yet.
3668     noconfigdirs="$noconfigdirs libgui itcl ld"
3669     ;;
3670   ia64*-*-*vms*)
3671     # No ld support yet.
3672     noconfigdirs="$noconfigdirs libgui itcl ld"
3673     ;;
3674   i[3456789]86-w64-mingw*)
3675     ;;
3676   i[3456789]86-*-mingw*)
3677     target_configdirs="$target_configdirs target-winsup"
3678     ;;
3679   *-*-cygwin*)
3680     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3681     noconfigdirs="$noconfigdirs target-libgloss"
3682     # always build newlib if winsup directory is present.
3683     if test -d "$srcdir/winsup/cygwin"; then
3684       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3685     elif test -d "$srcdir/newlib"; then
3686       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3687     fi
3688     ;;
3689   i[3456789]86-*-pe)
3690     noconfigdirs="$noconfigdirs target-libgloss"
3691     ;;
3692   i[3456789]86-*-sco3.2v5*)
3693     # The linker does not yet know about weak symbols in COFF,
3694     # and is not configured to handle mixed ELF and COFF.
3695     noconfigdirs="$noconfigdirs ld target-libgloss"
3696     ;;
3697   i[3456789]86-*-sco*)
3698     noconfigdirs="$noconfigdirs gprof target-libgloss"
3699     ;;
3700   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3701     noconfigdirs="$noconfigdirs target-libgloss"
3702     ;;
3703   i[3456789]86-*-sysv4*)
3704     noconfigdirs="$noconfigdirs target-libgloss"
3705     ;;
3706   i[3456789]86-*-beos*)
3707     noconfigdirs="$noconfigdirs gdb"
3708     ;;
3709   i[3456789]86-*-rdos*)
3710     noconfigdirs="$noconfigdirs gdb"
3711     ;;
3712   mmix-*-*)
3713     noconfigdirs="$noconfigdirs gdb"
3714     ;;
3715   mt-*-*)
3716     noconfigdirs="$noconfigdirs sim"
3717     ;;
3718   powerpc-*-aix*)
3719     # copied from rs6000-*-* entry
3720     noconfigdirs="$noconfigdirs gprof"
3721     ;;
3722   powerpc*-*-winnt* | powerpc*-*-pe*)
3723     target_configdirs="$target_configdirs target-winsup"
3724     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3725     # always build newlib.
3726     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3727     ;;
3728     # This is temporary until we can link against shared libraries
3729   powerpcle-*-solaris*)
3730     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3731     ;;
3732   powerpc-*-beos*)
3733     noconfigdirs="$noconfigdirs gdb"
3734     ;;
3735   rs6000-*-lynxos*)
3736     noconfigdirs="$noconfigdirs gprof"
3737     ;;
3738   rs6000-*-aix*)
3739     noconfigdirs="$noconfigdirs gprof"
3740     ;;
3741   rs6000-*-*)
3742     noconfigdirs="$noconfigdirs gprof"
3743     ;;
3744   m68k-apollo-*)
3745     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3746     ;;
3747   microblaze*)
3748     noconfigdirs="$noconfigdirs gprof"
3749     ;;
3750   mips*-sde-elf* | mips*-mti-elf*)
3751     if test x$with_newlib = xyes; then
3752       noconfigdirs="$noconfigdirs gprof"
3753     fi
3754     ;;
3755   mips*-*-irix5*)
3756     noconfigdirs="$noconfigdirs gprof target-libgloss"
3757     ;;
3758   mips*-*-irix6*)
3759     noconfigdirs="$noconfigdirs gprof target-libgloss"
3760     ;;
3761   mips*-*-bsd*)
3762     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3763     ;;
3764   mips*-*-linux*)
3765     ;;
3766   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3767   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3768     noconfigdirs="$noconfigdirs ld gas gprof"
3769     ;;
3770   mips*-*-*)
3771     noconfigdirs="$noconfigdirs gprof"
3772     ;;
3773   sh-*-* | sh64-*-*)
3774     case "${target}" in
3775       sh*-*-elf)
3776          ;;
3777       *)
3778          noconfigdirs="$noconfigdirs target-libgloss" ;;
3779     esac
3780     ;;
3781   sparc-*-sunos4*)
3782     if test x${is_cross_compiler} = xno ; then
3783            use_gnu_ld=no
3784     fi
3785     ;;
3786   tic6x-*-*)
3787     noconfigdirs="$noconfigdirs sim"
3788     ;;
3789   tilepro*-*-* | tilegx*-*-*)
3790     noconfigdirs="$noconfigdirs sim"
3791     ;;
3792   v810-*-*)
3793     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3794     ;;
3795   vax-*-*)
3796     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3797     ;;
3798 esac
3799
3800 # If we aren't building newlib, then don't build libgloss, since libgloss
3801 # depends upon some newlib header files.
3802 case "${noconfigdirs}" in
3803   *target-libgloss*) ;;
3804   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3805 esac
3806
3807 # Work in distributions that contain no compiler tools, like Autoconf.
3808 host_makefile_frag=/dev/null
3809 if test -d ${srcdir}/config ; then
3810 case "${host}" in
3811   i[3456789]86-*-msdosdjgpp*)
3812     host_makefile_frag="config/mh-djgpp"
3813     ;;
3814   *-cygwin*)
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3817 $as_echo_n "checking to see if cat works as expected... " >&6; }
3818 echo a >cygwin-cat-check
3819 if test `cat cygwin-cat-check` = a ; then
3820   rm cygwin-cat-check
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 else
3824   rm cygwin-cat-check
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827   as_fn_error "The cat command does not ignore carriage return characters.
3828   Please either mount the build directory in binary mode or run the following
3829   commands before running any configure script:
3830 set -o igncr
3831 export SHELLOPTS
3832   " "$LINENO" 5
3833 fi
3834
3835     host_makefile_frag="config/mh-cygwin"
3836     ;;
3837   *-mingw*)
3838     host_makefile_frag="config/mh-mingw"
3839     ;;
3840   alpha*-*-linux*)
3841     host_makefile_frag="config/mh-alpha-linux"
3842     ;;
3843   hppa*-hp-hpux10*)
3844     host_makefile_frag="config/mh-pa-hpux10"
3845     ;;
3846   hppa*-hp-hpux*)
3847     host_makefile_frag="config/mh-pa"
3848     ;;
3849   hppa*-*)
3850     host_makefile_frag="config/mh-pa"
3851     ;;
3852   *-*-darwin*)
3853     host_makefile_frag="config/mh-darwin"
3854     ;;
3855   powerpc-*-aix*)
3856     host_makefile_frag="config/mh-ppc-aix"
3857     ;;
3858   rs6000-*-aix*)
3859     host_makefile_frag="config/mh-ppc-aix"
3860     ;;
3861 esac
3862 fi
3863
3864 if test "${build}" != "${host}" ; then
3865   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3866   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3867   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3868   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3869   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3870   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3871   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3872   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3873   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3874   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3875   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3876   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3877   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3878 else
3879   AR_FOR_BUILD="\$(AR)"
3880   AS_FOR_BUILD="\$(AS)"
3881   CC_FOR_BUILD="\$(CC)"
3882   CXX_FOR_BUILD="\$(CXX)"
3883   GCJ_FOR_BUILD="\$(GCJ)"
3884   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3885   GOC_FOR_BUILD="\$(GOC)"
3886   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3887   LD_FOR_BUILD="\$(LD)"
3888   NM_FOR_BUILD="\$(NM)"
3889   RANLIB_FOR_BUILD="\$(RANLIB)"
3890   WINDRES_FOR_BUILD="\$(WINDRES)"
3891   WINDMC_FOR_BUILD="\$(WINDMC)"
3892 fi
3893
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   if test -n "$CC"; then
3908   ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922   done
3923 IFS=$as_save_IFS
3924
3925 fi
3926 fi
3927 CC=$ac_cv_prog_CC
3928 if test -n "$CC"; then
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930 $as_echo "$CC" >&6; }
3931 else
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 fi
3935
3936
3937 fi
3938 if test -z "$ac_cv_prog_CC"; then
3939   ac_ct_CC=$CC
3940   # Extract the first word of "gcc", so it can be a program name with args.
3941 set dummy gcc; ac_word=$2
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943 $as_echo_n "checking for $ac_word... " >&6; }
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3945   $as_echo_n "(cached) " >&6
3946 else
3947   if test -n "$ac_ct_CC"; then
3948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955     for ac_exec_ext in '' $ac_executable_extensions; do
3956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957     ac_cv_prog_ac_ct_CC="gcc"
3958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962   done
3963 IFS=$as_save_IFS
3964
3965 fi
3966 fi
3967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3968 if test -n "$ac_ct_CC"; then
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3970 $as_echo "$ac_ct_CC" >&6; }
3971 else
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974 fi
3975
3976   if test "x$ac_ct_CC" = x; then
3977     CC=""
3978   else
3979     case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985     CC=$ac_ct_CC
3986   fi
3987 else
3988   CC="$ac_cv_prog_CC"
3989 fi
3990
3991 if test -z "$CC"; then
3992           if test -n "$ac_tool_prefix"; then
3993     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}cc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if test "${ac_cv_prog_CC+set}" = set; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -n "$CC"; then
4001   ac_cv_prog_CC="$CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     for ac_exec_ext in '' $ac_executable_extensions; do
4009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010     ac_cv_prog_CC="${ac_tool_prefix}cc"
4011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015   done
4016 IFS=$as_save_IFS
4017
4018 fi
4019 fi
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030   fi
4031 fi
4032 if test -z "$CC"; then
4033   # Extract the first word of "cc", so it can be a program name with args.
4034 set dummy cc; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if test "${ac_cv_prog_CC+set}" = set; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   if test -n "$CC"; then
4041   ac_cv_prog_CC="$CC" # Let the user override the test.
4042 else
4043   ac_prog_rejected=no
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049     for ac_exec_ext in '' $ac_executable_extensions; do
4050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4052        ac_prog_rejected=yes
4053        continue
4054      fi
4055     ac_cv_prog_CC="cc"
4056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060   done
4061 IFS=$as_save_IFS
4062
4063 if test $ac_prog_rejected = yes; then
4064   # We found a bogon in the path, so make sure we never use it.
4065   set dummy $ac_cv_prog_CC
4066   shift
4067   if test $# != 0; then
4068     # We chose a different compiler from the bogus one.
4069     # However, it has the same basename, so the bogon will be chosen
4070     # first if we set CC to just the basename; use the full file name.
4071     shift
4072     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4073   fi
4074 fi
4075 fi
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 $as_echo "$CC" >&6; }
4081 else
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 if test -z "$CC"; then
4089   if test -n "$ac_tool_prefix"; then
4090   for ac_prog in cl.exe
4091   do
4092     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_CC+set}" = set; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099   if test -n "$CC"; then
4100   ac_cv_prog_CC="$CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107     for ac_exec_ext in '' $ac_executable_extensions; do
4108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114   done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 $as_echo "$CC" >&6; }
4123 else
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128
4129     test -n "$CC" && break
4130   done
4131 fi
4132 if test -z "$CC"; then
4133   ac_ct_CC=$CC
4134   for ac_prog in cl.exe
4135 do
4136   # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test -n "$ac_ct_CC"; then
4144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153     ac_cv_prog_ac_ct_CC="$ac_prog"
4154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158   done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4164 if test -n "$ac_ct_CC"; then
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4166 $as_echo "$ac_ct_CC" >&6; }
4167 else
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172
4173   test -n "$ac_ct_CC" && break
4174 done
4175
4176   if test "x$ac_ct_CC" = x; then
4177     CC=""
4178   else
4179     case $cross_compiling:$ac_tool_warned in
4180 yes:)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185     CC=$ac_ct_CC
4186   fi
4187 fi
4188
4189 fi
4190
4191
4192 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." "$LINENO" 5; }
4196
4197 # Provide some information about the compiler.
4198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4199 set X $ac_compile
4200 ac_compiler=$2
4201 for ac_option in --version -v -V -qversion; do
4202   { { ac_try="$ac_compiler $ac_option >&5"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4210   ac_status=$?
4211   if test -s conftest.err; then
4212     sed '10a\
4213 ... rest of stderr output deleted ...
4214          10q' conftest.err >conftest.er1
4215     cat conftest.er1 >&5
4216     rm -f conftest.er1 conftest.err
4217   fi
4218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219   test $ac_status = 0; }
4220 done
4221
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224
4225 int
4226 main ()
4227 {
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 ac_clean_files_save=$ac_clean_files
4234 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4235 # Try to create an executable without -o first, disregard a.out.
4236 # It will help us diagnose broken compilers, and finding out an intuition
4237 # of exeext.
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4239 $as_echo_n "checking for C compiler default output file name... " >&6; }
4240 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4241
4242 # The possible output files:
4243 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4244
4245 ac_rmfiles=
4246 for ac_file in $ac_files
4247 do
4248   case $ac_file in
4249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4250     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4251   esac
4252 done
4253 rm -f $ac_rmfiles
4254
4255 if { { ac_try="$ac_link_default"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262   (eval "$ac_link_default") 2>&5
4263   ac_status=$?
4264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265   test $ac_status = 0; }; then :
4266   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4267 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4268 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4269 # so that the user can short-circuit this test for compilers unknown to
4270 # Autoconf.
4271 for ac_file in $ac_files ''
4272 do
4273   test -f "$ac_file" || continue
4274   case $ac_file in
4275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4276         ;;
4277     [ab].out )
4278         # We found the default executable, but exeext='' is most
4279         # certainly right.
4280         break;;
4281     *.* )
4282         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4283         then :; else
4284            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4285         fi
4286         # We set ac_cv_exeext here because the later test for it is not
4287         # safe: cross compilers may not add the suffix if given an `-o'
4288         # argument, so we may need to know it at that point already.
4289         # Even if this section looks crufty: it has the advantage of
4290         # actually working.
4291         break;;
4292     * )
4293         break;;
4294   esac
4295 done
4296 test "$ac_cv_exeext" = no && ac_cv_exeext=
4297
4298 else
4299   ac_file=''
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4302 $as_echo "$ac_file" >&6; }
4303 if test -z "$ac_file"; then :
4304   $as_echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 { as_fn_set_status 77
4310 as_fn_error "C compiler cannot create executables
4311 See \`config.log' for more details." "$LINENO" 5; }; }
4312 fi
4313 ac_exeext=$ac_cv_exeext
4314
4315 # Check that the compiler produces executables we can run.  If not, either
4316 # the compiler is broken, or we cross compile.
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4318 $as_echo_n "checking whether the C compiler works... " >&6; }
4319 # If not cross compiling, check that we can run a simple program.
4320 if test "$cross_compiling" != yes; then
4321   if { ac_try='./$ac_file'
4322   { { case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328   (eval "$ac_try") 2>&5
4329   ac_status=$?
4330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331   test $ac_status = 0; }; }; then
4332     cross_compiling=no
4333   else
4334     if test "$cross_compiling" = maybe; then
4335         cross_compiling=yes
4336     else
4337         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error "cannot run C compiled programs.
4340 If you meant to cross compile, use \`--host'.
4341 See \`config.log' for more details." "$LINENO" 5; }
4342     fi
4343   fi
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4346 $as_echo "yes" >&6; }
4347
4348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4349 ac_clean_files=$ac_clean_files_save
4350 # Check that the compiler produces executables we can run.  If not, either
4351 # the compiler is broken, or we cross compile.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4353 $as_echo_n "checking whether we are cross compiling... " >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4355 $as_echo "$cross_compiling" >&6; }
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 $as_echo_n "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366   (eval "$ac_link") 2>&5
4367   ac_status=$?
4368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369   test $ac_status = 0; }; then :
4370   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4371 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4372 # work properly (i.e., refer to `conftest.exe'), while it won't with
4373 # `rm'.
4374 for ac_file in conftest.exe conftest conftest.*; do
4375   test -f "$ac_file" || continue
4376   case $ac_file in
4377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4379           break;;
4380     * ) break;;
4381   esac
4382 done
4383 else
4384   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error "cannot compute suffix of executables: cannot compile and link
4387 See \`config.log' for more details." "$LINENO" 5; }
4388 fi
4389 rm -f conftest$ac_cv_exeext
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4391 $as_echo "$ac_cv_exeext" >&6; }
4392
4393 rm -f conftest.$ac_ext
4394 EXEEXT=$ac_cv_exeext
4395 ac_exeext=$EXEEXT
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4397 $as_echo_n "checking for suffix of object files... " >&6; }
4398 if test "${ac_cv_objext+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h.  */
4403
4404 int
4405 main ()
4406 {
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412 rm -f conftest.o conftest.obj
4413 if { { ac_try="$ac_compile"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420   (eval "$ac_compile") 2>&5
4421   ac_status=$?
4422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423   test $ac_status = 0; }; then :
4424   for ac_file in conftest.o conftest.obj conftest.*; do
4425   test -f "$ac_file" || continue;
4426   case $ac_file in
4427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4428     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4429        break;;
4430   esac
4431 done
4432 else
4433   $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error "cannot compute suffix of object files: cannot compile
4439 See \`config.log' for more details." "$LINENO" 5; }
4440 fi
4441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4444 $as_echo "$ac_cv_objext" >&6; }
4445 OBJEXT=$ac_cv_objext
4446 ac_objext=$OBJEXT
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4449 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454
4455 int
4456 main ()
4457 {
4458 #ifndef __GNUC__
4459        choke me
4460 #endif
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467   ac_compiler_gnu=yes
4468 else
4469   ac_compiler_gnu=no
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4478   GCC=yes
4479 else
4480   GCC=
4481 fi
4482 ac_test_CFLAGS=${CFLAGS+set}
4483 ac_save_CFLAGS=$CFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4486 if test "${ac_cv_prog_cc_g+set}" = set; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   ac_save_c_werror_flag=$ac_c_werror_flag
4490    ac_c_werror_flag=yes
4491    ac_cv_prog_cc_g=no
4492    CFLAGS="-g"
4493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496 int
4497 main ()
4498 {
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505   ac_cv_prog_cc_g=yes
4506 else
4507   CFLAGS=""
4508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520
4521 else
4522   ac_c_werror_flag=$ac_save_c_werror_flag
4523          CFLAGS="-g"
4524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536   ac_cv_prog_cc_g=yes
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543    ac_c_werror_flag=$ac_save_c_werror_flag
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4546 $as_echo "$ac_cv_prog_cc_g" >&6; }
4547 if test "$ac_test_CFLAGS" = set; then
4548   CFLAGS=$ac_save_CFLAGS
4549 elif test $ac_cv_prog_cc_g = yes; then
4550   if test "$GCC" = yes; then
4551     CFLAGS="-g -O2"
4552   else
4553     CFLAGS="-g"
4554   fi
4555 else
4556   if test "$GCC" = yes; then
4557     CFLAGS="-O2"
4558   else
4559     CFLAGS=
4560   fi
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4564 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   ac_cv_prog_cc_c89=no
4568 ac_save_CC=$CC
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h.  */
4571 #include <stdarg.h>
4572 #include <stdio.h>
4573 #include <sys/types.h>
4574 #include <sys/stat.h>
4575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4576 struct buf { int x; };
4577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4578 static char *e (p, i)
4579      char **p;
4580      int i;
4581 {
4582   return p[i];
4583 }
4584 static char *f (char * (*g) (char **, int), char **p, ...)
4585 {
4586   char *s;
4587   va_list v;
4588   va_start (v,p);
4589   s = g (p, va_arg (v,int));
4590   va_end (v);
4591   return s;
4592 }
4593
4594 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4595    function prototypes and stuff, but not '\xHH' hex character constants.
4596    These don't provoke an error unfortunately, instead are silently treated
4597    as 'x'.  The following induces an error, until -std is added to get
4598    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4599    array size at least.  It's necessary to write '\x00'==0 to get something
4600    that's true only with -std.  */
4601 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4602
4603 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4604    inside strings and character constants.  */
4605 #define FOO(x) 'x'
4606 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4607
4608 int test (int i, double x);
4609 struct s1 {int (*f) (int a);};
4610 struct s2 {int (*f) (double a);};
4611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 int argc;
4613 char **argv;
4614 int
4615 main ()
4616 {
4617 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4618   ;
4619   return 0;
4620 }
4621 _ACEOF
4622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4623         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4624 do
4625   CC="$ac_save_CC $ac_arg"
4626   if ac_fn_c_try_compile "$LINENO"; then :
4627   ac_cv_prog_cc_c89=$ac_arg
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext
4630   test "x$ac_cv_prog_cc_c89" != "xno" && break
4631 done
4632 rm -f conftest.$ac_ext
4633 CC=$ac_save_CC
4634
4635 fi
4636 # AC_CACHE_VAL
4637 case "x$ac_cv_prog_cc_c89" in
4638   x)
4639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 $as_echo "none needed" >&6; } ;;
4641   xno)
4642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4643 $as_echo "unsupported" >&6; } ;;
4644   *)
4645     CC="$CC $ac_cv_prog_cc_c89"
4646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4647 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4648 esac
4649 if test "x$ac_cv_prog_cc_c89" != xno; then :
4650
4651 fi
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658
4659 ac_ext=cpp
4660 ac_cpp='$CXXCPP $CPPFLAGS'
4661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4664 if test -z "$CXX"; then
4665   if test -n "$CCC"; then
4666     CXX=$CCC
4667   else
4668     if test -n "$ac_tool_prefix"; then
4669   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4670   do
4671     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_CXX+set}" = set; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$CXX"; then
4679   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693   done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 CXX=$ac_cv_prog_CXX
4699 if test -n "$CXX"; then
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4701 $as_echo "$CXX" >&6; }
4702 else
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708     test -n "$CXX" && break
4709   done
4710 fi
4711 if test -z "$CXX"; then
4712   ac_ct_CXX=$CXX
4713   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4714 do
4715   # Extract the first word of "$ac_prog", so it can be a program name with args.
4716 set dummy $ac_prog; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   if test -n "$ac_ct_CXX"; then
4723   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732     ac_cv_prog_ac_ct_CXX="$ac_prog"
4733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734     break 2
4735   fi
4736 done
4737   done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4743 if test -n "$ac_ct_CXX"; then
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4745 $as_echo "$ac_ct_CXX" >&6; }
4746 else
4747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4749 fi
4750
4751
4752   test -n "$ac_ct_CXX" && break
4753 done
4754
4755   if test "x$ac_ct_CXX" = x; then
4756     CXX="g++"
4757   else
4758     case $cross_compiling:$ac_tool_warned in
4759 yes:)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762 ac_tool_warned=yes ;;
4763 esac
4764     CXX=$ac_ct_CXX
4765   fi
4766 fi
4767
4768   fi
4769 fi
4770 # Provide some information about the compiler.
4771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4772 set X $ac_compile
4773 ac_compiler=$2
4774 for ac_option in --version -v -V -qversion; do
4775   { { ac_try="$ac_compiler $ac_option >&5"
4776 case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781 $as_echo "$ac_try_echo"; } >&5
4782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4783   ac_status=$?
4784   if test -s conftest.err; then
4785     sed '10a\
4786 ... rest of stderr output deleted ...
4787          10q' conftest.err >conftest.er1
4788     cat conftest.er1 >&5
4789     rm -f conftest.er1 conftest.err
4790   fi
4791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4792   test $ac_status = 0; }
4793 done
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4796 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4797 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h.  */
4802
4803 int
4804 main ()
4805 {
4806 #ifndef __GNUC__
4807        choke me
4808 #endif
4809
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 if ac_fn_cxx_try_compile "$LINENO"; then :
4815   ac_compiler_gnu=yes
4816 else
4817   ac_compiler_gnu=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4821
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4824 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4825 if test $ac_compiler_gnu = yes; then
4826   GXX=yes
4827 else
4828   GXX=
4829 fi
4830 ac_test_CXXFLAGS=${CXXFLAGS+set}
4831 ac_save_CXXFLAGS=$CXXFLAGS
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4833 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4834 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4838    ac_cxx_werror_flag=yes
4839    ac_cv_prog_cxx_g=no
4840    CXXFLAGS="-g"
4841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h.  */
4843
4844 int
4845 main ()
4846 {
4847
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 if ac_fn_cxx_try_compile "$LINENO"; then :
4853   ac_cv_prog_cxx_g=yes
4854 else
4855   CXXFLAGS=""
4856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h.  */
4858
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4868
4869 else
4870   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4871          CXXFLAGS="-g"
4872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_cxx_try_compile "$LINENO"; then :
4884   ac_cv_prog_cxx_g=yes
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4894 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4895 if test "$ac_test_CXXFLAGS" = set; then
4896   CXXFLAGS=$ac_save_CXXFLAGS
4897 elif test $ac_cv_prog_cxx_g = yes; then
4898   if test "$GXX" = yes; then
4899     CXXFLAGS="-g -O2"
4900   else
4901     CXXFLAGS="-g"
4902   fi
4903 else
4904   if test "$GXX" = yes; then
4905     CXXFLAGS="-O2"
4906   else
4907     CXXFLAGS=
4908   fi
4909 fi
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915
4916
4917 # We must set the default linker to the linker used by gcc for the correct
4918 # operation of libtool.  If LD is not defined and we are using gcc, try to
4919 # set the LD default to the ld used by gcc.
4920 if test -z "$LD"; then
4921   if test "$GCC" = yes; then
4922     case $build in
4923     *-*-mingw*)
4924       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4925     *)
4926       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4927     esac
4928     case $gcc_prog_ld in
4929     # Accept absolute paths.
4930     [\\/]* | [A-Za-z]:[\\/]*)
4931       LD="$gcc_prog_ld" ;;
4932     esac
4933   fi
4934 fi
4935
4936 # Check whether -static-libstdc++ -static-libgcc is supported.
4937 have_static_libs=no
4938 if test "$GCC" = yes; then
4939   saved_LDFLAGS="$LDFLAGS"
4940
4941   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4943 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4944   ac_ext=cpp
4945 ac_cpp='$CXXCPP $CPPFLAGS'
4946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949
4950
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953
4954 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4955 #error -static-libstdc++ not implemented
4956 #endif
4957 int main() {}
4958 _ACEOF
4959 if ac_fn_cxx_try_link "$LINENO"; then :
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961 $as_echo "yes" >&6; }; have_static_libs=yes
4962 else
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext \
4967     conftest$ac_exeext conftest.$ac_ext
4968   ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973
4974
4975   LDFLAGS="$saved_LDFLAGS"
4976 fi
4977
4978
4979
4980
4981 if test -n "$ac_tool_prefix"; then
4982   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   if test -n "$GNATBIND"; then
4990   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004   done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 GNATBIND=$ac_cv_prog_GNATBIND
5010 if test -n "$GNATBIND"; then
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5012 $as_echo "$GNATBIND" >&6; }
5013 else
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019 fi
5020 if test -z "$ac_cv_prog_GNATBIND"; then
5021   ac_ct_GNATBIND=$GNATBIND
5022   # Extract the first word of "gnatbind", so it can be a program name with args.
5023 set dummy gnatbind; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if test -n "$ac_ct_GNATBIND"; then
5030   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044   done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5050 if test -n "$ac_ct_GNATBIND"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5052 $as_echo "$ac_ct_GNATBIND" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058   if test "x$ac_ct_GNATBIND" = x; then
5059     GNATBIND="no"
5060   else
5061     case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067     GNATBIND=$ac_ct_GNATBIND
5068   fi
5069 else
5070   GNATBIND="$ac_cv_prog_GNATBIND"
5071 fi
5072
5073 if test -n "$ac_tool_prefix"; then
5074   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$GNATMAKE"; then
5082   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 GNATMAKE=$ac_cv_prog_GNATMAKE
5102 if test -n "$GNATMAKE"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5104 $as_echo "$GNATMAKE" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 fi
5112 if test -z "$ac_cv_prog_GNATMAKE"; then
5113   ac_ct_GNATMAKE=$GNATMAKE
5114   # Extract the first word of "gnatmake", so it can be a program name with args.
5115 set dummy gnatmake; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$ac_ct_GNATMAKE"; then
5122   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5142 if test -n "$ac_ct_GNATMAKE"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5144 $as_echo "$ac_ct_GNATMAKE" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150   if test "x$ac_ct_GNATMAKE" = x; then
5151     GNATMAKE="no"
5152   else
5153     case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5158 esac
5159     GNATMAKE=$ac_ct_GNATMAKE
5160   fi
5161 else
5162   GNATMAKE="$ac_cv_prog_GNATMAKE"
5163 fi
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5166 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5167 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   cat >conftest.adb <<EOF
5171 procedure conftest is begin null; end conftest;
5172 EOF
5173 acx_cv_cc_gcc_supports_ada=no
5174 # There is a bug in old released versions of GCC which causes the
5175 # driver to exit successfully when the appropriate language module
5176 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5177 # Therefore we must check for the error message as well as an
5178 # unsuccessful exit.
5179 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5180 # given a .adb file, but produce no object file.  So we must check
5181 # if an object file was really produced to guard against this.
5182 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5183 if test x"$errors" = x && test -f conftest.$ac_objext; then
5184   acx_cv_cc_gcc_supports_ada=yes
5185 fi
5186 rm -f conftest.*
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5189 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5190
5191 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5192   have_gnat=yes
5193 else
5194   have_gnat=no
5195 fi
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5198 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5199 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202    echo abfoo >t1
5203   echo cdfoo >t2
5204   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5205   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5206     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5207       :
5208     else
5209       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5210     fi
5211   fi
5212   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5213     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5214       :
5215     else
5216       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5217     fi
5218   fi
5219   rm t1 t2
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5223 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5224 do_compare="$gcc_cv_prog_cmp_skip"
5225
5226
5227
5228 # Check whether --enable-bootstrap was given.
5229 if test "${enable_bootstrap+set}" = set; then :
5230   enableval=$enable_bootstrap;
5231 else
5232   enable_bootstrap=default
5233 fi
5234
5235
5236 # Issue errors and warnings for invalid/strange bootstrap combinations.
5237 if test -r $srcdir/gcc/configure; then
5238   have_compiler=yes
5239 else
5240   have_compiler=no
5241 fi
5242
5243 case "$have_compiler:$host:$target:$enable_bootstrap" in
5244   *:*:*:no) ;;
5245
5246   # Default behavior.  Enable bootstrap if we have a compiler
5247   # and we are in a native configuration.
5248   yes:$build:$build:default)
5249     enable_bootstrap=yes ;;
5250
5251   *:*:*:default)
5252     enable_bootstrap=no ;;
5253
5254   # We have a compiler and we are in a native configuration, bootstrap is ok
5255   yes:$build:$build:yes)
5256     ;;
5257
5258   # Other configurations, but we have a compiler.  Assume the user knows
5259   # what he's doing.
5260   yes:*:*:yes)
5261     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5262 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5263     ;;
5264
5265   # No compiler: if they passed --enable-bootstrap explicitly, fail
5266   no:*:*:yes)
5267     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5268
5269   # Fail if wrong command line
5270   *)
5271     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5272     ;;
5273 esac
5274
5275 # Used for setting $lt_cv_objdir
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5277 $as_echo_n "checking for objdir... " >&6; }
5278 if test "${lt_cv_objdir+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   rm -f .libs 2>/dev/null
5282 mkdir .libs 2>/dev/null
5283 if test -d .libs; then
5284   lt_cv_objdir=.libs
5285 else
5286   # MS-DOS does not allow filenames that begin with a dot.
5287   lt_cv_objdir=_libs
5288 fi
5289 rmdir .libs 2>/dev/null
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5292 $as_echo "$lt_cv_objdir" >&6; }
5293 objdir=$lt_cv_objdir
5294
5295
5296
5297
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define LT_OBJDIR "$lt_cv_objdir/"
5301 _ACEOF
5302
5303
5304
5305 # Check for GMP, MPFR and MPC
5306 gmplibs="-lmpc -lmpfr -lgmp"
5307 gmpinc=
5308 have_gmp=no
5309
5310 # Specify a location for mpc
5311 # check for this first so it ends up on the link line before mpfr.
5312
5313 # Check whether --with-mpc was given.
5314 if test "${with_mpc+set}" = set; then :
5315   withval=$with_mpc;
5316 fi
5317
5318
5319 # Check whether --with-mpc-include was given.
5320 if test "${with_mpc_include+set}" = set; then :
5321   withval=$with_mpc_include;
5322 fi
5323
5324
5325 # Check whether --with-mpc-lib was given.
5326 if test "${with_mpc_lib+set}" = set; then :
5327   withval=$with_mpc_lib;
5328 fi
5329
5330
5331 if test "x$with_mpc" != x; then
5332   gmplibs="-L$with_mpc/lib $gmplibs"
5333   gmpinc="-I$with_mpc/include $gmpinc"
5334 fi
5335 if test "x$with_mpc_include" != x; then
5336   gmpinc="-I$with_mpc_include $gmpinc"
5337 fi
5338 if test "x$with_mpc_lib" != x; then
5339   gmplibs="-L$with_mpc_lib $gmplibs"
5340 fi
5341 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5342   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5343   gmpinc='-I$$s/mpc/src '"$gmpinc"
5344   # Do not test the mpc version.  Assume that it is sufficient, since
5345   # it is in the source tree, and the library has not been built yet
5346   # but it would be included on the link line in the version check below
5347   # hence making the test fail.
5348   have_gmp=yes
5349 fi
5350
5351 # Specify a location for mpfr
5352 # check for this first so it ends up on the link line before gmp.
5353
5354 # Check whether --with-mpfr-dir was given.
5355 if test "${with_mpfr_dir+set}" = set; then :
5356   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5357 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5358 fi
5359
5360
5361
5362 # Check whether --with-mpfr was given.
5363 if test "${with_mpfr+set}" = set; then :
5364   withval=$with_mpfr;
5365 fi
5366
5367
5368 # Check whether --with-mpfr-include was given.
5369 if test "${with_mpfr_include+set}" = set; then :
5370   withval=$with_mpfr_include;
5371 fi
5372
5373
5374 # Check whether --with-mpfr-lib was given.
5375 if test "${with_mpfr_lib+set}" = set; then :
5376   withval=$with_mpfr_lib;
5377 fi
5378
5379
5380 if test "x$with_mpfr" != x; then
5381   gmplibs="-L$with_mpfr/lib $gmplibs"
5382   gmpinc="-I$with_mpfr/include $gmpinc"
5383 fi
5384 if test "x$with_mpfr_include" != x; then
5385   gmpinc="-I$with_mpfr_include $gmpinc"
5386 fi
5387 if test "x$with_mpfr_lib" != x; then
5388   gmplibs="-L$with_mpfr_lib $gmplibs"
5389 fi
5390 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5391   # MPFR v3.1.0 moved the sources into a src sub-directory.
5392   if test -d ${srcdir}/mpfr/src; then
5393     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5394     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5395     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5396   else
5397     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5398     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5399     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5400   fi
5401   # Do not test the mpfr version.  Assume that it is sufficient, since
5402   # it is in the source tree, and the library has not been built yet
5403   # but it would be included on the link line in the version check below
5404   # hence making the test fail.
5405   have_gmp=yes
5406 fi
5407
5408 # Specify a location for gmp
5409
5410 # Check whether --with-gmp-dir was given.
5411 if test "${with_gmp_dir+set}" = set; then :
5412   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5413 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5414 fi
5415
5416
5417
5418 # Check whether --with-gmp was given.
5419 if test "${with_gmp+set}" = set; then :
5420   withval=$with_gmp;
5421 fi
5422
5423
5424 # Check whether --with-gmp-include was given.
5425 if test "${with_gmp_include+set}" = set; then :
5426   withval=$with_gmp_include;
5427 fi
5428
5429
5430 # Check whether --with-gmp-lib was given.
5431 if test "${with_gmp_lib+set}" = set; then :
5432   withval=$with_gmp_lib;
5433 fi
5434
5435
5436
5437 if test "x$with_gmp" != x; then
5438   gmplibs="-L$with_gmp/lib $gmplibs"
5439   gmpinc="-I$with_gmp/include $gmpinc"
5440 fi
5441 if test "x$with_gmp_include" != x; then
5442   gmpinc="-I$with_gmp_include $gmpinc"
5443 fi
5444 if test "x$with_gmp_lib" != x; then
5445   gmplibs="-L$with_gmp_lib $gmplibs"
5446 fi
5447 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5448   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5449   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5450   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5451   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5452   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5453   # Do not test the gmp version.  Assume that it is sufficient, since
5454   # it is in the source tree, and the library has not been built yet
5455   # but it would be included on the link line in the version check below
5456   # hence making the test fail.
5457   have_gmp=yes
5458 fi
5459
5460 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5461   have_gmp=yes
5462   saved_CFLAGS="$CFLAGS"
5463   CFLAGS="$CFLAGS $gmpinc"
5464   # Check for the recommended and required versions of GMP.
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5466 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5467
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #include "gmp.h"
5471 int
5472 main ()
5473 {
5474
5475   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5476   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5477   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5478   choke me
5479   #endif
5480
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h.  */
5488 #include <gmp.h>
5489 int
5490 main ()
5491 {
5492
5493   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5494   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5495   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5496   choke me
5497   #endif
5498
5499   ;
5500   return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5505 $as_echo "yes" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5508 $as_echo "buggy but acceptable" >&6; }
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }; have_gmp=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516
5517   # If we have GMP, check the MPFR version.
5518   if test x"$have_gmp" = xyes; then
5519     # Check for the recommended and required versions of MPFR.
5520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5521 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524 #include <gmp.h>
5525     #include <mpfr.h>
5526 int
5527 main ()
5528 {
5529
5530     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5531     choke me
5532     #endif
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541 #include <gmp.h>
5542     #include <mpfr.h>
5543 int
5544 main ()
5545 {
5546
5547     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5548     choke me
5549     #endif
5550
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5560 $as_echo "buggy but acceptable" >&6; }
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }; have_gmp=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568   fi
5569
5570   # Check for the MPC header version.
5571   if test x"$have_gmp" = xyes ; then
5572     # Check for the recommended and required versions of MPC.
5573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5574 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577 #include <mpc.h>
5578 int
5579 main ()
5580 {
5581
5582     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5583     choke me
5584     #endif
5585
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h.  */
5593 #include <mpc.h>
5594 int
5595 main ()
5596 {
5597
5598     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5599     choke me
5600     #endif
5601
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5609 else
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5611 $as_echo "buggy but acceptable" >&6; }
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }; have_gmp=no
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619   fi
5620
5621   # Now check the MPFR library.
5622   if test x"$have_gmp" = xyes; then
5623     saved_LIBS="$LIBS"
5624     LIBS="$LIBS $gmplibs"
5625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5626 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <mpc.h>
5630 int
5631 main ()
5632 {
5633
5634     mpfr_t n;
5635     mpfr_t x;
5636     mpc_t c;
5637     int t;
5638     mpfr_init (n);
5639     mpfr_init (x);
5640     mpfr_atan2 (n, n, x, GMP_RNDN);
5641     mpfr_erfc (n, x, GMP_RNDN);
5642     mpfr_subnormalize (x, t, GMP_RNDN);
5643     mpfr_clear(n);
5644     mpfr_clear(x);
5645     mpc_init2 (c, 53);
5646     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5647     mpc_cosh (c, c, MPC_RNDNN);
5648     mpc_pow (c, c, c, MPC_RNDNN);
5649     mpc_acosh (c, c, MPC_RNDNN);
5650     mpc_clear (c);
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"; then :
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }; have_gmp=no
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext \
5664     conftest$ac_exeext conftest.$ac_ext
5665     LIBS="$saved_LIBS"
5666   fi
5667
5668   CFLAGS="$saved_CFLAGS"
5669
5670 # The library versions listed in the error message below should match
5671 # the HARD-minimums enforced above.
5672   if test x$have_gmp != xyes; then
5673     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5674 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5675 their locations.  Source code for these libraries can be found at
5676 their respective hosting sites as well as at
5677 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5678 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5679 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5680 make sure that you have installed both the libraries and the header
5681 files.  They may be located in separate packages." "$LINENO" 5
5682   fi
5683 fi
5684
5685 # Flags needed for both GMP, MPFR and/or MPC.
5686
5687
5688
5689
5690
5691
5692
5693 # Allow host libstdc++ to be specified for static linking with PPL.
5694
5695 # Check whether --with-host-libstdcxx was given.
5696 if test "${with_host_libstdcxx+set}" = set; then :
5697   withval=$with_host_libstdcxx;
5698 fi
5699
5700
5701 case $with_host_libstdcxx in
5702   no|yes)
5703     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5704     ;;
5705 esac
5706
5707 # Libraries to use for stage1 or when not bootstrapping.
5708
5709 # Check whether --with-stage1-libs was given.
5710 if test "${with_stage1_libs+set}" = set; then :
5711   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5712    stage1_libs=
5713  else
5714    stage1_libs=$withval
5715  fi
5716 else
5717   stage1_libs=$with_host_libstdcxx
5718 fi
5719
5720
5721
5722 # Linker flags to use for stage1 or when not bootstrapping.
5723
5724 # Check whether --with-stage1-ldflags was given.
5725 if test "${with_stage1_ldflags+set}" = set; then :
5726   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5727    stage1_ldflags=
5728  else
5729    stage1_ldflags=$withval
5730  fi
5731 else
5732   stage1_ldflags=
5733  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5734  # if supported.  But if the user explicitly specified the libraries to use,
5735  # trust that they are doing what they want.
5736  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5737    stage1_ldflags="-static-libstdc++ -static-libgcc"
5738  fi
5739 fi
5740
5741
5742
5743 # Libraries to use for stage2 and later builds.  This defaults to the
5744 # argument passed to --with-host-libstdcxx.
5745
5746 # Check whether --with-boot-libs was given.
5747 if test "${with_boot_libs+set}" = set; then :
5748   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5749    poststage1_libs=
5750  else
5751    poststage1_libs=$withval
5752  fi
5753 else
5754   poststage1_libs=$with_host_libstdcxx
5755 fi
5756
5757
5758
5759 # Linker flags to use for stage2 and later builds.
5760
5761 # Check whether --with-boot-ldflags was given.
5762 if test "${with_boot_ldflags+set}" = set; then :
5763   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5764    poststage1_ldflags=
5765  else
5766    poststage1_ldflags=$withval
5767  fi
5768 else
5769   poststage1_ldflags=
5770  # In stages 2 and 3, default to linking libstdc++ and libgcc
5771  # statically.  But if the user explicitly specified the libraries to
5772  # use, trust that they are doing what they want.
5773  if test "$poststage1_libs" = ""; then
5774    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5775  fi
5776 fi
5777
5778
5779
5780 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5781 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5782 # config/isl.m4
5783
5784
5785 # Check whether --with-cloog was given.
5786 if test "${with_cloog+set}" = set; then :
5787   withval=$with_cloog;
5788 fi
5789
5790
5791 # Check whether --with-isl was given.
5792 if test "${with_isl+set}" = set; then :
5793   withval=$with_isl;
5794 fi
5795
5796
5797 # Treat --without-isl as a request to disable
5798 # GRAPHITE support and skip all following checks.
5799 if test "x$with_isl" != "xno"; then
5800   # Check for ISL
5801
5802
5803 # Check whether --with-isl-include was given.
5804 if test "${with_isl_include+set}" = set; then :
5805   withval=$with_isl_include;
5806 fi
5807
5808
5809 # Check whether --with-isl-lib was given.
5810 if test "${with_isl_lib+set}" = set; then :
5811   withval=$with_isl_lib;
5812 fi
5813
5814
5815   # Check whether --enable-isl-version-check was given.
5816 if test "${enable_isl_version_check+set}" = set; then :
5817   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5818 else
5819   ENABLE_ISL_CHECK=yes
5820 fi
5821
5822
5823   # Initialize isllibs and islinc.
5824   case $with_isl in
5825     no)
5826       isllibs=
5827       islinc=
5828       ;;
5829     "" | yes)
5830       ;;
5831     *)
5832       isllibs="-L$with_isl/lib"
5833       islinc="-I$with_isl/include"
5834       ;;
5835   esac
5836   if test "x${with_isl_include}" != x ; then
5837     islinc="-I$with_isl_include"
5838   fi
5839   if test "x${with_isl_lib}" != x; then
5840     isllibs="-L$with_isl_lib"
5841   fi
5842         if test "x${islinc}" = x && test "x${isllibs}" = x \
5843      && test -d ${srcdir}/isl; then
5844     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5845     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5846     ENABLE_ISL_CHECK=no
5847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5848 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5849   fi
5850
5851   islinc="-DCLOOG_INT_GMP ${islinc}"
5852   isllibs="${isllibs} -lisl"
5853
5854
5855
5856   if test "${ENABLE_ISL_CHECK}" = yes ; then
5857     _isl_saved_CFLAGS=$CFLAGS
5858     _isl_saved_LDFLAGS=$LDFLAGS
5859     _isl_saved_LIBS=$LIBS
5860
5861     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5862     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5863     LIBS="${_isl_saved_LIBS} -lisl"
5864
5865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5866 $as_echo_n "checking for compatible ISL... " >&6; }
5867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869 #include <isl/val.h>
5870 int
5871 main ()
5872 {
5873 ;
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"; then :
5879   gcc_cv_isl=yes
5880 else
5881   gcc_cv_isl=no
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext \
5884     conftest$ac_exeext conftest.$ac_ext
5885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5886 $as_echo "$gcc_cv_isl" >&6; }
5887
5888     CFLAGS=$_isl_saved_CFLAGS
5889     LDFLAGS=$_isl_saved_LDFLAGS
5890     LIBS=$_isl_saved_LIBS
5891   fi
5892
5893
5894
5895
5896
5897
5898   if test "x${with_isl}" = xno; then
5899     graphite_requested=no
5900   elif test "x${with_isl}" != x \
5901     || test "x${with_isl_include}" != x \
5902     || test "x${with_isl_lib}" != x ; then
5903     graphite_requested=yes
5904   else
5905     graphite_requested=no
5906   fi
5907
5908
5909
5910   if test "${gcc_cv_isl}" = no ; then
5911     isllibs=
5912     islinc=
5913   fi
5914
5915   if test "${graphite_requested}" = yes \
5916     && test "x${isllibs}" = x \
5917     && test "x${islinc}" = x ; then
5918
5919     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
5920   fi
5921
5922
5923
5924   if test "x$gcc_cv_isl" != "xno"; then
5925     # Check for CLOOG
5926
5927
5928 # Check whether --with-cloog-include was given.
5929 if test "${with_cloog_include+set}" = set; then :
5930   withval=$with_cloog_include;
5931 fi
5932
5933
5934 # Check whether --with-cloog-lib was given.
5935 if test "${with_cloog_lib+set}" = set; then :
5936   withval=$with_cloog_lib;
5937 fi
5938
5939
5940   # Check whether --enable-cloog-version-check was given.
5941 if test "${enable_cloog_version_check+set}" = set; then :
5942   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5943 else
5944   ENABLE_CLOOG_CHECK=yes
5945 fi
5946
5947
5948   # Initialize clooglibs and clooginc.
5949   case $with_cloog in
5950     no)
5951       clooglibs=
5952       clooginc=
5953       ;;
5954     "" | yes)
5955       ;;
5956     *)
5957       clooglibs="-L$with_cloog/lib"
5958       clooginc="-I$with_cloog/include"
5959       ;;
5960   esac
5961   if test "x${with_cloog_include}" != x ; then
5962     clooginc="-I$with_cloog_include"
5963   fi
5964   if test "x${with_cloog_lib}" != x; then
5965     clooglibs="-L$with_cloog_lib"
5966   fi
5967         if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5968      && test -d ${srcdir}/cloog; then
5969      clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5970      clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
5971     ENABLE_CLOOG_CHECK=no
5972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
5973 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
5974   fi
5975
5976   clooginc="-DCLOOG_INT_GMP ${clooginc}"
5977   clooglibs="${clooglibs} -lcloog-isl"
5978
5979
5980
5981
5982
5983   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5984     _cloog_saved_CFLAGS=$CFLAGS
5985     _cloog_saved_LDFLAGS=$LDFLAGS
5986
5987     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5988     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5989
5990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
5991 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
5992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h.  */
5994 #include "cloog/version.h"
5995 int
5996 main ()
5997 {
5998 #if CLOOG_VERSION_MAJOR != 0 \
5999     || CLOOG_VERSION_MINOR != 18 \
6000     || CLOOG_VERSION_REVISION < 1
6001     choke me
6002    #endif
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008   gcc_cv_cloog=yes
6009 else
6010   gcc_cv_cloog=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6014 $as_echo "$gcc_cv_cloog" >&6; }
6015
6016     CFLAGS=$_cloog_saved_CFLAGS
6017     LDFLAGS=$_cloog_saved_LDFLAGS
6018   fi
6019
6020
6021
6022
6023
6024
6025
6026   if test "x${with_cloog}" = xno; then
6027     graphite_requested=no
6028   elif test "x${with_cloog}" != x \
6029     || test "x${with_cloog_include}" != x \
6030     || test "x${with_cloog_lib}" != x ; then
6031     graphite_requested=yes
6032   else
6033     graphite_requested=no
6034   fi
6035
6036
6037
6038   if test "${gcc_cv_cloog}" = no ; then
6039     clooglibs=
6040     clooginc=
6041   fi
6042
6043   if test "${graphite_requested}" = yes \
6044     && test "x${clooglibs}" = x \
6045     && test "x${clooginc}" = x ; then
6046
6047       as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
6048   fi
6049
6050
6051   fi
6052 fi
6053
6054 # If the ISL check failed, disable builds of in-tree
6055 # variants of both ISL and CLooG
6056 if test "x$with_isl" = xno ||
6057    test "x$gcc_cv_isl" = xno; then
6058   noconfigdirs="$noconfigdirs cloog isl"
6059   islinc=
6060   clooginc=
6061   clooglibs=
6062 fi
6063
6064 # If the CLooG check failed, disable builds of in-tree
6065 # variants of CLooG
6066 if test "x$with_cloog" = xno ||
6067    test "x$gcc_cv_cloog" = xno; then
6068   noconfigdirs="$noconfigdirs cloog isl"
6069   clooginc=
6070   clooglibs=
6071 fi
6072
6073
6074
6075
6076
6077
6078 # Check for LTO support.
6079 # Check whether --enable-lto was given.
6080 if test "${enable_lto+set}" = set; then :
6081   enableval=$enable_lto; enable_lto=$enableval
6082 else
6083   enable_lto=yes; default_enable_lto=yes
6084 fi
6085
6086
6087
6088
6089
6090 target_elf=no
6091 case $target in
6092   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6093   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6094   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6095     target_elf=no
6096     ;;
6097   *)
6098     target_elf=yes
6099     ;;
6100 esac
6101
6102 if test $target_elf = yes; then :
6103   # ELF platforms build the lto-plugin always.
6104   build_lto_plugin=yes
6105
6106 else
6107   if test x"$default_enable_lto" = x"yes" ; then
6108     case $target in
6109       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6110       # On other non-ELF platforms, LTO has yet to be validated.
6111       *) enable_lto=no ;;
6112     esac
6113   else
6114   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6115   # It would also be nice to check the binutils support, but we don't
6116   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6117   # warn during gcc/ subconfigure; unless you're bootstrapping with
6118   # -flto it won't be needed until after installation anyway.
6119     case $target in
6120       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6121       *) if test x"$enable_lto" = x"yes"; then
6122         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6123         fi
6124       ;;
6125     esac
6126   fi
6127   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6128   # Build it unless LTO was explicitly disabled.
6129   case $target in
6130     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6131     *) ;;
6132   esac
6133
6134 fi
6135
6136
6137 # Check whether --enable-linker-plugin-configure-flags was given.
6138 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6139   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6140 else
6141   extra_linker_plugin_configure_flags=
6142 fi
6143
6144
6145 # Check whether --enable-linker-plugin-flags was given.
6146 if test "${enable_linker_plugin_flags+set}" = set; then :
6147   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6148 else
6149   extra_linker_plugin_flags=
6150 fi
6151
6152
6153
6154
6155 # By default, C and C++ are the only stage 1 languages.
6156 stage1_languages=,c,
6157
6158 # Target libraries that we bootstrap.
6159 bootstrap_target_libs=,target-libgcc,
6160
6161 # Figure out what language subdirectories are present.
6162 # Look if the user specified --enable-languages="..."; if not, use
6163 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6164 # go away some day.
6165 # NB:  embedded tabs in this IF block -- do not untabify
6166 if test -d ${srcdir}/gcc; then
6167   if test x"${enable_languages+set}" != xset; then
6168     if test x"${LANGUAGES+set}" = xset; then
6169       enable_languages="${LANGUAGES}"
6170         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6171     else
6172       enable_languages=all
6173     fi
6174   else
6175     if test x"${enable_languages}" = x ||
6176        test x"${enable_languages}" = xyes;
6177        then
6178       echo configure.in: --enable-languages needs at least one language argument 1>&2
6179       exit 1
6180     fi
6181   fi
6182   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6183
6184   # 'f95' is the old name for the 'fortran' language. We issue a warning
6185   # and make the substitution.
6186   case ,${enable_languages}, in
6187     *,f95,*)
6188       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6189       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6190       ;;
6191   esac
6192
6193   # If bootstrapping, C++ must be enabled.
6194   case ",$enable_languages,:$enable_bootstrap" in
6195     *,c++,*:*) ;;
6196     *:yes)
6197       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6198         enable_languages="${enable_languages},c++"
6199       else
6200         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6201       fi
6202       ;;
6203   esac
6204
6205   # First scan to see if an enabled language requires some other language.
6206   # We assume that a given config-lang.in will list all the language
6207   # front ends it requires, even if some are required indirectly.
6208   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6209     case ${lang_frag} in
6210       ..) ;;
6211       # The odd quoting in the next line works around
6212       # an apparent bug in bash 1.12 on linux.
6213       ${srcdir}/gcc/[*]/config-lang.in) ;;
6214       *)
6215         # From the config-lang.in, get $language, $lang_requires, and
6216         # $lang_requires_boot_languages.
6217         language=
6218         lang_requires=
6219         lang_requires_boot_languages=
6220         . ${lang_frag}
6221         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6222           case ,${enable_languages}, in
6223             *,$other,*) ;;
6224             *,all,*) ;;
6225             *,$language,*)
6226               echo " \`$other' language required by \`$language'; enabling" 1>&2
6227               enable_languages="${enable_languages},${other}"
6228               ;;
6229           esac
6230         done
6231         for other in ${lang_requires_boot_languages} ; do
6232           if test "$other" != "c"; then
6233             case ,${enable_stage1_languages}, in
6234               *,$other,*) ;;
6235               *,all,*) ;;
6236               *)
6237                 case ,${enable_languages}, in
6238                   *,$language,*)
6239                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6240                     enable_stage1_languages="$enable_stage1_languages,${other}"
6241                     ;;
6242                 esac
6243                 ;;
6244             esac
6245           fi
6246         done
6247         ;;
6248     esac
6249   done
6250
6251   new_enable_languages=,c,
6252
6253   # If LTO is enabled, add the LTO front end.
6254   extra_host_libiberty_configure_flags=
6255   if test "$enable_lto" = "yes" ; then
6256     case ,${enable_languages}, in
6257       *,lto,*) ;;
6258       *) enable_languages="${enable_languages},lto" ;;
6259     esac
6260     if test "${build_lto_plugin}" = "yes" ; then
6261       configdirs="$configdirs lto-plugin"
6262       extra_host_libiberty_configure_flags=--enable-shared
6263     fi
6264   fi
6265
6266
6267   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6268   potential_languages=,c,
6269
6270   enabled_target_libs=
6271   disabled_target_libs=
6272
6273   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274     case ${lang_frag} in
6275       ..) ;;
6276       # The odd quoting in the next line works around
6277       # an apparent bug in bash 1.12 on linux.
6278       ${srcdir}/gcc/[*]/config-lang.in) ;;
6279       *)
6280         # From the config-lang.in, get $language, $target_libs,
6281         # $lang_dirs, $boot_language, and $build_by_default
6282         language=
6283         target_libs=
6284         lang_dirs=
6285         subdir_requires=
6286         boot_language=no
6287         build_by_default=yes
6288         . ${lang_frag}
6289         if test x${language} = x; then
6290           echo "${lang_frag} doesn't set \$language." 1>&2
6291           exit 1
6292         fi
6293
6294         if test "$language" = "c++"; then
6295           boot_language=yes
6296         fi
6297
6298         add_this_lang=no
6299         case ,${enable_languages}, in
6300           *,${language},*)
6301             # Language was explicitly selected; include it
6302             # unless it is C, which is enabled by default.
6303             if test "$language" != "c"; then
6304               add_this_lang=yes
6305             fi
6306             ;;
6307           *,all,*)
6308             # 'all' was selected, select it if it is a default language
6309             if test "$language" != "c"; then
6310               add_this_lang=${build_by_default}
6311             fi
6312             ;;
6313         esac
6314
6315         # Disable languages that need other directories if these aren't available.
6316         for i in $subdir_requires; do
6317           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6318           case ,${enable_languages}, in
6319             *,${language},*)
6320               # Specifically requested language; tell them.
6321               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6322               ;;
6323             *)
6324               # Silently disable.
6325               add_this_lang=unsupported
6326               ;;
6327           esac
6328         done
6329
6330         # Disable Ada if no preexisting GNAT is available.
6331         case ,${enable_languages},:${language}:${have_gnat} in
6332           *,${language},*:ada:no)
6333             # Specifically requested language; tell them.
6334             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6335             ;;
6336           *:ada:no)
6337             # Silently disable.
6338             add_this_lang=unsupported
6339             ;;
6340         esac
6341
6342         # Disable a language that is unsupported by the target.
6343         case " $unsupported_languages " in
6344           *" $language "*)
6345             add_this_lang=unsupported
6346             ;;
6347         esac
6348
6349         case $add_this_lang in
6350           unsupported)
6351             # Remove language-dependent dirs.
6352             disabled_target_libs="$disabled_target_libs $target_libs"
6353             noconfigdirs="$noconfigdirs $lang_dirs"
6354             ;;
6355           no)
6356             # Remove language-dependent dirs; still show language as supported.
6357             disabled_target_libs="$disabled_target_libs $target_libs"
6358             noconfigdirs="$noconfigdirs $lang_dirs"
6359             potential_languages="${potential_languages}${language},"
6360             ;;
6361           yes)
6362             new_enable_languages="${new_enable_languages}${language},"
6363             potential_languages="${potential_languages}${language},"
6364             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6365             enabled_target_libs="$enabled_target_libs $target_libs"
6366             case "${boot_language}:,$enable_stage1_languages," in
6367               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6368                 # Add to (comma-separated) list of stage 1 languages.
6369                 case ",$stage1_languages," in
6370                   *,$language,* | ,yes, | ,all,) ;;
6371                   *) stage1_languages="${stage1_languages}${language}," ;;
6372                 esac
6373                 # We need to bootstrap any supporting libraries.
6374                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6375                 ;;
6376             esac
6377             ;;
6378         esac
6379         ;;
6380     esac
6381   done
6382
6383   # Add target libraries which are only needed for disabled languages
6384   # to noconfigdirs.
6385   if test -n "$disabled_target_libs"; then
6386     for dir in $disabled_target_libs; do
6387       case " $enabled_target_libs " in
6388       *" ${dir} "*) ;;
6389       *) noconfigdirs="$noconfigdirs $dir" ;;
6390       esac
6391     done
6392   fi
6393
6394   # Check whether --enable-stage1-languages was given.
6395 if test "${enable_stage1_languages+set}" = set; then :
6396   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6397     ,no,|,,)
6398       # Set it to something that will have no effect in the loop below
6399       enable_stage1_languages=c ;;
6400     ,yes,)
6401       enable_stage1_languages=`echo $new_enable_languages | \
6402         sed -e "s/^,//" -e "s/,$//" ` ;;
6403     *,all,*)
6404       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6405         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6406   esac
6407
6408   # Add "good" languages from enable_stage1_languages to stage1_languages,
6409   # while "bad" languages go in missing_languages.  Leave no duplicates.
6410   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6411     case $potential_languages in
6412       *,$i,*)
6413         case $stage1_languages in
6414           *,$i,*) ;;
6415           *) stage1_languages="$stage1_languages$i," ;;
6416         esac ;;
6417       *)
6418         case $missing_languages in
6419           *,$i,*) ;;
6420           *) missing_languages="$missing_languages$i," ;;
6421         esac ;;
6422      esac
6423   done
6424 fi
6425
6426
6427   # Remove leading/trailing commas that were added for simplicity
6428   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6429   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6430   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6431   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6432
6433   if test "x$missing_languages" != x; then
6434     as_fn_error "
6435 The following requested languages could not be built: ${missing_languages}
6436 Supported languages are: ${potential_languages}" "$LINENO" 5
6437   fi
6438   if test "x$new_enable_languages" != "x$enable_languages"; then
6439     echo The following languages will be built: ${new_enable_languages}
6440     enable_languages="$new_enable_languages"
6441   fi
6442
6443
6444   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6445 fi
6446
6447 # Handle --disable-<component> generically.
6448 for dir in $configdirs $build_configdirs $target_configdirs ; do
6449   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6450   varname=`echo $dirname | sed -e s/+/_/g`
6451   if eval test x\${enable_${varname}} "=" xno ; then
6452     noconfigdirs="$noconfigdirs $dir"
6453   fi
6454 done
6455
6456 # Check for Boehm's garbage collector
6457 # Check whether --enable-objc-gc was given.
6458 if test "${enable_objc_gc+set}" = set; then :
6459   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6460   *,objc,*:*:yes:*target-boehm-gc*)
6461     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6462     ;;
6463 esac
6464 fi
6465
6466
6467 # Make sure we only build Boehm's garbage collector if required.
6468 case ,${enable_languages},:${enable_objc_gc} in
6469   *,objc,*:yes)
6470     # Keep target-boehm-gc if requested for Objective-C.
6471     ;;
6472   *)
6473     # Otherwise remove target-boehm-gc depending on target-libjava.
6474     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6475       noconfigdirs="$noconfigdirs target-boehm-gc"
6476     fi
6477     ;;
6478 esac
6479
6480 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6481 case ,${enable_languages}, in
6482   *,c++,*)
6483     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6484     case "${noconfigdirs}" in
6485       *target-libstdc++-v3*)
6486         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6487         ;;
6488       *) ;;
6489     esac
6490     ;;
6491   *)
6492     noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6493     ;;
6494 esac
6495
6496 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6497 # $build_configdirs and $target_configdirs.
6498 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6499
6500 notsupp=""
6501 for dir in . $skipdirs $noconfigdirs ; do
6502   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6503   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6504     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6505     if test -r $srcdir/$dirname/configure ; then
6506       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6507         true
6508       else
6509         notsupp="$notsupp $dir"
6510       fi
6511     fi
6512   fi
6513   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6514     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6515     if test -r $srcdir/$dirname/configure ; then
6516       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6517         true
6518       else
6519         notsupp="$notsupp $dir"
6520       fi
6521     fi
6522   fi
6523   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6525     if test -r $srcdir/$dirname/configure ; then
6526       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6527         true
6528       else
6529         notsupp="$notsupp $dir"
6530       fi
6531     fi
6532   fi
6533 done
6534
6535 # Quietly strip out all directories which aren't configurable in this tree.
6536 # This relies on all configurable subdirectories being autoconfiscated, which
6537 # is now the case.
6538 build_configdirs_all="$build_configdirs"
6539 build_configdirs=
6540 for i in ${build_configdirs_all} ; do
6541   j=`echo $i | sed -e s/build-//g`
6542   if test -f ${srcdir}/$j/configure ; then
6543     build_configdirs="${build_configdirs} $i"
6544   fi
6545 done
6546
6547 configdirs_all="$configdirs"
6548 configdirs=
6549 for i in ${configdirs_all} ; do
6550   if test -f ${srcdir}/$i/configure ; then
6551     configdirs="${configdirs} $i"
6552   fi
6553 done
6554
6555 target_configdirs_all="$target_configdirs"
6556 target_configdirs=
6557 for i in ${target_configdirs_all} ; do
6558   j=`echo $i | sed -e s/target-//g`
6559   if test -f ${srcdir}/$j/configure ; then
6560     target_configdirs="${target_configdirs} $i"
6561   fi
6562 done
6563
6564 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6565 # so we have to add it after the preceding checks.
6566 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6567 then
6568   case " $configdirs " in
6569     *" libiberty "*)
6570       # If we can build libiberty, we can also build libiberty-linker-plugin.
6571       configdirs="$configdirs libiberty-linker-plugin"
6572       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6573         --with-libiberty=../libiberty-linker-plugin";;
6574     *)
6575       as_fn_error "libiberty missing" "$LINENO" 5;;
6576   esac
6577 fi
6578
6579 # Produce a warning message for the subdirs we can't configure.
6580 # This isn't especially interesting in the Cygnus tree, but in the individual
6581 # FSF releases, it's important to let people know when their machine isn't
6582 # supported by the one or two programs in a package.
6583
6584 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6585   # If $appdirs is non-empty, at least one of those directories must still
6586   # be configured, or we error out.  (E.g., if the gas release supports a
6587   # specified target in some subdirs but not the gas subdir, we shouldn't
6588   # pretend that all is well.)
6589   if test -n "$appdirs" ; then
6590     for dir in $appdirs ; do
6591       if test -r $dir/Makefile.in ; then
6592         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6593           appdirs=""
6594           break
6595         fi
6596         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6597           appdirs=""
6598           break
6599         fi
6600       fi
6601     done
6602     if test -n "$appdirs" ; then
6603       echo "*** This configuration is not supported by this package." 1>&2
6604       exit 1
6605     fi
6606   fi
6607   # Okay, some application will build, or we don't care to check.  Still
6608   # notify of subdirs not getting built.
6609   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6610   echo "    ${notsupp}" 1>&2
6611   echo "    (Any other directories should still work fine.)" 1>&2
6612 fi
6613
6614 case "$host" in
6615   *msdosdjgpp*)
6616     enable_gdbtk=no ;;
6617 esac
6618
6619 # To find our prefix, in gcc_cv_tool_prefix.
6620
6621 # The user is always right.
6622 if test "${PATH_SEPARATOR+set}" != set; then
6623   echo "#! /bin/sh" >conf$$.sh
6624   echo  "exit 0"   >>conf$$.sh
6625   chmod +x conf$$.sh
6626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6627     PATH_SEPARATOR=';'
6628   else
6629     PATH_SEPARATOR=:
6630   fi
6631   rm -f conf$$.sh
6632 fi
6633
6634
6635
6636 if test "x$exec_prefix" = xNONE; then
6637         if test "x$prefix" = xNONE; then
6638                 gcc_cv_tool_prefix=$ac_default_prefix
6639         else
6640                 gcc_cv_tool_prefix=$prefix
6641         fi
6642 else
6643         gcc_cv_tool_prefix=$exec_prefix
6644 fi
6645
6646 # If there is no compiler in the tree, use the PATH only.  In any
6647 # case, if there is no compiler in the tree nobody should use
6648 # AS_FOR_TARGET and LD_FOR_TARGET.
6649 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6650     gcc_version=`cat $srcdir/gcc/BASE-VER`
6651     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6652     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6653     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6654     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6655     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6656     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6657 else
6658     gcc_cv_tool_dirs=
6659 fi
6660
6661 if test x$build = x$target && test -n "$md_exec_prefix"; then
6662         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6663 fi
6664
6665
6666
6667 copy_dirs=
6668
6669
6670 # Check whether --with-build-sysroot was given.
6671 if test "${with_build_sysroot+set}" = set; then :
6672   withval=$with_build_sysroot; if test x"$withval" != x ; then
6673      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6674    fi
6675 else
6676   SYSROOT_CFLAGS_FOR_TARGET=
6677 fi
6678
6679
6680
6681
6682 # Check whether --with-debug-prefix-map was given.
6683 if test "${with_debug_prefix_map+set}" = set; then :
6684   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6685      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6686      for debug_map in $withval; do
6687        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6688      done
6689    fi
6690 else
6691   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6692 fi
6693
6694
6695
6696 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6697 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6698 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6699 # We want to ensure that TARGET libraries (which we know are built with
6700 # gcc) are built with "-O2 -g", so include those options when setting
6701 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6702 if test "x$CFLAGS_FOR_TARGET" = x; then
6703   CFLAGS_FOR_TARGET=$CFLAGS
6704   case " $CFLAGS " in
6705     *" -O2 "*) ;;
6706     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6707   esac
6708   case " $CFLAGS " in
6709     *" -g "* | *" -g3 "*) ;;
6710     *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6711   esac
6712 fi
6713
6714
6715 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6716   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6717   case " $CXXFLAGS " in
6718     *" -O2 "*) ;;
6719     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6720   esac
6721   case " $CXXFLAGS " in
6722     *" -g "* | *" -g3 "*) ;;
6723     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6724   esac
6725 fi
6726
6727
6728
6729
6730 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6731 # the named directory are copied to $(tooldir)/sys-include.
6732 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6733   if test x${is_cross_compiler} = xno ; then
6734     echo 1>&2 '***' --with-headers is only supported when cross compiling
6735     exit 1
6736   fi
6737   if test x"${with_headers}" != xyes ; then
6738     x=${gcc_cv_tool_prefix}
6739     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6740   fi
6741 fi
6742
6743 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6744 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6745 # are permitted.
6746 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6747   if test x${is_cross_compiler} = xno ; then
6748     echo 1>&2 '***' --with-libs is only supported when cross compiling
6749     exit 1
6750   fi
6751   if test x"${with_libs}" != xyes ; then
6752     # Copy the libraries in reverse order, so that files in the first named
6753     # library override files in subsequent libraries.
6754     x=${gcc_cv_tool_prefix}
6755     for l in ${with_libs}; do
6756       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6757     done
6758   fi
6759 fi
6760
6761 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6762 #
6763 # This is done by determining whether or not the appropriate directory
6764 # is available, and by checking whether or not specific configurations
6765 # have requested that this magic not happen.
6766 #
6767 # The command line options always override the explicit settings in
6768 # configure.in, and the settings in configure.in override this magic.
6769 #
6770 # If the default for a toolchain is to use GNU as and ld, and you don't
6771 # want to do that, then you should use the --without-gnu-as and
6772 # --without-gnu-ld options for the configure script.  Similarly, if
6773 # the default is to use the included zlib and you don't want to do that,
6774 # you should use the --with-system-zlib option for the configure script.
6775
6776 if test x${use_gnu_as} = x &&
6777    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6778   with_gnu_as=yes
6779   extra_host_args="$extra_host_args --with-gnu-as"
6780 fi
6781
6782 if test x${use_gnu_ld} = x &&
6783    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6784   with_gnu_ld=yes
6785   extra_host_args="$extra_host_args --with-gnu-ld"
6786 fi
6787
6788 if test x${use_included_zlib} = x &&
6789    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6790   :
6791 else
6792   with_system_zlib=yes
6793   extra_host_args="$extra_host_args --with-system-zlib"
6794 fi
6795
6796 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6797 # can detect this case.
6798
6799 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6800   with_newlib=yes
6801   extra_host_args="$extra_host_args --with-newlib"
6802 fi
6803
6804 # Handle ${copy_dirs}
6805 set fnord ${copy_dirs}
6806 shift
6807 while test $# != 0 ; do
6808   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6809     :
6810   else
6811     echo Copying $1 to $2
6812
6813     # Use the install script to create the directory and all required
6814     # parent directories.
6815     if test -d $2 ; then
6816       :
6817     else
6818       echo >config.temp
6819       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6820     fi
6821
6822     # Copy the directory, assuming we have tar.
6823     # FIXME: Should we use B in the second tar?  Not all systems support it.
6824     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6825
6826     # It is the responsibility of the user to correctly adjust all
6827     # symlinks.  If somebody can figure out how to handle them correctly
6828     # here, feel free to add the code.
6829
6830     echo $1 > $2/COPIED
6831   fi
6832   shift; shift
6833 done
6834
6835 # Determine a target-dependent exec_prefix that the installed
6836 # gcc will search in.  Keep this list sorted by triplet, with
6837 # the *-*-osname triplets last.
6838 md_exec_prefix=
6839 case "${target}" in
6840   i[34567]86-pc-msdosdjgpp*)
6841     md_exec_prefix=/dev/env/DJDIR/bin
6842     ;;
6843   *-*-hpux* | \
6844   *-*-nto-qnx* | \
6845   *-*-solaris2*)
6846     md_exec_prefix=/usr/ccs/bin
6847     ;;
6848 esac
6849
6850 extra_arflags_for_target=
6851 extra_nmflags_for_target=
6852 extra_ranlibflags_for_target=
6853 target_makefile_frag=/dev/null
6854 case "${target}" in
6855   spu-*-*)
6856     target_makefile_frag="config/mt-spu"
6857     ;;
6858   mips*-sde-elf* | mips*-mti-elf*)
6859     target_makefile_frag="config/mt-sde"
6860     ;;
6861   mipsisa*-*-elfoabi*)
6862     target_makefile_frag="config/mt-mips-elfoabi"
6863     ;;
6864   mips*-*-*linux* | mips*-*-gnu*)
6865     target_makefile_frag="config/mt-mips-gnu"
6866     ;;
6867   nios2-*-elf*)
6868     target_makefile_frag="config/mt-nios2-elf"
6869     ;;
6870   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6871     target_makefile_frag="config/mt-gnu"
6872     ;;
6873   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6874     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6875     # commands to handle both 32-bit and 64-bit objects.  These flags are
6876     # harmless if we're using GNU nm or ar.
6877     extra_arflags_for_target=" -X32_64"
6878     extra_nmflags_for_target=" -B -X32_64"
6879     ;;
6880 esac
6881
6882 alphaieee_frag=/dev/null
6883 case $target in
6884   alpha*-*-*)
6885     # This just makes sure to use the -mieee option to build target libs.
6886     # This should probably be set individually by each library.
6887     alphaieee_frag="config/mt-alphaieee"
6888     ;;
6889 esac
6890
6891 # If --enable-target-optspace always use -Os instead of -O2 to build
6892 # the target libraries, similarly if it is not specified, use -Os
6893 # on selected platforms.
6894 ospace_frag=/dev/null
6895 case "${enable_target_optspace}:${target}" in
6896   yes:*)
6897     ospace_frag="config/mt-ospace"
6898     ;;
6899   :d30v-*)
6900     ospace_frag="config/mt-d30v"
6901     ;;
6902   :m32r-* | :d10v-* | :fr30-*)
6903     ospace_frag="config/mt-ospace"
6904     ;;
6905   no:* | :*)
6906     ;;
6907   *)
6908     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6909     ;;
6910 esac
6911
6912 # Some systems (e.g., one of the i386-aix systems the gas testers are
6913 # using) don't handle "\$" correctly, so don't use it here.
6914 tooldir='${exec_prefix}'/${target_noncanonical}
6915 build_tooldir=${tooldir}
6916
6917 # Create a .gdbinit file which runs the one in srcdir
6918 # and tells GDB to look there for source files.
6919
6920 if test -r ${srcdir}/.gdbinit ; then
6921   case ${srcdir} in
6922     .) ;;
6923     *) cat > ./.gdbinit <<EOF
6924 # ${NO_EDIT}
6925 dir ${srcdir}
6926 dir .
6927 source ${srcdir}/.gdbinit
6928 EOF
6929     ;;
6930   esac
6931 fi
6932
6933 # Make sure that the compiler is able to generate an executable.  If it
6934 # can't, we are probably in trouble.  We don't care whether we can run the
6935 # executable--we might be using a cross compiler--we only care whether it
6936 # can be created.  At this point the main configure script has set CC.
6937 we_are_ok=no
6938 echo "int main () { return 0; }" > conftest.c
6939 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6940 if test $? = 0 ; then
6941   if test -s conftest || test -s conftest.exe ; then
6942     we_are_ok=yes
6943   fi
6944 fi
6945 case $we_are_ok in
6946   no)
6947     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6948     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6949     rm -f conftest*
6950     exit 1
6951     ;;
6952 esac
6953 rm -f conftest*
6954
6955 # Decide which environment variable is used to find dynamic libraries.
6956 case "${host}" in
6957   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6958   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6959   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6960   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6961 esac
6962
6963 # On systems where the dynamic library environment variable is PATH,
6964 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6965 # built executables to PATH.
6966 if test "$RPATH_ENVVAR" = PATH; then
6967   GCC_SHLIB_SUBDIR=/shlib
6968 else
6969   GCC_SHLIB_SUBDIR=
6970 fi
6971
6972 # Adjust the toplevel makefile according to whether bootstrap was selected.
6973 case $enable_bootstrap in
6974   yes)
6975     bootstrap_suffix=bootstrap
6976     BUILD_CONFIG=bootstrap-debug
6977     ;;
6978   no)
6979     bootstrap_suffix=no-bootstrap
6980     BUILD_CONFIG=
6981     ;;
6982 esac
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6985 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6986
6987
6988 # Check whether --with-build-config was given.
6989 if test "${with_build_config+set}" = set; then :
6990   withval=$with_build_config; case $with_build_config in
6991    yes) with_build_config= ;;
6992    no) with_build_config= BUILD_CONFIG= ;;
6993    esac
6994 fi
6995
6996
6997 if test "x${with_build_config}" != x; then
6998   BUILD_CONFIG=$with_build_config
6999 else
7000   case $BUILD_CONFIG in
7001   bootstrap-debug)
7002     if echo "int f (void) { return 0; }" > conftest.c &&
7003        ${CC} -c conftest.c &&
7004        mv conftest.o conftest.o.g0 &&
7005        ${CC} -c -g conftest.c &&
7006        mv conftest.o conftest.o.g &&
7007        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7008       :
7009     else
7010       BUILD_CONFIG=
7011     fi
7012     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7013     ;;
7014   esac
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7017 $as_echo "$BUILD_CONFIG" >&6; }
7018
7019
7020 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7022 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7023 # Check whether --enable-vtable-verify was given.
7024 if test "${enable_vtable_verify+set}" = set; then :
7025   enableval=$enable_vtable_verify; case "$enableval" in
7026  yes) enable_vtable_verify=yes ;;
7027  no)  enable_vtable_verify=no ;;
7028  *)   enable_vtable_verify=no;;
7029  esac
7030 else
7031   enable_vtable_verify=no
7032 fi
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7035 $as_echo "$enable_vtable_verify" >&6; }
7036
7037 # Record target_configdirs and the configure arguments for target and
7038 # build configuration in Makefile.
7039 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7040 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7041 bootstrap_fixincludes=no
7042
7043 # If we are building libgomp, bootstrap it.
7044 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7045   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7046 fi
7047
7048 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7049 # or bootstrap-ubsan, bootstrap it.
7050 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7051   case "$BUILD_CONFIG" in
7052     *bootstrap-asan* | *bootstrap-ubsan* )
7053       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7054       bootstrap_fixincludes=yes
7055       ;;
7056   esac
7057 fi
7058
7059 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7060 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7061    test "$enable_vtable_verify" != no; then
7062   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7063 fi
7064
7065 # Determine whether gdb needs tk/tcl or not.
7066 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7067 # and in that case we want gdb to be built without tk.  Ugh!
7068 # In fact I believe gdb is the *only* package directly dependent on tk,
7069 # so we should be able to put the 'maybe's in unconditionally and
7070 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7071 # 100% sure that that's safe though.
7072
7073 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7074 case "$enable_gdbtk" in
7075   no)
7076     GDB_TK="" ;;
7077   yes)
7078     GDB_TK="${gdb_tk}" ;;
7079   *)
7080     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7081     # distro.  Eventually someone will fix this and move Insight, nee
7082     # gdbtk to a separate directory.
7083     if test -d ${srcdir}/gdb/gdbtk ; then
7084       GDB_TK="${gdb_tk}"
7085     else
7086       GDB_TK=""
7087     fi
7088     ;;
7089 esac
7090 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7091 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7092
7093 # Strip out unwanted targets.
7094
7095 # While at that, we remove Makefiles if we were started for recursive
7096 # configuration, so that the top-level Makefile reconfigures them,
7097 # like we used to do when configure itself was recursive.
7098
7099 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7100 # but now we're fixing up the Makefile ourselves with the additional
7101 # commands passed to AC_CONFIG_FILES.  Use separate variables
7102 # extrasub-{build,host,target} not because there is any reason to split
7103 # the substitutions up that way, but only to remain below the limit of
7104 # 99 commands in a script, for HP-UX sed.
7105 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7106
7107 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7108   yes:yes:*\ gold\ *:*,c++,*) ;;
7109   yes:yes:*\ gold\ *:*)
7110     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7111     ;;
7112 esac
7113
7114 extrasub_build=
7115 for module in ${build_configdirs} ; do
7116   if test -z "${no_recursion}" \
7117      && test -f ${build_subdir}/${module}/Makefile; then
7118     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7119     rm -f ${build_subdir}/${module}/Makefile
7120   fi
7121   extrasub_build="$extrasub_build
7122 /^@if build-$module\$/d
7123 /^@endif build-$module\$/d
7124 /^@if build-$module-$bootstrap_suffix\$/d
7125 /^@endif build-$module-$bootstrap_suffix\$/d"
7126 done
7127 extrasub_host=
7128 for module in ${configdirs} ; do
7129   if test -z "${no_recursion}"; then
7130     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7131       if test -f ${file}; then
7132         echo 1>&2 "*** removing ${file} to force reconfigure"
7133         rm -f ${file}
7134       fi
7135     done
7136   fi
7137   case ${module},${bootstrap_fixincludes} in
7138     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7139     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7140   esac
7141   extrasub_host="$extrasub_host
7142 /^@if $module\$/d
7143 /^@endif $module\$/d
7144 /^@if $module-$host_bootstrap_suffix\$/d
7145 /^@endif $module-$host_bootstrap_suffix\$/d"
7146 done
7147 extrasub_target=
7148 for module in ${target_configdirs} ; do
7149   if test -z "${no_recursion}" \
7150      && test -f ${target_subdir}/${module}/Makefile; then
7151     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7152     rm -f ${target_subdir}/${module}/Makefile
7153   fi
7154
7155   # We only bootstrap target libraries listed in bootstrap_target_libs.
7156   case $bootstrap_target_libs in
7157     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7158     *) target_bootstrap_suffix=no-bootstrap ;;
7159   esac
7160
7161   extrasub_target="$extrasub_target
7162 /^@if target-$module\$/d
7163 /^@endif target-$module\$/d
7164 /^@if target-$module-$target_bootstrap_suffix\$/d
7165 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7166 done
7167
7168 # Do the final fixup along with target modules.
7169 extrasub_target="$extrasub_target
7170 /^@if /,/^@endif /d"
7171
7172 # Create the serialization dependencies.  This uses a temporary file.
7173
7174 # Check whether --enable-serial-configure was given.
7175 if test "${enable_serial_configure+set}" = set; then :
7176   enableval=$enable_serial_configure;
7177 fi
7178
7179
7180 case ${enable_serial_configure} in
7181   yes)
7182     enable_serial_build_configure=yes
7183     enable_serial_host_configure=yes
7184     enable_serial_target_configure=yes
7185     ;;
7186 esac
7187
7188 # These force 'configure's to be done one at a time, to avoid problems
7189 # with contention over a shared config.cache.
7190 rm -f serdep.tmp
7191 echo '# serdep.tmp' > serdep.tmp
7192 olditem=
7193 test "x${enable_serial_build_configure}" = xyes &&
7194 for item in ${build_configdirs} ; do
7195   case ${olditem} in
7196     "") ;;
7197     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7198   esac
7199   olditem=${item}
7200 done
7201 olditem=
7202 test "x${enable_serial_host_configure}" = xyes &&
7203 for item in ${configdirs} ; do
7204   case ${olditem} in
7205     "") ;;
7206     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7207   esac
7208   olditem=${item}
7209 done
7210 olditem=
7211 test "x${enable_serial_target_configure}" = xyes &&
7212 for item in ${target_configdirs} ; do
7213   case ${olditem} in
7214     "") ;;
7215     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7216   esac
7217   olditem=${item}
7218 done
7219 serialization_dependencies=serdep.tmp
7220
7221
7222 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7223 # target, nonopt, and variable assignments.  These are the ones we
7224 # might not want to pass down to subconfigures.  The exception being
7225 # --cache-file=/dev/null, which is used to turn off the use of cache
7226 # files altogether, and which should be passed on to subconfigures.
7227 # Also strip program-prefix, program-suffix, and program-transform-name,
7228 # so that we can pass down a consistent program-transform-name.
7229 baseargs=
7230 tbaseargs=
7231 keep_next=no
7232 skip_next=no
7233 eval "set -- $ac_configure_args"
7234 for ac_arg
7235 do
7236   if test X"$skip_next" = X"yes"; then
7237     skip_next=no
7238     continue
7239   fi
7240   if test X"$keep_next" = X"yes"; then
7241     case $ac_arg in
7242       *\'*)
7243         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7244     esac
7245     baseargs="$baseargs '$ac_arg'"
7246     tbaseargs="$tbaseargs '$ac_arg'"
7247     keep_next=no
7248     continue
7249   fi
7250
7251   # Handle separated arguments.  Based on the logic generated by
7252   # autoconf 2.59.
7253   case $ac_arg in
7254     *=* | --config-cache | -C | -disable-* | --disable-* \
7255       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7256       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7257       | -with-* | --with-* | -without-* | --without-* | --x)
7258       separate_arg=no
7259       ;;
7260     -*)
7261       separate_arg=yes
7262       ;;
7263     *)
7264       separate_arg=no
7265       ;;
7266   esac
7267
7268   skip_targ=no
7269   case $ac_arg in
7270
7271   --with-* | --without-*)
7272     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7273
7274     case $libopt in
7275     *[-_]include)
7276       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7277       ;;
7278     *[-_]lib)
7279       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7280       ;;
7281     *)
7282       lib=$libopt
7283       ;;
7284     esac
7285
7286
7287     case $lib in
7288     mpc | mpfr | gmp | isl | cloog)
7289       # If we're processing --with-$lib, --with-$lib-include or
7290       # --with-$lib-lib, for one of the libs above, and target is
7291       # different from host, don't pass the current argument to any
7292       # target library's configure.
7293       if test x$is_cross_compiler = xyes; then
7294         skip_targ=yes
7295       fi
7296       ;;
7297     esac
7298     ;;
7299   esac
7300
7301   case "$ac_arg" in
7302     --cache-file=/dev/null | \
7303     -cache-file=/dev/null )
7304       # Handled here to avoid the test to skip args below.
7305       baseargs="$baseargs '$ac_arg'"
7306       tbaseargs="$tbaseargs '$ac_arg'"
7307       # Assert: $separate_arg should always be no.
7308       keep_next=$separate_arg
7309       ;;
7310     --no*)
7311       continue
7312       ;;
7313     --c* | \
7314     --sr* | \
7315     --ho* | \
7316     --bu* | \
7317     --t* | \
7318     --program-* | \
7319     -cache_file* | \
7320     -srcdir* | \
7321     -host* | \
7322     -build* | \
7323     -target* | \
7324     -program-prefix* | \
7325     -program-suffix* | \
7326     -program-transform-name* )
7327       skip_next=$separate_arg
7328       continue
7329       ;;
7330     -*)
7331       # An option.  Add it.
7332       case $ac_arg in
7333         *\'*)
7334           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7335       esac
7336       baseargs="$baseargs '$ac_arg'"
7337       if test X"$skip_targ" = Xno; then
7338         tbaseargs="$tbaseargs '$ac_arg'"
7339       fi
7340       keep_next=$separate_arg
7341       ;;
7342     *)
7343       # Either a variable assignment, or a nonopt (triplet).  Don't
7344       # pass it down; let the Makefile handle this.
7345       continue
7346       ;;
7347   esac
7348 done
7349 # Remove the initial space we just introduced and, as these will be
7350 # expanded by make, quote '$'.
7351 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7352
7353 # Add in --program-transform-name, after --program-prefix and
7354 # --program-suffix have been applied to it.  Autoconf has already
7355 # doubled dollar signs and backslashes in program_transform_name; we want
7356 # the backslashes un-doubled, and then the entire thing wrapped in single
7357 # quotes, because this will be expanded first by make and then by the shell.
7358 # Also, because we want to override the logic in subdir configure scripts to
7359 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7360 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7361 ${program_transform_name}
7362 EOF_SED
7363 gcc_transform_name=`cat conftestsed.out`
7364 rm -f conftestsed.out
7365 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7366 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7367 if test "$silent" = yes; then
7368   baseargs="$baseargs --silent"
7369   tbaseargs="$tbaseargs --silent"
7370 fi
7371 baseargs="$baseargs --disable-option-checking"
7372 tbaseargs="$tbaseargs --disable-option-checking"
7373
7374 # Record and document user additions to sub configure arguments.
7375
7376
7377
7378
7379 # For the build-side libraries, we just need to pretend we're native,
7380 # and not use the same cache file.  Multilibs are neither needed nor
7381 # desired.
7382 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7383
7384 # For host modules, accept cache file option, or specification as blank.
7385 case "${cache_file}" in
7386 "") # empty
7387   cache_file_option="" ;;
7388 /* | [A-Za-z]:[\\/]* ) # absolute path
7389   cache_file_option="--cache-file=${cache_file}" ;;
7390 *) # relative path
7391   cache_file_option="--cache-file=../${cache_file}" ;;
7392 esac
7393
7394 # Host dirs don't like to share a cache file either, horribly enough.
7395 # This seems to be due to autoconf 2.5x stupidity.
7396 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7397
7398 target_configargs="$target_configargs ${tbaseargs}"
7399
7400 # Passing a --with-cross-host argument lets the target libraries know
7401 # whether they are being built with a cross-compiler or being built
7402 # native.  However, it would be better to use other mechanisms to make the
7403 # sorts of decisions they want to make on this basis.  Please consider
7404 # this option to be deprecated.  FIXME.
7405 if test x${is_cross_compiler} = xyes ; then
7406   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7407 fi
7408
7409 # Special user-friendly check for native x86_64-linux build, if
7410 # multilib is not explicitly enabled.
7411 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7412   x86_64-*linux*:yes:$build:$build:)
7413     # Make sure we have a developement environment that handles 32-bit
7414     dev64=no
7415     echo "int main () { return 0; }" > conftest.c
7416     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7417     if test $? = 0 ; then
7418       if test -s conftest || test -s conftest.exe ; then
7419         dev64=yes
7420       fi
7421     fi
7422     rm -f conftest*
7423     if test x${dev64} != xyes ; then
7424       as_fn_error "I suspect your system does not have 32-bit developement 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
7425     fi
7426     ;;
7427 esac
7428
7429 # Default to --enable-multilib.
7430 if test x${enable_multilib} = x ; then
7431   target_configargs="--enable-multilib ${target_configargs}"
7432 fi
7433
7434 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7435 # changed from the earlier setting of with_newlib.
7436 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7437   target_configargs="--with-newlib ${target_configargs}"
7438 fi
7439
7440 # Different target subdirs use different values of certain variables
7441 # (notably CXX).  Worse, multilibs use *lots* of different values.
7442 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7443 # it doesn't automatically accept command-line overrides of them.
7444 # This means it's not safe for target subdirs to share a cache file,
7445 # which is disgusting, but there you have it.  Hopefully this can be
7446 # fixed in future.  It's still worthwhile to use a cache file for each
7447 # directory.  I think.
7448
7449 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7450 # We need to pass --target, as newer autoconf's requires consistency
7451 # for target_alias and gcc doesn't manage it consistently.
7452 target_configargs="--cache-file=./config.cache ${target_configargs}"
7453
7454 FLAGS_FOR_TARGET=
7455 case " $target_configdirs " in
7456  *" newlib "*)
7457   case " $target_configargs " in
7458   *" --with-newlib "*)
7459    case "$target" in
7460     *-cygwin*)
7461       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7462       ;;
7463    esac
7464
7465    # If we're not building GCC, don't discard standard headers.
7466    if test -d ${srcdir}/gcc; then
7467      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7468
7469      if test "${build}" != "${host}"; then
7470        # On Canadian crosses, CC_FOR_TARGET will have already been set
7471        # by `configure', so we won't have an opportunity to add -Bgcc/
7472        # to it.  This is right: we don't want to search that directory
7473        # for binaries, but we want the header files in there, so add
7474        # them explicitly.
7475        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7476
7477        # Someone might think of using the pre-installed headers on
7478        # Canadian crosses, in case the installed compiler is not fully
7479        # compatible with the compiler being built.  In this case, it
7480        # would be better to flag an error than risking having
7481        # incompatible object files being constructed.  We can't
7482        # guarantee that an error will be flagged, but let's hope the
7483        # compiler will do it, when presented with incompatible header
7484        # files.
7485      fi
7486    fi
7487
7488    case "${target}-${is_cross_compiler}" in
7489    i[3456789]86-*-linux*-no)
7490       # Here host == target, so we don't need to build gcc,
7491       # so we don't want to discard standard headers.
7492       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7493       ;;
7494    *)
7495       # If we're building newlib, use its generic headers last, but search
7496       # for any libc-related directories first (so make it the last -B
7497       # switch).
7498       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7499
7500       # If we're building libgloss, find the startup file, simulator library
7501       # and linker script.
7502       case " $target_configdirs " in
7503         *" libgloss "*)
7504         # Look for startup file, simulator library and maybe linker script.
7505         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7506         # Look for libnosys.a in case the target needs it.
7507         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7508         # Most targets have the linker script in the source directory.
7509         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7510         ;;
7511       esac
7512       ;;
7513    esac
7514    ;;
7515   esac
7516   ;;
7517 esac
7518
7519 case "$target" in
7520   x86_64-*mingw* | *-w64-mingw*)
7521   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7522   # however, use a symlink named 'mingw' in ${prefix} .
7523     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7524     ;;
7525   *-mingw*)
7526   # MinGW can't be handled as Cygwin above since it does not use newlib.
7527     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'
7528     ;;
7529 esac
7530
7531 # Allow the user to override the flags for
7532 # our build compiler if desired.
7533 if test x"${build}" = x"${host}" ; then
7534   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7535   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7536   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7537 fi
7538
7539 # On Canadian crosses, we'll be searching the right directories for
7540 # the previously-installed cross compiler, so don't bother to add
7541 # flags for directories within the install tree of the compiler
7542 # being built; programs in there won't even run.
7543 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7544   # Search for pre-installed headers if nothing else fits.
7545   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7546 fi
7547
7548 if test "x${use_gnu_ld}" = x &&
7549    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7550   # Arrange for us to find uninstalled linker scripts.
7551   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7552 fi
7553
7554 # Search for other target-specific linker scripts and such.
7555 case "${target}" in
7556   mep*)
7557     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7558     ;;
7559 esac
7560
7561 # Makefile fragments.
7562 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7563 do
7564   eval fragval=\$$frag
7565   if test $fragval != /dev/null; then
7566     eval $frag=${srcdir}/$fragval
7567   fi
7568 done
7569
7570
7571
7572
7573
7574 # Miscellanea: directories, flags, etc.
7575
7576
7577
7578
7579
7580
7581
7582
7583 # Build module lists & subconfigure args.
7584
7585
7586
7587 # Host module lists & subconfigure args.
7588
7589
7590
7591
7592 # Target module lists & subconfigure args.
7593
7594
7595
7596 # Build tools.
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 # Generate default definitions for YACC, M4, LEX and other programs that run
7615 # on the build machine.  These are used if the Makefile can't locate these
7616 # programs in objdir.
7617 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7618
7619 for ac_prog in 'bison -y' byacc yacc
7620 do
7621   # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_YACC+set}" = set; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$YACC"; then
7629   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638     ac_cv_prog_YACC="$ac_prog"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 YACC=$ac_cv_prog_YACC
7649 if test -n "$YACC"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7651 $as_echo "$YACC" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658   test -n "$YACC" && break
7659 done
7660 test -n "$YACC" || YACC="$MISSING bison -y"
7661
7662 case " $build_configdirs " in
7663   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7664 esac
7665
7666 for ac_prog in bison
7667 do
7668   # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_BISON+set}" = set; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$BISON"; then
7676   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_prog_BISON="$ac_prog"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 BISON=$ac_cv_prog_BISON
7696 if test -n "$BISON"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7698 $as_echo "$BISON" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704
7705   test -n "$BISON" && break
7706 done
7707 test -n "$BISON" || BISON="$MISSING bison"
7708
7709 case " $build_configdirs " in
7710   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7711 esac
7712
7713 for ac_prog in gm4 gnum4 m4
7714 do
7715   # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_M4+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$M4"; then
7723   ac_cv_prog_M4="$M4" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_prog_M4="$ac_prog"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 M4=$ac_cv_prog_M4
7743 if test -n "$M4"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7745 $as_echo "$M4" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752   test -n "$M4" && break
7753 done
7754 test -n "$M4" || M4="$MISSING m4"
7755
7756 case " $build_configdirs " in
7757   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7758 esac
7759
7760 for ac_prog in flex lex
7761 do
7762   # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_LEX+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$LEX"; then
7770   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_LEX="$ac_prog"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 LEX=$ac_cv_prog_LEX
7790 if test -n "$LEX"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7792 $as_echo "$LEX" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799   test -n "$LEX" && break
7800 done
7801 test -n "$LEX" || LEX="$MISSING flex"
7802
7803 case " $build_configdirs " in
7804   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7805   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7806 esac
7807
7808 for ac_prog in flex
7809 do
7810   # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if test "${ac_cv_prog_FLEX+set}" = set; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   if test -n "$FLEX"; then
7818   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825     for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_prog_FLEX="$ac_prog"
7828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832   done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 FLEX=$ac_cv_prog_FLEX
7838 if test -n "$FLEX"; then
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7840 $as_echo "$FLEX" >&6; }
7841 else
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846
7847   test -n "$FLEX" && break
7848 done
7849 test -n "$FLEX" || FLEX="$MISSING flex"
7850
7851 case " $build_configdirs " in
7852   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7853 esac
7854
7855 for ac_prog in makeinfo
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$MAKEINFO"; then
7865   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_prog_MAKEINFO="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 MAKEINFO=$ac_cv_prog_MAKEINFO
7885 if test -n "$MAKEINFO"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7887 $as_echo "$MAKEINFO" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$MAKEINFO" && break
7895 done
7896 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7897
7898 case " $build_configdirs " in
7899   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7900   *)
7901
7902     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7903     # higher, else we use the "missing" dummy.
7904     if ${MAKEINFO} --version \
7905        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7906       :
7907     else
7908       MAKEINFO="$MISSING makeinfo"
7909     fi
7910     ;;
7911
7912 esac
7913
7914 # FIXME: expect and dejagnu may become build tools?
7915
7916 for ac_prog in expect
7917 do
7918   # Extract the first word of "$ac_prog", so it can be a program name with args.
7919 set dummy $ac_prog; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7923   $as_echo_n "(cached) " >&6
7924 else
7925   if test -n "$EXPECT"; then
7926   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931   IFS=$as_save_IFS
7932   test -z "$as_dir" && as_dir=.
7933     for ac_exec_ext in '' $ac_executable_extensions; do
7934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935     ac_cv_prog_EXPECT="$ac_prog"
7936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937     break 2
7938   fi
7939 done
7940   done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 EXPECT=$ac_cv_prog_EXPECT
7946 if test -n "$EXPECT"; then
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7948 $as_echo "$EXPECT" >&6; }
7949 else
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7952 fi
7953
7954
7955   test -n "$EXPECT" && break
7956 done
7957 test -n "$EXPECT" || EXPECT="expect"
7958
7959 case " $configdirs " in
7960   *" expect "*)
7961     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7962     ;;
7963 esac
7964
7965 for ac_prog in runtest
7966 do
7967   # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   if test -n "$RUNTEST"; then
7975   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984     ac_cv_prog_RUNTEST="$ac_prog"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 RUNTEST=$ac_cv_prog_RUNTEST
7995 if test -n "$RUNTEST"; then
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7997 $as_echo "$RUNTEST" >&6; }
7998 else
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004   test -n "$RUNTEST" && break
8005 done
8006 test -n "$RUNTEST" || RUNTEST="runtest"
8007
8008 case " $configdirs " in
8009   *" dejagnu "*)
8010     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8011     ;;
8012 esac
8013
8014
8015 # Host tools.
8016 ncn_tool_prefix=
8017 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8018 ncn_target_tool_prefix=
8019 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8020
8021
8022
8023 if test -n "$AR"; then
8024   ac_cv_prog_AR=$AR
8025 elif test -n "$ac_cv_prog_AR"; then
8026   AR=$ac_cv_prog_AR
8027 fi
8028
8029 if test -n "$ac_cv_prog_AR"; then
8030   for ncn_progname in ar; do
8031     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8032 set dummy ${ncn_progname}; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_AR+set}" = set; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$AR"; then
8039   ac_cv_prog_AR="$AR" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048     ac_cv_prog_AR="${ncn_progname}"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 AR=$ac_cv_prog_AR
8059 if test -n "$AR"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8061 $as_echo "$AR" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067
8068   done
8069 fi
8070
8071 for ncn_progname in ar; do
8072   if test -n "$ncn_tool_prefix"; then
8073     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8074 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8111   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8112     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8113 set dummy ${ncn_progname}; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_AR+set}" = set; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$AR"; then
8120   ac_cv_prog_AR="$AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_prog_AR="${ncn_progname}"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 AR=$ac_cv_prog_AR
8140 if test -n "$AR"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8142 $as_echo "$AR" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149   fi
8150   test -n "$ac_cv_prog_AR" && break
8151 done
8152
8153 if test -z "$ac_cv_prog_AR" ; then
8154   set dummy ar
8155   if test $build = $host ; then
8156     AR="$2"
8157   else
8158     AR="${ncn_tool_prefix}$2"
8159   fi
8160 fi
8161
8162
8163
8164 if test -n "$AS"; then
8165   ac_cv_prog_AS=$AS
8166 elif test -n "$ac_cv_prog_AS"; then
8167   AS=$ac_cv_prog_AS
8168 fi
8169
8170 if test -n "$ac_cv_prog_AS"; then
8171   for ncn_progname in as; do
8172     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173 set dummy ${ncn_progname}; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_AS+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   if test -n "$AS"; then
8180   ac_cv_prog_AS="$AS" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187     for ac_exec_ext in '' $ac_executable_extensions; do
8188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189     ac_cv_prog_AS="${ncn_progname}"
8190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194   done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 AS=$ac_cv_prog_AS
8200 if test -n "$AS"; then
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8202 $as_echo "$AS" >&6; }
8203 else
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208
8209   done
8210 fi
8211
8212 for ncn_progname in as; do
8213   if test -n "$ncn_tool_prefix"; then
8214     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8252   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8253     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8254 set dummy ${ncn_progname}; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if test "${ac_cv_prog_AS+set}" = set; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   if test -n "$AS"; then
8261   ac_cv_prog_AS="$AS" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266   IFS=$as_save_IFS
8267   test -z "$as_dir" && as_dir=.
8268     for ac_exec_ext in '' $ac_executable_extensions; do
8269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270     ac_cv_prog_AS="${ncn_progname}"
8271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272     break 2
8273   fi
8274 done
8275   done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 AS=$ac_cv_prog_AS
8281 if test -n "$AS"; then
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8283 $as_echo "$AS" >&6; }
8284 else
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290   fi
8291   test -n "$ac_cv_prog_AS" && break
8292 done
8293
8294 if test -z "$ac_cv_prog_AS" ; then
8295   set dummy as
8296   if test $build = $host ; then
8297     AS="$2"
8298   else
8299     AS="${ncn_tool_prefix}$2"
8300   fi
8301 fi
8302
8303
8304
8305 if test -n "$DLLTOOL"; then
8306   ac_cv_prog_DLLTOOL=$DLLTOOL
8307 elif test -n "$ac_cv_prog_DLLTOOL"; then
8308   DLLTOOL=$ac_cv_prog_DLLTOOL
8309 fi
8310
8311 if test -n "$ac_cv_prog_DLLTOOL"; then
8312   for ncn_progname in dlltool; do
8313     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314 set dummy ${ncn_progname}; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   if test -n "$DLLTOOL"; then
8321   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328     for ac_exec_ext in '' $ac_executable_extensions; do
8329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330     ac_cv_prog_DLLTOOL="${ncn_progname}"
8331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335   done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 DLLTOOL=$ac_cv_prog_DLLTOOL
8341 if test -n "$DLLTOOL"; then
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343 $as_echo "$DLLTOOL" >&6; }
8344 else
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349
8350   done
8351 fi
8352
8353 for ncn_progname in dlltool; do
8354   if test -n "$ncn_tool_prefix"; then
8355     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8356 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8393   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8394     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_progname}; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   if test -n "$DLLTOOL"; then
8402   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409     for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_prog_DLLTOOL="${ncn_progname}"
8412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416   done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 DLLTOOL=$ac_cv_prog_DLLTOOL
8422 if test -n "$DLLTOOL"; then
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8424 $as_echo "$DLLTOOL" >&6; }
8425 else
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430
8431   fi
8432   test -n "$ac_cv_prog_DLLTOOL" && break
8433 done
8434
8435 if test -z "$ac_cv_prog_DLLTOOL" ; then
8436   set dummy dlltool
8437   if test $build = $host ; then
8438     DLLTOOL="$2"
8439   else
8440     DLLTOOL="${ncn_tool_prefix}$2"
8441   fi
8442 fi
8443
8444
8445
8446 if test -n "$LD"; then
8447   ac_cv_prog_LD=$LD
8448 elif test -n "$ac_cv_prog_LD"; then
8449   LD=$ac_cv_prog_LD
8450 fi
8451
8452 if test -n "$ac_cv_prog_LD"; then
8453   for ncn_progname in ld; do
8454     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8455 set dummy ${ncn_progname}; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_LD+set}" = set; then :
8459   $as_echo_n "(cached) " >&6
8460 else
8461   if test -n "$LD"; then
8462   ac_cv_prog_LD="$LD" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469     for ac_exec_ext in '' $ac_executable_extensions; do
8470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471     ac_cv_prog_LD="${ncn_progname}"
8472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476   done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 LD=$ac_cv_prog_LD
8482 if test -n "$LD"; then
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8484 $as_echo "$LD" >&6; }
8485 else
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490
8491   done
8492 fi
8493
8494 for ncn_progname in ld; do
8495   if test -n "$ncn_tool_prefix"; then
8496     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8534   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8535     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_prog_LD+set}" = set; then :
8540   $as_echo_n "(cached) " >&6
8541 else
8542   if test -n "$LD"; then
8543   ac_cv_prog_LD="$LD" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548   IFS=$as_save_IFS
8549   test -z "$as_dir" && as_dir=.
8550     for ac_exec_ext in '' $ac_executable_extensions; do
8551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552     ac_cv_prog_LD="${ncn_progname}"
8553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554     break 2
8555   fi
8556 done
8557   done
8558 IFS=$as_save_IFS
8559
8560 fi
8561 fi
8562 LD=$ac_cv_prog_LD
8563 if test -n "$LD"; then
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8565 $as_echo "$LD" >&6; }
8566 else
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570
8571
8572   fi
8573   test -n "$ac_cv_prog_LD" && break
8574 done
8575
8576 if test -z "$ac_cv_prog_LD" ; then
8577   set dummy ld
8578   if test $build = $host ; then
8579     LD="$2"
8580   else
8581     LD="${ncn_tool_prefix}$2"
8582   fi
8583 fi
8584
8585
8586
8587 if test -n "$LIPO"; then
8588   ac_cv_prog_LIPO=$LIPO
8589 elif test -n "$ac_cv_prog_LIPO"; then
8590   LIPO=$ac_cv_prog_LIPO
8591 fi
8592
8593 if test -n "$ac_cv_prog_LIPO"; then
8594   for ncn_progname in lipo; do
8595     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596 set dummy ${ncn_progname}; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   if test -n "$LIPO"; then
8603   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8607 do
8608   IFS=$as_save_IFS
8609   test -z "$as_dir" && as_dir=.
8610     for ac_exec_ext in '' $ac_executable_extensions; do
8611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612     ac_cv_prog_LIPO="${ncn_progname}"
8613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614     break 2
8615   fi
8616 done
8617   done
8618 IFS=$as_save_IFS
8619
8620 fi
8621 fi
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8626 else
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631
8632   done
8633 fi
8634
8635 for ncn_progname in lipo; do
8636   if test -n "$ncn_tool_prefix"; then
8637     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8675   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8676     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_LIPO+set}" = set; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   if test -n "$LIPO"; then
8684   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693     ac_cv_prog_LIPO="${ncn_progname}"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 LIPO=$ac_cv_prog_LIPO
8704 if test -n "$LIPO"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8706 $as_echo "$LIPO" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713   fi
8714   test -n "$ac_cv_prog_LIPO" && break
8715 done
8716
8717 if test -z "$ac_cv_prog_LIPO" ; then
8718   set dummy lipo
8719   if test $build = $host ; then
8720     LIPO="$2"
8721   else
8722     LIPO="${ncn_tool_prefix}$2"
8723   fi
8724 fi
8725
8726
8727
8728 if test -n "$NM"; then
8729   ac_cv_prog_NM=$NM
8730 elif test -n "$ac_cv_prog_NM"; then
8731   NM=$ac_cv_prog_NM
8732 fi
8733
8734 if test -n "$ac_cv_prog_NM"; then
8735   for ncn_progname in nm; do
8736     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737 set dummy ${ncn_progname}; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_prog_NM+set}" = set; then :
8741   $as_echo_n "(cached) " >&6
8742 else
8743   if test -n "$NM"; then
8744   ac_cv_prog_NM="$NM" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749   IFS=$as_save_IFS
8750   test -z "$as_dir" && as_dir=.
8751     for ac_exec_ext in '' $ac_executable_extensions; do
8752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753     ac_cv_prog_NM="${ncn_progname}"
8754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755     break 2
8756   fi
8757 done
8758   done
8759 IFS=$as_save_IFS
8760
8761 fi
8762 fi
8763 NM=$ac_cv_prog_NM
8764 if test -n "$NM"; then
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8766 $as_echo "$NM" >&6; }
8767 else
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771
8772
8773   done
8774 fi
8775
8776 for ncn_progname in nm; do
8777   if test -n "$ncn_tool_prefix"; then
8778     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8816   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8817     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_NM+set}" = set; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   if test -n "$NM"; then
8825   ac_cv_prog_NM="$NM" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830   IFS=$as_save_IFS
8831   test -z "$as_dir" && as_dir=.
8832     for ac_exec_ext in '' $ac_executable_extensions; do
8833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834     ac_cv_prog_NM="${ncn_progname}"
8835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836     break 2
8837   fi
8838 done
8839   done
8840 IFS=$as_save_IFS
8841
8842 fi
8843 fi
8844 NM=$ac_cv_prog_NM
8845 if test -n "$NM"; then
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8847 $as_echo "$NM" >&6; }
8848 else
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854   fi
8855   test -n "$ac_cv_prog_NM" && break
8856 done
8857
8858 if test -z "$ac_cv_prog_NM" ; then
8859   set dummy nm
8860   if test $build = $host ; then
8861     NM="$2"
8862   else
8863     NM="${ncn_tool_prefix}$2"
8864   fi
8865 fi
8866
8867
8868
8869 if test -n "$RANLIB"; then
8870   ac_cv_prog_RANLIB=$RANLIB
8871 elif test -n "$ac_cv_prog_RANLIB"; then
8872   RANLIB=$ac_cv_prog_RANLIB
8873 fi
8874
8875 if test -n "$ac_cv_prog_RANLIB"; then
8876   for ncn_progname in ranlib; do
8877     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8882   $as_echo_n "(cached) " >&6
8883 else
8884   if test -n "$RANLIB"; then
8885   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890   IFS=$as_save_IFS
8891   test -z "$as_dir" && as_dir=.
8892     for ac_exec_ext in '' $ac_executable_extensions; do
8893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894     ac_cv_prog_RANLIB="${ncn_progname}"
8895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896     break 2
8897   fi
8898 done
8899   done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 RANLIB=$ac_cv_prog_RANLIB
8905 if test -n "$RANLIB"; then
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907 $as_echo "$RANLIB" >&6; }
8908 else
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914   done
8915 fi
8916
8917 for ncn_progname in ranlib; do
8918   if test -n "$ncn_tool_prefix"; then
8919     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
8957   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8958     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8963   $as_echo_n "(cached) " >&6
8964 else
8965   if test -n "$RANLIB"; then
8966   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971   IFS=$as_save_IFS
8972   test -z "$as_dir" && as_dir=.
8973     for ac_exec_ext in '' $ac_executable_extensions; do
8974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975     ac_cv_prog_RANLIB="${ncn_progname}"
8976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977     break 2
8978   fi
8979 done
8980   done
8981 IFS=$as_save_IFS
8982
8983 fi
8984 fi
8985 RANLIB=$ac_cv_prog_RANLIB
8986 if test -n "$RANLIB"; then
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8988 $as_echo "$RANLIB" >&6; }
8989 else
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993
8994
8995   fi
8996   test -n "$ac_cv_prog_RANLIB" && break
8997 done
8998
8999 if test -z "$ac_cv_prog_RANLIB" ; then
9000   RANLIB="true"
9001 fi
9002
9003
9004
9005 if test -n "$STRIP"; then
9006   ac_cv_prog_STRIP=$STRIP
9007 elif test -n "$ac_cv_prog_STRIP"; then
9008   STRIP=$ac_cv_prog_STRIP
9009 fi
9010
9011 if test -n "$ac_cv_prog_STRIP"; then
9012   for ncn_progname in strip; do
9013     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014 set dummy ${ncn_progname}; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if test "${ac_cv_prog_STRIP+set}" = set; then :
9018   $as_echo_n "(cached) " >&6
9019 else
9020   if test -n "$STRIP"; then
9021   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022 else
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9025 do
9026   IFS=$as_save_IFS
9027   test -z "$as_dir" && as_dir=.
9028     for ac_exec_ext in '' $ac_executable_extensions; do
9029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9030     ac_cv_prog_STRIP="${ncn_progname}"
9031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032     break 2
9033   fi
9034 done
9035   done
9036 IFS=$as_save_IFS
9037
9038 fi
9039 fi
9040 STRIP=$ac_cv_prog_STRIP
9041 if test -n "$STRIP"; then
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9043 $as_echo "$STRIP" >&6; }
9044 else
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9047 fi
9048
9049
9050   done
9051 fi
9052
9053 for ncn_progname in strip; do
9054   if test -n "$ncn_tool_prefix"; then
9055     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9093   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9094     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9095 set dummy ${ncn_progname}; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if test "${ac_cv_prog_STRIP+set}" = set; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   if test -n "$STRIP"; then
9102   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9106 do
9107   IFS=$as_save_IFS
9108   test -z "$as_dir" && as_dir=.
9109     for ac_exec_ext in '' $ac_executable_extensions; do
9110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111     ac_cv_prog_STRIP="${ncn_progname}"
9112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113     break 2
9114   fi
9115 done
9116   done
9117 IFS=$as_save_IFS
9118
9119 fi
9120 fi
9121 STRIP=$ac_cv_prog_STRIP
9122 if test -n "$STRIP"; then
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9124 $as_echo "$STRIP" >&6; }
9125 else
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9128 fi
9129
9130
9131   fi
9132   test -n "$ac_cv_prog_STRIP" && break
9133 done
9134
9135 if test -z "$ac_cv_prog_STRIP" ; then
9136   STRIP="true"
9137 fi
9138
9139
9140
9141 if test -n "$WINDRES"; then
9142   ac_cv_prog_WINDRES=$WINDRES
9143 elif test -n "$ac_cv_prog_WINDRES"; then
9144   WINDRES=$ac_cv_prog_WINDRES
9145 fi
9146
9147 if test -n "$ac_cv_prog_WINDRES"; then
9148   for ncn_progname in windres; do
9149     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150 set dummy ${ncn_progname}; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   if test -n "$WINDRES"; then
9157   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9161 do
9162   IFS=$as_save_IFS
9163   test -z "$as_dir" && as_dir=.
9164     for ac_exec_ext in '' $ac_executable_extensions; do
9165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166     ac_cv_prog_WINDRES="${ncn_progname}"
9167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168     break 2
9169   fi
9170 done
9171   done
9172 IFS=$as_save_IFS
9173
9174 fi
9175 fi
9176 WINDRES=$ac_cv_prog_WINDRES
9177 if test -n "$WINDRES"; then
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9179 $as_echo "$WINDRES" >&6; }
9180 else
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9183 fi
9184
9185
9186   done
9187 fi
9188
9189 for ncn_progname in windres; do
9190   if test -n "$ncn_tool_prefix"; then
9191     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9192 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9229   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9230     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9231 set dummy ${ncn_progname}; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9235   $as_echo_n "(cached) " >&6
9236 else
9237   if test -n "$WINDRES"; then
9238   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9239 else
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9242 do
9243   IFS=$as_save_IFS
9244   test -z "$as_dir" && as_dir=.
9245     for ac_exec_ext in '' $ac_executable_extensions; do
9246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247     ac_cv_prog_WINDRES="${ncn_progname}"
9248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249     break 2
9250   fi
9251 done
9252   done
9253 IFS=$as_save_IFS
9254
9255 fi
9256 fi
9257 WINDRES=$ac_cv_prog_WINDRES
9258 if test -n "$WINDRES"; then
9259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9260 $as_echo "$WINDRES" >&6; }
9261 else
9262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9264 fi
9265
9266
9267   fi
9268   test -n "$ac_cv_prog_WINDRES" && break
9269 done
9270
9271 if test -z "$ac_cv_prog_WINDRES" ; then
9272   set dummy windres
9273   if test $build = $host ; then
9274     WINDRES="$2"
9275   else
9276     WINDRES="${ncn_tool_prefix}$2"
9277   fi
9278 fi
9279
9280
9281
9282 if test -n "$WINDMC"; then
9283   ac_cv_prog_WINDMC=$WINDMC
9284 elif test -n "$ac_cv_prog_WINDMC"; then
9285   WINDMC=$ac_cv_prog_WINDMC
9286 fi
9287
9288 if test -n "$ac_cv_prog_WINDMC"; then
9289   for ncn_progname in windmc; do
9290     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291 set dummy ${ncn_progname}; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9295   $as_echo_n "(cached) " >&6
9296 else
9297   if test -n "$WINDMC"; then
9298   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9302 do
9303   IFS=$as_save_IFS
9304   test -z "$as_dir" && as_dir=.
9305     for ac_exec_ext in '' $ac_executable_extensions; do
9306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307     ac_cv_prog_WINDMC="${ncn_progname}"
9308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309     break 2
9310   fi
9311 done
9312   done
9313 IFS=$as_save_IFS
9314
9315 fi
9316 fi
9317 WINDMC=$ac_cv_prog_WINDMC
9318 if test -n "$WINDMC"; then
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9320 $as_echo "$WINDMC" >&6; }
9321 else
9322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325
9326
9327   done
9328 fi
9329
9330 for ncn_progname in windmc; do
9331   if test -n "$ncn_tool_prefix"; then
9332     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9370   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9371     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   if test -n "$WINDMC"; then
9379   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388     ac_cv_prog_WINDMC="${ncn_progname}"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395
9396 fi
9397 fi
9398 WINDMC=$ac_cv_prog_WINDMC
9399 if test -n "$WINDMC"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9401 $as_echo "$WINDMC" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406
9407
9408   fi
9409   test -n "$ac_cv_prog_WINDMC" && break
9410 done
9411
9412 if test -z "$ac_cv_prog_WINDMC" ; then
9413   set dummy windmc
9414   if test $build = $host ; then
9415     WINDMC="$2"
9416   else
9417     WINDMC="${ncn_tool_prefix}$2"
9418   fi
9419 fi
9420
9421
9422
9423 if test -n "$OBJCOPY"; then
9424   ac_cv_prog_OBJCOPY=$OBJCOPY
9425 elif test -n "$ac_cv_prog_OBJCOPY"; then
9426   OBJCOPY=$ac_cv_prog_OBJCOPY
9427 fi
9428
9429 if test -n "$ac_cv_prog_OBJCOPY"; then
9430   for ncn_progname in objcopy; do
9431     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432 set dummy ${ncn_progname}; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9436   $as_echo_n "(cached) " >&6
9437 else
9438   if test -n "$OBJCOPY"; then
9439   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9440 else
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9443 do
9444   IFS=$as_save_IFS
9445   test -z "$as_dir" && as_dir=.
9446     for ac_exec_ext in '' $ac_executable_extensions; do
9447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9448     ac_cv_prog_OBJCOPY="${ncn_progname}"
9449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450     break 2
9451   fi
9452 done
9453   done
9454 IFS=$as_save_IFS
9455
9456 fi
9457 fi
9458 OBJCOPY=$ac_cv_prog_OBJCOPY
9459 if test -n "$OBJCOPY"; then
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9461 $as_echo "$OBJCOPY" >&6; }
9462 else
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9465 fi
9466
9467
9468   done
9469 fi
9470
9471 for ncn_progname in objcopy; do
9472   if test -n "$ncn_tool_prefix"; then
9473     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9474 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9511   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9512     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9513 set dummy ${ncn_progname}; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   if test -n "$OBJCOPY"; then
9520   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525   IFS=$as_save_IFS
9526   test -z "$as_dir" && as_dir=.
9527     for ac_exec_ext in '' $ac_executable_extensions; do
9528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529     ac_cv_prog_OBJCOPY="${ncn_progname}"
9530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531     break 2
9532   fi
9533 done
9534   done
9535 IFS=$as_save_IFS
9536
9537 fi
9538 fi
9539 OBJCOPY=$ac_cv_prog_OBJCOPY
9540 if test -n "$OBJCOPY"; then
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9542 $as_echo "$OBJCOPY" >&6; }
9543 else
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9546 fi
9547
9548
9549   fi
9550   test -n "$ac_cv_prog_OBJCOPY" && break
9551 done
9552
9553 if test -z "$ac_cv_prog_OBJCOPY" ; then
9554   set dummy objcopy
9555   if test $build = $host ; then
9556     OBJCOPY="$2"
9557   else
9558     OBJCOPY="${ncn_tool_prefix}$2"
9559   fi
9560 fi
9561
9562
9563
9564 if test -n "$OBJDUMP"; then
9565   ac_cv_prog_OBJDUMP=$OBJDUMP
9566 elif test -n "$ac_cv_prog_OBJDUMP"; then
9567   OBJDUMP=$ac_cv_prog_OBJDUMP
9568 fi
9569
9570 if test -n "$ac_cv_prog_OBJDUMP"; then
9571   for ncn_progname in objdump; do
9572     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9573 set dummy ${ncn_progname}; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   if test -n "$OBJDUMP"; then
9580   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585   IFS=$as_save_IFS
9586   test -z "$as_dir" && as_dir=.
9587     for ac_exec_ext in '' $ac_executable_extensions; do
9588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589     ac_cv_prog_OBJDUMP="${ncn_progname}"
9590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591     break 2
9592   fi
9593 done
9594   done
9595 IFS=$as_save_IFS
9596
9597 fi
9598 fi
9599 OBJDUMP=$ac_cv_prog_OBJDUMP
9600 if test -n "$OBJDUMP"; then
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9602 $as_echo "$OBJDUMP" >&6; }
9603 else
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 fi
9607
9608
9609   done
9610 fi
9611
9612 for ncn_progname in objdump; do
9613   if test -n "$ncn_tool_prefix"; then
9614     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9652   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9653     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9658   $as_echo_n "(cached) " >&6
9659 else
9660   if test -n "$OBJDUMP"; then
9661   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9665 do
9666   IFS=$as_save_IFS
9667   test -z "$as_dir" && as_dir=.
9668     for ac_exec_ext in '' $ac_executable_extensions; do
9669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670     ac_cv_prog_OBJDUMP="${ncn_progname}"
9671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672     break 2
9673   fi
9674 done
9675   done
9676 IFS=$as_save_IFS
9677
9678 fi
9679 fi
9680 OBJDUMP=$ac_cv_prog_OBJDUMP
9681 if test -n "$OBJDUMP"; then
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9683 $as_echo "$OBJDUMP" >&6; }
9684 else
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9687 fi
9688
9689
9690   fi
9691   test -n "$ac_cv_prog_OBJDUMP" && break
9692 done
9693
9694 if test -z "$ac_cv_prog_OBJDUMP" ; then
9695   set dummy objdump
9696   if test $build = $host ; then
9697     OBJDUMP="$2"
9698   else
9699     OBJDUMP="${ncn_tool_prefix}$2"
9700   fi
9701 fi
9702
9703
9704
9705 if test -n "$READELF"; then
9706   ac_cv_prog_READELF=$READELF
9707 elif test -n "$ac_cv_prog_READELF"; then
9708   READELF=$ac_cv_prog_READELF
9709 fi
9710
9711 if test -n "$ac_cv_prog_READELF"; then
9712   for ncn_progname in readelf; do
9713     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9714 set dummy ${ncn_progname}; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_READELF+set}" = set; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   if test -n "$READELF"; then
9721   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726   IFS=$as_save_IFS
9727   test -z "$as_dir" && as_dir=.
9728     for ac_exec_ext in '' $ac_executable_extensions; do
9729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730     ac_cv_prog_READELF="${ncn_progname}"
9731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732     break 2
9733   fi
9734 done
9735   done
9736 IFS=$as_save_IFS
9737
9738 fi
9739 fi
9740 READELF=$ac_cv_prog_READELF
9741 if test -n "$READELF"; then
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9743 $as_echo "$READELF" >&6; }
9744 else
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9747 fi
9748
9749
9750   done
9751 fi
9752
9753 for ncn_progname in readelf; do
9754   if test -n "$ncn_tool_prefix"; then
9755     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_tool_prefix}${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_tool_prefix}${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   fi
9793   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9794     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_READELF+set}" = set; then :
9799   $as_echo_n "(cached) " >&6
9800 else
9801   if test -n "$READELF"; then
9802   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807   IFS=$as_save_IFS
9808   test -z "$as_dir" && as_dir=.
9809     for ac_exec_ext in '' $ac_executable_extensions; do
9810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811     ac_cv_prog_READELF="${ncn_progname}"
9812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813     break 2
9814   fi
9815 done
9816   done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 READELF=$ac_cv_prog_READELF
9822 if test -n "$READELF"; then
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9824 $as_echo "$READELF" >&6; }
9825 else
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831   fi
9832   test -n "$ac_cv_prog_READELF" && break
9833 done
9834
9835 if test -z "$ac_cv_prog_READELF" ; then
9836   set dummy readelf
9837   if test $build = $host ; then
9838     READELF="$2"
9839   else
9840     READELF="${ncn_tool_prefix}$2"
9841   fi
9842 fi
9843
9844
9845
9846
9847
9848
9849 # Target tools.
9850
9851 # Check whether --with-build-time-tools was given.
9852 if test "${with_build_time_tools+set}" = set; then :
9853   withval=$with_build_time_tools; case x"$withval" in
9854      x/*) ;;
9855      *)
9856        with_build_time_tools=
9857        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9858 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9859        ;;
9860    esac
9861 else
9862   with_build_time_tools=
9863 fi
9864
9865
9866
9867
9868 if test -n "$CC_FOR_TARGET"; then
9869   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9870 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9871   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9872 fi
9873
9874 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9875   for ncn_progname in cc gcc; do
9876     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_progname}; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   if test -n "$CC_FOR_TARGET"; then
9884   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889   IFS=$as_save_IFS
9890   test -z "$as_dir" && as_dir=.
9891     for ac_exec_ext in '' $ac_executable_extensions; do
9892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895     break 2
9896   fi
9897 done
9898   done
9899 IFS=$as_save_IFS
9900
9901 fi
9902 fi
9903 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9904 if test -n "$CC_FOR_TARGET"; then
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9906 $as_echo "$CC_FOR_TARGET" >&6; }
9907 else
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911
9912
9913   done
9914 fi
9915
9916 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9917   for ncn_progname in cc gcc; do
9918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9919 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9920     if test -x $with_build_time_tools/${ncn_progname}; then
9921       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9923 $as_echo "yes" >&6; }
9924       break
9925     else
9926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928     fi
9929   done
9930 fi
9931
9932 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9933   for ncn_progname in cc gcc; do
9934     if test -n "$ncn_target_tool_prefix"; then
9935       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   if test -n "$CC_FOR_TARGET"; then
9943   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948   IFS=$as_save_IFS
9949   test -z "$as_dir" && as_dir=.
9950     for ac_exec_ext in '' $ac_executable_extensions; do
9951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954     break 2
9955   fi
9956 done
9957   done
9958 IFS=$as_save_IFS
9959
9960 fi
9961 fi
9962 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9963 if test -n "$CC_FOR_TARGET"; then
9964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9965 $as_echo "$CC_FOR_TARGET" >&6; }
9966 else
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9969 fi
9970
9971
9972     fi
9973     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9974       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9979   $as_echo_n "(cached) " >&6
9980 else
9981   if test -n "$CC_FOR_TARGET"; then
9982   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9986 do
9987   IFS=$as_save_IFS
9988   test -z "$as_dir" && as_dir=.
9989     for ac_exec_ext in '' $ac_executable_extensions; do
9990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993     break 2
9994   fi
9995 done
9996   done
9997 IFS=$as_save_IFS
9998
9999 fi
10000 fi
10001 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10002 if test -n "$CC_FOR_TARGET"; then
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10004 $as_echo "$CC_FOR_TARGET" >&6; }
10005 else
10006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10008 fi
10009
10010
10011     fi
10012     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10013   done
10014 fi
10015
10016 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10017   set dummy cc gcc
10018   if test $build = $target ; then
10019     CC_FOR_TARGET="$2"
10020   else
10021     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10022   fi
10023 else
10024   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10025 fi
10026
10027
10028
10029 if test -n "$CXX_FOR_TARGET"; then
10030   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10031 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10032   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10033 fi
10034
10035 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10036   for ncn_progname in c++ g++ cxx gxx; do
10037     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038 set dummy ${ncn_progname}; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   if test -n "$CXX_FOR_TARGET"; then
10045   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10046 else
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10049 do
10050   IFS=$as_save_IFS
10051   test -z "$as_dir" && as_dir=.
10052     for ac_exec_ext in '' $ac_executable_extensions; do
10053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056     break 2
10057   fi
10058 done
10059   done
10060 IFS=$as_save_IFS
10061
10062 fi
10063 fi
10064 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10065 if test -n "$CXX_FOR_TARGET"; then
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10067 $as_echo "$CXX_FOR_TARGET" >&6; }
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10071 fi
10072
10073
10074   done
10075 fi
10076
10077 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10078   for ncn_progname in c++ g++ cxx gxx; do
10079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10080 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10081     if test -x $with_build_time_tools/${ncn_progname}; then
10082       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084 $as_echo "yes" >&6; }
10085       break
10086     else
10087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089     fi
10090   done
10091 fi
10092
10093 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10094   for ncn_progname in c++ g++ cxx gxx; do
10095     if test -n "$ncn_target_tool_prefix"; then
10096       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10097 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   if test -n "$CXX_FOR_TARGET"; then
10104   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10105 else
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10108 do
10109   IFS=$as_save_IFS
10110   test -z "$as_dir" && as_dir=.
10111     for ac_exec_ext in '' $ac_executable_extensions; do
10112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115     break 2
10116   fi
10117 done
10118   done
10119 IFS=$as_save_IFS
10120
10121 fi
10122 fi
10123 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10124 if test -n "$CXX_FOR_TARGET"; then
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10126 $as_echo "$CXX_FOR_TARGET" >&6; }
10127 else
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 fi
10131
10132
10133     fi
10134     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10135       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10136 set dummy ${ncn_progname}; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10140   $as_echo_n "(cached) " >&6
10141 else
10142   if test -n "$CXX_FOR_TARGET"; then
10143   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148   IFS=$as_save_IFS
10149   test -z "$as_dir" && as_dir=.
10150     for ac_exec_ext in '' $ac_executable_extensions; do
10151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154     break 2
10155   fi
10156 done
10157   done
10158 IFS=$as_save_IFS
10159
10160 fi
10161 fi
10162 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10163 if test -n "$CXX_FOR_TARGET"; then
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10165 $as_echo "$CXX_FOR_TARGET" >&6; }
10166 else
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 fi
10170
10171
10172     fi
10173     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10174   done
10175 fi
10176
10177 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10178   set dummy c++ g++ cxx gxx
10179   if test $build = $target ; then
10180     CXX_FOR_TARGET="$2"
10181   else
10182     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10183   fi
10184 else
10185   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10186 fi
10187
10188
10189
10190 if test -n "$GCC_FOR_TARGET"; then
10191   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10192 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10193   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10194 fi
10195
10196 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10197   for ncn_progname in gcc; do
10198     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10199 set dummy ${ncn_progname}; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   if test -n "$GCC_FOR_TARGET"; then
10206   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211   IFS=$as_save_IFS
10212   test -z "$as_dir" && as_dir=.
10213     for ac_exec_ext in '' $ac_executable_extensions; do
10214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217     break 2
10218   fi
10219 done
10220   done
10221 IFS=$as_save_IFS
10222
10223 fi
10224 fi
10225 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10226 if test -n "$GCC_FOR_TARGET"; then
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10228 $as_echo "$GCC_FOR_TARGET" >&6; }
10229 else
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10232 fi
10233
10234
10235   done
10236 fi
10237
10238 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10239   for ncn_progname in gcc; do
10240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10241 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10242     if test -x $with_build_time_tools/${ncn_progname}; then
10243       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10244       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; }
10246       break
10247     else
10248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250     fi
10251   done
10252 fi
10253
10254 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10255   for ncn_progname in gcc; do
10256     if test -n "$ncn_target_tool_prefix"; then
10257       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10258 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   if test -n "$GCC_FOR_TARGET"; then
10265   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270   IFS=$as_save_IFS
10271   test -z "$as_dir" && as_dir=.
10272     for ac_exec_ext in '' $ac_executable_extensions; do
10273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276     break 2
10277   fi
10278 done
10279   done
10280 IFS=$as_save_IFS
10281
10282 fi
10283 fi
10284 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10285 if test -n "$GCC_FOR_TARGET"; then
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10287 $as_echo "$GCC_FOR_TARGET" >&6; }
10288 else
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293
10294     fi
10295     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10296       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10301   $as_echo_n "(cached) " >&6
10302 else
10303   if test -n "$GCC_FOR_TARGET"; then
10304   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10308 do
10309   IFS=$as_save_IFS
10310   test -z "$as_dir" && as_dir=.
10311     for ac_exec_ext in '' $ac_executable_extensions; do
10312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315     break 2
10316   fi
10317 done
10318   done
10319 IFS=$as_save_IFS
10320
10321 fi
10322 fi
10323 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10324 if test -n "$GCC_FOR_TARGET"; then
10325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10326 $as_echo "$GCC_FOR_TARGET" >&6; }
10327 else
10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10330 fi
10331
10332
10333     fi
10334     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10335   done
10336 fi
10337
10338 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10339   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10340 else
10341   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10342 fi
10343
10344
10345
10346 if test -n "$GCJ_FOR_TARGET"; then
10347   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10348 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10349   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10350 fi
10351
10352 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10353   for ncn_progname in gcj; do
10354     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10355 set dummy ${ncn_progname}; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10359   $as_echo_n "(cached) " >&6
10360 else
10361   if test -n "$GCJ_FOR_TARGET"; then
10362   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10363 else
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10366 do
10367   IFS=$as_save_IFS
10368   test -z "$as_dir" && as_dir=.
10369     for ac_exec_ext in '' $ac_executable_extensions; do
10370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373     break 2
10374   fi
10375 done
10376   done
10377 IFS=$as_save_IFS
10378
10379 fi
10380 fi
10381 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10382 if test -n "$GCJ_FOR_TARGET"; then
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10384 $as_echo "$GCJ_FOR_TARGET" >&6; }
10385 else
10386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10388 fi
10389
10390
10391   done
10392 fi
10393
10394 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10395   for ncn_progname in gcj; do
10396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10398     if test -x $with_build_time_tools/${ncn_progname}; then
10399       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10401 $as_echo "yes" >&6; }
10402       break
10403     else
10404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10406     fi
10407   done
10408 fi
10409
10410 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10411   for ncn_progname in gcj; do
10412     if test -n "$ncn_target_tool_prefix"; then
10413       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10418   $as_echo_n "(cached) " >&6
10419 else
10420   if test -n "$GCJ_FOR_TARGET"; then
10421   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10422 else
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10425 do
10426   IFS=$as_save_IFS
10427   test -z "$as_dir" && as_dir=.
10428     for ac_exec_ext in '' $ac_executable_extensions; do
10429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10430     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432     break 2
10433   fi
10434 done
10435   done
10436 IFS=$as_save_IFS
10437
10438 fi
10439 fi
10440 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10441 if test -n "$GCJ_FOR_TARGET"; then
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10443 $as_echo "$GCJ_FOR_TARGET" >&6; }
10444 else
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10447 fi
10448
10449
10450     fi
10451     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10452       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453 set dummy ${ncn_progname}; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10457   $as_echo_n "(cached) " >&6
10458 else
10459   if test -n "$GCJ_FOR_TARGET"; then
10460   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10464 do
10465   IFS=$as_save_IFS
10466   test -z "$as_dir" && as_dir=.
10467     for ac_exec_ext in '' $ac_executable_extensions; do
10468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471     break 2
10472   fi
10473 done
10474   done
10475 IFS=$as_save_IFS
10476
10477 fi
10478 fi
10479 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10480 if test -n "$GCJ_FOR_TARGET"; then
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10482 $as_echo "$GCJ_FOR_TARGET" >&6; }
10483 else
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10486 fi
10487
10488
10489     fi
10490     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10491   done
10492 fi
10493
10494 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10495   set dummy gcj
10496   if test $build = $target ; then
10497     GCJ_FOR_TARGET="$2"
10498   else
10499     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10500   fi
10501 else
10502   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10503 fi
10504
10505
10506
10507 if test -n "$GFORTRAN_FOR_TARGET"; then
10508   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10509 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10510   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10511 fi
10512
10513 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10514   for ncn_progname in gfortran; do
10515     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516 set dummy ${ncn_progname}; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10520   $as_echo_n "(cached) " >&6
10521 else
10522   if test -n "$GFORTRAN_FOR_TARGET"; then
10523   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10524 else
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10527 do
10528   IFS=$as_save_IFS
10529   test -z "$as_dir" && as_dir=.
10530     for ac_exec_ext in '' $ac_executable_extensions; do
10531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10532     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534     break 2
10535   fi
10536 done
10537   done
10538 IFS=$as_save_IFS
10539
10540 fi
10541 fi
10542 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10543 if test -n "$GFORTRAN_FOR_TARGET"; then
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10545 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10546 else
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551
10552   done
10553 fi
10554
10555 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10556   for ncn_progname in gfortran; do
10557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10559     if test -x $with_build_time_tools/${ncn_progname}; then
10560       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562 $as_echo "yes" >&6; }
10563       break
10564     else
10565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567     fi
10568   done
10569 fi
10570
10571 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10572   for ncn_progname in gfortran; do
10573     if test -n "$ncn_target_tool_prefix"; then
10574       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   if test -n "$GFORTRAN_FOR_TARGET"; then
10582   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589     for ac_exec_ext in '' $ac_executable_extensions; do
10590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596   done
10597 IFS=$as_save_IFS
10598
10599 fi
10600 fi
10601 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10602 if test -n "$GFORTRAN_FOR_TARGET"; then
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10604 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10605 else
10606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609
10610
10611     fi
10612     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10613       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10614 set dummy ${ncn_progname}; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   if test -n "$GFORTRAN_FOR_TARGET"; then
10621   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626   IFS=$as_save_IFS
10627   test -z "$as_dir" && as_dir=.
10628     for ac_exec_ext in '' $ac_executable_extensions; do
10629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632     break 2
10633   fi
10634 done
10635   done
10636 IFS=$as_save_IFS
10637
10638 fi
10639 fi
10640 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10641 if test -n "$GFORTRAN_FOR_TARGET"; then
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10643 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10644 else
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 fi
10648
10649
10650     fi
10651     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10652   done
10653 fi
10654
10655 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10656   set dummy gfortran
10657   if test $build = $target ; then
10658     GFORTRAN_FOR_TARGET="$2"
10659   else
10660     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10661   fi
10662 else
10663   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10664 fi
10665
10666
10667
10668 if test -n "$GOC_FOR_TARGET"; then
10669   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10670 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10671   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10672 fi
10673
10674 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10675   for ncn_progname in gccgo; do
10676     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10677 set dummy ${ncn_progname}; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10681   $as_echo_n "(cached) " >&6
10682 else
10683   if test -n "$GOC_FOR_TARGET"; then
10684   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10685 else
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689   IFS=$as_save_IFS
10690   test -z "$as_dir" && as_dir=.
10691     for ac_exec_ext in '' $ac_executable_extensions; do
10692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695     break 2
10696   fi
10697 done
10698   done
10699 IFS=$as_save_IFS
10700
10701 fi
10702 fi
10703 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10704 if test -n "$GOC_FOR_TARGET"; then
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10706 $as_echo "$GOC_FOR_TARGET" >&6; }
10707 else
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10710 fi
10711
10712
10713   done
10714 fi
10715
10716 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10717   for ncn_progname in gccgo; do
10718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10720     if test -x $with_build_time_tools/${ncn_progname}; then
10721       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; }
10724       break
10725     else
10726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728     fi
10729   done
10730 fi
10731
10732 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10733   for ncn_progname in gccgo; do
10734     if test -n "$ncn_target_tool_prefix"; then
10735       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   if test -n "$GOC_FOR_TARGET"; then
10743   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10747 do
10748   IFS=$as_save_IFS
10749   test -z "$as_dir" && as_dir=.
10750     for ac_exec_ext in '' $ac_executable_extensions; do
10751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754     break 2
10755   fi
10756 done
10757   done
10758 IFS=$as_save_IFS
10759
10760 fi
10761 fi
10762 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10763 if test -n "$GOC_FOR_TARGET"; then
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10765 $as_echo "$GOC_FOR_TARGET" >&6; }
10766 else
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770
10771
10772     fi
10773     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10774       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10775 set dummy ${ncn_progname}; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781   if test -n "$GOC_FOR_TARGET"; then
10782   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10786 do
10787   IFS=$as_save_IFS
10788   test -z "$as_dir" && as_dir=.
10789     for ac_exec_ext in '' $ac_executable_extensions; do
10790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793     break 2
10794   fi
10795 done
10796   done
10797 IFS=$as_save_IFS
10798
10799 fi
10800 fi
10801 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10802 if test -n "$GOC_FOR_TARGET"; then
10803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10804 $as_echo "$GOC_FOR_TARGET" >&6; }
10805 else
10806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10808 fi
10809
10810
10811     fi
10812     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10813   done
10814 fi
10815
10816 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10817   set dummy gccgo
10818   if test $build = $target ; then
10819     GOC_FOR_TARGET="$2"
10820   else
10821     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10822   fi
10823 else
10824   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10825 fi
10826
10827
10828
10829 cat > conftest.c << \EOF
10830 #ifdef __GNUC__
10831   gcc_yay;
10832 #endif
10833 EOF
10834 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10835   have_gcc_for_target=yes
10836 else
10837   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10838   have_gcc_for_target=no
10839 fi
10840 rm conftest.c
10841
10842
10843
10844
10845 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10846   if test -n "$with_build_time_tools"; then
10847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10848 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10849     if test -x $with_build_time_tools/ar; then
10850       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10851       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10853 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10854     else
10855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10857     fi
10858   elif test $build != $host && test $have_gcc_for_target = yes; then
10859     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10860     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10861     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10862   fi
10863 fi
10864 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10865   # Extract the first word of "ar", so it can be a program name with args.
10866 set dummy ar; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   case $AR_FOR_TARGET in
10873   [\\/]* | ?:[\\/]*)
10874   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10875   ;;
10876   *)
10877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $gcc_cv_tool_dirs
10879 do
10880   IFS=$as_save_IFS
10881   test -z "$as_dir" && as_dir=.
10882     for ac_exec_ext in '' $ac_executable_extensions; do
10883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10884     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886     break 2
10887   fi
10888 done
10889   done
10890 IFS=$as_save_IFS
10891
10892   ;;
10893 esac
10894 fi
10895 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10896 if test -n "$AR_FOR_TARGET"; then
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10898 $as_echo "$AR_FOR_TARGET" >&6; }
10899 else
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903
10904
10905 fi
10906 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10907
10908
10909 if test -n "$AR_FOR_TARGET"; then
10910   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10911 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10912   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10913 fi
10914
10915 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10916   for ncn_progname in ar; do
10917     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   if test -n "$AR_FOR_TARGET"; then
10925   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10929 do
10930   IFS=$as_save_IFS
10931   test -z "$as_dir" && as_dir=.
10932     for ac_exec_ext in '' $ac_executable_extensions; do
10933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936     break 2
10937   fi
10938 done
10939   done
10940 IFS=$as_save_IFS
10941
10942 fi
10943 fi
10944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10945 if test -n "$AR_FOR_TARGET"; then
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10947 $as_echo "$AR_FOR_TARGET" >&6; }
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952
10953
10954   done
10955 fi
10956
10957 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10958   for ncn_progname in ar; do
10959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10960 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10961     if test -x $with_build_time_tools/${ncn_progname}; then
10962       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965       break
10966     else
10967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969     fi
10970   done
10971 fi
10972
10973 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10974   for ncn_progname in ar; do
10975     if test -n "$ncn_target_tool_prefix"; then
10976       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10977 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AR_FOR_TARGET+set}" = set; then :
10981   $as_echo_n "(cached) " >&6
10982 else
10983   if test -n "$AR_FOR_TARGET"; then
10984   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989   IFS=$as_save_IFS
10990   test -z "$as_dir" && as_dir=.
10991     for ac_exec_ext in '' $ac_executable_extensions; do
10992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995     break 2
10996   fi
10997 done
10998   done
10999 IFS=$as_save_IFS
11000
11001 fi
11002 fi
11003 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11004 if test -n "$AR_FOR_TARGET"; then
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11006 $as_echo "$AR_FOR_TARGET" >&6; }
11007 else
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012
11013     fi
11014     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11015       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11016 set dummy ${ncn_progname}; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11020   $as_echo_n "(cached) " >&6
11021 else
11022   if test -n "$AR_FOR_TARGET"; then
11023   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11024 else
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11027 do
11028   IFS=$as_save_IFS
11029   test -z "$as_dir" && as_dir=.
11030     for ac_exec_ext in '' $ac_executable_extensions; do
11031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034     break 2
11035   fi
11036 done
11037   done
11038 IFS=$as_save_IFS
11039
11040 fi
11041 fi
11042 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11043 if test -n "$AR_FOR_TARGET"; then
11044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11045 $as_echo "$AR_FOR_TARGET" >&6; }
11046 else
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049 fi
11050
11051
11052     fi
11053     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11054   done
11055 fi
11056
11057 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11058   set dummy ar
11059   if test $build = $target ; then
11060     AR_FOR_TARGET="$2"
11061   else
11062     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11063   fi
11064 else
11065   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11066 fi
11067
11068 else
11069   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11070 fi
11071
11072
11073
11074
11075 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11076   if test -n "$with_build_time_tools"; then
11077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11078 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11079     if test -x $with_build_time_tools/as; then
11080       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11081       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11083 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11084     else
11085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087     fi
11088   elif test $build != $host && test $have_gcc_for_target = yes; then
11089     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11090     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11091     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11092   fi
11093 fi
11094 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11095   # Extract the first word of "as", so it can be a program name with args.
11096 set dummy as; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   case $AS_FOR_TARGET in
11103   [\\/]* | ?:[\\/]*)
11104   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11105   ;;
11106   *)
11107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $gcc_cv_tool_dirs
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112     for ac_exec_ext in '' $ac_executable_extensions; do
11113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119   done
11120 IFS=$as_save_IFS
11121
11122   ;;
11123 esac
11124 fi
11125 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11126 if test -n "$AS_FOR_TARGET"; then
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11128 $as_echo "$AS_FOR_TARGET" >&6; }
11129 else
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132 fi
11133
11134
11135 fi
11136 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11137
11138
11139 if test -n "$AS_FOR_TARGET"; then
11140   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11141 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11142   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11143 fi
11144
11145 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11146   for ncn_progname in as; do
11147     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11148 set dummy ${ncn_progname}; ac_word=$2
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150 $as_echo_n "checking for $ac_word... " >&6; }
11151 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   if test -n "$AS_FOR_TARGET"; then
11155   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11156 else
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160   IFS=$as_save_IFS
11161   test -z "$as_dir" && as_dir=.
11162     for ac_exec_ext in '' $ac_executable_extensions; do
11163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166     break 2
11167   fi
11168 done
11169   done
11170 IFS=$as_save_IFS
11171
11172 fi
11173 fi
11174 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11175 if test -n "$AS_FOR_TARGET"; then
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11177 $as_echo "$AS_FOR_TARGET" >&6; }
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 fi
11182
11183
11184   done
11185 fi
11186
11187 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11188   for ncn_progname in as; do
11189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11190 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11191     if test -x $with_build_time_tools/${ncn_progname}; then
11192       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11195       break
11196     else
11197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199     fi
11200   done
11201 fi
11202
11203 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11204   for ncn_progname in as; do
11205     if test -n "$ncn_target_tool_prefix"; then
11206       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11207 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_AS_FOR_TARGET+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   if test -n "$AS_FOR_TARGET"; then
11214   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230
11231 fi
11232 fi
11233 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11234 if test -n "$AS_FOR_TARGET"; then
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11236 $as_echo "$AS_FOR_TARGET" >&6; }
11237 else
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241
11242
11243     fi
11244     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11245       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   if test -n "$AS_FOR_TARGET"; then
11253   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258   IFS=$as_save_IFS
11259   test -z "$as_dir" && as_dir=.
11260     for ac_exec_ext in '' $ac_executable_extensions; do
11261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264     break 2
11265   fi
11266 done
11267   done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11273 if test -n "$AS_FOR_TARGET"; then
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11275 $as_echo "$AS_FOR_TARGET" >&6; }
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281
11282     fi
11283     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11284   done
11285 fi
11286
11287 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11288   set dummy as
11289   if test $build = $target ; then
11290     AS_FOR_TARGET="$2"
11291   else
11292     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11293   fi
11294 else
11295   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11296 fi
11297
11298 else
11299   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11300 fi
11301
11302
11303
11304
11305 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11306   if test -n "$with_build_time_tools"; then
11307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11308 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11309     if test -x $with_build_time_tools/dlltool; then
11310       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11311       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11313 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11314     else
11315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317     fi
11318   elif test $build != $host && test $have_gcc_for_target = yes; then
11319     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11320     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11321     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11322   fi
11323 fi
11324 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11325   # Extract the first word of "dlltool", so it can be a program name with args.
11326 set dummy dlltool; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   case $DLLTOOL_FOR_TARGET in
11333   [\\/]* | ?:[\\/]*)
11334   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11335   ;;
11336   *)
11337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $gcc_cv_tool_dirs
11339 do
11340   IFS=$as_save_IFS
11341   test -z "$as_dir" && as_dir=.
11342     for ac_exec_ext in '' $ac_executable_extensions; do
11343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11344     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351
11352   ;;
11353 esac
11354 fi
11355 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11356 if test -n "$DLLTOOL_FOR_TARGET"; then
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11358 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11359 else
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363
11364
11365 fi
11366 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11367
11368
11369 if test -n "$DLLTOOL_FOR_TARGET"; then
11370   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11371 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11372   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11373 fi
11374
11375 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11376   for ncn_progname in dlltool; do
11377     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11378 set dummy ${ncn_progname}; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11382   $as_echo_n "(cached) " >&6
11383 else
11384   if test -n "$DLLTOOL_FOR_TARGET"; then
11385   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11386 else
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390   IFS=$as_save_IFS
11391   test -z "$as_dir" && as_dir=.
11392     for ac_exec_ext in '' $ac_executable_extensions; do
11393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396     break 2
11397   fi
11398 done
11399   done
11400 IFS=$as_save_IFS
11401
11402 fi
11403 fi
11404 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11405 if test -n "$DLLTOOL_FOR_TARGET"; then
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11407 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412
11413
11414   done
11415 fi
11416
11417 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11418   for ncn_progname in dlltool; do
11419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11420 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11421     if test -x $with_build_time_tools/${ncn_progname}; then
11422       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11425       break
11426     else
11427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429     fi
11430   done
11431 fi
11432
11433 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11434   for ncn_progname in dlltool; do
11435     if test -n "$ncn_target_tool_prefix"; then
11436       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11437 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   if test -n "$DLLTOOL_FOR_TARGET"; then
11444   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449   IFS=$as_save_IFS
11450   test -z "$as_dir" && as_dir=.
11451     for ac_exec_ext in '' $ac_executable_extensions; do
11452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455     break 2
11456   fi
11457 done
11458   done
11459 IFS=$as_save_IFS
11460
11461 fi
11462 fi
11463 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11464 if test -n "$DLLTOOL_FOR_TARGET"; then
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11466 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11467 else
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471
11472
11473     fi
11474     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11475       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11476 set dummy ${ncn_progname}; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   if test -n "$DLLTOOL_FOR_TARGET"; then
11483   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488   IFS=$as_save_IFS
11489   test -z "$as_dir" && as_dir=.
11490     for ac_exec_ext in '' $ac_executable_extensions; do
11491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494     break 2
11495   fi
11496 done
11497   done
11498 IFS=$as_save_IFS
11499
11500 fi
11501 fi
11502 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11503 if test -n "$DLLTOOL_FOR_TARGET"; then
11504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11505 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11506 else
11507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 fi
11510
11511
11512     fi
11513     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11514   done
11515 fi
11516
11517 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11518   set dummy dlltool
11519   if test $build = $target ; then
11520     DLLTOOL_FOR_TARGET="$2"
11521   else
11522     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11523   fi
11524 else
11525   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11526 fi
11527
11528 else
11529   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11530 fi
11531
11532
11533
11534
11535 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11536   if test -n "$with_build_time_tools"; then
11537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11538 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11539     if test -x $with_build_time_tools/ld; then
11540       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11541       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11543 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11544     else
11545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547     fi
11548   elif test $build != $host && test $have_gcc_for_target = yes; then
11549     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11550     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11551     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11552   fi
11553 fi
11554 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11555   # Extract the first word of "ld", so it can be a program name with args.
11556 set dummy ld; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   case $LD_FOR_TARGET in
11563   [\\/]* | ?:[\\/]*)
11564   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11565   ;;
11566   *)
11567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $gcc_cv_tool_dirs
11569 do
11570   IFS=$as_save_IFS
11571   test -z "$as_dir" && as_dir=.
11572     for ac_exec_ext in '' $ac_executable_extensions; do
11573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11574     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576     break 2
11577   fi
11578 done
11579   done
11580 IFS=$as_save_IFS
11581
11582   ;;
11583 esac
11584 fi
11585 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11586 if test -n "$LD_FOR_TARGET"; then
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11588 $as_echo "$LD_FOR_TARGET" >&6; }
11589 else
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11592 fi
11593
11594
11595 fi
11596 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11597
11598
11599 if test -n "$LD_FOR_TARGET"; then
11600   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11601 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11602   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11603 fi
11604
11605 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11606   for ncn_progname in ld; do
11607     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608 set dummy ${ncn_progname}; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11612   $as_echo_n "(cached) " >&6
11613 else
11614   if test -n "$LD_FOR_TARGET"; then
11615   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622     for ac_exec_ext in '' $ac_executable_extensions; do
11623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629   done
11630 IFS=$as_save_IFS
11631
11632 fi
11633 fi
11634 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11635 if test -n "$LD_FOR_TARGET"; then
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11637 $as_echo "$LD_FOR_TARGET" >&6; }
11638 else
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 fi
11642
11643
11644   done
11645 fi
11646
11647 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11648   for ncn_progname in ld; do
11649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11650 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11651     if test -x $with_build_time_tools/${ncn_progname}; then
11652       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11655       break
11656     else
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659     fi
11660   done
11661 fi
11662
11663 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11664   for ncn_progname in ld; do
11665     if test -n "$ncn_target_tool_prefix"; then
11666       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11667 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LD_FOR_TARGET+set}" = set; then :
11671   $as_echo_n "(cached) " >&6
11672 else
11673   if test -n "$LD_FOR_TARGET"; then
11674   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11675 else
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679   IFS=$as_save_IFS
11680   test -z "$as_dir" && as_dir=.
11681     for ac_exec_ext in '' $ac_executable_extensions; do
11682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685     break 2
11686   fi
11687 done
11688   done
11689 IFS=$as_save_IFS
11690
11691 fi
11692 fi
11693 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11694 if test -n "$LD_FOR_TARGET"; then
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11696 $as_echo "$LD_FOR_TARGET" >&6; }
11697 else
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11700 fi
11701
11702
11703     fi
11704     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11705       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11706 set dummy ${ncn_progname}; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   if test -n "$LD_FOR_TARGET"; then
11713   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718   IFS=$as_save_IFS
11719   test -z "$as_dir" && as_dir=.
11720     for ac_exec_ext in '' $ac_executable_extensions; do
11721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724     break 2
11725   fi
11726 done
11727   done
11728 IFS=$as_save_IFS
11729
11730 fi
11731 fi
11732 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11733 if test -n "$LD_FOR_TARGET"; then
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11735 $as_echo "$LD_FOR_TARGET" >&6; }
11736 else
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 fi
11740
11741
11742     fi
11743     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11744   done
11745 fi
11746
11747 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11748   set dummy ld
11749   if test $build = $target ; then
11750     LD_FOR_TARGET="$2"
11751   else
11752     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11753   fi
11754 else
11755   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11756 fi
11757
11758 else
11759   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11760 fi
11761
11762
11763
11764
11765 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11766   if test -n "$with_build_time_tools"; then
11767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11768 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11769     if test -x $with_build_time_tools/lipo; then
11770       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11771       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11773 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11774     else
11775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777     fi
11778   elif test $build != $host && test $have_gcc_for_target = yes; then
11779     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11780     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11781     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11782   fi
11783 fi
11784 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11785   # Extract the first word of "lipo", so it can be a program name with args.
11786 set dummy lipo; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   case $LIPO_FOR_TARGET in
11793   [\\/]* | ?:[\\/]*)
11794   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11795   ;;
11796   *)
11797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $gcc_cv_tool_dirs
11799 do
11800   IFS=$as_save_IFS
11801   test -z "$as_dir" && as_dir=.
11802     for ac_exec_ext in '' $ac_executable_extensions; do
11803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11804     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806     break 2
11807   fi
11808 done
11809   done
11810 IFS=$as_save_IFS
11811
11812   ;;
11813 esac
11814 fi
11815 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11816 if test -n "$LIPO_FOR_TARGET"; then
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11818 $as_echo "$LIPO_FOR_TARGET" >&6; }
11819 else
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11822 fi
11823
11824
11825 fi
11826 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11827
11828
11829 if test -n "$LIPO_FOR_TARGET"; then
11830   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11831 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11832   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11833 fi
11834
11835 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11836   for ncn_progname in lipo; do
11837     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11838 set dummy ${ncn_progname}; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   if test -n "$LIPO_FOR_TARGET"; then
11845   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11846 else
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11849 do
11850   IFS=$as_save_IFS
11851   test -z "$as_dir" && as_dir=.
11852     for ac_exec_ext in '' $ac_executable_extensions; do
11853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856     break 2
11857   fi
11858 done
11859   done
11860 IFS=$as_save_IFS
11861
11862 fi
11863 fi
11864 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11865 if test -n "$LIPO_FOR_TARGET"; then
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11867 $as_echo "$LIPO_FOR_TARGET" >&6; }
11868 else
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 fi
11872
11873
11874   done
11875 fi
11876
11877 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11878   for ncn_progname in lipo; do
11879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11880 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11881     if test -x $with_build_time_tools/${ncn_progname}; then
11882       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885       break
11886     else
11887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889     fi
11890   done
11891 fi
11892
11893 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11894   for ncn_progname in lipo; do
11895     if test -n "$ncn_target_tool_prefix"; then
11896       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11897 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_LIPO_FOR_TARGET+set}" = set; then :
11901   $as_echo_n "(cached) " >&6
11902 else
11903   if test -n "$LIPO_FOR_TARGET"; then
11904   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909   IFS=$as_save_IFS
11910   test -z "$as_dir" && as_dir=.
11911     for ac_exec_ext in '' $ac_executable_extensions; do
11912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915     break 2
11916   fi
11917 done
11918   done
11919 IFS=$as_save_IFS
11920
11921 fi
11922 fi
11923 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11924 if test -n "$LIPO_FOR_TARGET"; then
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11926 $as_echo "$LIPO_FOR_TARGET" >&6; }
11927 else
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932
11933     fi
11934     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11935       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11936 set dummy ${ncn_progname}; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942   if test -n "$LIPO_FOR_TARGET"; then
11943   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948   IFS=$as_save_IFS
11949   test -z "$as_dir" && as_dir=.
11950     for ac_exec_ext in '' $ac_executable_extensions; do
11951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11952     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954     break 2
11955   fi
11956 done
11957   done
11958 IFS=$as_save_IFS
11959
11960 fi
11961 fi
11962 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11963 if test -n "$LIPO_FOR_TARGET"; then
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11965 $as_echo "$LIPO_FOR_TARGET" >&6; }
11966 else
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 fi
11970
11971
11972     fi
11973     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11974   done
11975 fi
11976
11977 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11978   set dummy lipo
11979   if test $build = $target ; then
11980     LIPO_FOR_TARGET="$2"
11981   else
11982     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11983   fi
11984 else
11985   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11986 fi
11987
11988 else
11989   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11990 fi
11991
11992
11993
11994
11995 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11996   if test -n "$with_build_time_tools"; then
11997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11998 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11999     if test -x $with_build_time_tools/nm; then
12000       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12001       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12003 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12004     else
12005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007     fi
12008   elif test $build != $host && test $have_gcc_for_target = yes; then
12009     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12010     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12011     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12012   fi
12013 fi
12014 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12015   # Extract the first word of "nm", so it can be a program name with args.
12016 set dummy nm; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12020   $as_echo_n "(cached) " >&6
12021 else
12022   case $NM_FOR_TARGET in
12023   [\\/]* | ?:[\\/]*)
12024   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12025   ;;
12026   *)
12027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $gcc_cv_tool_dirs
12029 do
12030   IFS=$as_save_IFS
12031   test -z "$as_dir" && as_dir=.
12032     for ac_exec_ext in '' $ac_executable_extensions; do
12033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036     break 2
12037   fi
12038 done
12039   done
12040 IFS=$as_save_IFS
12041
12042   ;;
12043 esac
12044 fi
12045 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12046 if test -n "$NM_FOR_TARGET"; then
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12048 $as_echo "$NM_FOR_TARGET" >&6; }
12049 else
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12052 fi
12053
12054
12055 fi
12056 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12057
12058
12059 if test -n "$NM_FOR_TARGET"; then
12060   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12061 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12062   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12063 fi
12064
12065 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12066   for ncn_progname in nm; do
12067     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12068 set dummy ${ncn_progname}; ac_word=$2
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070 $as_echo_n "checking for $ac_word... " >&6; }
12071 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12072   $as_echo_n "(cached) " >&6
12073 else
12074   if test -n "$NM_FOR_TARGET"; then
12075   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12076 else
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12079 do
12080   IFS=$as_save_IFS
12081   test -z "$as_dir" && as_dir=.
12082     for ac_exec_ext in '' $ac_executable_extensions; do
12083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086     break 2
12087   fi
12088 done
12089   done
12090 IFS=$as_save_IFS
12091
12092 fi
12093 fi
12094 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12095 if test -n "$NM_FOR_TARGET"; then
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12097 $as_echo "$NM_FOR_TARGET" >&6; }
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102
12103
12104   done
12105 fi
12106
12107 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12108   for ncn_progname in nm; do
12109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12110 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12111     if test -x $with_build_time_tools/${ncn_progname}; then
12112       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12114 $as_echo "yes" >&6; }
12115       break
12116     else
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119     fi
12120   done
12121 fi
12122
12123 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12124   for ncn_progname in nm; do
12125     if test -n "$ncn_target_tool_prefix"; then
12126       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_NM_FOR_TARGET+set}" = set; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133   if test -n "$NM_FOR_TARGET"; then
12134   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139   IFS=$as_save_IFS
12140   test -z "$as_dir" && as_dir=.
12141     for ac_exec_ext in '' $ac_executable_extensions; do
12142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12143     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145     break 2
12146   fi
12147 done
12148   done
12149 IFS=$as_save_IFS
12150
12151 fi
12152 fi
12153 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12154 if test -n "$NM_FOR_TARGET"; then
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12156 $as_echo "$NM_FOR_TARGET" >&6; }
12157 else
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12161
12162
12163     fi
12164     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12165       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166 set dummy ${ncn_progname}; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test -n "$NM_FOR_TARGET"; then
12173   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180     for ac_exec_ext in '' $ac_executable_extensions; do
12181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184     break 2
12185   fi
12186 done
12187   done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12193 if test -n "$NM_FOR_TARGET"; then
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12195 $as_echo "$NM_FOR_TARGET" >&6; }
12196 else
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201
12202     fi
12203     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12204   done
12205 fi
12206
12207 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12208   set dummy nm
12209   if test $build = $target ; then
12210     NM_FOR_TARGET="$2"
12211   else
12212     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12213   fi
12214 else
12215   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12216 fi
12217
12218 else
12219   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12220 fi
12221
12222
12223
12224
12225 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12226   if test -n "$with_build_time_tools"; then
12227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12228 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12229     if test -x $with_build_time_tools/objdump; then
12230       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12231       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12233 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12234     else
12235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12237     fi
12238   elif test $build != $host && test $have_gcc_for_target = yes; then
12239     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12240     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12241     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12242   fi
12243 fi
12244 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12245   # Extract the first word of "objdump", so it can be a program name with args.
12246 set dummy objdump; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   case $OBJDUMP_FOR_TARGET in
12253   [\\/]* | ?:[\\/]*)
12254   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12255   ;;
12256   *)
12257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $gcc_cv_tool_dirs
12259 do
12260   IFS=$as_save_IFS
12261   test -z "$as_dir" && as_dir=.
12262     for ac_exec_ext in '' $ac_executable_extensions; do
12263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266     break 2
12267   fi
12268 done
12269   done
12270 IFS=$as_save_IFS
12271
12272   ;;
12273 esac
12274 fi
12275 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12276 if test -n "$OBJDUMP_FOR_TARGET"; then
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12278 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12279 else
12280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282 fi
12283
12284
12285 fi
12286 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12287
12288
12289 if test -n "$OBJDUMP_FOR_TARGET"; then
12290   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12291 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12292   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12293 fi
12294
12295 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12296   for ncn_progname in objdump; do
12297     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298 set dummy ${ncn_progname}; ac_word=$2
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   if test -n "$OBJDUMP_FOR_TARGET"; then
12305   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12306 else
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12309 do
12310   IFS=$as_save_IFS
12311   test -z "$as_dir" && as_dir=.
12312     for ac_exec_ext in '' $ac_executable_extensions; do
12313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316     break 2
12317   fi
12318 done
12319   done
12320 IFS=$as_save_IFS
12321
12322 fi
12323 fi
12324 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12325 if test -n "$OBJDUMP_FOR_TARGET"; then
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12327 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12328 else
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332
12333
12334   done
12335 fi
12336
12337 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12338   for ncn_progname in objdump; do
12339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12340 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12341     if test -x $with_build_time_tools/${ncn_progname}; then
12342       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345       break
12346     else
12347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349     fi
12350   done
12351 fi
12352
12353 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12354   for ncn_progname in objdump; do
12355     if test -n "$ncn_target_tool_prefix"; then
12356       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12357 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12361   $as_echo_n "(cached) " >&6
12362 else
12363   if test -n "$OBJDUMP_FOR_TARGET"; then
12364   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12365 else
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12368 do
12369   IFS=$as_save_IFS
12370   test -z "$as_dir" && as_dir=.
12371     for ac_exec_ext in '' $ac_executable_extensions; do
12372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12373     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375     break 2
12376   fi
12377 done
12378   done
12379 IFS=$as_save_IFS
12380
12381 fi
12382 fi
12383 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12384 if test -n "$OBJDUMP_FOR_TARGET"; then
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12386 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12387 else
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 fi
12391
12392
12393     fi
12394     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12395       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12396 set dummy ${ncn_progname}; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402   if test -n "$OBJDUMP_FOR_TARGET"; then
12403   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408   IFS=$as_save_IFS
12409   test -z "$as_dir" && as_dir=.
12410     for ac_exec_ext in '' $ac_executable_extensions; do
12411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414     break 2
12415   fi
12416 done
12417   done
12418 IFS=$as_save_IFS
12419
12420 fi
12421 fi
12422 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12423 if test -n "$OBJDUMP_FOR_TARGET"; then
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12425 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12426 else
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 fi
12430
12431
12432     fi
12433     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12434   done
12435 fi
12436
12437 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12438   set dummy objdump
12439   if test $build = $target ; then
12440     OBJDUMP_FOR_TARGET="$2"
12441   else
12442     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12443   fi
12444 else
12445   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12446 fi
12447
12448 else
12449   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12450 fi
12451
12452
12453
12454
12455 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12456   if test -n "$with_build_time_tools"; then
12457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12458 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12459     if test -x $with_build_time_tools/ranlib; then
12460       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12461       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12463 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12464     else
12465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467     fi
12468   elif test $build != $host && test $have_gcc_for_target = yes; then
12469     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12470     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12471     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12472   fi
12473 fi
12474 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12475   # Extract the first word of "ranlib", so it can be a program name with args.
12476 set dummy ranlib; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   case $RANLIB_FOR_TARGET in
12483   [\\/]* | ?:[\\/]*)
12484   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12485   ;;
12486   *)
12487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $gcc_cv_tool_dirs
12489 do
12490   IFS=$as_save_IFS
12491   test -z "$as_dir" && as_dir=.
12492     for ac_exec_ext in '' $ac_executable_extensions; do
12493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12494     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496     break 2
12497   fi
12498 done
12499   done
12500 IFS=$as_save_IFS
12501
12502   ;;
12503 esac
12504 fi
12505 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12506 if test -n "$RANLIB_FOR_TARGET"; then
12507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12508 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12509 else
12510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512 fi
12513
12514
12515 fi
12516 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12517
12518
12519 if test -n "$RANLIB_FOR_TARGET"; then
12520   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12521 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12522   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12523 fi
12524
12525 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12526   for ncn_progname in ranlib; do
12527     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12528 set dummy ${ncn_progname}; ac_word=$2
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 $as_echo_n "checking for $ac_word... " >&6; }
12531 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534   if test -n "$RANLIB_FOR_TARGET"; then
12535   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12536 else
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12539 do
12540   IFS=$as_save_IFS
12541   test -z "$as_dir" && as_dir=.
12542     for ac_exec_ext in '' $ac_executable_extensions; do
12543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12544     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546     break 2
12547   fi
12548 done
12549   done
12550 IFS=$as_save_IFS
12551
12552 fi
12553 fi
12554 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12555 if test -n "$RANLIB_FOR_TARGET"; then
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12557 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12558 else
12559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562
12563
12564   done
12565 fi
12566
12567 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12568   for ncn_progname in ranlib; do
12569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12570 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12571     if test -x $with_build_time_tools/${ncn_progname}; then
12572       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12575       break
12576     else
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579     fi
12580   done
12581 fi
12582
12583 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12584   for ncn_progname in ranlib; do
12585     if test -n "$ncn_target_tool_prefix"; then
12586       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12587 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+set}" = set; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   if test -n "$RANLIB_FOR_TARGET"; then
12594   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599   IFS=$as_save_IFS
12600   test -z "$as_dir" && as_dir=.
12601     for ac_exec_ext in '' $ac_executable_extensions; do
12602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605     break 2
12606   fi
12607 done
12608   done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12614 if test -n "$RANLIB_FOR_TARGET"; then
12615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12616 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12617 else
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622
12623     fi
12624     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12625       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12626 set dummy ${ncn_progname}; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "$RANLIB_FOR_TARGET"; then
12633   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12653 if test -n "$RANLIB_FOR_TARGET"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12655 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661
12662     fi
12663     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12664   done
12665 fi
12666
12667 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12668   set dummy ranlib
12669   if test $build = $target ; then
12670     RANLIB_FOR_TARGET="$2"
12671   else
12672     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12673   fi
12674 else
12675   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12676 fi
12677
12678 else
12679   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12680 fi
12681
12682
12683
12684
12685 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12686   if test -n "$with_build_time_tools"; then
12687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12688 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12689     if test -x $with_build_time_tools/readelf; then
12690       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12691       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12693 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12694     else
12695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697     fi
12698   elif test $build != $host && test $have_gcc_for_target = yes; then
12699     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12700     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12701     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12702   fi
12703 fi
12704 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12705   # Extract the first word of "readelf", so it can be a program name with args.
12706 set dummy readelf; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712   case $READELF_FOR_TARGET in
12713   [\\/]* | ?:[\\/]*)
12714   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12715   ;;
12716   *)
12717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $gcc_cv_tool_dirs
12719 do
12720   IFS=$as_save_IFS
12721   test -z "$as_dir" && as_dir=.
12722     for ac_exec_ext in '' $ac_executable_extensions; do
12723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12724     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726     break 2
12727   fi
12728 done
12729   done
12730 IFS=$as_save_IFS
12731
12732   ;;
12733 esac
12734 fi
12735 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12736 if test -n "$READELF_FOR_TARGET"; then
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12738 $as_echo "$READELF_FOR_TARGET" >&6; }
12739 else
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 fi
12743
12744
12745 fi
12746 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12747
12748
12749 if test -n "$READELF_FOR_TARGET"; then
12750   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12751 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12752   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12753 fi
12754
12755 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12756   for ncn_progname in readelf; do
12757     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12758 set dummy ${ncn_progname}; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12762   $as_echo_n "(cached) " >&6
12763 else
12764   if test -n "$READELF_FOR_TARGET"; then
12765   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12766 else
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12769 do
12770   IFS=$as_save_IFS
12771   test -z "$as_dir" && as_dir=.
12772     for ac_exec_ext in '' $ac_executable_extensions; do
12773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12774     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776     break 2
12777   fi
12778 done
12779   done
12780 IFS=$as_save_IFS
12781
12782 fi
12783 fi
12784 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12785 if test -n "$READELF_FOR_TARGET"; then
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12787 $as_echo "$READELF_FOR_TARGET" >&6; }
12788 else
12789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 fi
12792
12793
12794   done
12795 fi
12796
12797 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12798   for ncn_progname in readelf; do
12799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12800 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12801     if test -x $with_build_time_tools/${ncn_progname}; then
12802       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 $as_echo "yes" >&6; }
12805       break
12806     else
12807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809     fi
12810   done
12811 fi
12812
12813 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12814   for ncn_progname in readelf; do
12815     if test -n "$ncn_target_tool_prefix"; then
12816       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_READELF_FOR_TARGET+set}" = set; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823   if test -n "$READELF_FOR_TARGET"; then
12824   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829   IFS=$as_save_IFS
12830   test -z "$as_dir" && as_dir=.
12831     for ac_exec_ext in '' $ac_executable_extensions; do
12832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12833     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835     break 2
12836   fi
12837 done
12838   done
12839 IFS=$as_save_IFS
12840
12841 fi
12842 fi
12843 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12844 if test -n "$READELF_FOR_TARGET"; then
12845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12846 $as_echo "$READELF_FOR_TARGET" >&6; }
12847 else
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851
12852
12853     fi
12854     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12855       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   if test -n "$READELF_FOR_TARGET"; then
12863   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12864 else
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12867 do
12868   IFS=$as_save_IFS
12869   test -z "$as_dir" && as_dir=.
12870     for ac_exec_ext in '' $ac_executable_extensions; do
12871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874     break 2
12875   fi
12876 done
12877   done
12878 IFS=$as_save_IFS
12879
12880 fi
12881 fi
12882 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12883 if test -n "$READELF_FOR_TARGET"; then
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12885 $as_echo "$READELF_FOR_TARGET" >&6; }
12886 else
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890
12891
12892     fi
12893     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12894   done
12895 fi
12896
12897 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12898   set dummy readelf
12899   if test $build = $target ; then
12900     READELF_FOR_TARGET="$2"
12901   else
12902     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12903   fi
12904 else
12905   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12906 fi
12907
12908 else
12909   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12910 fi
12911
12912
12913
12914
12915 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12916   if test -n "$with_build_time_tools"; then
12917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12918 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12919     if test -x $with_build_time_tools/strip; then
12920       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12921       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12923 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12924     else
12925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927     fi
12928   elif test $build != $host && test $have_gcc_for_target = yes; then
12929     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12930     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12931     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12932   fi
12933 fi
12934 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12935   # Extract the first word of "strip", so it can be a program name with args.
12936 set dummy strip; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   case $STRIP_FOR_TARGET in
12943   [\\/]* | ?:[\\/]*)
12944   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12945   ;;
12946   *)
12947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $gcc_cv_tool_dirs
12949 do
12950   IFS=$as_save_IFS
12951   test -z "$as_dir" && as_dir=.
12952     for ac_exec_ext in '' $ac_executable_extensions; do
12953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956     break 2
12957   fi
12958 done
12959   done
12960 IFS=$as_save_IFS
12961
12962   ;;
12963 esac
12964 fi
12965 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12966 if test -n "$STRIP_FOR_TARGET"; then
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12968 $as_echo "$STRIP_FOR_TARGET" >&6; }
12969 else
12970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972 fi
12973
12974
12975 fi
12976 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12977
12978
12979 if test -n "$STRIP_FOR_TARGET"; then
12980   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12981 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12982   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12983 fi
12984
12985 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12986   for ncn_progname in strip; do
12987     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12988 set dummy ${ncn_progname}; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994   if test -n "$STRIP_FOR_TARGET"; then
12995   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002     for ac_exec_ext in '' $ac_executable_extensions; do
13003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006     break 2
13007   fi
13008 done
13009   done
13010 IFS=$as_save_IFS
13011
13012 fi
13013 fi
13014 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13015 if test -n "$STRIP_FOR_TARGET"; then
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13017 $as_echo "$STRIP_FOR_TARGET" >&6; }
13018 else
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13021 fi
13022
13023
13024   done
13025 fi
13026
13027 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13028   for ncn_progname in strip; do
13029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13030 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13031     if test -x $with_build_time_tools/${ncn_progname}; then
13032       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13034 $as_echo "yes" >&6; }
13035       break
13036     else
13037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13039     fi
13040   done
13041 fi
13042
13043 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13044   for ncn_progname in strip; do
13045     if test -n "$ncn_target_tool_prefix"; then
13046       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13047 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_STRIP_FOR_TARGET+set}" = set; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053   if test -n "$STRIP_FOR_TARGET"; then
13054   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13058 do
13059   IFS=$as_save_IFS
13060   test -z "$as_dir" && as_dir=.
13061     for ac_exec_ext in '' $ac_executable_extensions; do
13062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065     break 2
13066   fi
13067 done
13068   done
13069 IFS=$as_save_IFS
13070
13071 fi
13072 fi
13073 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13074 if test -n "$STRIP_FOR_TARGET"; then
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13076 $as_echo "$STRIP_FOR_TARGET" >&6; }
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081
13082
13083     fi
13084     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13085       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13086 set dummy ${ncn_progname}; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   if test -n "$STRIP_FOR_TARGET"; then
13093   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098   IFS=$as_save_IFS
13099   test -z "$as_dir" && as_dir=.
13100     for ac_exec_ext in '' $ac_executable_extensions; do
13101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104     break 2
13105   fi
13106 done
13107   done
13108 IFS=$as_save_IFS
13109
13110 fi
13111 fi
13112 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13113 if test -n "$STRIP_FOR_TARGET"; then
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13115 $as_echo "$STRIP_FOR_TARGET" >&6; }
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120
13121
13122     fi
13123     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13124   done
13125 fi
13126
13127 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13128   set dummy strip
13129   if test $build = $target ; then
13130     STRIP_FOR_TARGET="$2"
13131   else
13132     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13133   fi
13134 else
13135   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13136 fi
13137
13138 else
13139   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13140 fi
13141
13142
13143
13144
13145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13146   if test -n "$with_build_time_tools"; then
13147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13148 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13149     if test -x $with_build_time_tools/windres; then
13150       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13151       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13153 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13154     else
13155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157     fi
13158   elif test $build != $host && test $have_gcc_for_target = yes; then
13159     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13160     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13161     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13162   fi
13163 fi
13164 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13165   # Extract the first word of "windres", so it can be a program name with args.
13166 set dummy windres; ac_word=$2
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168 $as_echo_n "checking for $ac_word... " >&6; }
13169 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13170   $as_echo_n "(cached) " >&6
13171 else
13172   case $WINDRES_FOR_TARGET in
13173   [\\/]* | ?:[\\/]*)
13174   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13175   ;;
13176   *)
13177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $gcc_cv_tool_dirs
13179 do
13180   IFS=$as_save_IFS
13181   test -z "$as_dir" && as_dir=.
13182     for ac_exec_ext in '' $ac_executable_extensions; do
13183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13184     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186     break 2
13187   fi
13188 done
13189   done
13190 IFS=$as_save_IFS
13191
13192   ;;
13193 esac
13194 fi
13195 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13196 if test -n "$WINDRES_FOR_TARGET"; then
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13198 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13199 else
13200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 fi
13203
13204
13205 fi
13206 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13207
13208
13209 if test -n "$WINDRES_FOR_TARGET"; then
13210   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13211 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13212   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13213 fi
13214
13215 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13216   for ncn_progname in windres; do
13217     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13218 set dummy ${ncn_progname}; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224   if test -n "$WINDRES_FOR_TARGET"; then
13225   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230   IFS=$as_save_IFS
13231   test -z "$as_dir" && as_dir=.
13232     for ac_exec_ext in '' $ac_executable_extensions; do
13233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236     break 2
13237   fi
13238 done
13239   done
13240 IFS=$as_save_IFS
13241
13242 fi
13243 fi
13244 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13245 if test -n "$WINDRES_FOR_TARGET"; then
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13247 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13248 else
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13251 fi
13252
13253
13254   done
13255 fi
13256
13257 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13258   for ncn_progname in windres; do
13259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13260 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13261     if test -x $with_build_time_tools/${ncn_progname}; then
13262       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 $as_echo "yes" >&6; }
13265       break
13266     else
13267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269     fi
13270   done
13271 fi
13272
13273 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13274   for ncn_progname in windres; do
13275     if test -n "$ncn_target_tool_prefix"; then
13276       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_WINDRES_FOR_TARGET+set}" = set; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   if test -n "$WINDRES_FOR_TARGET"; then
13284   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289   IFS=$as_save_IFS
13290   test -z "$as_dir" && as_dir=.
13291     for ac_exec_ext in '' $ac_executable_extensions; do
13292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295     break 2
13296   fi
13297 done
13298   done
13299 IFS=$as_save_IFS
13300
13301 fi
13302 fi
13303 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13304 if test -n "$WINDRES_FOR_TARGET"; then
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13306 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13307 else
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 fi
13311
13312
13313     fi
13314     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13315       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13316 set dummy ${ncn_progname}; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13320   $as_echo_n "(cached) " >&6
13321 else
13322   if test -n "$WINDRES_FOR_TARGET"; then
13323   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13324 else
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13327 do
13328   IFS=$as_save_IFS
13329   test -z "$as_dir" && as_dir=.
13330     for ac_exec_ext in '' $ac_executable_extensions; do
13331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334     break 2
13335   fi
13336 done
13337   done
13338 IFS=$as_save_IFS
13339
13340 fi
13341 fi
13342 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13343 if test -n "$WINDRES_FOR_TARGET"; then
13344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13345 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13346 else
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349 fi
13350
13351
13352     fi
13353     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13354   done
13355 fi
13356
13357 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13358   set dummy windres
13359   if test $build = $target ; then
13360     WINDRES_FOR_TARGET="$2"
13361   else
13362     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13363   fi
13364 else
13365   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13366 fi
13367
13368 else
13369   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13370 fi
13371
13372
13373
13374
13375 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13376   if test -n "$with_build_time_tools"; then
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13378 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13379     if test -x $with_build_time_tools/windmc; then
13380       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13381       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13383 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13384     else
13385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387     fi
13388   elif test $build != $host && test $have_gcc_for_target = yes; then
13389     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13390     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13391     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13392   fi
13393 fi
13394 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13395   # Extract the first word of "windmc", so it can be a program name with args.
13396 set dummy windmc; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13400   $as_echo_n "(cached) " >&6
13401 else
13402   case $WINDMC_FOR_TARGET in
13403   [\\/]* | ?:[\\/]*)
13404   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13405   ;;
13406   *)
13407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $gcc_cv_tool_dirs
13409 do
13410   IFS=$as_save_IFS
13411   test -z "$as_dir" && as_dir=.
13412     for ac_exec_ext in '' $ac_executable_extensions; do
13413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416     break 2
13417   fi
13418 done
13419   done
13420 IFS=$as_save_IFS
13421
13422   ;;
13423 esac
13424 fi
13425 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13426 if test -n "$WINDMC_FOR_TARGET"; then
13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13428 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13429 else
13430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433
13434
13435 fi
13436 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13437
13438
13439 if test -n "$WINDMC_FOR_TARGET"; then
13440   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13441 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13442   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13443 fi
13444
13445 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13446   for ncn_progname in windmc; do
13447     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13452   $as_echo_n "(cached) " >&6
13453 else
13454   if test -n "$WINDMC_FOR_TARGET"; then
13455   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13459 do
13460   IFS=$as_save_IFS
13461   test -z "$as_dir" && as_dir=.
13462     for ac_exec_ext in '' $ac_executable_extensions; do
13463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13464     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466     break 2
13467   fi
13468 done
13469   done
13470 IFS=$as_save_IFS
13471
13472 fi
13473 fi
13474 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13475 if test -n "$WINDMC_FOR_TARGET"; then
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13477 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13478 else
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482
13483
13484   done
13485 fi
13486
13487 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13488   for ncn_progname in windmc; do
13489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13490 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13491     if test -x $with_build_time_tools/${ncn_progname}; then
13492       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 $as_echo "yes" >&6; }
13495       break
13496     else
13497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13499     fi
13500   done
13501 fi
13502
13503 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13504   for ncn_progname in windmc; do
13505     if test -n "$ncn_target_tool_prefix"; then
13506       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13507 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_WINDMC_FOR_TARGET+set}" = set; then :
13511   $as_echo_n "(cached) " >&6
13512 else
13513   if test -n "$WINDMC_FOR_TARGET"; then
13514   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13515 else
13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517 for as_dir in $PATH
13518 do
13519   IFS=$as_save_IFS
13520   test -z "$as_dir" && as_dir=.
13521     for ac_exec_ext in '' $ac_executable_extensions; do
13522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13523     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13525     break 2
13526   fi
13527 done
13528   done
13529 IFS=$as_save_IFS
13530
13531 fi
13532 fi
13533 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13534 if test -n "$WINDMC_FOR_TARGET"; then
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13536 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13537 else
13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 $as_echo "no" >&6; }
13540 fi
13541
13542
13543     fi
13544     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13545       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13546 set dummy ${ncn_progname}; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13550   $as_echo_n "(cached) " >&6
13551 else
13552   if test -n "$WINDMC_FOR_TARGET"; then
13553   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13554 else
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13557 do
13558   IFS=$as_save_IFS
13559   test -z "$as_dir" && as_dir=.
13560     for ac_exec_ext in '' $ac_executable_extensions; do
13561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13562     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564     break 2
13565   fi
13566 done
13567   done
13568 IFS=$as_save_IFS
13569
13570 fi
13571 fi
13572 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13573 if test -n "$WINDMC_FOR_TARGET"; then
13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13575 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13576 else
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579 fi
13580
13581
13582     fi
13583     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13584   done
13585 fi
13586
13587 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13588   set dummy windmc
13589   if test $build = $target ; then
13590     WINDMC_FOR_TARGET="$2"
13591   else
13592     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13593   fi
13594 else
13595   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13596 fi
13597
13598 else
13599   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13600 fi
13601
13602
13603 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13604
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13606 $as_echo_n "checking where to find the target ar... " >&6; }
13607 if test "x${build}" != "x${host}" ; then
13608   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13609     # We already found the complete path
13610     ac_dir=`dirname $AR_FOR_TARGET`
13611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612 $as_echo "pre-installed in $ac_dir" >&6; }
13613   else
13614     # Canadian cross, just use what we found
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616 $as_echo "pre-installed" >&6; }
13617   fi
13618 else
13619   ok=yes
13620   case " ${configdirs} " in
13621     *" binutils "*) ;;
13622     *) ok=no ;;
13623   esac
13624
13625   if test $ok = yes; then
13626     # An in-tree tool is available and we can use it
13627     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13629 $as_echo "just compiled" >&6; }
13630   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13631     # We already found the complete path
13632     ac_dir=`dirname $AR_FOR_TARGET`
13633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13634 $as_echo "pre-installed in $ac_dir" >&6; }
13635   elif test "x$target" = "x$host"; then
13636     # We can use an host tool
13637     AR_FOR_TARGET='$(AR)'
13638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13639 $as_echo "host tool" >&6; }
13640   else
13641     # We need a cross tool
13642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643 $as_echo "pre-installed" >&6; }
13644   fi
13645 fi
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13648 $as_echo_n "checking where to find the target as... " >&6; }
13649 if test "x${build}" != "x${host}" ; then
13650   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13651     # We already found the complete path
13652     ac_dir=`dirname $AS_FOR_TARGET`
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654 $as_echo "pre-installed in $ac_dir" >&6; }
13655   else
13656     # Canadian cross, just use what we found
13657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13659   fi
13660 else
13661   ok=yes
13662   case " ${configdirs} " in
13663     *" gas "*) ;;
13664     *) ok=no ;;
13665   esac
13666
13667   if test $ok = yes; then
13668     # An in-tree tool is available and we can use it
13669     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671 $as_echo "just compiled" >&6; }
13672   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13673     # We already found the complete path
13674     ac_dir=`dirname $AS_FOR_TARGET`
13675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676 $as_echo "pre-installed in $ac_dir" >&6; }
13677   elif test "x$target" = "x$host"; then
13678     # We can use an host tool
13679     AS_FOR_TARGET='$(AS)'
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681 $as_echo "host tool" >&6; }
13682   else
13683     # We need a cross tool
13684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685 $as_echo "pre-installed" >&6; }
13686   fi
13687 fi
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13690 $as_echo_n "checking where to find the target cc... " >&6; }
13691 if test "x${build}" != "x${host}" ; then
13692   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13693     # We already found the complete path
13694     ac_dir=`dirname $CC_FOR_TARGET`
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696 $as_echo "pre-installed in $ac_dir" >&6; }
13697   else
13698     # Canadian cross, just use what we found
13699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13701   fi
13702 else
13703   ok=yes
13704   case " ${configdirs} " in
13705     *" gcc "*) ;;
13706     *) ok=no ;;
13707   esac
13708
13709   if test $ok = yes; then
13710     # An in-tree tool is available and we can use it
13711     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713 $as_echo "just compiled" >&6; }
13714   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13715     # We already found the complete path
13716     ac_dir=`dirname $CC_FOR_TARGET`
13717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719   elif test "x$target" = "x$host"; then
13720     # We can use an host tool
13721     CC_FOR_TARGET='$(CC)'
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723 $as_echo "host tool" >&6; }
13724   else
13725     # We need a cross tool
13726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13728   fi
13729 fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13732 $as_echo_n "checking where to find the target c++... " >&6; }
13733 if test "x${build}" != "x${host}" ; then
13734   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13735     # We already found the complete path
13736     ac_dir=`dirname $CXX_FOR_TARGET`
13737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739   else
13740     # Canadian cross, just use what we found
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13743   fi
13744 else
13745   ok=yes
13746   case " ${configdirs} " in
13747     *" gcc "*) ;;
13748     *) ok=no ;;
13749   esac
13750   case ,${enable_languages}, in
13751     *,c++,*) ;;
13752     *) ok=no ;;
13753   esac
13754   if test $ok = yes; then
13755     # An in-tree tool is available and we can use it
13756     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'
13757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758 $as_echo "just compiled" >&6; }
13759   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13760     # We already found the complete path
13761     ac_dir=`dirname $CXX_FOR_TARGET`
13762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763 $as_echo "pre-installed in $ac_dir" >&6; }
13764   elif test "x$target" = "x$host"; then
13765     # We can use an host tool
13766     CXX_FOR_TARGET='$(CXX)'
13767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768 $as_echo "host tool" >&6; }
13769   else
13770     # We need a cross tool
13771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13773   fi
13774 fi
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13777 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13778 if test "x${build}" != "x${host}" ; then
13779   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13780     # We already found the complete path
13781     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783 $as_echo "pre-installed in $ac_dir" >&6; }
13784   else
13785     # Canadian cross, just use what we found
13786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13788   fi
13789 else
13790   ok=yes
13791   case " ${configdirs} " in
13792     *" gcc "*) ;;
13793     *) ok=no ;;
13794   esac
13795   case ,${enable_languages}, in
13796     *,c++,*) ;;
13797     *) ok=no ;;
13798   esac
13799   if test $ok = yes; then
13800     # An in-tree tool is available and we can use it
13801     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'
13802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13803 $as_echo "just compiled" >&6; }
13804   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13805     # We already found the complete path
13806     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808 $as_echo "pre-installed in $ac_dir" >&6; }
13809   elif test "x$target" = "x$host"; then
13810     # We can use an host tool
13811     RAW_CXX_FOR_TARGET='$(CXX)'
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13813 $as_echo "host tool" >&6; }
13814   else
13815     # We need a cross tool
13816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13818   fi
13819 fi
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13822 $as_echo_n "checking where to find the target dlltool... " >&6; }
13823 if test "x${build}" != "x${host}" ; then
13824   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13825     # We already found the complete path
13826     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829   else
13830     # Canadian cross, just use what we found
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13833   fi
13834 else
13835   ok=yes
13836   case " ${configdirs} " in
13837     *" binutils "*) ;;
13838     *) ok=no ;;
13839   esac
13840
13841   if test $ok = yes; then
13842     # An in-tree tool is available and we can use it
13843     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13845 $as_echo "just compiled" >&6; }
13846   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13847     # We already found the complete path
13848     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850 $as_echo "pre-installed in $ac_dir" >&6; }
13851   elif test "x$target" = "x$host"; then
13852     # We can use an host tool
13853     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13855 $as_echo "host tool" >&6; }
13856   else
13857     # We need a cross tool
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13860   fi
13861 fi
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13864 $as_echo_n "checking where to find the target gcc... " >&6; }
13865 if test "x${build}" != "x${host}" ; then
13866   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13867     # We already found the complete path
13868     ac_dir=`dirname $GCC_FOR_TARGET`
13869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871   else
13872     # Canadian cross, just use what we found
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13875   fi
13876 else
13877   ok=yes
13878   case " ${configdirs} " in
13879     *" gcc "*) ;;
13880     *) ok=no ;;
13881   esac
13882
13883   if test $ok = yes; then
13884     # An in-tree tool is available and we can use it
13885     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887 $as_echo "just compiled" >&6; }
13888   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13889     # We already found the complete path
13890     ac_dir=`dirname $GCC_FOR_TARGET`
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892 $as_echo "pre-installed in $ac_dir" >&6; }
13893   elif test "x$target" = "x$host"; then
13894     # We can use an host tool
13895     GCC_FOR_TARGET='$()'
13896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897 $as_echo "host tool" >&6; }
13898   else
13899     # We need a cross tool
13900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13902   fi
13903 fi
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13906 $as_echo_n "checking where to find the target gcj... " >&6; }
13907 if test "x${build}" != "x${host}" ; then
13908   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13909     # We already found the complete path
13910     ac_dir=`dirname $GCJ_FOR_TARGET`
13911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913   else
13914     # Canadian cross, just use what we found
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13917   fi
13918 else
13919   ok=yes
13920   case " ${configdirs} " in
13921     *" gcc "*) ;;
13922     *) ok=no ;;
13923   esac
13924   case ,${enable_languages}, in
13925     *,java,*) ;;
13926     *) ok=no ;;
13927   esac
13928   if test $ok = yes; then
13929     # An in-tree tool is available and we can use it
13930     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932 $as_echo "just compiled" >&6; }
13933   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13934     # We already found the complete path
13935     ac_dir=`dirname $GCJ_FOR_TARGET`
13936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937 $as_echo "pre-installed in $ac_dir" >&6; }
13938   elif test "x$target" = "x$host"; then
13939     # We can use an host tool
13940     GCJ_FOR_TARGET='$(GCJ)'
13941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942 $as_echo "host tool" >&6; }
13943   else
13944     # We need a cross tool
13945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13947   fi
13948 fi
13949
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13951 $as_echo_n "checking where to find the target gfortran... " >&6; }
13952 if test "x${build}" != "x${host}" ; then
13953   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13954     # We already found the complete path
13955     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957 $as_echo "pre-installed in $ac_dir" >&6; }
13958   else
13959     # Canadian cross, just use what we found
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13962   fi
13963 else
13964   ok=yes
13965   case " ${configdirs} " in
13966     *" gcc "*) ;;
13967     *) ok=no ;;
13968   esac
13969   case ,${enable_languages}, in
13970     *,fortran,*) ;;
13971     *) ok=no ;;
13972   esac
13973   if test $ok = yes; then
13974     # An in-tree tool is available and we can use it
13975     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977 $as_echo "just compiled" >&6; }
13978   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13979     # We already found the complete path
13980     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982 $as_echo "pre-installed in $ac_dir" >&6; }
13983   elif test "x$target" = "x$host"; then
13984     # We can use an host tool
13985     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987 $as_echo "host tool" >&6; }
13988   else
13989     # We need a cross tool
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13992   fi
13993 fi
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13996 $as_echo_n "checking where to find the target gccgo... " >&6; }
13997 if test "x${build}" != "x${host}" ; then
13998   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13999     # We already found the complete path
14000     ac_dir=`dirname $GOC_FOR_TARGET`
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002 $as_echo "pre-installed in $ac_dir" >&6; }
14003   else
14004     # Canadian cross, just use what we found
14005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14007   fi
14008 else
14009   ok=yes
14010   case " ${configdirs} " in
14011     *" gcc "*) ;;
14012     *) ok=no ;;
14013   esac
14014   case ,${enable_languages}, in
14015     *,go,*) ;;
14016     *) ok=no ;;
14017   esac
14018   if test $ok = yes; then
14019     # An in-tree tool is available and we can use it
14020     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022 $as_echo "just compiled" >&6; }
14023   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14024     # We already found the complete path
14025     ac_dir=`dirname $GOC_FOR_TARGET`
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028   elif test "x$target" = "x$host"; then
14029     # We can use an host tool
14030     GOC_FOR_TARGET='$(GOC)'
14031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032 $as_echo "host tool" >&6; }
14033   else
14034     # We need a cross tool
14035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14037   fi
14038 fi
14039
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14041 $as_echo_n "checking where to find the target ld... " >&6; }
14042 if test "x${build}" != "x${host}" ; then
14043   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14044     # We already found the complete path
14045     ac_dir=`dirname $LD_FOR_TARGET`
14046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047 $as_echo "pre-installed in $ac_dir" >&6; }
14048   else
14049     # Canadian cross, just use what we found
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14052   fi
14053 else
14054   ok=yes
14055   case " ${configdirs} " in
14056     *" ld "*) ;;
14057     *) ok=no ;;
14058   esac
14059
14060   if test $ok = yes; then
14061     # An in-tree tool is available and we can use it
14062     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14064 $as_echo "just compiled" >&6; }
14065   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14066     # We already found the complete path
14067     ac_dir=`dirname $LD_FOR_TARGET`
14068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069 $as_echo "pre-installed in $ac_dir" >&6; }
14070   elif test "x$target" = "x$host"; then
14071     # We can use an host tool
14072     LD_FOR_TARGET='$(LD)'
14073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14074 $as_echo "host tool" >&6; }
14075   else
14076     # We need a cross tool
14077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078 $as_echo "pre-installed" >&6; }
14079   fi
14080 fi
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14083 $as_echo_n "checking where to find the target lipo... " >&6; }
14084 if test "x${build}" != "x${host}" ; then
14085   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14086     # We already found the complete path
14087     ac_dir=`dirname $LIPO_FOR_TARGET`
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14089 $as_echo "pre-installed in $ac_dir" >&6; }
14090   else
14091     # Canadian cross, just use what we found
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14094   fi
14095 else
14096   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14097     # We already found the complete path
14098     ac_dir=`dirname $LIPO_FOR_TARGET`
14099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101   elif test "x$target" = "x$host"; then
14102     # We can use an host tool
14103     LIPO_FOR_TARGET='$(LIPO)'
14104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105 $as_echo "host tool" >&6; }
14106   else
14107     # We need a cross tool
14108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14110   fi
14111 fi
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14114 $as_echo_n "checking where to find the target nm... " >&6; }
14115 if test "x${build}" != "x${host}" ; then
14116   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14117     # We already found the complete path
14118     ac_dir=`dirname $NM_FOR_TARGET`
14119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14121   else
14122     # Canadian cross, just use what we found
14123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14125   fi
14126 else
14127   ok=yes
14128   case " ${configdirs} " in
14129     *" binutils "*) ;;
14130     *) ok=no ;;
14131   esac
14132
14133   if test $ok = yes; then
14134     # An in-tree tool is available and we can use it
14135     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137 $as_echo "just compiled" >&6; }
14138   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14139     # We already found the complete path
14140     ac_dir=`dirname $NM_FOR_TARGET`
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143   elif test "x$target" = "x$host"; then
14144     # We can use an host tool
14145     NM_FOR_TARGET='$(NM)'
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147 $as_echo "host tool" >&6; }
14148   else
14149     # We need a cross tool
14150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14152   fi
14153 fi
14154
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14156 $as_echo_n "checking where to find the target objdump... " >&6; }
14157 if test "x${build}" != "x${host}" ; then
14158   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14159     # We already found the complete path
14160     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163   else
14164     # Canadian cross, just use what we found
14165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14167   fi
14168 else
14169   ok=yes
14170   case " ${configdirs} " in
14171     *" binutils "*) ;;
14172     *) ok=no ;;
14173   esac
14174
14175   if test $ok = yes; then
14176     # An in-tree tool is available and we can use it
14177     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14179 $as_echo "just compiled" >&6; }
14180   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14181     # We already found the complete path
14182     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184 $as_echo "pre-installed in $ac_dir" >&6; }
14185   elif test "x$target" = "x$host"; then
14186     # We can use an host tool
14187     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14189 $as_echo "host tool" >&6; }
14190   else
14191     # We need a cross tool
14192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193 $as_echo "pre-installed" >&6; }
14194   fi
14195 fi
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14198 $as_echo_n "checking where to find the target ranlib... " >&6; }
14199 if test "x${build}" != "x${host}" ; then
14200   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14201     # We already found the complete path
14202     ac_dir=`dirname $RANLIB_FOR_TARGET`
14203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205   else
14206     # Canadian cross, just use what we found
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208 $as_echo "pre-installed" >&6; }
14209   fi
14210 else
14211   ok=yes
14212   case " ${configdirs} " in
14213     *" binutils "*) ;;
14214     *) ok=no ;;
14215   esac
14216
14217   if test $ok = yes; then
14218     # An in-tree tool is available and we can use it
14219     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14221 $as_echo "just compiled" >&6; }
14222   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14223     # We already found the complete path
14224     ac_dir=`dirname $RANLIB_FOR_TARGET`
14225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226 $as_echo "pre-installed in $ac_dir" >&6; }
14227   elif test "x$target" = "x$host"; then
14228     # We can use an host tool
14229     RANLIB_FOR_TARGET='$(RANLIB)'
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14231 $as_echo "host tool" >&6; }
14232   else
14233     # We need a cross tool
14234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235 $as_echo "pre-installed" >&6; }
14236   fi
14237 fi
14238
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14240 $as_echo_n "checking where to find the target readelf... " >&6; }
14241 if test "x${build}" != "x${host}" ; then
14242   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14243     # We already found the complete path
14244     ac_dir=`dirname $READELF_FOR_TARGET`
14245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246 $as_echo "pre-installed in $ac_dir" >&6; }
14247   else
14248     # Canadian cross, just use what we found
14249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14250 $as_echo "pre-installed" >&6; }
14251   fi
14252 else
14253   ok=yes
14254   case " ${configdirs} " in
14255     *" binutils "*) ;;
14256     *) ok=no ;;
14257   esac
14258
14259   if test $ok = yes; then
14260     # An in-tree tool is available and we can use it
14261     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14263 $as_echo "just compiled" >&6; }
14264   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14265     # We already found the complete path
14266     ac_dir=`dirname $READELF_FOR_TARGET`
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268 $as_echo "pre-installed in $ac_dir" >&6; }
14269   elif test "x$target" = "x$host"; then
14270     # We can use an host tool
14271     READELF_FOR_TARGET='$(READELF)'
14272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14273 $as_echo "host tool" >&6; }
14274   else
14275     # We need a cross tool
14276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277 $as_echo "pre-installed" >&6; }
14278   fi
14279 fi
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14282 $as_echo_n "checking where to find the target strip... " >&6; }
14283 if test "x${build}" != "x${host}" ; then
14284   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14285     # We already found the complete path
14286     ac_dir=`dirname $STRIP_FOR_TARGET`
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14288 $as_echo "pre-installed in $ac_dir" >&6; }
14289   else
14290     # Canadian cross, just use what we found
14291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292 $as_echo "pre-installed" >&6; }
14293   fi
14294 else
14295   ok=yes
14296   case " ${configdirs} " in
14297     *" binutils "*) ;;
14298     *) ok=no ;;
14299   esac
14300
14301   if test $ok = yes; then
14302     # An in-tree tool is available and we can use it
14303     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305 $as_echo "just compiled" >&6; }
14306   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14307     # We already found the complete path
14308     ac_dir=`dirname $STRIP_FOR_TARGET`
14309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310 $as_echo "pre-installed in $ac_dir" >&6; }
14311   elif test "x$target" = "x$host"; then
14312     # We can use an host tool
14313     STRIP_FOR_TARGET='$(STRIP)'
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315 $as_echo "host tool" >&6; }
14316   else
14317     # We need a cross tool
14318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14320   fi
14321 fi
14322
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14324 $as_echo_n "checking where to find the target windres... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14327     # We already found the complete path
14328     ac_dir=`dirname $WINDRES_FOR_TARGET`
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331   else
14332     # Canadian cross, just use what we found
14333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14335   fi
14336 else
14337   ok=yes
14338   case " ${configdirs} " in
14339     *" binutils "*) ;;
14340     *) ok=no ;;
14341   esac
14342
14343   if test $ok = yes; then
14344     # An in-tree tool is available and we can use it
14345     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347 $as_echo "just compiled" >&6; }
14348   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14349     # We already found the complete path
14350     ac_dir=`dirname $WINDRES_FOR_TARGET`
14351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353   elif test "x$target" = "x$host"; then
14354     # We can use an host tool
14355     WINDRES_FOR_TARGET='$(WINDRES)'
14356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357 $as_echo "host tool" >&6; }
14358   else
14359     # We need a cross tool
14360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14362   fi
14363 fi
14364
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14366 $as_echo_n "checking where to find the target windmc... " >&6; }
14367 if test "x${build}" != "x${host}" ; then
14368   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14369     # We already found the complete path
14370     ac_dir=`dirname $WINDMC_FOR_TARGET`
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372 $as_echo "pre-installed in $ac_dir" >&6; }
14373   else
14374     # Canadian cross, just use what we found
14375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376 $as_echo "pre-installed" >&6; }
14377   fi
14378 else
14379   ok=yes
14380   case " ${configdirs} " in
14381     *" binutils "*) ;;
14382     *) ok=no ;;
14383   esac
14384
14385   if test $ok = yes; then
14386     # An in-tree tool is available and we can use it
14387     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389 $as_echo "just compiled" >&6; }
14390   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14391     # We already found the complete path
14392     ac_dir=`dirname $WINDMC_FOR_TARGET`
14393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394 $as_echo "pre-installed in $ac_dir" >&6; }
14395   elif test "x$target" = "x$host"; then
14396     # We can use an host tool
14397     WINDMC_FOR_TARGET='$(WINDMC)'
14398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399 $as_echo "host tool" >&6; }
14400   else
14401     # We need a cross tool
14402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14404   fi
14405 fi
14406
14407
14408
14409
14410
14411 # Certain tools may need extra flags.
14412 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14413 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14414 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14415
14416 # When building target libraries, except in a Canadian cross, we use
14417 # the same toolchain as the compiler we just built.
14418 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14419 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14420 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14421 if test $host = $build; then
14422   case " $configdirs " in
14423     *" gcc "*)
14424       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14425       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14426       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14427       ;;
14428   esac
14429 fi
14430
14431
14432
14433
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14436 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14437 # Check whether --enable-maintainer-mode was given.
14438 if test "${enable_maintainer_mode+set}" = set; then :
14439   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14440 else
14441   USE_MAINTAINER_MODE=no
14442 fi
14443
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14445 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14446
14447
14448 if test "$USE_MAINTAINER_MODE" = yes; then
14449   MAINTAINER_MODE_TRUE=
14450   MAINTAINER_MODE_FALSE='#'
14451 else
14452   MAINTAINER_MODE_TRUE='#'
14453   MAINTAINER_MODE_FALSE=
14454 fi
14455 MAINT=$MAINTAINER_MODE_TRUE
14456
14457 # ---------------------
14458 # GCC bootstrap support
14459 # ---------------------
14460
14461 # Stage specific cflags for build.
14462 stage1_cflags="-g"
14463 case $build in
14464   vax-*-*)
14465     case ${GCC} in
14466       yes) stage1_cflags="-g -Wa,-J" ;;
14467       *) stage1_cflags="-g -J" ;;
14468     esac ;;
14469 esac
14470
14471
14472
14473 # Enable --enable-checking in stage1 of the compiler.
14474 # Check whether --enable-stage1-checking was given.
14475 if test "${enable_stage1_checking+set}" = set; then :
14476   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14477 else
14478   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14479   stage1_checking=--enable-checking=yes,types
14480 else
14481   stage1_checking=--enable-checking=$enable_checking,types
14482 fi
14483 fi
14484
14485
14486
14487 # Enable -Werror in bootstrap stage2 and later.
14488 # Check whether --enable-werror was given.
14489 if test "${enable_werror+set}" = set; then :
14490   enableval=$enable_werror;
14491 else
14492   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14493   enable_werror=yes
14494 else
14495   enable_werror=no
14496 fi
14497 fi
14498
14499 case ${enable_werror} in
14500   yes) stage2_werror_flag="--enable-werror-always" ;;
14501   *) stage2_werror_flag="" ;;
14502 esac
14503
14504
14505 # Enable --enable-host-shared.
14506 # Check whether --enable-host-shared was given.
14507 if test "${enable_host_shared+set}" = set; then :
14508   enableval=$enable_host_shared; host_shared=$enableval
14509 else
14510   host_shared=no
14511 fi
14512
14513
14514
14515 # Specify what files to not compare during bootstrap.
14516
14517 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14518 case "$target" in
14519   hppa*64*-*-hpux*) ;;
14520   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14521   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14522 esac
14523
14524
14525 ac_config_files="$ac_config_files Makefile"
14526
14527 cat >confcache <<\_ACEOF
14528 # This file is a shell script that caches the results of configure
14529 # tests run on this system so they can be shared between configure
14530 # scripts and configure runs, see configure's option --config-cache.
14531 # It is not useful on other systems.  If it contains results you don't
14532 # want to keep, you may remove or edit it.
14533 #
14534 # config.status only pays attention to the cache file if you give it
14535 # the --recheck option to rerun configure.
14536 #
14537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14539 # following values.
14540
14541 _ACEOF
14542
14543 # The following way of writing the cache mishandles newlines in values,
14544 # but we know of no workaround that is simple, portable, and efficient.
14545 # So, we kill variables containing newlines.
14546 # Ultrix sh set writes to stderr and can't be redirected directly,
14547 # and sets the high bit in the cache file unless we assign to the vars.
14548 (
14549   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14550     eval ac_val=\$$ac_var
14551     case $ac_val in #(
14552     *${as_nl}*)
14553       case $ac_var in #(
14554       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14556       esac
14557       case $ac_var in #(
14558       _ | IFS | as_nl) ;; #(
14559       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14560       *) { eval $ac_var=; unset $ac_var;} ;;
14561       esac ;;
14562     esac
14563   done
14564
14565   (set) 2>&1 |
14566     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14567     *${as_nl}ac_space=\ *)
14568       # `set' does not quote correctly, so add quotes: double-quote
14569       # substitution turns \\\\ into \\, and sed turns \\ into \.
14570       sed -n \
14571         "s/'/'\\\\''/g;
14572           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14573       ;; #(
14574     *)
14575       # `set' quotes correctly as required by POSIX, so do not add quotes.
14576       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14577       ;;
14578     esac |
14579     sort
14580 ) |
14581   sed '
14582      /^ac_cv_env_/b end
14583      t clear
14584      :clear
14585      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14586      t end
14587      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14588      :end' >>confcache
14589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14590   if test -w "$cache_file"; then
14591     test "x$cache_file" != "x/dev/null" &&
14592       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14593 $as_echo "$as_me: updating cache $cache_file" >&6;}
14594     cat confcache >$cache_file
14595   else
14596     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14598   fi
14599 fi
14600 rm -f confcache
14601
14602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14603 # Let make expand exec_prefix.
14604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14605
14606 # Transform confdefs.h into DEFS.
14607 # Protect against shell expansion while executing Makefile rules.
14608 # Protect against Makefile macro expansion.
14609 #
14610 # If the first sed substitution is executed (which looks for macros that
14611 # take arguments), then branch to the quote section.  Otherwise,
14612 # look for a macro that doesn't take arguments.
14613 ac_script='
14614 :mline
14615 /\\$/{
14616  N
14617  s,\\\n,,
14618  b mline
14619 }
14620 t clear
14621 :clear
14622 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14623 t quote
14624 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14625 t quote
14626 b any
14627 :quote
14628 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14629 s/\[/\\&/g
14630 s/\]/\\&/g
14631 s/\$/$$/g
14632 H
14633 :any
14634 ${
14635         g
14636         s/^\n//
14637         s/\n/ /g
14638         p
14639 }
14640 '
14641 DEFS=`sed -n "$ac_script" confdefs.h`
14642
14643
14644 ac_libobjs=
14645 ac_ltlibobjs=
14646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14647   # 1. Remove the extension, and $U if already installed.
14648   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14649   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14650   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14651   #    will be set to the directory where LIBOBJS objects are built.
14652   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14653   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14654 done
14655 LIBOBJS=$ac_libobjs
14656
14657 LTLIBOBJS=$ac_ltlibobjs
14658
14659
14660
14661 : ${CONFIG_STATUS=./config.status}
14662 ac_write_fail=0
14663 ac_clean_files_save=$ac_clean_files
14664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14667 as_write_fail=0
14668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14669 #! $SHELL
14670 # Generated by $as_me.
14671 # Run this file to recreate the current configuration.
14672 # Compiler output produced by configure, useful for debugging
14673 # configure, is in config.log if it exists.
14674
14675 debug=false
14676 ac_cs_recheck=false
14677 ac_cs_silent=false
14678
14679 SHELL=\${CONFIG_SHELL-$SHELL}
14680 export SHELL
14681 _ASEOF
14682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14683 ## -------------------- ##
14684 ## M4sh Initialization. ##
14685 ## -------------------- ##
14686
14687 # Be more Bourne compatible
14688 DUALCASE=1; export DUALCASE # for MKS sh
14689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14690   emulate sh
14691   NULLCMD=:
14692   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14693   # is contrary to our usage.  Disable this feature.
14694   alias -g '${1+"$@"}'='"$@"'
14695   setopt NO_GLOB_SUBST
14696 else
14697   case `(set -o) 2>/dev/null` in #(
14698   *posix*) :
14699     set -o posix ;; #(
14700   *) :
14701      ;;
14702 esac
14703 fi
14704
14705
14706 as_nl='
14707 '
14708 export as_nl
14709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14713 # Prefer a ksh shell builtin over an external printf program on Solaris,
14714 # but without wasting forks for bash or zsh.
14715 if test -z "$BASH_VERSION$ZSH_VERSION" \
14716     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14717   as_echo='print -r --'
14718   as_echo_n='print -rn --'
14719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14720   as_echo='printf %s\n'
14721   as_echo_n='printf %s'
14722 else
14723   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14724     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14725     as_echo_n='/usr/ucb/echo -n'
14726   else
14727     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14728     as_echo_n_body='eval
14729       arg=$1;
14730       case $arg in #(
14731       *"$as_nl"*)
14732         expr "X$arg" : "X\\(.*\\)$as_nl";
14733         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14734       esac;
14735       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14736     '
14737     export as_echo_n_body
14738     as_echo_n='sh -c $as_echo_n_body as_echo'
14739   fi
14740   export as_echo_body
14741   as_echo='sh -c $as_echo_body as_echo'
14742 fi
14743
14744 # The user is always right.
14745 if test "${PATH_SEPARATOR+set}" != set; then
14746   PATH_SEPARATOR=:
14747   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14748     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14749       PATH_SEPARATOR=';'
14750   }
14751 fi
14752
14753
14754 # IFS
14755 # We need space, tab and new line, in precisely that order.  Quoting is
14756 # there to prevent editors from complaining about space-tab.
14757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14758 # splitting by setting IFS to empty value.)
14759 IFS=" ""        $as_nl"
14760
14761 # Find who we are.  Look in the path if we contain no directory separator.
14762 case $0 in #((
14763   *[\\/]* ) as_myself=$0 ;;
14764   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14766 do
14767   IFS=$as_save_IFS
14768   test -z "$as_dir" && as_dir=.
14769     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14770   done
14771 IFS=$as_save_IFS
14772
14773      ;;
14774 esac
14775 # We did not find ourselves, most probably we were run as `sh COMMAND'
14776 # in which case we are not to be found in the path.
14777 if test "x$as_myself" = x; then
14778   as_myself=$0
14779 fi
14780 if test ! -f "$as_myself"; then
14781   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14782   exit 1
14783 fi
14784
14785 # Unset variables that we do not need and which cause bugs (e.g. in
14786 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14787 # suppresses any "Segmentation fault" message there.  '((' could
14788 # trigger a bug in pdksh 5.2.14.
14789 for as_var in BASH_ENV ENV MAIL MAILPATH
14790 do eval test x\${$as_var+set} = xset \
14791   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14792 done
14793 PS1='$ '
14794 PS2='> '
14795 PS4='+ '
14796
14797 # NLS nuisances.
14798 LC_ALL=C
14799 export LC_ALL
14800 LANGUAGE=C
14801 export LANGUAGE
14802
14803 # CDPATH.
14804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14805
14806
14807 # as_fn_error ERROR [LINENO LOG_FD]
14808 # ---------------------------------
14809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14811 # script with status $?, using 1 if that was 0.
14812 as_fn_error ()
14813 {
14814   as_status=$?; test $as_status -eq 0 && as_status=1
14815   if test "$3"; then
14816     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14817     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14818   fi
14819   $as_echo "$as_me: error: $1" >&2
14820   as_fn_exit $as_status
14821 } # as_fn_error
14822
14823
14824 # as_fn_set_status STATUS
14825 # -----------------------
14826 # Set $? to STATUS, without forking.
14827 as_fn_set_status ()
14828 {
14829   return $1
14830 } # as_fn_set_status
14831
14832 # as_fn_exit STATUS
14833 # -----------------
14834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14835 as_fn_exit ()
14836 {
14837   set +e
14838   as_fn_set_status $1
14839   exit $1
14840 } # as_fn_exit
14841
14842 # as_fn_unset VAR
14843 # ---------------
14844 # Portably unset VAR.
14845 as_fn_unset ()
14846 {
14847   { eval $1=; unset $1;}
14848 }
14849 as_unset=as_fn_unset
14850 # as_fn_append VAR VALUE
14851 # ----------------------
14852 # Append the text in VALUE to the end of the definition contained in VAR. Take
14853 # advantage of any shell optimizations that allow amortized linear growth over
14854 # repeated appends, instead of the typical quadratic growth present in naive
14855 # implementations.
14856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14857   eval 'as_fn_append ()
14858   {
14859     eval $1+=\$2
14860   }'
14861 else
14862   as_fn_append ()
14863   {
14864     eval $1=\$$1\$2
14865   }
14866 fi # as_fn_append
14867
14868 # as_fn_arith ARG...
14869 # ------------------
14870 # Perform arithmetic evaluation on the ARGs, and store the result in the
14871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14872 # must be portable across $(()) and expr.
14873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14874   eval 'as_fn_arith ()
14875   {
14876     as_val=$(( $* ))
14877   }'
14878 else
14879   as_fn_arith ()
14880   {
14881     as_val=`expr "$@" || test $? -eq 1`
14882   }
14883 fi # as_fn_arith
14884
14885
14886 if expr a : '\(a\)' >/dev/null 2>&1 &&
14887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14888   as_expr=expr
14889 else
14890   as_expr=false
14891 fi
14892
14893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14894   as_basename=basename
14895 else
14896   as_basename=false
14897 fi
14898
14899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14900   as_dirname=dirname
14901 else
14902   as_dirname=false
14903 fi
14904
14905 as_me=`$as_basename -- "$0" ||
14906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14907          X"$0" : 'X\(//\)$' \| \
14908          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14909 $as_echo X/"$0" |
14910     sed '/^.*\/\([^/][^/]*\)\/*$/{
14911             s//\1/
14912             q
14913           }
14914           /^X\/\(\/\/\)$/{
14915             s//\1/
14916             q
14917           }
14918           /^X\/\(\/\).*/{
14919             s//\1/
14920             q
14921           }
14922           s/.*/./; q'`
14923
14924 # Avoid depending upon Character Ranges.
14925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14928 as_cr_digits='0123456789'
14929 as_cr_alnum=$as_cr_Letters$as_cr_digits
14930
14931 ECHO_C= ECHO_N= ECHO_T=
14932 case `echo -n x` in #(((((
14933 -n*)
14934   case `echo 'xy\c'` in
14935   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14936   xy)  ECHO_C='\c';;
14937   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14938        ECHO_T=' ';;
14939   esac;;
14940 *)
14941   ECHO_N='-n';;
14942 esac
14943
14944 rm -f conf$$ conf$$.exe conf$$.file
14945 if test -d conf$$.dir; then
14946   rm -f conf$$.dir/conf$$.file
14947 else
14948   rm -f conf$$.dir
14949   mkdir conf$$.dir 2>/dev/null
14950 fi
14951 if (echo >conf$$.file) 2>/dev/null; then
14952   if ln -s conf$$.file conf$$ 2>/dev/null; then
14953     as_ln_s='ln -s'
14954     # ... but there are two gotchas:
14955     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14956     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14957     # In both cases, we have to default to `cp -p'.
14958     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14959       as_ln_s='cp -p'
14960   elif ln conf$$.file conf$$ 2>/dev/null; then
14961     as_ln_s=ln
14962   else
14963     as_ln_s='cp -p'
14964   fi
14965 else
14966   as_ln_s='cp -p'
14967 fi
14968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14969 rmdir conf$$.dir 2>/dev/null
14970
14971
14972 # as_fn_mkdir_p
14973 # -------------
14974 # Create "$as_dir" as a directory, including parents if necessary.
14975 as_fn_mkdir_p ()
14976 {
14977
14978   case $as_dir in #(
14979   -*) as_dir=./$as_dir;;
14980   esac
14981   test -d "$as_dir" || eval $as_mkdir_p || {
14982     as_dirs=
14983     while :; do
14984       case $as_dir in #(
14985       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14986       *) as_qdir=$as_dir;;
14987       esac
14988       as_dirs="'$as_qdir' $as_dirs"
14989       as_dir=`$as_dirname -- "$as_dir" ||
14990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14991          X"$as_dir" : 'X\(//\)[^/]' \| \
14992          X"$as_dir" : 'X\(//\)$' \| \
14993          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14994 $as_echo X"$as_dir" |
14995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14996             s//\1/
14997             q
14998           }
14999           /^X\(\/\/\)[^/].*/{
15000             s//\1/
15001             q
15002           }
15003           /^X\(\/\/\)$/{
15004             s//\1/
15005             q
15006           }
15007           /^X\(\/\).*/{
15008             s//\1/
15009             q
15010           }
15011           s/.*/./; q'`
15012       test -d "$as_dir" && break
15013     done
15014     test -z "$as_dirs" || eval "mkdir $as_dirs"
15015   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15016
15017
15018 } # as_fn_mkdir_p
15019 if mkdir -p . 2>/dev/null; then
15020   as_mkdir_p='mkdir -p "$as_dir"'
15021 else
15022   test -d ./-p && rmdir ./-p
15023   as_mkdir_p=false
15024 fi
15025
15026 if test -x / >/dev/null 2>&1; then
15027   as_test_x='test -x'
15028 else
15029   if ls -dL / >/dev/null 2>&1; then
15030     as_ls_L_option=L
15031   else
15032     as_ls_L_option=
15033   fi
15034   as_test_x='
15035     eval sh -c '\''
15036       if test -d "$1"; then
15037         test -d "$1/.";
15038       else
15039         case $1 in #(
15040         -*)set "./$1";;
15041         esac;
15042         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15043         ???[sx]*):;;*)false;;esac;fi
15044     '\'' sh
15045   '
15046 fi
15047 as_executable_p=$as_test_x
15048
15049 # Sed expression to map a string onto a valid CPP name.
15050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15051
15052 # Sed expression to map a string onto a valid variable name.
15053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15054
15055
15056 exec 6>&1
15057 ## ----------------------------------- ##
15058 ## Main body of $CONFIG_STATUS script. ##
15059 ## ----------------------------------- ##
15060 _ASEOF
15061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15062
15063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064 # Save the log message, to keep $0 and so on meaningful, and to
15065 # report actual input values of CONFIG_FILES etc. instead of their
15066 # values after options handling.
15067 ac_log="
15068 This file was extended by $as_me, which was
15069 generated by GNU Autoconf 2.64.  Invocation command line was
15070
15071   CONFIG_FILES    = $CONFIG_FILES
15072   CONFIG_HEADERS  = $CONFIG_HEADERS
15073   CONFIG_LINKS    = $CONFIG_LINKS
15074   CONFIG_COMMANDS = $CONFIG_COMMANDS
15075   $ $0 $@
15076
15077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15078 "
15079
15080 _ACEOF
15081
15082 case $ac_config_files in *"
15083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15084 esac
15085
15086
15087
15088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15089 # Files that config.status was made for.
15090 config_files="$ac_config_files"
15091
15092 _ACEOF
15093
15094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095 ac_cs_usage="\
15096 \`$as_me' instantiates files and other configuration actions
15097 from templates according to the current configuration.  Unless the files
15098 and actions are specified as TAGs, all are instantiated by default.
15099
15100 Usage: $0 [OPTION]... [TAG]...
15101
15102   -h, --help       print this help, then exit
15103   -V, --version    print version number and configuration settings, then exit
15104   -q, --quiet, --silent
15105                    do not print progress messages
15106   -d, --debug      don't remove temporary files
15107       --recheck    update $as_me by reconfiguring in the same conditions
15108       --file=FILE[:TEMPLATE]
15109                    instantiate the configuration file FILE
15110
15111 Configuration files:
15112 $config_files
15113
15114 Report bugs to the package provider."
15115
15116 _ACEOF
15117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 ac_cs_version="\\
15119 config.status
15120 configured by $0, generated by GNU Autoconf 2.64,
15121   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15122
15123 Copyright (C) 2009 Free Software Foundation, Inc.
15124 This config.status script is free software; the Free Software Foundation
15125 gives unlimited permission to copy, distribute and modify it."
15126
15127 ac_pwd='$ac_pwd'
15128 srcdir='$srcdir'
15129 INSTALL='$INSTALL'
15130 AWK='$AWK'
15131 test -n "\$AWK" || AWK=awk
15132 _ACEOF
15133
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 # The default lists apply if the user does not specify any file.
15136 ac_need_defaults=:
15137 while test $# != 0
15138 do
15139   case $1 in
15140   --*=*)
15141     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15142     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15143     ac_shift=:
15144     ;;
15145   *)
15146     ac_option=$1
15147     ac_optarg=$2
15148     ac_shift=shift
15149     ;;
15150   esac
15151
15152   case $ac_option in
15153   # Handling of the options.
15154   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15155     ac_cs_recheck=: ;;
15156   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15157     $as_echo "$ac_cs_version"; exit ;;
15158   --debug | --debu | --deb | --de | --d | -d )
15159     debug=: ;;
15160   --file | --fil | --fi | --f )
15161     $ac_shift
15162     case $ac_optarg in
15163     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15164     esac
15165     as_fn_append CONFIG_FILES " '$ac_optarg'"
15166     ac_need_defaults=false;;
15167   --he | --h |  --help | --hel | -h )
15168     $as_echo "$ac_cs_usage"; exit ;;
15169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15170   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15171     ac_cs_silent=: ;;
15172
15173   # This is an error.
15174   -*) as_fn_error "unrecognized option: \`$1'
15175 Try \`$0 --help' for more information." ;;
15176
15177   *) as_fn_append ac_config_targets " $1"
15178      ac_need_defaults=false ;;
15179
15180   esac
15181   shift
15182 done
15183
15184 ac_configure_extra_args=
15185
15186 if $ac_cs_silent; then
15187   exec 6>/dev/null
15188   ac_configure_extra_args="$ac_configure_extra_args --silent"
15189 fi
15190
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 if \$ac_cs_recheck; then
15194   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15195   shift
15196   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15197   CONFIG_SHELL='$SHELL'
15198   export CONFIG_SHELL
15199   exec "\$@"
15200 fi
15201
15202 _ACEOF
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 exec 5>>config.log
15205 {
15206   echo
15207   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15208 ## Running $as_me. ##
15209 _ASBOX
15210   $as_echo "$ac_log"
15211 } >&5
15212
15213 _ACEOF
15214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15215 #
15216 # INIT-COMMANDS
15217 #
15218 extrasub_build="$extrasub_build"
15219    extrasub_host="$extrasub_host"
15220    extrasub_target="$extrasub_target"
15221
15222 _ACEOF
15223
15224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15225
15226 # Handling of arguments.
15227 for ac_config_target in $ac_config_targets
15228 do
15229   case $ac_config_target in
15230     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15231
15232   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15233   esac
15234 done
15235
15236
15237 # If the user did not use the arguments to specify the items to instantiate,
15238 # then the envvar interface is used.  Set only those that are not.
15239 # We use the long form for the default assignment because of an extremely
15240 # bizarre bug on SunOS 4.1.3.
15241 if $ac_need_defaults; then
15242   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15243 fi
15244
15245 # Have a temporary directory for convenience.  Make it in the build tree
15246 # simply because there is no reason against having it here, and in addition,
15247 # creating and moving files from /tmp can sometimes cause problems.
15248 # Hook for its removal unless debugging.
15249 # Note that there is a small window in which the directory will not be cleaned:
15250 # after its creation but before its name has been assigned to `$tmp'.
15251 $debug ||
15252 {
15253   tmp=
15254   trap 'exit_status=$?
15255   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15256 ' 0
15257   trap 'as_fn_exit 1' 1 2 13 15
15258 }
15259 # Create a (secure) tmp directory for tmp files.
15260
15261 {
15262   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15263   test -n "$tmp" && test -d "$tmp"
15264 }  ||
15265 {
15266   tmp=./conf$$-$RANDOM
15267   (umask 077 && mkdir "$tmp")
15268 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15269
15270 # Set up the scripts for CONFIG_FILES section.
15271 # No need to generate them if there are no CONFIG_FILES.
15272 # This happens for instance with `./config.status config.h'.
15273 if test -n "$CONFIG_FILES"; then
15274
15275 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15276   ac_cs_awk_getline=:
15277   ac_cs_awk_pipe_init=
15278   ac_cs_awk_read_file='
15279       while ((getline aline < (F[key])) > 0)
15280         print(aline)
15281       close(F[key])'
15282   ac_cs_awk_pipe_fini=
15283 else
15284   ac_cs_awk_getline=false
15285   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15286   ac_cs_awk_read_file='
15287       print "|#_!!_#|"
15288       print "cat " F[key] " &&"
15289       '$ac_cs_awk_pipe_init
15290   # The final `:' finishes the AND list.
15291   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15292 fi
15293 ac_cr=`echo X | tr X '\015'`
15294 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15295 # But we know of no other shell where ac_cr would be empty at this
15296 # point, so we can use a bashism as a fallback.
15297 if test "x$ac_cr" = x; then
15298   eval ac_cr=\$\'\\r\'
15299 fi
15300 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15301 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15302   ac_cs_awk_cr='\r'
15303 else
15304   ac_cs_awk_cr=$ac_cr
15305 fi
15306
15307 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15308 _ACEOF
15309
15310 # Create commands to substitute file output variables.
15311 {
15312   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15313   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15314   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15315   echo "_ACAWK" &&
15316   echo "_ACEOF"
15317 } >conf$$files.sh &&
15318 . ./conf$$files.sh ||
15319   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15320 rm -f conf$$files.sh
15321
15322 {
15323   echo "cat >conf$$subs.awk <<_ACEOF" &&
15324   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15325   echo "_ACEOF"
15326 } >conf$$subs.sh ||
15327   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15329 ac_delim='%!_!# '
15330 for ac_last_try in false false false false false :; do
15331   . ./conf$$subs.sh ||
15332     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15333
15334   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15335   if test $ac_delim_n = $ac_delim_num; then
15336     break
15337   elif $ac_last_try; then
15338     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15339   else
15340     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15341   fi
15342 done
15343 rm -f conf$$subs.sh
15344
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15347 _ACEOF
15348 sed -n '
15349 h
15350 s/^/S["/; s/!.*/"]=/
15351 p
15352 g
15353 s/^[^!]*!//
15354 :repl
15355 t repl
15356 s/'"$ac_delim"'$//
15357 t delim
15358 :nl
15359 h
15360 s/\(.\{148\}\).*/\1/
15361 t more1
15362 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15363 p
15364 n
15365 b repl
15366 :more1
15367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15368 p
15369 g
15370 s/.\{148\}//
15371 t nl
15372 :delim
15373 h
15374 s/\(.\{148\}\).*/\1/
15375 t more2
15376 s/["\\]/\\&/g; s/^/"/; s/$/"/
15377 p
15378 b
15379 :more2
15380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15381 p
15382 g
15383 s/.\{148\}//
15384 t delim
15385 ' <conf$$subs.awk | sed '
15386 /^[^""]/{
15387   N
15388   s/\n//
15389 }
15390 ' >>$CONFIG_STATUS || ac_write_fail=1
15391 rm -f conf$$subs.awk
15392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15393 _ACAWK
15394 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15395   for (key in S) S_is_set[key] = 1
15396   FS = "\a"
15397   \$ac_cs_awk_pipe_init
15398 }
15399 {
15400   line = $ 0
15401   nfields = split(line, field, "@")
15402   substed = 0
15403   len = length(field[1])
15404   for (i = 2; i < nfields; i++) {
15405     key = field[i]
15406     keylen = length(key)
15407     if (S_is_set[key]) {
15408       value = S[key]
15409       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15410       len += length(value) + length(field[++i])
15411       substed = 1
15412     } else
15413       len += 1 + keylen
15414   }
15415   if (nfields == 3 && !substed) {
15416     key = field[2]
15417     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15418       \$ac_cs_awk_read_file
15419       next
15420     }
15421   }
15422   print line
15423 }
15424 \$ac_cs_awk_pipe_fini
15425 _ACAWK
15426 _ACEOF
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15429   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15430 else
15431   cat
15432 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15433   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15434 _ACEOF
15435
15436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15438 # trailing colons and then remove the whole line if VPATH becomes empty
15439 # (actually we leave an empty line to preserve line numbers).
15440 if test "x$srcdir" = x.; then
15441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15442 s/:*\$(srcdir):*/:/
15443 s/:*\${srcdir}:*/:/
15444 s/:*@srcdir@:*/:/
15445 s/^\([^=]*=[     ]*\):*/\1/
15446 s/:*$//
15447 s/^[^=]*=[       ]*$//
15448 }'
15449 fi
15450
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 fi # test -n "$CONFIG_FILES"
15453
15454
15455 eval set X "  :F $CONFIG_FILES      "
15456 shift
15457 for ac_tag
15458 do
15459   case $ac_tag in
15460   :[FHLC]) ac_mode=$ac_tag; continue;;
15461   esac
15462   case $ac_mode$ac_tag in
15463   :[FHL]*:*);;
15464   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15465   :[FH]-) ac_tag=-:-;;
15466   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15467   esac
15468   ac_save_IFS=$IFS
15469   IFS=:
15470   set x $ac_tag
15471   IFS=$ac_save_IFS
15472   shift
15473   ac_file=$1
15474   shift
15475
15476   case $ac_mode in
15477   :L) ac_source=$1;;
15478   :[FH])
15479     ac_file_inputs=
15480     for ac_f
15481     do
15482       case $ac_f in
15483       -) ac_f="$tmp/stdin";;
15484       *) # Look for the file first in the build tree, then in the source tree
15485          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15486          # because $ac_f cannot contain `:'.
15487          test -f "$ac_f" ||
15488            case $ac_f in
15489            [\\/$]*) false;;
15490            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15491            esac ||
15492            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15493       esac
15494       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15495       as_fn_append ac_file_inputs " '$ac_f'"
15496     done
15497
15498     # Let's still pretend it is `configure' which instantiates (i.e., don't
15499     # use $as_me), people would be surprised to read:
15500     #    /* config.h.  Generated by config.status.  */
15501     configure_input='Generated from '`
15502           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15503         `' by configure.'
15504     if test x"$ac_file" != x-; then
15505       configure_input="$ac_file.  $configure_input"
15506       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15507 $as_echo "$as_me: creating $ac_file" >&6;}
15508     fi
15509     # Neutralize special characters interpreted by sed in replacement strings.
15510     case $configure_input in #(
15511     *\&* | *\|* | *\\* )
15512        ac_sed_conf_input=`$as_echo "$configure_input" |
15513        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15514     *) ac_sed_conf_input=$configure_input;;
15515     esac
15516
15517     case $ac_tag in
15518     *:-:* | *:-) cat >"$tmp/stdin" \
15519       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15520     esac
15521     ;;
15522   esac
15523
15524   ac_dir=`$as_dirname -- "$ac_file" ||
15525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526          X"$ac_file" : 'X\(//\)[^/]' \| \
15527          X"$ac_file" : 'X\(//\)$' \| \
15528          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15529 $as_echo X"$ac_file" |
15530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15531             s//\1/
15532             q
15533           }
15534           /^X\(\/\/\)[^/].*/{
15535             s//\1/
15536             q
15537           }
15538           /^X\(\/\/\)$/{
15539             s//\1/
15540             q
15541           }
15542           /^X\(\/\).*/{
15543             s//\1/
15544             q
15545           }
15546           s/.*/./; q'`
15547   as_dir="$ac_dir"; as_fn_mkdir_p
15548   ac_builddir=.
15549
15550 case "$ac_dir" in
15551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15552 *)
15553   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15554   # A ".." for each directory in $ac_dir_suffix.
15555   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15556   case $ac_top_builddir_sub in
15557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15559   esac ;;
15560 esac
15561 ac_abs_top_builddir=$ac_pwd
15562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15563 # for backward compatibility:
15564 ac_top_builddir=$ac_top_build_prefix
15565
15566 case $srcdir in
15567   .)  # We are building in place.
15568     ac_srcdir=.
15569     ac_top_srcdir=$ac_top_builddir_sub
15570     ac_abs_top_srcdir=$ac_pwd ;;
15571   [\\/]* | ?:[\\/]* )  # Absolute name.
15572     ac_srcdir=$srcdir$ac_dir_suffix;
15573     ac_top_srcdir=$srcdir
15574     ac_abs_top_srcdir=$srcdir ;;
15575   *) # Relative name.
15576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15577     ac_top_srcdir=$ac_top_build_prefix$srcdir
15578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15579 esac
15580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15581
15582
15583   case $ac_mode in
15584   :F)
15585   #
15586   # CONFIG_FILE
15587   #
15588
15589   case $INSTALL in
15590   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15591   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15592   esac
15593 _ACEOF
15594
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596 # If the template does not know about datarootdir, expand it.
15597 # FIXME: This hack should be removed a few years after 2.60.
15598 ac_datarootdir_hack=; ac_datarootdir_seen=
15599 ac_sed_dataroot='
15600 /datarootdir/ {
15601   p
15602   q
15603 }
15604 /@datadir@/p
15605 /@docdir@/p
15606 /@infodir@/p
15607 /@localedir@/p
15608 /@mandir@/p'
15609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15610 *datarootdir*) ac_datarootdir_seen=yes;;
15611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15612   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15614 _ACEOF
15615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616   ac_datarootdir_hack='
15617   s&@datadir@&$datadir&g
15618   s&@docdir@&$docdir&g
15619   s&@infodir@&$infodir&g
15620   s&@localedir@&$localedir&g
15621   s&@mandir@&$mandir&g
15622   s&\\\${datarootdir}&$datarootdir&g' ;;
15623 esac
15624 _ACEOF
15625
15626 # Neutralize VPATH when `$srcdir' = `.'.
15627 # Shell code in configure.ac might set extrasub.
15628 # FIXME: do we really want to maintain this feature?
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 ac_sed_extra="$ac_vpsub
15631 $extrasub
15632 _ACEOF
15633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634 :t
15635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15636 s|@configure_input@|$ac_sed_conf_input|;t t
15637 s&@top_builddir@&$ac_top_builddir_sub&;t t
15638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15639 s&@srcdir@&$ac_srcdir&;t t
15640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15641 s&@top_srcdir@&$ac_top_srcdir&;t t
15642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15643 s&@builddir@&$ac_builddir&;t t
15644 s&@abs_builddir@&$ac_abs_builddir&;t t
15645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15646 s&@INSTALL@&$ac_INSTALL&;t t
15647 $ac_datarootdir_hack
15648 "
15649 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15650 if $ac_cs_awk_getline; then
15651   $AWK -f "$tmp/subs.awk"
15652 else
15653   $AWK -f "$tmp/subs.awk" | $SHELL
15654 fi >$tmp/out \
15655   || as_fn_error "could not create $ac_file" "$LINENO" 5
15656
15657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15658   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15659   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15661 which seems to be undefined.  Please make sure it is defined." >&5
15662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15663 which seems to be undefined.  Please make sure it is defined." >&2;}
15664
15665   rm -f "$tmp/stdin"
15666   case $ac_file in
15667   -) cat "$tmp/out" && rm -f "$tmp/out";;
15668   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15669   esac \
15670   || as_fn_error "could not create $ac_file" "$LINENO" 5
15671  ;;
15672
15673
15674
15675   esac
15676
15677
15678   case $ac_file$ac_mode in
15679     "Makefile":F) sed "$extrasub_build" Makefile |
15680    sed "$extrasub_host" |
15681    sed "$extrasub_target" > mf$$
15682    mv -f mf$$ Makefile ;;
15683
15684   esac
15685 done # for ac_tag
15686
15687
15688 as_fn_exit 0
15689 _ACEOF
15690 ac_clean_files=$ac_clean_files_save
15691
15692 test $ac_write_fail = 0 ||
15693   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15694
15695
15696 # configure is writing to config.log, and then calls config.status.
15697 # config.status does its own redirection, appending to config.log.
15698 # Unfortunately, on DOS this fails, as config.log is still kept open
15699 # by configure, so config.status won't be able to write to it; its
15700 # output is simply discarded.  So we exec the FD to /dev/null,
15701 # effectively closing config.log, so it can be properly (re)opened and
15702 # appended to by config.status.  When coming back to configure, we
15703 # need to make the FD available again.
15704 if test "$no_create" != yes; then
15705   ac_cs_success=:
15706   ac_config_status_args=
15707   test "$silent" = yes &&
15708     ac_config_status_args="$ac_config_status_args --quiet"
15709   exec 5>/dev/null
15710   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15711   exec 5>>config.log
15712   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15713   # would make configure fail if this is the last instruction.
15714   $ac_cs_success || as_fn_exit $?
15715 fi
15716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15719 fi
15720