OSDN Git Service

2011-03-25 Jonathan Wakely <jwakely.gcc@gmail.com>
[pf3gnuchains/gcc-fork.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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
593 NM
594 LIPO
595 LD
596 DLLTOOL
597 AS
598 AR
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
603 LEX
604 M4
605 BISON
606 YACC
607 config_shell
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
674 AWK
675 SED
676 LN_S
677 LN
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_ld
745 enable_libquadmath
746 enable_libquadmath_support
747 enable_libada
748 enable_libssp
749 enable_build_with_cxx
750 with_mpc
751 with_mpc_include
752 with_mpc_lib
753 with_mpfr_dir
754 with_mpfr
755 with_mpfr_include
756 with_mpfr_lib
757 with_gmp_dir
758 with_gmp
759 with_gmp_include
760 with_gmp_lib
761 with_host_libstdcxx
762 with_stage1_ldflags
763 with_stage1_libs
764 with_boot_libs
765 with_boot_ldflags
766 with_ppl
767 with_ppl_include
768 with_ppl_lib
769 enable_ppl_version_check
770 with_cloog
771 with_cloog_include
772 with_cloog_lib
773 enable_cloog_backend
774 enable_cloog_version_check
775 enable_lto
776 enable_stage1_languages
777 enable_objc_gc
778 with_build_sysroot
779 with_debug_prefix_map
780 enable_bootstrap
781 with_build_config
782 enable_serial_configure
783 with_build_time_tools
784 enable_maintainer_mode
785 enable_stage1_checking
786 enable_werror
787 '
788       ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CXX
797 CXXFLAGS
798 CCC
799 build_configargs
800 host_configargs
801 target_configargs
802 AR
803 AS
804 DLLTOOL
805 LD
806 LIPO
807 NM
808 RANLIB
809 STRIP
810 WINDRES
811 WINDMC
812 OBJCOPY
813 OBJDUMP
814 CC_FOR_TARGET
815 CXX_FOR_TARGET
816 GCC_FOR_TARGET
817 GCJ_FOR_TARGET
818 GFORTRAN_FOR_TARGET
819 GOC_FOR_TARGET
820 AR_FOR_TARGET
821 AS_FOR_TARGET
822 DLLTOOL_FOR_TARGET
823 LD_FOR_TARGET
824 LIPO_FOR_TARGET
825 NM_FOR_TARGET
826 OBJDUMP_FOR_TARGET
827 RANLIB_FOR_TARGET
828 STRIP_FOR_TARGET
829 WINDRES_FOR_TARGET
830 WINDMC_FOR_TARGET'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965       as_fn_error "invalid feature name: $ac_useropt"
966     ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969       *"
970 "enable_$ac_useropt"
971 "*) ;;
972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973          ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976
977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979   | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983   | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985
986   -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989
990   -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996
997   -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999   -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001
1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005   | --ht=*)
1006     htmldir=$ac_optarg ;;
1007
1008   -includedir | --includedir | --includedi | --included | --include \
1009   | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014
1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019
1020   -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024
1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026   | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029   | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031
1032   -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036
1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
1038   | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043
1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048
1049   -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052
1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054   | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056
1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060
1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063   | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069
1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074
1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076   | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081
1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083   | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088
1089   -program-transform-name | --program-transform-name \
1090   | --program-transform-nam | --program-transform-na \
1091   | --program-transform-n | --program-transform- \
1092   | --program-transform | --program-transfor \
1093   | --program-transfo | --program-transf \
1094   | --program-trans | --program-tran \
1095   | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097   -program-transform-name=* | --program-transform-name=* \
1098   | --program-transform-nam=* | --program-transform-na=* \
1099   | --program-transform-n=* | --program-transform-=* \
1100   | --program-transform=* | --program-transfor=* \
1101   | --program-transfo=* | --program-transf=* \
1102   | --program-trans=* | --program-tran=* \
1103   | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105
1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110
1111   -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115
1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117   | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119
1120   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121     ac_prev=sbindir ;;
1122   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123   | --sbi=* | --sb=*)
1124     sbindir=$ac_optarg ;;
1125
1126   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128   | --sharedst | --shareds | --shared | --share | --shar \
1129   | --sha | --sh)
1130     ac_prev=sharedstatedir ;;
1131   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134   | --sha=* | --sh=*)
1135     sharedstatedir=$ac_optarg ;;
1136
1137   -site | --site | --sit)
1138     ac_prev=site ;;
1139   -site=* | --site=* | --sit=*)
1140     site=$ac_optarg ;;
1141
1142   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143     ac_prev=srcdir ;;
1144   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145     srcdir=$ac_optarg ;;
1146
1147   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148   | --syscon | --sysco | --sysc | --sys | --sy)
1149     ac_prev=sysconfdir ;;
1150   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152     sysconfdir=$ac_optarg ;;
1153
1154   -target | --target | --targe | --targ | --tar | --ta | --t)
1155     ac_prev=target_alias ;;
1156   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157     target_alias=$ac_optarg ;;
1158
1159   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160     verbose=yes ;;
1161
1162   -version | --version | --versio | --versi | --vers | -V)
1163     ac_init_version=: ;;
1164
1165   -with-* | --with-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=\$ac_optarg ;;
1180
1181   -without-* | --without-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=no ;;
1196
1197   --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200
1201   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202   | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207
1208   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214
1215   -*) as_fn_error "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information."
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     case $ac_envvar in #(
1223       '' | [0-9]* | *[!_$as_cr_alnum]* )
1224       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225     esac
1226     eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228
1229   *)
1230     # FIXME: should be removed in autoconf 3.0.
1231     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235     ;;
1236
1237   esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242   as_fn_error "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250   esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255                 datadir sysconfdir sharedstatedir localstatedir includedir \
1256                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257                 libdir localedir mandir
1258 do
1259   eval ac_val=\$$ac_var
1260   # Remove trailing slashes.
1261   case $ac_val in
1262     */ )
1263       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264       eval $ac_var=\$ac_val;;
1265   esac
1266   # Be sure to have absolute directory names.
1267   case $ac_val in
1268     [\\/$]* | ?:[\\/]* )  continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270   esac
1271   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283   if test "x$build_alias" = x; then
1284     cross_compiling=maybe
1285     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1286     If a cross compiler is detected then cross compile mode will be used." >&2
1287   elif test "x$build_alias" != "x$host_alias"; then
1288     cross_compiling=yes
1289   fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301   as_fn_error "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303   as_fn_error "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308   ac_srcdir_defaulted=yes
1309   # Try the directory containing this script, then the parent directory.
1310   ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312          X"$as_myself" : 'X\(//\)[^/]' \| \
1313          X"$as_myself" : 'X\(//\)$' \| \
1314          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317             s//\1/
1318             q
1319           }
1320           /^X\(\/\/\)[^/].*/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\).*/{
1329             s//\1/
1330             q
1331           }
1332           s/.*/./; q'`
1333   srcdir=$ac_confdir
1334   if test ! -r "$srcdir/$ac_unique_file"; then
1335     srcdir=..
1336   fi
1337 else
1338   ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347         pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350   srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 case $srcdir in
1359   *" "*)
1360     as_fn_error "path to source, $srcdir, contains spaces"
1361     ;;
1362 esac
1363 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures this package to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444   --target=TARGET   configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449
1450   cat <<\_ACEOF
1451
1452 Optional Features:
1453   --disable-option-checking  ignore unrecognized --enable/--with options
1454   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1457   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1458   --disable-libquadmath   do not build libquadmath directory
1459   --disable-libquadmath-support
1460                           disable libquadmath support for Fortran
1461   --enable-libada         build libada directory
1462   --enable-libssp         build libssp directory
1463   --enable-build-with-cxx build with C++ compiler instead of C compiler
1464   --disable-ppl-version-check
1465                           disable check for PPL version
1466   --enable-cloog-backend[=BACKEND]
1467                           set the CLooG BACKEND used to either isl, ppl or
1468                           ppl-legacy (default)
1469   --disable-cloog-version-check
1470                           disable check for CLooG version
1471   --enable-lto            enable link time optimization support
1472   --enable-stage1-languages[=all]
1473                           choose additional languages to build during stage1.
1474                           Mostly useful for compiler development
1475   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1476                           Objective-C runtime
1477   --enable-bootstrap      enable bootstrapping [yes if native build]
1478   --enable-serial-[{host,target,build}-]configure
1479                           force sequential configuration of sub-packages for
1480                           the host, target or build machine, or all
1481                           sub-packages
1482   --enable-maintainer-mode
1483                           enable make rules and dependencies not useful (and
1484                           sometimes confusing) to the casual installer
1485   --enable-stage1-checking[=all]
1486                           choose additional checking for stage1 of the
1487                           compiler
1488   --enable-werror         enable -Werror in bootstrap stage2 and later
1489
1490 Optional Packages:
1491   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1494   --with-mpc=PATH         specify prefix directory for installed MPC package.
1495                           Equivalent to --with-mpc-include=PATH/include plus
1496                           --with-mpc-lib=PATH/lib
1497   --with-mpc-include=PATH specify directory for installed MPC include files
1498   --with-mpc-lib=PATH     specify directory for the installed MPC library
1499   --with-mpfr-dir=PATH    this option has been REMOVED
1500   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1501                           Equivalent to --with-mpfr-include=PATH/include plus
1502                           --with-mpfr-lib=PATH/lib
1503   --with-mpfr-include=PATH
1504                           specify directory for installed MPFR include files
1505   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1506   --with-gmp-dir=PATH     this option has been REMOVED
1507   --with-gmp=PATH         specify prefix directory for the installed GMP
1508                           package. Equivalent to
1509                           --with-gmp-include=PATH/include plus
1510                           --with-gmp-lib=PATH/lib
1511   --with-gmp-include=PATH specify directory for installed GMP include files
1512   --with-gmp-lib=PATH     specify directory for the installed GMP library
1513   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514                           linking with PPL
1515   --with-stage1-ldflags=FLAGS
1516                           linker flags for stage1
1517   --with-stage1-libs=LIBS libraries for stage1
1518   --with-boot-libs=LIBS   libraries for stage2 and later
1519   --with-boot-ldflags=FLAGS
1520                           linker flags for stage2 and later
1521   --with-ppl=PATH         specify prefix directory for the installed PPL
1522                           package. Equivalent to
1523                           --with-ppl-include=PATH/include plus
1524                           --with-ppl-lib=PATH/lib
1525   --with-ppl-include=PATH specify directory for installed PPL include files
1526   --with-ppl-lib=PATH     specify directory for the installed PPL library
1527   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1528                           package. Equivalent to
1529                           --with-cloog-include=PATH/include plus
1530                           --with-cloog-lib=PATH/lib
1531   --with-cloog-include=PATH
1532                           Specify directory for installed CLooG include files
1533   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1534                           library
1535   --with-build-sysroot=SYSROOT
1536                           use sysroot as the system root during the build
1537   --with-debug-prefix-map='A=B C=D ...'
1538                           map A to B, C to D ... in debug information
1539   --with-build-config='NAME NAME2...'
1540                           use config/NAME.mk build configuration
1541   --with-build-time-tools=PATH
1542                           use given path to find target tools during the build
1543
1544 Some influential environment variables:
1545   CC          C compiler command
1546   CFLAGS      C compiler flags
1547   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1548               nonstandard directory <lib dir>
1549   LIBS        libraries to pass to the linker, e.g. -l<library>
1550   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551               you have headers in a nonstandard directory <include dir>
1552   CXX         C++ compiler command
1553   CXXFLAGS    C++ compiler flags
1554   build_configargs
1555               additional configure arguments for build directories
1556   host_configargs
1557               additional configure arguments for host directories
1558   target_configargs
1559               additional configure arguments for target directories
1560   AR          AR for the host
1561   AS          AS for the host
1562   DLLTOOL     DLLTOOL for the host
1563   LD          LD for the host
1564   LIPO        LIPO for the host
1565   NM          NM for the host
1566   RANLIB      RANLIB for the host
1567   STRIP       STRIP for the host
1568   WINDRES     WINDRES for the host
1569   WINDMC      WINDMC for the host
1570   OBJCOPY     OBJCOPY for the host
1571   OBJDUMP     OBJDUMP for the host
1572   CC_FOR_TARGET
1573               CC for the target
1574   CXX_FOR_TARGET
1575               CXX for the target
1576   GCC_FOR_TARGET
1577               GCC for the target
1578   GCJ_FOR_TARGET
1579               GCJ for the target
1580   GFORTRAN_FOR_TARGET
1581               GFORTRAN for the target
1582   GOC_FOR_TARGET
1583               GOC for the target
1584   AR_FOR_TARGET
1585               AR for the target
1586   AS_FOR_TARGET
1587               AS for the target
1588   DLLTOOL_FOR_TARGET
1589               DLLTOOL for the target
1590   LD_FOR_TARGET
1591               LD for the target
1592   LIPO_FOR_TARGET
1593               LIPO for the target
1594   NM_FOR_TARGET
1595               NM for the target
1596   OBJDUMP_FOR_TARGET
1597               OBJDUMP for the target
1598   RANLIB_FOR_TARGET
1599               RANLIB for the target
1600   STRIP_FOR_TARGET
1601               STRIP for the target
1602   WINDRES_FOR_TARGET
1603               WINDRES for the target
1604   WINDMC_FOR_TARGET
1605               WINDMC for the target
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to the package provider.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616   # If there are subdirs, report their specific --help.
1617   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618     test -d "$ac_dir" ||
1619       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620       continue
1621     ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627   # A ".." for each directory in $ac_dir_suffix.
1628   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629   case $ac_top_builddir_sub in
1630   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632   esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640   .)  # We are building in place.
1641     ac_srcdir=.
1642     ac_top_srcdir=$ac_top_builddir_sub
1643     ac_abs_top_srcdir=$ac_pwd ;;
1644   [\\/]* | ?:[\\/]* )  # Absolute name.
1645     ac_srcdir=$srcdir$ac_dir_suffix;
1646     ac_top_srcdir=$srcdir
1647     ac_abs_top_srcdir=$srcdir ;;
1648   *) # Relative name.
1649     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650     ac_top_srcdir=$ac_top_build_prefix$srcdir
1651     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655     cd "$ac_dir" || { ac_status=$?; continue; }
1656     # Check for guested configure.
1657     if test -f "$ac_srcdir/configure.gnu"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660     elif test -f "$ac_srcdir/configure"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure" --help=recursive
1663     else
1664       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665     fi || ac_status=$?
1666     cd "$ac_pwd" || { ac_status=$?; break; }
1667   done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672   cat <<\_ACEOF
1673 configure
1674 generated by GNU Autoconf 2.64
1675
1676 Copyright (C) 2009 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680   exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext
1694   if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_compile") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest.$ac_objext; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718         ac_retval=1
1719 fi
1720   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721   return $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   rm -f conftest.$ac_objext
1732   if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_compile") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && {
1748          test -z "$ac_cxx_werror_flag" ||
1749          test ! -s conftest.err
1750        } && test -s conftest.$ac_objext; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759   return $ac_retval
1760
1761 } # ac_fn_cxx_try_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   rm -f conftest.$ac_objext conftest$ac_exeext
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && {
1786          test -z "$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        } && test -s conftest$ac_exeext && {
1789          test "$cross_compiling" = yes ||
1790          $as_test_x conftest$ac_exeext
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801   # interfere with the next link command; also delete a directory that is
1802   # left behind by Apple's compiler.  We do this before executing the actions.
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805   return $ac_retval
1806
1807 } # ac_fn_c_try_link
1808 cat >config.log <<_ACEOF
1809 This file contains any messages produced by compilers while
1810 running configure, to aid debugging if configure makes a mistake.
1811
1812 It was created by $as_me, which was
1813 generated by GNU Autoconf 2.64.  Invocation command line was
1814
1815   $ $0 $@
1816
1817 _ACEOF
1818 exec 5>>config.log
1819 {
1820 cat <<_ASUNAME
1821 ## --------- ##
1822 ## Platform. ##
1823 ## --------- ##
1824
1825 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1833
1834 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1835 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1836 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1838 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1839 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1840 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1841
1842 _ASUNAME
1843
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849     $as_echo "PATH: $as_dir"
1850   done
1851 IFS=$as_save_IFS
1852
1853 } >&5
1854
1855 cat >&5 <<_ACEOF
1856
1857
1858 ## ----------- ##
1859 ## Core tests. ##
1860 ## ----------- ##
1861
1862 _ACEOF
1863
1864
1865 # Keep a trace of the command line.
1866 # Strip out --no-create and --no-recursion so they do not pile up.
1867 # Strip out --silent because we don't want to record it for future runs.
1868 # Also quote any args containing shell meta-characters.
1869 # Make two passes to allow for proper duplicate-argument suppression.
1870 ac_configure_args=
1871 ac_configure_args0=
1872 ac_configure_args1=
1873 ac_must_keep_next=false
1874 for ac_pass in 1 2
1875 do
1876   for ac_arg
1877   do
1878     case $ac_arg in
1879     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881     | -silent | --silent | --silen | --sile | --sil)
1882       continue ;;
1883     *\'*)
1884       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     esac
1886     case $ac_pass in
1887     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888     2)
1889       as_fn_append ac_configure_args1 " '$ac_arg'"
1890       if test $ac_must_keep_next = true; then
1891         ac_must_keep_next=false # Got value, back to normal.
1892       else
1893         case $ac_arg in
1894           *=* | --config-cache | -C | -disable-* | --disable-* \
1895           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897           | -with-* | --with-* | -without-* | --without-* | --x)
1898             case "$ac_configure_args0 " in
1899               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900             esac
1901             ;;
1902           -* ) ac_must_keep_next=true ;;
1903         esac
1904       fi
1905       as_fn_append ac_configure_args " '$ac_arg'"
1906       ;;
1907     esac
1908   done
1909 done
1910 { ac_configure_args0=; unset ac_configure_args0;}
1911 { ac_configure_args1=; unset ac_configure_args1;}
1912
1913 # When interrupted or exit'd, cleanup temporary files, and complete
1914 # config.log.  We remove comments because anyway the quotes in there
1915 # would cause problems or look ugly.
1916 # WARNING: Use '\'' to represent an apostrophe within the trap.
1917 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918 trap 'exit_status=$?
1919   # Save into config.log some information that might help in debugging.
1920   {
1921     echo
1922
1923     cat <<\_ASBOX
1924 ## ---------------- ##
1925 ## Cache variables. ##
1926 ## ---------------- ##
1927 _ASBOX
1928     echo
1929     # The following way of writing the cache mishandles newlines in values,
1930 (
1931   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932     eval ac_val=\$$ac_var
1933     case $ac_val in #(
1934     *${as_nl}*)
1935       case $ac_var in #(
1936       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938       esac
1939       case $ac_var in #(
1940       _ | IFS | as_nl) ;; #(
1941       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942       *) { eval $ac_var=; unset $ac_var;} ;;
1943       esac ;;
1944     esac
1945   done
1946   (set) 2>&1 |
1947     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948     *${as_nl}ac_space=\ *)
1949       sed -n \
1950         "s/'\''/'\''\\\\'\'''\''/g;
1951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952       ;; #(
1953     *)
1954       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955       ;;
1956     esac |
1957     sort
1958 )
1959     echo
1960
1961     cat <<\_ASBOX
1962 ## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##
1965 _ASBOX
1966     echo
1967     for ac_var in $ac_subst_vars
1968     do
1969       eval ac_val=\$$ac_var
1970       case $ac_val in
1971       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972       esac
1973       $as_echo "$ac_var='\''$ac_val'\''"
1974     done | sort
1975     echo
1976
1977     if test -n "$ac_subst_files"; then
1978       cat <<\_ASBOX
1979 ## ------------------- ##
1980 ## File substitutions. ##
1981 ## ------------------- ##
1982 _ASBOX
1983       echo
1984       for ac_var in $ac_subst_files
1985       do
1986         eval ac_val=\$$ac_var
1987         case $ac_val in
1988         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989         esac
1990         $as_echo "$ac_var='\''$ac_val'\''"
1991       done | sort
1992       echo
1993     fi
1994
1995     if test -s confdefs.h; then
1996       cat <<\_ASBOX
1997 ## ----------- ##
1998 ## confdefs.h. ##
1999 ## ----------- ##
2000 _ASBOX
2001       echo
2002       cat confdefs.h
2003       echo
2004     fi
2005     test "$ac_signal" != 0 &&
2006       $as_echo "$as_me: caught signal $ac_signal"
2007     $as_echo "$as_me: exit $exit_status"
2008   } >&5
2009   rm -f core *.core core.conftest.* &&
2010     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011     exit $exit_status
2012 ' 0
2013 for ac_signal in 1 2 13 15; do
2014   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015 done
2016 ac_signal=0
2017
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2020
2021 $as_echo "/* confdefs.h */" > confdefs.h
2022
2023 # Predefined preprocessor variables.
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_NAME "$PACKAGE_NAME"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_STRING "$PACKAGE_STRING"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_URL "$PACKAGE_URL"
2047 _ACEOF
2048
2049
2050 # Let the site file select an alternate cache file if it wants to.
2051 # Prefer an explicitly selected file to automatically selected ones.
2052 ac_site_file1=NONE
2053 ac_site_file2=NONE
2054 if test -n "$CONFIG_SITE"; then
2055   ac_site_file1=$CONFIG_SITE
2056 elif test "x$prefix" != xNONE; then
2057   ac_site_file1=$prefix/share/config.site
2058   ac_site_file2=$prefix/etc/config.site
2059 else
2060   ac_site_file1=$ac_default_prefix/share/config.site
2061   ac_site_file2=$ac_default_prefix/etc/config.site
2062 fi
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064 do
2065   test "x$ac_site_file" = xNONE && continue
2066   if test -r "$ac_site_file"; then
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069     sed 's/^/| /' "$ac_site_file" >&5
2070     . "$ac_site_file"
2071   fi
2072 done
2073
2074 if test -r "$cache_file"; then
2075   # Some versions of bash will fail to source /dev/null (special
2076   # files actually), so we avoid doing that.
2077   if test -f "$cache_file"; then
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2080     case $cache_file in
2081       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082       *)                      . "./$cache_file";;
2083     esac
2084   fi
2085 else
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2088   >$cache_file
2089 fi
2090
2091 # Check that the precious variables saved in the cache have kept the same
2092 # value.
2093 ac_cache_corrupted=false
2094 for ac_var in $ac_precious_vars; do
2095   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096   eval ac_new_set=\$ac_env_${ac_var}_set
2097   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098   eval ac_new_val=\$ac_env_${ac_var}_value
2099   case $ac_old_set,$ac_new_set in
2100     set,)
2101       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103       ac_cache_corrupted=: ;;
2104     ,set)
2105       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107       ac_cache_corrupted=: ;;
2108     ,);;
2109     *)
2110       if test "x$ac_old_val" != "x$ac_new_val"; then
2111         # differences in whitespace do not lead to failure.
2112         ac_old_val_w=`echo x $ac_old_val`
2113         ac_new_val_w=`echo x $ac_new_val`
2114         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117           ac_cache_corrupted=:
2118         else
2119           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121           eval $ac_var=\$ac_old_val
2122         fi
2123         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2124 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2125         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2126 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2127       fi;;
2128   esac
2129   # Pass precious variables to config.status.
2130   if test "$ac_new_set" = set; then
2131     case $ac_new_val in
2132     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133     *) ac_arg=$ac_var=$ac_new_val ;;
2134     esac
2135     case " $ac_configure_args " in
2136       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2137       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2138     esac
2139   fi
2140 done
2141 if $ac_cache_corrupted; then
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147 fi
2148 ## -------------------- ##
2149 ## Main body of script. ##
2150 ## -------------------- ##
2151
2152 ac_ext=c
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166 progname=$0
2167 # if PWD already has a value, it is probably wrong.
2168 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170 # Export original configure arguments for use by sub-configures.
2171 # Quote arguments with shell meta charatcers.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS=
2173 set -- "$progname" "$@"
2174 for ac_arg
2175 do
2176   case "$ac_arg" in
2177   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179     # if the argument is of the form -foo=baz, quote the baz part only
2180     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181   *) ;;
2182   esac
2183   # Add the quoted argument to the list.
2184   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185 done
2186 if test "$silent" = yes; then
2187   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188 fi
2189 # Remove the initial space we just introduced and, as these will be
2190 # expanded by make, quote '$'.
2191 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
2193
2194 # Find the build, host, and target systems.
2195 ac_aux_dir=
2196 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197   for ac_t in install-sh install.sh shtool; do
2198     if test -f "$ac_dir/$ac_t"; then
2199       ac_aux_dir=$ac_dir
2200       ac_install_sh="$ac_aux_dir/$ac_t -c"
2201       break 2
2202     fi
2203   done
2204 done
2205 if test -z "$ac_aux_dir"; then
2206   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2207 fi
2208
2209 # These three variables are undocumented and unsupported,
2210 # and are intended to be withdrawn in a future Autoconf release.
2211 # They can cause serious problems if a builder's source tree is in a directory
2212 # whose full name contains unusual characters.
2213 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2214 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2215 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2216
2217
2218 # Make sure we can run config.sub.
2219 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223 $as_echo_n "checking build system type... " >&6; }
2224 if test "${ac_cv_build+set}" = set; then :
2225   $as_echo_n "(cached) " >&6
2226 else
2227   ac_build_alias=$build_alias
2228 test "x$ac_build_alias" = x &&
2229   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230 test "x$ac_build_alias" = x &&
2231   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237 $as_echo "$ac_cv_build" >&6; }
2238 case $ac_cv_build in
2239 *-*-*) ;;
2240 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241 esac
2242 build=$ac_cv_build
2243 ac_save_IFS=$IFS; IFS='-'
2244 set x $ac_cv_build
2245 shift
2246 build_cpu=$1
2247 build_vendor=$2
2248 shift; shift
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2251 build_os=$*
2252 IFS=$ac_save_IFS
2253 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2254
2255
2256  case ${build_alias} in
2257   "") build_noncanonical=${build} ;;
2258   *) build_noncanonical=${build_alias} ;;
2259 esac
2260
2261
2262
2263  case ${host_alias} in
2264   "") host_noncanonical=${build_noncanonical} ;;
2265   *) host_noncanonical=${host_alias} ;;
2266 esac
2267
2268
2269
2270  case ${target_alias} in
2271   "") target_noncanonical=${host_noncanonical} ;;
2272   *) target_noncanonical=${target_alias} ;;
2273 esac
2274
2275
2276
2277
2278 test "$host_noncanonical" = "$target_noncanonical" &&
2279   test "$program_prefix$program_suffix$program_transform_name" = \
2280     NONENONEs,x,x, &&
2281   program_transform_name=s,y,y,
2282
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284 $as_echo_n "checking host system type... " >&6; }
2285 if test "${ac_cv_host+set}" = set; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   if test "x$host_alias" = x; then
2289   ac_cv_host=$ac_cv_build
2290 else
2291   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293 fi
2294
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297 $as_echo "$ac_cv_host" >&6; }
2298 case $ac_cv_host in
2299 *-*-*) ;;
2300 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301 esac
2302 host=$ac_cv_host
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_host
2305 shift
2306 host_cpu=$1
2307 host_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 host_os=$*
2312 IFS=$ac_save_IFS
2313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2314
2315
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317 $as_echo_n "checking target system type... " >&6; }
2318 if test "${ac_cv_target+set}" = set; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   if test "x$target_alias" = x; then
2322   ac_cv_target=$ac_cv_host
2323 else
2324   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326 fi
2327
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330 $as_echo "$ac_cv_target" >&6; }
2331 case $ac_cv_target in
2332 *-*-*) ;;
2333 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334 esac
2335 target=$ac_cv_target
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_target
2338 shift
2339 target_cpu=$1
2340 target_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 target_os=$*
2345 IFS=$ac_save_IFS
2346 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2347
2348
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352   test "$program_prefix$program_suffix$program_transform_name" = \
2353     NONENONEs,x,x, &&
2354   program_prefix=${target_alias}-
2355
2356 test "$program_prefix" != NONE &&
2357   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2358 # Use a double $ so make ignores it.
2359 test "$program_suffix" != NONE &&
2360   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361 # Double any \ or $.
2362 # By default was `s,x,x', remove it if useless.
2363 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2365
2366
2367
2368 # Get 'install' or 'install-sh' and its variants.
2369 # Find a good install program.  We prefer a C program (faster),
2370 # so one script is as good as another.  But avoid the broken or
2371 # incompatible versions:
2372 # SysV /etc/install, /usr/sbin/install
2373 # SunOS /usr/etc/install
2374 # IRIX /sbin/install
2375 # AIX /bin/install
2376 # AmigaOS /C/install, which installs bootblocks on floppy discs
2377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2380 # OS/2's system install, which has a completely different semantic
2381 # ./install, which can be erroneously created by make from ./install.sh.
2382 # Reject install programs that cannot install multiple files.
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2385 if test -z "$INSTALL"; then
2386 if test "${ac_cv_path_install+set}" = set; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394     # Account for people who put trailing slashes in PATH elements.
2395 case $as_dir/ in #((
2396   ./ | .// | /[cC]/* | \
2397   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2398   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2399   /usr/ucb/* ) ;;
2400   *)
2401     # OSF1 and SCO ODT 3.0 have their own names for install.
2402     # Don't use installbsd from OSF since it installs stuff as root
2403     # by default.
2404     for ac_prog in ginstall scoinst install; do
2405       for ac_exec_ext in '' $ac_executable_extensions; do
2406         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2407           if test $ac_prog = install &&
2408             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2409             # AIX install.  It has an incompatible calling convention.
2410             :
2411           elif test $ac_prog = install &&
2412             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413             # program-specific install script used by HP pwplus--don't use.
2414             :
2415           else
2416             rm -rf conftest.one conftest.two conftest.dir
2417             echo one > conftest.one
2418             echo two > conftest.two
2419             mkdir conftest.dir
2420             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421               test -s conftest.one && test -s conftest.two &&
2422               test -s conftest.dir/conftest.one &&
2423               test -s conftest.dir/conftest.two
2424             then
2425               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426               break 3
2427             fi
2428           fi
2429         fi
2430       done
2431     done
2432     ;;
2433 esac
2434
2435   done
2436 IFS=$as_save_IFS
2437
2438 rm -rf conftest.one conftest.two conftest.dir
2439
2440 fi
2441   if test "${ac_cv_path_install+set}" = set; then
2442     INSTALL=$ac_cv_path_install
2443   else
2444     # As a last resort, use the slow shell script.  Don't cache a
2445     # value for INSTALL within a source directory, because that will
2446     # break other packages using the cache if that directory is
2447     # removed, or if the value is a relative name.
2448     INSTALL=$ac_install_sh
2449   fi
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452 $as_echo "$INSTALL" >&6; }
2453
2454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455 # It thinks the first close brace ends the variable substitution.
2456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
2458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2459
2460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463 $as_echo_n "checking whether ln works... " >&6; }
2464 if test "${acx_cv_prog_LN+set}" = set; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   rm -f conftestdata_t
2468 echo >conftestdata_f
2469 if ln conftestdata_f conftestdata_t 2>/dev/null
2470 then
2471   acx_cv_prog_LN=ln
2472 else
2473   acx_cv_prog_LN=no
2474 fi
2475 rm -f conftestdata_f conftestdata_t
2476
2477 fi
2478 if test $acx_cv_prog_LN = no; then
2479   LN="cp"
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481 $as_echo "no, using $LN" >&6; }
2482 else
2483   LN="$acx_cv_prog_LN"
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485 $as_echo "yes" >&6; }
2486 fi
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489 $as_echo_n "checking whether ln -s works... " >&6; }
2490 LN_S=$as_ln_s
2491 if test "$LN_S" = "ln -s"; then
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 else
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496 $as_echo "no, using $LN_S" >&6; }
2497 fi
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501 if test "${ac_cv_path_SED+set}" = set; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505      for ac_i in 1 2 3 4 5 6 7; do
2506        ac_script="$ac_script$as_nl$ac_script"
2507      done
2508      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509      { ac_script=; unset ac_script;}
2510      if test -z "$SED"; then
2511   ac_path_SED_found=false
2512   # Loop through the user's path and test for each of PROGNAME-LIST
2513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518     for ac_prog in sed gsed; do
2519     for ac_exec_ext in '' $ac_executable_extensions; do
2520       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522 # Check for GNU ac_path_SED and select it if it is found.
2523   # Check for GNU $ac_path_SED
2524 case `"$ac_path_SED" --version 2>&1` in
2525 *GNU*)
2526   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527 *)
2528   ac_count=0
2529   $as_echo_n 0123456789 >"conftest.in"
2530   while :
2531   do
2532     cat "conftest.in" "conftest.in" >"conftest.tmp"
2533     mv "conftest.tmp" "conftest.in"
2534     cp "conftest.in" "conftest.nl"
2535     $as_echo '' >> "conftest.nl"
2536     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538     as_fn_arith $ac_count + 1 && ac_count=$as_val
2539     if test $ac_count -gt ${ac_path_SED_max-0}; then
2540       # Best one so far, save it but keep looking for a better one
2541       ac_cv_path_SED="$ac_path_SED"
2542       ac_path_SED_max=$ac_count
2543     fi
2544     # 10*(2^10) chars as input seems more than enough
2545     test $ac_count -gt 10 && break
2546   done
2547   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548 esac
2549
2550       $ac_path_SED_found && break 3
2551     done
2552   done
2553   done
2554 IFS=$as_save_IFS
2555   if test -z "$ac_cv_path_SED"; then
2556     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557   fi
2558 else
2559   ac_cv_path_SED=$SED
2560 fi
2561
2562 fi
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564 $as_echo "$ac_cv_path_SED" >&6; }
2565  SED="$ac_cv_path_SED"
2566   rm -f conftest.sed
2567
2568 for ac_prog in gawk mawk nawk awk
2569 do
2570   # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_AWK+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$AWK"; then
2578   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_AWK="$ac_prog"
2588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592   done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 AWK=$ac_cv_prog_AWK
2598 if test -n "$AWK"; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600 $as_echo "$AWK" >&6; }
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607   test -n "$AWK" && break
2608 done
2609
2610
2611 ### we might need to use some other shell than /bin/sh for running subshells
2612 ### If we are on Windows, search for the shell.  This will permit people
2613 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614 ### without also having to set CONFIG_SHELL.  This code will work when
2615 ### using bash, which sets OSTYPE.
2616 case "${OSTYPE}" in
2617 *win32*)
2618   if test x${CONFIG_SHELL} = x ; then
2619     if test ! -f /bin/sh ; then
2620       if test x${SHELL} != x && test -f ${SHELL} ; then
2621         CONFIG_SHELL=${SHELL}
2622         export CONFIG_SHELL
2623       else
2624         for prog in sh sh.exe bash bash.exe; do
2625           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2626           for dir in $PATH; do
2627             test -z "$dir" && dir=.
2628             if test -f $dir/$prog; then
2629               CONFIG_SHELL=$dir/$prog
2630               export CONFIG_SHELL
2631               break
2632             fi
2633           done
2634           IFS="$save_ifs"
2635           test -n "${CONFIG_SHELL}" && break
2636         done
2637       fi
2638     fi
2639   fi
2640   ;;
2641 esac
2642
2643 config_shell=${CONFIG_SHELL-/bin/sh}
2644
2645 moveifchange=${srcdir}/move-if-change
2646
2647 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2650 # a relative path.
2651 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652   INSTALL="${srcpwd}/install-sh -c"
2653 fi
2654
2655 # Set srcdir to "." if that's what it is.
2656 # This is important for multilib support.
2657 pwd=`${PWDCMD-pwd}`
2658 if test "${pwd}" = "${srcpwd}" ; then
2659   srcdir=.
2660 fi
2661
2662 topsrcdir=$srcpwd
2663
2664 extra_host_args=
2665
2666 ### To add a new directory to the tree, first choose whether it is a target
2667 ### or a host dependent tool.  Then put it into the appropriate list
2668 ### (library or tools, host or target), doing a dependency sort.
2669
2670 # Subdirs will be configured in the order listed in build_configdirs,
2671 # configdirs, or target_configdirs; see the serialization section below.
2672
2673 # Dependency sorting is only needed when *configuration* must be done in
2674 # a particular order.  In all cases a dependency should be specified in
2675 # the Makefile, whether or not it's implicitly specified here.
2676
2677 # Double entries in build_configdirs, configdirs, or target_configdirs may
2678 # cause circular dependencies and break everything horribly.
2679
2680 # these library is used by various programs built for the build
2681 # environment
2682 #
2683 build_libs="build-libiberty"
2684
2685 # these tools are built for the build environment
2686 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2687
2688 # these libraries are used by various programs built for the host environment
2689 #
2690 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2691
2692 # these tools are built for the host environment
2693 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694 # know that we are building the simulator.
2695 # binutils, gas and ld appear in that order because it makes sense to run
2696 # "make check" in that particular order.
2697 # If --enable-gold is used, "gold" may replace "ld".
2698 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2699
2700 # libgcj represents the runtime libraries only used by gcj.
2701 libgcj="target-libffi \
2702         target-zlib \
2703         target-qthreads \
2704         target-libjava"
2705
2706 # these libraries are built for the target environment, and are built after
2707 # the host libraries and the host tools (which may be a cross compiler)
2708 #
2709 target_libraries="target-libgcc \
2710                 target-libiberty \
2711                 target-libgloss \
2712                 target-newlib \
2713                 target-libgomp \
2714                 target-libstdc++-v3 \
2715                 target-libmudflap \
2716                 target-libssp \
2717                 target-libquadmath \
2718                 target-libgfortran \
2719                 target-boehm-gc \
2720                 ${libgcj} \
2721                 target-libobjc \
2722                 target-libada \
2723                 target-libgo"
2724
2725 # these tools are built using the target libraries, and are intended to
2726 # run only in the target environment
2727 #
2728 # note: any program that *uses* libraries that are in the "target_libraries"
2729 # list belongs in this list.
2730 #
2731 target_tools="target-examples target-gperf target-rda"
2732
2733 ################################################################################
2734
2735 ## All tools belong in one of the four categories, and are assigned above
2736 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2737 ## is important because configure will choke if they ever get through.
2738 ## ${configdirs} is directories we build using the host tools.
2739 ## ${target_configdirs} is directories we build using the target tools.
2740 configdirs=`echo ${host_libs} ${host_tools}`
2741 target_configdirs=`echo ${target_libraries} ${target_tools}`
2742 build_configdirs=`echo ${build_libs} ${build_tools}`
2743
2744
2745
2746 ################################################################################
2747
2748 srcname="gnu development package"
2749
2750 # This gets set non-empty for some net releases of packages.
2751 appdirs=""
2752
2753 # Define is_cross_compiler to save on calls to 'test'.
2754 is_cross_compiler=
2755 if test x"${host}" = x"${target}" ; then
2756   is_cross_compiler=no
2757 else
2758   is_cross_compiler=yes
2759 fi
2760
2761 # Find the build and target subdir names.
2762
2763 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2764 # have matching libraries, they should use host libraries: Makefile.tpl
2765 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2766 # However, they still use the build modules, because the corresponding
2767 # host modules (e.g. bison) are only built for the host when bootstrap
2768 # finishes. So:
2769 # - build_subdir is where we find build modules, and never changes.
2770 # - build_libsubdir is where we find build libraries, and can be overridden.
2771
2772 # Prefix 'build-' so this never conflicts with target_subdir.
2773 build_subdir="build-${build_noncanonical}"
2774
2775 # Check whether --with-build-libsubdir was given.
2776 if test "${with_build_libsubdir+set}" = set; then :
2777   withval=$with_build_libsubdir; build_libsubdir="$withval"
2778 else
2779   build_libsubdir="$build_subdir"
2780 fi
2781
2782 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2783 if ( test $srcdir = . && test -d gcc ) \
2784    || test -d $srcdir/../host-${host_noncanonical}; then
2785   host_subdir="host-${host_noncanonical}"
2786 else
2787   host_subdir=.
2788 fi
2789 # No prefix.
2790 target_subdir=${target_noncanonical}
2791
2792 # Be sure to cover against remnants of an in-tree build.
2793 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2794   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2795 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2796 fi
2797
2798 # Skipdirs are removed silently.
2799 skipdirs=
2800 # Noconfigdirs are removed loudly.
2801 noconfigdirs=""
2802
2803 use_gnu_ld=
2804 # Make sure we don't let GNU ld be added if we didn't want it.
2805 if test x$with_gnu_ld = xno ; then
2806   use_gnu_ld=no
2807   noconfigdirs="$noconfigdirs ld gold"
2808 fi
2809
2810 use_gnu_as=
2811 # Make sure we don't let GNU as be added if we didn't want it.
2812 if test x$with_gnu_as = xno ; then
2813   use_gnu_as=no
2814   noconfigdirs="$noconfigdirs gas"
2815 fi
2816
2817 use_included_zlib=
2818 # Make sure we don't let ZLIB be added if we didn't want it.
2819 if test x$with_system_zlib = xyes ; then
2820   use_included_zlib=no
2821   noconfigdirs="$noconfigdirs zlib"
2822 fi
2823
2824 # some tools are so dependent upon X11 that if we're not building with X,
2825 # it's not even worth trying to configure, much less build, that tool.
2826
2827 case ${with_x} in
2828   yes | "") ;; # the default value for this tree is that X11 is available
2829   no)
2830     skipdirs="${skipdirs} tk itcl libgui"
2831     # We won't be able to build gdbtk without X.
2832     enable_gdbtk=no
2833     ;;
2834   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2835 esac
2836
2837 # Some are only suitable for cross toolchains.
2838 # Remove these if host=target.
2839 cross_only="target-libgloss target-newlib target-opcodes"
2840
2841 case $is_cross_compiler in
2842   no) skipdirs="${skipdirs} ${cross_only}" ;;
2843 esac
2844
2845 # If both --with-headers and --with-libs are specified, default to
2846 # --without-newlib.
2847 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2849   if test x"${with_newlib}" = x ; then
2850     with_newlib=no
2851   fi
2852 fi
2853
2854 # Recognize --with-newlib/--without-newlib.
2855 case ${with_newlib} in
2856   no) skipdirs="${skipdirs} target-newlib" ;;
2857   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858 esac
2859
2860 # Handle --enable-gold, --enable-ld.
2861 # --disable-gold [--enable-ld]
2862 #     Build only ld.  Default option.
2863 # --enable-gold [--enable-ld]
2864 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2865 #     as "ld.bfd" and "ld".
2866 # --enable-gold=default [--enable-ld]
2867 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2868 #     install ld as "ld.bfd".
2869 # --enable-gold[=default] --disable-ld
2870 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2871 # --enable-gold --enable-ld=default
2872 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873 #     and ld.bfd).
2874 #     In other words, ld is default
2875 # --enable-gold=default --enable-ld=default
2876 #     Error.
2877
2878 default_ld=
2879 # Check whether --enable-gold was given.
2880 if test "${enable_gold+set}" = set; then :
2881   enableval=$enable_gold; ENABLE_GOLD=$enableval
2882 else
2883   ENABLE_GOLD=no
2884 fi
2885
2886 case "${ENABLE_GOLD}" in
2887   yes|default)
2888     # Check for ELF target.
2889     is_elf=no
2890     case "${target}" in
2891       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2893       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2894         case "${target}" in
2895           *-*-linux*aout* | *-*-linux*oldld*)
2896             ;;
2897           *)
2898             is_elf=yes
2899             ;;
2900         esac
2901     esac
2902
2903     if test "$is_elf" = "yes"; then
2904       # Check for target supported by gold.
2905       case "${target}" in
2906         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2907           configdirs="$configdirs gold"
2908           if test x${ENABLE_GOLD} = xdefault; then
2909             default_ld=gold
2910           fi
2911           ENABLE_GOLD=yes
2912           ;;
2913       esac
2914     fi
2915     ;;
2916   no)
2917     ;;
2918   *)
2919     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2920     ;;
2921 esac
2922
2923 # Check whether --enable-ld was given.
2924 if test "${enable_ld+set}" = set; then :
2925   enableval=$enable_ld; ENABLE_LD=$enableval
2926 else
2927   ENABLE_LD=yes
2928 fi
2929
2930
2931 case "${ENABLE_LD}" in
2932   default)
2933     if test x${default_ld} != x; then
2934       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2935     fi
2936     ;;
2937   yes)
2938     ;;
2939   no)
2940     if test x${ENABLE_GOLD} != xyes; then
2941       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2942 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2943     fi
2944     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2945     ;;
2946   *)
2947     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2948     ;;
2949 esac
2950
2951 # Configure extra directories which are host specific
2952
2953 case "${host}" in
2954   *-cygwin*)
2955     configdirs="$configdirs libtermcap" ;;
2956 esac
2957
2958 # A target can indicate whether a language isn't supported for some reason.
2959 # Only spaces may be used in this macro; not newlines or tabs.
2960 unsupported_languages=
2961
2962 # Remove more programs from consideration, based on the host or
2963 # target this usually means that a port of the program doesn't
2964 # exist yet.
2965
2966 case "${host}" in
2967   i[3456789]86-*-msdosdjgpp*)
2968     noconfigdirs="$noconfigdirs tcl tk itcl libffi"
2969     ;;
2970   x86_64-*-mingw*)
2971     noconfigdirs="$noconfigdirs newlib"
2972     ;;
2973   i[3456789]86-*-mingw32*)
2974     noconfigdirs="$noconfigdirs newlib"
2975     ;;
2976 esac
2977
2978
2979 # Check whether --enable-libquadmath was given.
2980 if test "${enable_libquadmath+set}" = set; then :
2981   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2982 else
2983   ENABLE_LIBQUADMATH=yes
2984 fi
2985
2986 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2987   noconfigdirs="$noconfigdirs target-libquadmath"
2988 fi
2989
2990
2991 # Check whether --enable-libquadmath-support was given.
2992 if test "${enable_libquadmath_support+set}" = set; then :
2993   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2994 else
2995   ENABLE_LIBQUADMATH_SUPPORT=yes
2996 fi
2997
2998 enable_libquadmath_support=
2999 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3000   enable_libquadmath_support=no
3001 fi
3002
3003
3004 # Check whether --enable-libada was given.
3005 if test "${enable_libada+set}" = set; then :
3006   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3007 else
3008   ENABLE_LIBADA=yes
3009 fi
3010
3011 if test "${ENABLE_LIBADA}" != "yes" ; then
3012   noconfigdirs="$noconfigdirs gnattools"
3013 fi
3014
3015 # Check whether --enable-libssp was given.
3016 if test "${enable_libssp+set}" = set; then :
3017   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3018 else
3019   ENABLE_LIBSSP=yes
3020 fi
3021
3022
3023 # Save it here so that, even in case of --enable-libgcj, if the Java
3024 # front-end isn't enabled, we still get libgcj disabled.
3025 libgcj_saved=$libgcj
3026 case $enable_libgcj in
3027 yes)
3028   # If we reset it here, it won't get added to noconfigdirs in the
3029   # target-specific build rules, so it will be forcibly enabled
3030   # (unless the Java language itself isn't enabled).
3031   libgcj=
3032   ;;
3033 no)
3034   # Make sure we get it printed in the list of not supported target libs.
3035   # Don't disable libffi, though, other languages use it.
3036   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3037   # Clear libgcj_saved so that even if java is enabled libffi won't be
3038   # built.
3039   libgcj_saved=
3040   ;;
3041 esac
3042
3043
3044 # Disable libmudflap on some systems.
3045 if test x$enable_libmudflap = x ; then
3046     case "${target}" in
3047     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3048         # Enable libmudflap by default in GNU and friends.
3049         ;;
3050     *-*-freebsd*)
3051         # Enable libmudflap by default in FreeBSD.
3052         ;;
3053     *)
3054         # Disable it by default everywhere else.
3055         noconfigdirs="$noconfigdirs target-libmudflap"
3056         ;;
3057     esac
3058 fi
3059
3060 # Disable libgomp on non POSIX hosted systems.
3061 if test x$enable_libgomp = x ; then
3062     # Enable libgomp by default on hosted POSIX systems.
3063     case "${target}" in
3064     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3065         ;;
3066     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3067         ;;
3068     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3069         ;;
3070     *-*-darwin* | *-*-aix*)
3071         ;;
3072     *)
3073         noconfigdirs="$noconfigdirs target-libgomp"
3074         ;;
3075     esac
3076 fi
3077
3078 # Default libgloss CPU subdirectory.
3079 libgloss_dir="$target_cpu"
3080
3081 case "${target}" in
3082   *-*-chorusos)
3083     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3084     ;;
3085   powerpc-*-darwin*)
3086     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3087     noconfigdirs="$noconfigdirs sim target-rda"
3088     ;;
3089   i[3456789]86-*-darwin*)
3090     noconfigdirs="$noconfigdirs ld gprof"
3091     noconfigdirs="$noconfigdirs sim target-rda"
3092     ;;
3093   x86_64-*-darwin[912]*)
3094     noconfigdirs="$noconfigdirs ld gas gprof"
3095     noconfigdirs="$noconfigdirs sim target-rda"
3096     ;;
3097   *-*-darwin*)
3098     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3099     noconfigdirs="$noconfigdirs sim target-rda"
3100     noconfigdirs="$noconfigdirs ${libgcj}"
3101     ;;
3102   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3103     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3104     ;;
3105   *-*-freebsd*)
3106     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3107     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3108         && test -f /usr/local/include/gmp.h; then
3109       with_gmp=/usr/local
3110     fi
3111
3112     # Skip some stuff that's unsupported on some FreeBSD configurations.
3113     case "${target}" in
3114       i*86-*-*) ;;
3115       alpha*-*-*) ;;
3116       x86_64-*-*) ;;
3117       *)
3118         noconfigdirs="$noconfigdirs ${libgcj}"
3119         ;;
3120     esac
3121     ;;
3122   *-*-kaos*)
3123     # Remove unsupported stuff on all kaOS configurations.
3124     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
3125     skipdirs="$skipdirs target-libobjc"
3126     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3127     noconfigdirs="$noconfigdirs target-libgloss"
3128     ;;
3129   *-*-netbsd*)
3130     # Skip some stuff on all NetBSD configurations.
3131     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3132
3133     # Skip some stuff that's unsupported on some NetBSD configurations.
3134     case "${target}" in
3135       i*86-*-netbsdelf*) ;;
3136       arm*-*-netbsdelf*) ;;
3137       *)
3138         noconfigdirs="$noconfigdirs ${libgcj}"
3139         ;;
3140     esac
3141     ;;
3142   *-*-netware*)
3143     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
3144     ;;
3145   *-*-rtems*)
3146     skipdirs="${skipdirs} target-libiberty"
3147     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3148     ;;
3149     # The tpf target doesn't support gdb yet.
3150   *-*-tpf*)
3151     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
3152     ;;
3153   *-*-uclinux*)
3154     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3155     ;;
3156   *-*-vxworks*)
3157     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3158     ;;
3159   alpha*-dec-osf*)
3160     # ld works, but does not support shared libraries.
3161     # newlib is not 64 bit ready.
3162     # gas doesn't generate exception information.
3163     noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
3164     ;;
3165   alpha*-*-*vms*)
3166     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3167     ;;
3168   alpha*-*-linux*)
3169     # newlib is not 64 bit ready
3170     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3171     ;;
3172   alpha*-*-*)
3173     # newlib is not 64 bit ready
3174     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3175     ;;
3176   am33_2.0-*-linux*)
3177     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3178     ;;
3179   sh-*-linux*)
3180     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3181     ;;
3182   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3183     noconfigdirs="$noconfigdirs ${libgcj}"
3184     noconfigdirs="$noconfigdirs target-libiberty"
3185     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3186     # the C++ libraries don't build on top of CE's C libraries
3187     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3188     noconfigdirs="$noconfigdirs target-newlib"
3189     libgloss_dir=wince
3190     ;;
3191   arc-*-*)
3192     noconfigdirs="$noconfigdirs target-libgloss"
3193     ;;
3194   arm-*-coff)
3195     noconfigdirs="$noconfigdirs ${libgcj}"
3196     libgloss_dir=arm
3197     ;;
3198   arm-*-elf* | arm*-*-eabi* )
3199     noconfigdirs="$noconfigdirs target-libffi"
3200     libgloss_dir=arm
3201     ;;
3202   arm*-*-linux-gnueabi)
3203     noconfigdirs="$noconfigdirs"
3204     case ${with_newlib} in
3205       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3206     esac
3207     libgloss_dir=arm
3208     ;;
3209   arm*-*-symbianelf*)
3210     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3211     libgloss_dir=arm
3212     ;;
3213   arm-*-pe*)
3214     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3215     ;;
3216   arm-*-riscix*)
3217     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3218     ;;
3219   avr-*-*)
3220     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3221     ;;
3222   bfin-*-*)
3223     unsupported_languages="$unsupported_languages java"
3224     noconfigdirs="$noconfigdirs target-boehm-gc"
3225     if test x${is_cross_compiler} != xno ; then
3226       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3227     fi
3228     ;;
3229   c4x-*-* | tic4x-*-*)
3230     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3231     ;;
3232   c54x*-*-* | tic54x-*-*)
3233     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3234     ;;
3235   cr16-*-*)
3236     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3237     ;;
3238   cris-*-* | crisv32-*-*)
3239     unsupported_languages="$unsupported_languages java"
3240     case "${target}" in
3241       *-*-aout)
3242         unsupported_languages="$unsupported_languages fortran"
3243         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3244       *-*-elf) # See PR46792 regarding target-libffi.
3245         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3246       *-*-linux*)
3247         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3248       *)
3249         unsupported_languages="$unsupported_languages fortran"
3250         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3251     esac
3252     libgloss_dir=cris
3253     ;;
3254   d10v-*-*)
3255     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3256     ;;
3257   d30v-*-*)
3258     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3259     ;;
3260   fr30-*-elf*)
3261     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3262     ;;
3263   frv-*-*)
3264     noconfigdirs="$noconfigdirs ${libgcj}"
3265     ;;
3266   moxie-*-*)
3267     noconfigdirs="$noconfigdirs ${libgcj}"
3268     noconfigdirs="$noconfigdirs gprof"
3269     ;;
3270   h8300*-*-*)
3271     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3272     ;;
3273   h8500-*-*)
3274     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3275     ;;
3276   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3277     ;;
3278   hppa*64*-*-linux*)
3279     # In this case, it's because the hppa64-linux target is for
3280     # the kernel only at this point and has no libc, and thus no
3281     # headers, crt*.o, etc., all of which are needed by these.
3282     noconfigdirs="$noconfigdirs target-zlib"
3283     ;;
3284   hppa*-*-linux*)
3285     ;;
3286   hppa*-*-*elf* | \
3287   hppa*-*-lites* | \
3288   hppa*-*-openbsd* | \
3289   hppa*64*-*-*)
3290     noconfigdirs="$noconfigdirs ${libgcj}"
3291     ;;
3292   hppa*-hp-hpux11*)
3293     noconfigdirs="$noconfigdirs ld"
3294     ;;
3295   hppa*-*-pro*)
3296     libgloss_dir=pa
3297     ;;
3298   hppa*-*-*)
3299     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3300     # build on HP-UX 10.20.
3301     noconfigdirs="$noconfigdirs ld ${libgcj}"
3302     ;;
3303   i960-*-*)
3304     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3305     ;;
3306   ia64*-*-elf*)
3307     # No gdb support yet.
3308     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3309     ;;
3310   ia64*-**-hpux*)
3311     # No ld support yet.
3312     noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
3313     ;;
3314   ia64*-*-*vms*)
3315     # No gdb or ld support yet.
3316     noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
3317     ;;
3318   i[3456789]86-*-coff | i[3456789]86-*-elf)
3319     noconfigdirs="$noconfigdirs ${libgcj}"
3320     libgloss_dir=i386
3321     ;;
3322   i[3456789]86-*-linux*)
3323     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3324     # not build java stuff by default.
3325     case "${target}" in
3326       *-*-*libc1*)
3327         noconfigdirs="$noconfigdirs ${libgcj}";;
3328     esac
3329
3330     # This section makes it possible to build newlib natively on linux.
3331     # If we are using a cross compiler then don't configure newlib.
3332     if test x${is_cross_compiler} != xno ; then
3333       noconfigdirs="$noconfigdirs target-newlib"
3334     fi
3335     noconfigdirs="$noconfigdirs target-libgloss"
3336     # If we are not using a cross compiler, do configure newlib.
3337     # Note however, that newlib will only be configured in this situation
3338     # if the --with-newlib option has been given, because otherwise
3339     # 'target-newlib' will appear in skipdirs.
3340     ;;
3341   i[3456789]86-w64-mingw*)
3342     noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3343     ;;
3344   i[3456789]86-*-mingw*)
3345     target_configdirs="$target_configdirs target-winsup"
3346     noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3347     ;;
3348   x86_64-*-mingw*)
3349     noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
3350     ;;
3351   *-*-cygwin*)
3352     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3353     noconfigdirs="$noconfigdirs target-libgloss"
3354     # always build newlib if winsup directory is present.
3355     if test -d "$srcdir/winsup/cygwin"; then
3356       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3357     elif test -d "$srcdir/newlib"; then
3358       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3359     fi
3360     ;;
3361   i[3456789]86-*-interix* )
3362     ;;
3363   i[3456789]86-*-pe)
3364     noconfigdirs="$noconfigdirs target-libgloss"
3365     ;;
3366   i[3456789]86-*-sco3.2v5*)
3367     # The linker does not yet know about weak symbols in COFF,
3368     # and is not configured to handle mixed ELF and COFF.
3369     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3370     ;;
3371   i[3456789]86-*-sco*)
3372     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3373     ;;
3374   i[3456789]86-*-solaris2*)
3375     noconfigdirs="$noconfigdirs target-libgloss"
3376     ;;
3377   i[3456789]86-*-sysv4*)
3378     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3379     ;;
3380   i[3456789]86-*-beos*)
3381     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3382     ;;
3383   i[3456789]86-*-rdos*)
3384     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3385     ;;
3386   m32r-*-*)
3387     noconfigdirs="$noconfigdirs ${libgcj}"
3388     ;;
3389   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3390     noconfigdirs="$noconfigdirs target-libiberty"
3391     libgloss_dir=m68hc11
3392     ;;
3393   m68k-*-elf*)
3394     noconfigdirs="$noconfigdirs ${libgcj}"
3395     ;;
3396   m68k-*-coff*)
3397     noconfigdirs="$noconfigdirs ${libgcj}"
3398     ;;
3399   m68*-*-* | fido-*-*)
3400     libgloss_dir=m68k
3401     ;;
3402   mmix-*-*)
3403     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3404     unsupported_languages="$unsupported_languages fortran java"
3405     ;;
3406   mn10200-*-*)
3407     noconfigdirs="$noconfigdirs ${libgcj}"
3408     ;;
3409   mn10300-*-*)
3410     noconfigdirs="$noconfigdirs ${libgcj}"
3411     ;;
3412   mt-*-*)
3413     noconfigdirs="$noconfigdirs sim"
3414     ;;
3415   picochip-*-*)
3416     noconfigdirs="$noconfigdirs target-libiberty"
3417     ;;
3418   powerpc-*-aix*)
3419     # copied from rs6000-*-* entry
3420     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3421     ;;
3422   powerpc*-*-winnt* | powerpc*-*-pe*)
3423     target_configdirs="$target_configdirs target-winsup"
3424     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
3425     # always build newlib.
3426     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3427     ;;
3428     # This is temporary until we can link against shared libraries
3429   powerpcle-*-solaris*)
3430     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
3431     libgloss_dir=rs6000
3432     ;;
3433   powerpc-*-beos*)
3434     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3435     ;;
3436   powerpc-*-eabi)
3437     noconfigdirs="$noconfigdirs ${libgcj}"
3438     libgloss_dir=rs6000
3439     ;;
3440   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3441     libgloss_dir=rs6000
3442     ;;
3443   rs6000-*-lynxos*)
3444     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3445     ;;
3446   rs6000-*-aix*)
3447     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3448     ;;
3449   rs6000-*-*)
3450     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3451     ;;
3452   m68k-apollo-*)
3453     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3454     ;;
3455   microblaze*)
3456     noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3457     ;;
3458   mips*-sde-elf*)
3459     skipdirs="$skipdirs target-libiberty"
3460     noconfigdirs="$noconfigdirs ${libgcj}"
3461     if test x$with_newlib = xyes; then
3462       noconfigdirs="$noconfigdirs gprof"
3463     fi
3464     libgloss_dir=mips
3465     ;;
3466   mips*-*-irix5*)
3467     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3468     ;;
3469   mips*-*-irix6*)
3470     # Linking libjava exceeds command-line length limits on at least
3471     # IRIX 6.2, but not on IRIX 6.5.
3472     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3473     # <oldham@codesourcery.com>
3474     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3475     ;;
3476   mips*-*-bsd*)
3477     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3478     ;;
3479   mips*-*-linux*)
3480     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481     ;;
3482   mips*-*-*)
3483     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3484     libgloss_dir=mips
3485     ;;
3486   romp-*-*)
3487     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3488     ;;
3489   sh-*-* | sh64-*-*)
3490     case "${target}" in
3491       sh*-*-elf)
3492          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3493       *)
3494          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3495     esac
3496     ;;
3497   sparclet-*-aout* | sparc86x-*-*)
3498     libgloss_dir=sparc
3499     ;;
3500   sparc-*-elf*)
3501     noconfigdirs="$noconfigdirs ${libgcj}"
3502     ;;
3503   sparc64-*-elf*)
3504     noconfigdirs="$noconfigdirs ${libgcj}"
3505     libgloss_dir=sparc
3506     ;;
3507   sparclite-*-*)
3508     noconfigdirs="$noconfigdirs ${libgcj}"
3509     libgloss_dir=sparc
3510     ;;
3511   sparc-*-sunos4*)
3512     noconfigdirs="$noconfigdirs ${libgcj}"
3513     if test x${is_cross_compiler} != xno ; then
3514            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3515     else
3516            use_gnu_ld=no
3517     fi
3518     ;;
3519   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3520     noconfigdirs="$noconfigdirs ${libgcj}"
3521     ;;
3522   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3523     ;;
3524   tic6x-*-*)
3525     noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3526     ;;
3527   v810-*-*)
3528     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3529     ;;
3530   v850*-*-*)
3531     noconfigdirs="$noconfigdirs ${libgcj}"
3532     ;;
3533   vax-*-vms)
3534     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3535     ;;
3536   vax-*-*)
3537     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3538     ;;
3539   xtensa*-*-*)
3540     noconfigdirs="$noconfigdirs ${libgcj}"
3541     ;;
3542   ip2k-*-*)
3543     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3544     ;;
3545   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3546     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547     ;;
3548   *-*-lynxos*)
3549     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3550     ;;
3551   *-*-*)
3552     noconfigdirs="$noconfigdirs ${libgcj}"
3553     ;;
3554 esac
3555
3556 # If we aren't building newlib, then don't build libgloss, since libgloss
3557 # depends upon some newlib header files.
3558 case "${noconfigdirs}" in
3559   *target-libgloss*) ;;
3560   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3561 esac
3562
3563 # Work in distributions that contain no compiler tools, like Autoconf.
3564 host_makefile_frag=/dev/null
3565 if test -d ${srcdir}/config ; then
3566 case "${host}" in
3567   i[3456789]86-*-msdosdjgpp*)
3568     host_makefile_frag="config/mh-djgpp"
3569     ;;
3570   *-cygwin*)
3571
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3573 $as_echo_n "checking to see if cat works as expected... " >&6; }
3574 echo a >cygwin-cat-check
3575 if test `cat cygwin-cat-check` = a ; then
3576   rm cygwin-cat-check
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578 $as_echo "yes" >&6; }
3579 else
3580   rm cygwin-cat-check
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583   as_fn_error "The cat command does not ignore carriage return characters.
3584   Please either mount the build directory in binary mode or run the following
3585   commands before running any configure script:
3586 set -o igncr
3587 export SHELLOPTS
3588   " "$LINENO" 5
3589 fi
3590
3591     host_makefile_frag="config/mh-cygwin"
3592     ;;
3593   *-mingw*)
3594     host_makefile_frag="config/mh-mingw"
3595     ;;
3596   *-interix*)
3597     host_makefile_frag="config/mh-interix"
3598     ;;
3599   hppa*-hp-hpux10*)
3600     host_makefile_frag="config/mh-pa-hpux10"
3601     ;;
3602   hppa*-hp-hpux*)
3603     host_makefile_frag="config/mh-pa"
3604     ;;
3605   hppa*-*)
3606     host_makefile_frag="config/mh-pa"
3607     ;;
3608   *-*-darwin*)
3609     host_makefile_frag="config/mh-darwin"
3610     ;;
3611   powerpc-*-aix*)
3612     host_makefile_frag="config/mh-ppc-aix"
3613     ;;
3614   rs6000-*-aix*)
3615     host_makefile_frag="config/mh-ppc-aix"
3616     ;;
3617 esac
3618 fi
3619
3620 if test "${build}" != "${host}" ; then
3621   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3622   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3623   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3624   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3625   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3626   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3627   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3628   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3629   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3630   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3631   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3632   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3633   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3634 else
3635   AR_FOR_BUILD="\$(AR)"
3636   AS_FOR_BUILD="\$(AS)"
3637   CC_FOR_BUILD="\$(CC)"
3638   CXX_FOR_BUILD="\$(CXX)"
3639   GCJ_FOR_BUILD="\$(GCJ)"
3640   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3641   GOC_FOR_BUILD="\$(GOC)"
3642   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3643   LD_FOR_BUILD="\$(LD)"
3644   NM_FOR_BUILD="\$(NM)"
3645   RANLIB_FOR_BUILD="\$(RANLIB)"
3646   WINDRES_FOR_BUILD="\$(WINDRES)"
3647   WINDMC_FOR_BUILD="\$(WINDMC)"
3648 fi
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_CC+set}" = set; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   if test -n "$CC"; then
3664   ac_cv_prog_CC="$CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671     for ac_exec_ext in '' $ac_executable_extensions; do
3672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678   done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 fi
3694 if test -z "$ac_cv_prog_CC"; then
3695   ac_ct_CC=$CC
3696   # Extract the first word of "gcc", so it can be a program name with args.
3697 set dummy gcc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   if test -n "$ac_ct_CC"; then
3704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713     ac_cv_prog_ac_ct_CC="gcc"
3714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718   done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3727 else
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732   if test "x$ac_ct_CC" = x; then
3733     CC=""
3734   else
3735     case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741     CC=$ac_ct_CC
3742   fi
3743 else
3744   CC="$ac_cv_prog_CC"
3745 fi
3746
3747 if test -z "$CC"; then
3748           if test -n "$ac_tool_prefix"; then
3749     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_CC+set}" = set; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$CC"; then
3757   ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766     ac_cv_prog_CC="${ac_tool_prefix}cc"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786   fi
3787 fi
3788 if test -z "$CC"; then
3789   # Extract the first word of "cc", so it can be a program name with args.
3790 set dummy cc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_CC+set}" = set; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -n "$CC"; then
3797   ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799   ac_prog_rejected=no
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808        ac_prog_rejected=yes
3809        continue
3810      fi
3811     ac_cv_prog_CC="cc"
3812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816   done
3817 IFS=$as_save_IFS
3818
3819 if test $ac_prog_rejected = yes; then
3820   # We found a bogon in the path, so make sure we never use it.
3821   set dummy $ac_cv_prog_CC
3822   shift
3823   if test $# != 0; then
3824     # We chose a different compiler from the bogus one.
3825     # However, it has the same basename, so the bogon will be chosen
3826     # first if we set CC to just the basename; use the full file name.
3827     shift
3828     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3829   fi
3830 fi
3831 fi
3832 fi
3833 CC=$ac_cv_prog_CC
3834 if test -n "$CC"; then
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 $as_echo "$CC" >&6; }
3837 else
3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3840 fi
3841
3842
3843 fi
3844 if test -z "$CC"; then
3845   if test -n "$ac_tool_prefix"; then
3846   for ac_prog in cl.exe
3847   do
3848     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   if test -n "$CC"; then
3856   ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863     for ac_exec_ext in '' $ac_executable_extensions; do
3864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870   done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885     test -n "$CC" && break
3886   done
3887 fi
3888 if test -z "$CC"; then
3889   ac_ct_CC=$CC
3890   for ac_prog in cl.exe
3891 do
3892   # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$ac_ct_CC"; then
3900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909     ac_cv_prog_ac_ct_CC="$ac_prog"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929   test -n "$ac_ct_CC" && break
3930 done
3931
3932   if test "x$ac_ct_CC" = x; then
3933     CC=""
3934   else
3935     case $cross_compiling:$ac_tool_warned in
3936 yes:)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned=yes ;;
3940 esac
3941     CC=$ac_ct_CC
3942   fi
3943 fi
3944
3945 fi
3946
3947
3948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error "no acceptable C compiler found in \$PATH
3951 See \`config.log' for more details." "$LINENO" 5; }
3952
3953 # Provide some information about the compiler.
3954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955 set X $ac_compile
3956 ac_compiler=$2
3957 for ac_option in --version -v -V -qversion; do
3958   { { ac_try="$ac_compiler $ac_option >&5"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966   ac_status=$?
3967   if test -s conftest.err; then
3968     sed '10a\
3969 ... rest of stderr output deleted ...
3970          10q' conftest.err >conftest.er1
3971     cat conftest.er1 >&5
3972     rm -f conftest.er1 conftest.err
3973   fi
3974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975   test $ac_status = 0; }
3976 done
3977
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h.  */
3980
3981 int
3982 main ()
3983 {
3984
3985   ;
3986   return 0;
3987 }
3988 _ACEOF
3989 ac_clean_files_save=$ac_clean_files
3990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3991 # Try to create an executable without -o first, disregard a.out.
3992 # It will help us diagnose broken compilers, and finding out an intuition
3993 # of exeext.
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995 $as_echo_n "checking for C compiler default output file name... " >&6; }
3996 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3997
3998 # The possible output files:
3999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4000
4001 ac_rmfiles=
4002 for ac_file in $ac_files
4003 do
4004   case $ac_file in
4005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007   esac
4008 done
4009 rm -f $ac_rmfiles
4010
4011 if { { ac_try="$ac_link_default"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018   (eval "$ac_link_default") 2>&5
4019   ac_status=$?
4020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021   test $ac_status = 0; }; then :
4022   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4025 # so that the user can short-circuit this test for compilers unknown to
4026 # Autoconf.
4027 for ac_file in $ac_files ''
4028 do
4029   test -f "$ac_file" || continue
4030   case $ac_file in
4031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4032         ;;
4033     [ab].out )
4034         # We found the default executable, but exeext='' is most
4035         # certainly right.
4036         break;;
4037     *.* )
4038         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4039         then :; else
4040            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4041         fi
4042         # We set ac_cv_exeext here because the later test for it is not
4043         # safe: cross compilers may not add the suffix if given an `-o'
4044         # argument, so we may need to know it at that point already.
4045         # Even if this section looks crufty: it has the advantage of
4046         # actually working.
4047         break;;
4048     * )
4049         break;;
4050   esac
4051 done
4052 test "$ac_cv_exeext" = no && ac_cv_exeext=
4053
4054 else
4055   ac_file=''
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4058 $as_echo "$ac_file" >&6; }
4059 if test -z "$ac_file"; then :
4060   $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 { as_fn_set_status 77
4066 as_fn_error "C compiler cannot create executables
4067 See \`config.log' for more details." "$LINENO" 5; }; }
4068 fi
4069 ac_exeext=$ac_cv_exeext
4070
4071 # Check that the compiler produces executables we can run.  If not, either
4072 # the compiler is broken, or we cross compile.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4074 $as_echo_n "checking whether the C compiler works... " >&6; }
4075 # If not cross compiling, check that we can run a simple program.
4076 if test "$cross_compiling" != yes; then
4077   if { ac_try='./$ac_file'
4078   { { case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087   test $ac_status = 0; }; }; then
4088     cross_compiling=no
4089   else
4090     if test "$cross_compiling" = maybe; then
4091         cross_compiling=yes
4092     else
4093         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error "cannot run C compiled programs.
4096 If you meant to cross compile, use \`--host'.
4097 See \`config.log' for more details." "$LINENO" 5; }
4098     fi
4099   fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4103
4104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4105 ac_clean_files=$ac_clean_files_save
4106 # Check that the compiler produces executables we can run.  If not, either
4107 # the compiler is broken, or we cross compile.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109 $as_echo_n "checking whether we are cross compiling... " >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111 $as_echo "$cross_compiling" >&6; }
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 $as_echo_n "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122   (eval "$ac_link") 2>&5
4123   ac_status=$?
4124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125   test $ac_status = 0; }; then :
4126   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4128 # work properly (i.e., refer to `conftest.exe'), while it won't with
4129 # `rm'.
4130 for ac_file in conftest.exe conftest conftest.*; do
4131   test -f "$ac_file" || continue
4132   case $ac_file in
4133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4135           break;;
4136     * ) break;;
4137   esac
4138 done
4139 else
4140   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error "cannot compute suffix of executables: cannot compile and link
4143 See \`config.log' for more details." "$LINENO" 5; }
4144 fi
4145 rm -f conftest$ac_cv_exeext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147 $as_echo "$ac_cv_exeext" >&6; }
4148
4149 rm -f conftest.$ac_ext
4150 EXEEXT=$ac_cv_exeext
4151 ac_exeext=$EXEEXT
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153 $as_echo_n "checking for suffix of object files... " >&6; }
4154 if test "${ac_cv_objext+set}" = set; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h.  */
4159
4160 int
4161 main ()
4162 {
4163
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.o conftest.obj
4169 if { { ac_try="$ac_compile"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176   (eval "$ac_compile") 2>&5
4177   ac_status=$?
4178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179   test $ac_status = 0; }; then :
4180   for ac_file in conftest.o conftest.obj conftest.*; do
4181   test -f "$ac_file" || continue;
4182   case $ac_file in
4183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4184     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4185        break;;
4186   esac
4187 done
4188 else
4189   $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 { { $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 "cannot compute suffix of object files: cannot compile
4195 See \`config.log' for more details." "$LINENO" 5; }
4196 fi
4197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200 $as_echo "$ac_cv_objext" >&6; }
4201 OBJEXT=$ac_cv_objext
4202 ac_objext=$OBJEXT
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210
4211 int
4212 main ()
4213 {
4214 #ifndef __GNUC__
4215        choke me
4216 #endif
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223   ac_compiler_gnu=yes
4224 else
4225   ac_compiler_gnu=no
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233 if test $ac_compiler_gnu = yes; then
4234   GCC=yes
4235 else
4236   GCC=
4237 fi
4238 ac_test_CFLAGS=${CFLAGS+set}
4239 ac_save_CFLAGS=$CFLAGS
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4242 if test "${ac_cv_prog_cc_g+set}" = set; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   ac_save_c_werror_flag=$ac_c_werror_flag
4246    ac_c_werror_flag=yes
4247    ac_cv_prog_cc_g=no
4248    CFLAGS="-g"
4249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261   ac_cv_prog_cc_g=yes
4262 else
4263   CFLAGS=""
4264       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276
4277 else
4278   ac_c_werror_flag=$ac_save_c_werror_flag
4279          CFLAGS="-g"
4280          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292   ac_cv_prog_cc_g=yes
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299    ac_c_werror_flag=$ac_save_c_werror_flag
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302 $as_echo "$ac_cv_prog_cc_g" >&6; }
4303 if test "$ac_test_CFLAGS" = set; then
4304   CFLAGS=$ac_save_CFLAGS
4305 elif test $ac_cv_prog_cc_g = yes; then
4306   if test "$GCC" = yes; then
4307     CFLAGS="-g -O2"
4308   else
4309     CFLAGS="-g"
4310   fi
4311 else
4312   if test "$GCC" = yes; then
4313     CFLAGS="-O2"
4314   else
4315     CFLAGS=
4316   fi
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   ac_cv_prog_cc_c89=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327 #include <stdarg.h>
4328 #include <stdio.h>
4329 #include <sys/types.h>
4330 #include <sys/stat.h>
4331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4332 struct buf { int x; };
4333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334 static char *e (p, i)
4335      char **p;
4336      int i;
4337 {
4338   return p[i];
4339 }
4340 static char *f (char * (*g) (char **, int), char **p, ...)
4341 {
4342   char *s;
4343   va_list v;
4344   va_start (v,p);
4345   s = g (p, va_arg (v,int));
4346   va_end (v);
4347   return s;
4348 }
4349
4350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4351    function prototypes and stuff, but not '\xHH' hex character constants.
4352    These don't provoke an error unfortunately, instead are silently treated
4353    as 'x'.  The following induces an error, until -std is added to get
4354    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4355    array size at least.  It's necessary to write '\x00'==0 to get something
4356    that's true only with -std.  */
4357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4358
4359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360    inside strings and character constants.  */
4361 #define FOO(x) 'x'
4362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4363
4364 int test (int i, double x);
4365 struct s1 {int (*f) (int a);};
4366 struct s2 {int (*f) (double a);};
4367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368 int argc;
4369 char **argv;
4370 int
4371 main ()
4372 {
4373 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380 do
4381   CC="$ac_save_CC $ac_arg"
4382   if ac_fn_c_try_compile "$LINENO"; then :
4383   ac_cv_prog_cc_c89=$ac_arg
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext
4386   test "x$ac_cv_prog_cc_c89" != "xno" && break
4387 done
4388 rm -f conftest.$ac_ext
4389 CC=$ac_save_CC
4390
4391 fi
4392 # AC_CACHE_VAL
4393 case "x$ac_cv_prog_cc_c89" in
4394   x)
4395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 $as_echo "none needed" >&6; } ;;
4397   xno)
4398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399 $as_echo "unsupported" >&6; } ;;
4400   *)
4401     CC="$CC $ac_cv_prog_cc_c89"
4402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4404 esac
4405 if test "x$ac_cv_prog_cc_c89" != xno; then :
4406
4407 fi
4408
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415 ac_ext=cpp
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420 if test -z "$CXX"; then
4421   if test -n "$CCC"; then
4422     CXX=$CCC
4423   else
4424     if test -n "$ac_tool_prefix"; then
4425   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4426   do
4427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_CXX+set}" = set; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   if test -n "$CXX"; then
4435   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449   done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 CXX=$ac_cv_prog_CXX
4455 if test -n "$CXX"; then
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4457 $as_echo "$CXX" >&6; }
4458 else
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462
4463
4464     test -n "$CXX" && break
4465   done
4466 fi
4467 if test -z "$CXX"; then
4468   ac_ct_CXX=$CXX
4469   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4470 do
4471   # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478   if test -n "$ac_ct_CXX"; then
4479   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486     for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_prog_ac_ct_CXX="$ac_prog"
4489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493   done
4494 IFS=$as_save_IFS
4495
4496 fi
4497 fi
4498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4499 if test -n "$ac_ct_CXX"; then
4500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4501 $as_echo "$ac_ct_CXX" >&6; }
4502 else
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4505 fi
4506
4507
4508   test -n "$ac_ct_CXX" && break
4509 done
4510
4511   if test "x$ac_ct_CXX" = x; then
4512     CXX="g++"
4513   else
4514     case $cross_compiling:$ac_tool_warned in
4515 yes:)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518 ac_tool_warned=yes ;;
4519 esac
4520     CXX=$ac_ct_CXX
4521   fi
4522 fi
4523
4524   fi
4525 fi
4526 # Provide some information about the compiler.
4527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4528 set X $ac_compile
4529 ac_compiler=$2
4530 for ac_option in --version -v -V -qversion; do
4531   { { ac_try="$ac_compiler $ac_option >&5"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4539   ac_status=$?
4540   if test -s conftest.err; then
4541     sed '10a\
4542 ... rest of stderr output deleted ...
4543          10q' conftest.err >conftest.er1
4544     cat conftest.er1 >&5
4545     rm -f conftest.er1 conftest.err
4546   fi
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; }
4549 done
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4552 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4553 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558
4559 int
4560 main ()
4561 {
4562 #ifndef __GNUC__
4563        choke me
4564 #endif
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_compiler_gnu=yes
4572 else
4573   ac_compiler_gnu=no
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4580 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4581 if test $ac_compiler_gnu = yes; then
4582   GXX=yes
4583 else
4584   GXX=
4585 fi
4586 ac_test_CXXFLAGS=${CXXFLAGS+set}
4587 ac_save_CXXFLAGS=$CXXFLAGS
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4589 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4590 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4594    ac_cxx_werror_flag=yes
4595    ac_cv_prog_cxx_g=no
4596    CXXFLAGS="-g"
4597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599
4600 int
4601 main ()
4602 {
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_cxx_try_compile "$LINENO"; then :
4609   ac_cv_prog_cxx_g=yes
4610 else
4611   CXXFLAGS=""
4612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614
4615 int
4616 main ()
4617 {
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4624
4625 else
4626   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4627          CXXFLAGS="-g"
4628          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630
4631 int
4632 main ()
4633 {
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_cxx_try_compile "$LINENO"; then :
4640   ac_cv_prog_cxx_g=yes
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4650 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4651 if test "$ac_test_CXXFLAGS" = set; then
4652   CXXFLAGS=$ac_save_CXXFLAGS
4653 elif test $ac_cv_prog_cxx_g = yes; then
4654   if test "$GXX" = yes; then
4655     CXXFLAGS="-g -O2"
4656   else
4657     CXXFLAGS="-g"
4658   fi
4659 else
4660   if test "$GXX" = yes; then
4661     CXXFLAGS="-O2"
4662   else
4663     CXXFLAGS=
4664   fi
4665 fi
4666 ac_ext=c
4667 ac_cpp='$CPP $CPPFLAGS'
4668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
4672
4673 # We must set the default linker to the linker used by gcc for the correct
4674 # operation of libtool.  If LD is not defined and we are using gcc, try to
4675 # set the LD default to the ld used by gcc.
4676 if test -z "$LD"; then
4677   if test "$GCC" = yes; then
4678     case $build in
4679     *-*-mingw*)
4680       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4681     *)
4682       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4683     esac
4684     case $gcc_prog_ld in
4685     # Accept absolute paths.
4686     [\\/]* | [A-Za-z]:[\\/]*)
4687       LD="$gcc_prog_ld" ;;
4688     esac
4689   fi
4690 fi
4691
4692
4693
4694
4695 if test -n "$ac_tool_prefix"; then
4696   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   if test -n "$GNATBIND"; then
4704   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718   done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 GNATBIND=$ac_cv_prog_GNATBIND
4724 if test -n "$GNATBIND"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4726 $as_echo "$GNATBIND" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732
4733 fi
4734 if test -z "$ac_cv_prog_GNATBIND"; then
4735   ac_ct_GNATBIND=$GNATBIND
4736   # Extract the first word of "gnatbind", so it can be a program name with args.
4737 set dummy gnatbind; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   if test -n "$ac_ct_GNATBIND"; then
4744   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4764 if test -n "$ac_ct_GNATBIND"; then
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4766 $as_echo "$ac_ct_GNATBIND" >&6; }
4767 else
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772   if test "x$ac_ct_GNATBIND" = x; then
4773     GNATBIND="no"
4774   else
4775     case $cross_compiling:$ac_tool_warned in
4776 yes:)
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779 ac_tool_warned=yes ;;
4780 esac
4781     GNATBIND=$ac_ct_GNATBIND
4782   fi
4783 else
4784   GNATBIND="$ac_cv_prog_GNATBIND"
4785 fi
4786
4787 if test -n "$ac_tool_prefix"; then
4788   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4789 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 $as_echo_n "checking for $ac_word... " >&6; }
4792 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   if test -n "$GNATMAKE"; then
4796   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 GNATMAKE=$ac_cv_prog_GNATMAKE
4816 if test -n "$GNATMAKE"; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4818 $as_echo "$GNATMAKE" >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824
4825 fi
4826 if test -z "$ac_cv_prog_GNATMAKE"; then
4827   ac_ct_GNATMAKE=$GNATMAKE
4828   # Extract the first word of "gnatmake", so it can be a program name with args.
4829 set dummy gnatmake; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   if test -n "$ac_ct_GNATMAKE"; then
4836   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850   done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4856 if test -n "$ac_ct_GNATMAKE"; then
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4858 $as_echo "$ac_ct_GNATMAKE" >&6; }
4859 else
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864   if test "x$ac_ct_GNATMAKE" = x; then
4865     GNATMAKE="no"
4866   else
4867     case $cross_compiling:$ac_tool_warned in
4868 yes:)
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4871 ac_tool_warned=yes ;;
4872 esac
4873     GNATMAKE=$ac_ct_GNATMAKE
4874   fi
4875 else
4876   GNATMAKE="$ac_cv_prog_GNATMAKE"
4877 fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4880 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4881 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   cat >conftest.adb <<EOF
4885 procedure conftest is begin null; end conftest;
4886 EOF
4887 acx_cv_cc_gcc_supports_ada=no
4888 # There is a bug in old released versions of GCC which causes the
4889 # driver to exit successfully when the appropriate language module
4890 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4891 # Therefore we must check for the error message as well as an
4892 # unsuccessful exit.
4893 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4894 # given a .adb file, but produce no object file.  So we must check
4895 # if an object file was really produced to guard against this.
4896 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4897 if test x"$errors" = x && test -f conftest.$ac_objext; then
4898   acx_cv_cc_gcc_supports_ada=yes
4899 fi
4900 rm -f conftest.*
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4903 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4904
4905 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4906   have_gnat=yes
4907 else
4908   have_gnat=no
4909 fi
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4912 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4913 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916    echo abfoo >t1
4917   echo cdfoo >t2
4918   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4919   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4920     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4921       :
4922     else
4923       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4924     fi
4925   fi
4926   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4927     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4928       :
4929     else
4930       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4931     fi
4932   fi
4933   rm t1 t2
4934
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4937 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
4938 do_compare="$gcc_cv_prog_cmp_skip"
4939
4940
4941
4942 # See if we are building gcc with C++.
4943 # Check whether --enable-build-with-cxx was given.
4944 if test "${enable_build_with_cxx+set}" = set; then :
4945   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4946 else
4947   ENABLE_BUILD_WITH_CXX=no
4948 fi
4949
4950
4951 # Used for setting $lt_cv_objdir
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4953 $as_echo_n "checking for objdir... " >&6; }
4954 if test "${lt_cv_objdir+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   rm -f .libs 2>/dev/null
4958 mkdir .libs 2>/dev/null
4959 if test -d .libs; then
4960   lt_cv_objdir=.libs
4961 else
4962   # MS-DOS does not allow filenames that begin with a dot.
4963   lt_cv_objdir=_libs
4964 fi
4965 rmdir .libs 2>/dev/null
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4968 $as_echo "$lt_cv_objdir" >&6; }
4969 objdir=$lt_cv_objdir
4970
4971
4972
4973
4974
4975 cat >>confdefs.h <<_ACEOF
4976 #define LT_OBJDIR "$lt_cv_objdir/"
4977 _ACEOF
4978
4979
4980
4981 # Check for GMP, MPFR and MPC
4982 gmplibs="-lmpc -lmpfr -lgmp"
4983 gmpinc=
4984 have_gmp=no
4985
4986 # Specify a location for mpc
4987 # check for this first so it ends up on the link line before mpfr.
4988
4989 # Check whether --with-mpc was given.
4990 if test "${with_mpc+set}" = set; then :
4991   withval=$with_mpc;
4992 fi
4993
4994
4995 # Check whether --with-mpc-include was given.
4996 if test "${with_mpc_include+set}" = set; then :
4997   withval=$with_mpc_include;
4998 fi
4999
5000
5001 # Check whether --with-mpc-lib was given.
5002 if test "${with_mpc_lib+set}" = set; then :
5003   withval=$with_mpc_lib;
5004 fi
5005
5006
5007 if test "x$with_mpc" != x; then
5008   gmplibs="-L$with_mpc/lib $gmplibs"
5009   gmpinc="-I$with_mpc/include $gmpinc"
5010 fi
5011 if test "x$with_mpc_include" != x; then
5012   gmpinc="-I$with_mpc_include $gmpinc"
5013 fi
5014 if test "x$with_mpc_lib" != x; then
5015   gmplibs="-L$with_mpc_lib $gmplibs"
5016 fi
5017 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5018   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5019   gmpinc='-I$$s/mpc/src '"$gmpinc"
5020   # Do not test the mpc version.  Assume that it is sufficient, since
5021   # it is in the source tree, and the library has not been built yet
5022   # but it would be included on the link line in the version check below
5023   # hence making the test fail.
5024   have_gmp=yes
5025 fi
5026
5027 # Specify a location for mpfr
5028 # check for this first so it ends up on the link line before gmp.
5029
5030 # Check whether --with-mpfr-dir was given.
5031 if test "${with_mpfr_dir+set}" = set; then :
5032   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5033 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5034 fi
5035
5036
5037
5038 # Check whether --with-mpfr was given.
5039 if test "${with_mpfr+set}" = set; then :
5040   withval=$with_mpfr;
5041 fi
5042
5043
5044 # Check whether --with-mpfr-include was given.
5045 if test "${with_mpfr_include+set}" = set; then :
5046   withval=$with_mpfr_include;
5047 fi
5048
5049
5050 # Check whether --with-mpfr-lib was given.
5051 if test "${with_mpfr_lib+set}" = set; then :
5052   withval=$with_mpfr_lib;
5053 fi
5054
5055
5056 if test "x$with_mpfr" != x; then
5057   gmplibs="-L$with_mpfr/lib $gmplibs"
5058   gmpinc="-I$with_mpfr/include $gmpinc"
5059 fi
5060 if test "x$with_mpfr_include" != x; then
5061   gmpinc="-I$with_mpfr_include $gmpinc"
5062 fi
5063 if test "x$with_mpfr_lib" != x; then
5064   gmplibs="-L$with_mpfr_lib $gmplibs"
5065 fi
5066 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5067   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5068   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5069   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5070   # Do not test the mpfr version.  Assume that it is sufficient, since
5071   # it is in the source tree, and the library has not been built yet
5072   # but it would be included on the link line in the version check below
5073   # hence making the test fail.
5074   have_gmp=yes
5075 fi
5076
5077 # Specify a location for gmp
5078
5079 # Check whether --with-gmp-dir was given.
5080 if test "${with_gmp_dir+set}" = set; then :
5081   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5082 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5083 fi
5084
5085
5086
5087 # Check whether --with-gmp was given.
5088 if test "${with_gmp+set}" = set; then :
5089   withval=$with_gmp;
5090 fi
5091
5092
5093 # Check whether --with-gmp-include was given.
5094 if test "${with_gmp_include+set}" = set; then :
5095   withval=$with_gmp_include;
5096 fi
5097
5098
5099 # Check whether --with-gmp-lib was given.
5100 if test "${with_gmp_lib+set}" = set; then :
5101   withval=$with_gmp_lib;
5102 fi
5103
5104
5105
5106 if test "x$with_gmp" != x; then
5107   gmplibs="-L$with_gmp/lib $gmplibs"
5108   gmpinc="-I$with_gmp/include $gmpinc"
5109 fi
5110 if test "x$with_gmp_include" != x; then
5111   gmpinc="-I$with_gmp_include $gmpinc"
5112 fi
5113 if test "x$with_gmp_lib" != x; then
5114   gmplibs="-L$with_gmp_lib $gmplibs"
5115 fi
5116 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5117   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5118   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5119   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5120   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5121   # Do not test the gmp version.  Assume that it is sufficient, since
5122   # it is in the source tree, and the library has not been built yet
5123   # but it would be included on the link line in the version check below
5124   # hence making the test fail.
5125   have_gmp=yes
5126 fi
5127
5128 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5129   have_gmp=yes
5130   saved_CFLAGS="$CFLAGS"
5131   CFLAGS="$CFLAGS $gmpinc"
5132   # Check for the recommended and required versions of GMP.
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5134 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5135
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h.  */
5138 #include "gmp.h"
5139 int
5140 main ()
5141 {
5142
5143   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5144   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5145   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5146   choke me
5147   #endif
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h.  */
5156 #include <gmp.h>
5157 int
5158 main ()
5159 {
5160
5161   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5162   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5163   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5164   choke me
5165   #endif
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5176 $as_echo "buggy but acceptable" >&6; }
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }; have_gmp=no
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184
5185   # If we have GMP, check the MPFR version.
5186   if test x"$have_gmp" = xyes; then
5187     # Check for the recommended and required versions of MPFR.
5188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5189 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h.  */
5192 #include <gmp.h>
5193     #include <mpfr.h>
5194 int
5195 main ()
5196 {
5197
5198     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5199     choke me
5200     #endif
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h.  */
5209 #include <gmp.h>
5210     #include <mpfr.h>
5211 int
5212 main ()
5213 {
5214
5215     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5216     choke me
5217     #endif
5218
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225 $as_echo "yes" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5228 $as_echo "buggy but acceptable" >&6; }
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }; have_gmp=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236   fi
5237
5238   # Check for the MPC header version.
5239   if test x"$have_gmp" = xyes ; then
5240     # Check for the recommended and required versions of MPC.
5241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5242 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #include <mpc.h>
5246 int
5247 main ()
5248 {
5249
5250     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5251     choke me
5252     #endif
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261 #include <mpc.h>
5262 int
5263 main ()
5264 {
5265
5266     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5267     choke me
5268     #endif
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5276 $as_echo "yes" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5279 $as_echo "buggy but acceptable" >&6; }
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }; have_gmp=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287   fi
5288
5289   # Now check the MPFR library.
5290   if test x"$have_gmp" = xyes; then
5291     saved_LIBS="$LIBS"
5292     LIBS="$LIBS $gmplibs"
5293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5294 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297 #include <mpc.h>
5298 int
5299 main ()
5300 {
5301
5302     mpfr_t n;
5303     mpfr_t x;
5304     mpc_t c;
5305     int t;
5306     mpfr_init (n);
5307     mpfr_init (x);
5308     mpfr_atan2 (n, n, x, GMP_RNDN);
5309     mpfr_erfc (n, x, GMP_RNDN);
5310     mpfr_subnormalize (x, t, GMP_RNDN);
5311     mpfr_clear(n);
5312     mpfr_clear(x);
5313     mpc_init2 (c, 53);
5314     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5315     mpc_cosh (c, c, MPC_RNDNN);
5316     mpc_pow (c, c, c, MPC_RNDNN);
5317     mpc_acosh (c, c, MPC_RNDNN);
5318     mpc_clear (c);
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"; then :
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5327 else
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }; have_gmp=no
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext \
5332     conftest$ac_exeext conftest.$ac_ext
5333     LIBS="$saved_LIBS"
5334   fi
5335
5336   CFLAGS="$saved_CFLAGS"
5337
5338 # The library versions listed in the error message below should match
5339 # the HARD-minimums enforced above.
5340   if test x$have_gmp != xyes; then
5341     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5342 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5343 their locations.  Source code for these libraries can be found at
5344 their respective hosting sites as well as at
5345 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5346 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5347 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5348 make sure that you have installed both the libraries and the header
5349 files.  They may be located in separate packages." "$LINENO" 5
5350   fi
5351 fi
5352
5353 # Flags needed for both GMP, MPFR and/or MPC.
5354
5355
5356
5357
5358
5359
5360 # Allow host libstdc++ to be specified for static linking with PPL.
5361
5362 # Check whether --with-host-libstdcxx was given.
5363 if test "${with_host_libstdcxx+set}" = set; then :
5364   withval=$with_host_libstdcxx;
5365 fi
5366
5367
5368 case $with_host_libstdcxx in
5369   no|yes)
5370     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5371     ;;
5372 esac
5373
5374 # Linker flags to use for stage1 or when not boostrapping.
5375
5376 # Check whether --with-stage1-ldflags was given.
5377 if test "${with_stage1_ldflags+set}" = set; then :
5378   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5379    stage1_ldflags=
5380  else
5381    stage1_ldflags=$withval
5382  fi
5383 else
5384   stage1_ldflags=
5385 fi
5386
5387
5388
5389 # Libraries to use for stage1 or when not bootstrapping.
5390
5391 # Check whether --with-stage1-libs was given.
5392 if test "${with_stage1_libs+set}" = set; then :
5393   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5394    stage1_libs=
5395  else
5396    stage1_libs=$withval
5397  fi
5398 else
5399   stage1_libs=$with_host_libstdcxx
5400 fi
5401
5402
5403
5404 # Libraries to use for stage2 and later builds.  This defaults to the
5405 # argument passed to --with-host-libstdcxx.
5406
5407 # Check whether --with-boot-libs was given.
5408 if test "${with_boot_libs+set}" = set; then :
5409   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5410    poststage1_libs=
5411  else
5412    poststage1_libs=$withval
5413  fi
5414 else
5415   poststage1_libs=$with_host_libstdcxx
5416 fi
5417
5418
5419
5420 # Linker flags to use for stage2 and later builds.
5421
5422 # Check whether --with-boot-ldflags was given.
5423 if test "${with_boot_ldflags+set}" = set; then :
5424   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5425    poststage1_ldflags=
5426  else
5427    poststage1_ldflags=$withval
5428  fi
5429 else
5430   poststage1_ldflags=
5431  # In stages 2 and 3, default to linking libstdc++ and libgcc
5432  # statically.  But if the user explicitly specified the libraries to
5433  # use, trust that they are doing what they want.
5434  if test "$poststage1_libs" = ""; then
5435    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5436  fi
5437 fi
5438
5439
5440
5441 # Check for PPL
5442 ppllibs=
5443 pplinc=
5444 pwllib=
5445
5446
5447 # Check whether --with-ppl was given.
5448 if test "${with_ppl+set}" = set; then :
5449   withval=$with_ppl;
5450 fi
5451
5452
5453 # Check whether --with-ppl-include was given.
5454 if test "${with_ppl_include+set}" = set; then :
5455   withval=$with_ppl_include;
5456 fi
5457
5458
5459 # Check whether --with-ppl-lib was given.
5460 if test "${with_ppl_lib+set}" = set; then :
5461   withval=$with_ppl_lib;
5462 fi
5463
5464
5465 # Check whether --enable-ppl-version-check was given.
5466 if test "${enable_ppl_version_check+set}" = set; then :
5467   enableval=$enable_ppl_version_check;
5468 fi
5469
5470
5471 case $with_ppl in
5472   yes | no | "")
5473     ;;
5474   *)
5475     ppllibs="-L$with_ppl/lib"
5476     pplinc="-I$with_ppl/include $pplinc"
5477     if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5478       with_ppl=yes
5479     else
5480       as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5481     fi
5482     ;;
5483 esac
5484
5485 if test x"$with_ppl_include" != x; then
5486   pplinc="-I$with_ppl_include $pplinc"
5487   with_ppl=yes
5488 fi
5489
5490 if test "x$with_ppl_lib" != x; then
5491   ppllibs="-L$with_ppl_lib"
5492   with_ppl=yes
5493 fi
5494
5495 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5496   if test x"$enable_watchdog" = xyes; then
5497     pwllib="-lpwl"
5498   fi
5499   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5500   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5501   enable_ppl_version_check=no
5502   with_ppl=yes
5503 fi
5504
5505 if test "x$with_ppl" != xno; then
5506   if test "x$pwllib" = x; then
5507     saved_LIBS="$LIBS"
5508     LIBS="$LIBS $ppllibs -lstdc++ -lm"
5509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5510 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5511 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lpwl  $LIBS"
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h.  */
5518
5519 /* Override any GCC internal prototype to avoid an error.
5520    Use char because int might match the return type of a GCC
5521    builtin and then its argument prototype would still apply.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 char PWL_handle_timeout ();
5526 int
5527 main ()
5528 {
5529 return PWL_handle_timeout ();
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 if ac_fn_c_try_link "$LINENO"; then :
5535   ac_cv_lib_pwl_PWL_handle_timeout=yes
5536 else
5537   ac_cv_lib_pwl_PWL_handle_timeout=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext \
5540     conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5544 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5545 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5546   pwllib="-lpwl"
5547 fi
5548
5549     LIBS="$saved_LIBS"
5550   fi
5551
5552   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5553
5554   if test "$enable_ppl_version_check" != no; then
5555     saved_CFLAGS="$CFLAGS"
5556     CFLAGS="$CFLAGS $pplinc $gmpinc"
5557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5558 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h.  */
5561 #include "ppl_c.h"
5562 int
5563 main ()
5564 {
5565
5566     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5567     choke me
5568     #endif
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 $as_echo "yes" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582     CFLAGS="$saved_CFLAGS"
5583   fi
5584 fi
5585
5586 # Flags needed for PPL
5587
5588
5589
5590
5591 # Check for CLOOG
5592
5593
5594
5595 # Check whether --with-cloog was given.
5596 if test "${with_cloog+set}" = set; then :
5597   withval=$with_cloog;
5598 fi
5599
5600
5601 # Check whether --with-cloog-include was given.
5602 if test "${with_cloog_include+set}" = set; then :
5603   withval=$with_cloog_include;
5604 fi
5605
5606
5607 # Check whether --with-cloog-lib was given.
5608 if test "${with_cloog_lib+set}" = set; then :
5609   withval=$with_cloog_lib;
5610 fi
5611
5612
5613   # Check whether --enable-cloog-backend was given.
5614 if test "${enable_cloog_backend+set}" = set; then :
5615   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5616         cloog_backend=isl
5617       elif test "x${enableval}" = "xppl"; then
5618         cloog_backend=ppl
5619       else
5620         cloog_backend=ppl-legacy
5621       fi
5622 else
5623   cloog_backend=ppl-legacy
5624 fi
5625
5626   # Check whether --enable-cloog-version-check was given.
5627 if test "${enable_cloog_version_check+set}" = set; then :
5628   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5629 else
5630   ENABLE_CLOOG_CHECK=yes
5631 fi
5632
5633
5634   # Initialize clooglibs and clooginc.
5635   case $with_cloog in
5636     no)
5637       clooglibs=
5638       clooginc=
5639       ;;
5640     "" | yes)
5641       ;;
5642     *)
5643       clooglibs="-L$with_cloog/lib"
5644       clooginc="-I$with_cloog/include"
5645       ;;
5646   esac
5647   if test "x${with_cloog_include}" != x ; then
5648     clooginc="-I$with_cloog_include"
5649   fi
5650   if test "x${with_cloog_lib}" != x; then
5651     clooglibs="-L$with_cloog_lib"
5652   fi
5653
5654
5655
5656
5657
5658 if test "x$with_ppl" = "xno"; then
5659
5660
5661
5662   if test "x${with_cloog}" = xno; then
5663     graphite_requested=no
5664   elif test "x${with_cloog}" != x \
5665     || test "x${with_cloog_include}" != x \
5666     || test "x${with_cloog_lib}" != x ; then
5667     graphite_requested=yes
5668   else
5669     graphite_requested=no
5670   fi
5671
5672
5673   if test "${graphite_requested}" = yes; then
5674     as_fn_error "Unable to find a usable PPL.  See config.log for details." "$LINENO" 5
5675   fi
5676   with_cloog=no
5677 fi
5678 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5679   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5680   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5681   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5682 fi
5683 if test "x$with_cloog" != "xno"; then
5684
5685
5686
5687   _cloog_saved_CFLAGS=$CFLAGS
5688   _cloog_saved_CPPFLAGS=$CPPFLAGS
5689   _cloog_saved_LDFLAGS=$LDFLAGS
5690   _cloog_saved_LIBS=$LIBS
5691
5692   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5693
5694     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5695   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5696   LDFLAGS="${LDFLAGS} ${clooglibs}"
5697
5698   case $cloog_backend in
5699     "ppl-legacy")
5700     CFLAGS="${CFLAGS} ${pplinc}"
5701     LDFLAGS="${LDFLAGS} ${ppllibs}"
5702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5703 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5704 if test "${gcc_cv_cloog_type+set}" = set; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   LIBS="-lcloog ${_cloog_saved_LIBS}"
5708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h.  */
5710 #include "cloog/cloog.h"
5711 int
5712 main ()
5713 {
5714 #ifndef CLOOG_PPL_BACKEND
5715     choke me
5716    #endif
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 if ac_fn_c_try_link "$LINENO"; then :
5722   gcc_cv_cloog_type="PPL Legacy"
5723 else
5724   gcc_cv_cloog_type=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext \
5727     conftest$ac_exeext conftest.$ac_ext
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5730 $as_echo "$gcc_cv_cloog_type" >&6; }
5731     ;;
5732     "isl")
5733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5734 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5735 if test "${gcc_cv_cloog_type+set}" = set; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h.  */
5741 #include "cloog/cloog.h"
5742 int
5743 main ()
5744 {
5745 cloog_version ()
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_link "$LINENO"; then :
5751   gcc_cv_cloog_type="ISL"
5752 else
5753   gcc_cv_cloog_type=no
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext \
5756     conftest$ac_exeext conftest.$ac_ext
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5759 $as_echo "$gcc_cv_cloog_type" >&6; }
5760     ;;
5761     "ppl")
5762     CFLAGS="${CFLAGS} ${pplinc}"
5763     LDFLAGS="${LDFLAGS} ${ppllibs}"
5764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5765 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5766 if test "${gcc_cv_cloog_type+set}" = set; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h.  */
5772 #include "cloog/cloog.h"
5773    #include "cloog/ppl/cloog.h"
5774 int
5775 main ()
5776 {
5777 cloog_version ()
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"; then :
5783   gcc_cv_cloog_type="PPL"
5784 else
5785   gcc_cv_cloog_type=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext \
5788     conftest$ac_exeext conftest.$ac_ext
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5791 $as_echo "$gcc_cv_cloog_type" >&6; }
5792     ;;
5793     *)
5794       gcc_cv_cloog_type=""
5795   esac
5796
5797   case $gcc_cv_cloog_type in
5798     "PPL Legacy")
5799       clooginc="${clooginc}"
5800       clooglibs="${clooglibs} -lcloog"
5801       cloog_org=no
5802       ;;
5803     "ISL")
5804       clooginc="${clooginc} ${_cloogorginc}"
5805       clooglibs="${clooglibs} -lcloog-isl -lisl"
5806       cloog_org=yes
5807       ;;
5808     "PPL")
5809       clooginc="${clooginc} ${_cloogorginc}"
5810       clooglibs="${clooglibs} -lcloog-ppl"
5811       cloog_org=yes
5812       ;;
5813     *)
5814       clooglibs=
5815       clooginc=
5816       cloog_org=
5817       ;;
5818   esac
5819
5820   LIBS=$_cloog_saved_LIBS
5821   CFLAGS=$_cloog_saved_CFLAGS
5822   CPPFLAGS=$_cloog_saved_CPPFLAGS
5823   LDFLAGS=$_cloog_saved_LDFLAGS
5824
5825
5826
5827
5828
5829   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5830     _cloog_saved_CFLAGS=$CFLAGS
5831     _cloog_saved_LDFLAGS=$LDFLAGS
5832
5833     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5834     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5835
5836     if test "${cloog_org}" = yes ; then
5837       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5838 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5839 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h.  */
5844 #include "cloog/cloog.h"
5845 int
5846 main ()
5847 {
5848 #if CLOOG_VERSION_MAJOR != 0 \
5849     || CLOOG_VERSION_MINOR != 16 \
5850     || CLOOG_VERSION_REVISION < 1
5851     choke me
5852    #endif
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858   gcc_cv_cloog_ct_0_14_0=yes
5859 else
5860   gcc_cv_cloog_ct_0_14_0=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5865 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5866     elif test "${cloog_org}" = no ; then
5867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5868 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5869 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h.  */
5874 #include "cloog/cloog.h"
5875 int
5876 main ()
5877 {
5878 #if CLOOG_VERSION_MAJOR != 0 \
5879     || CLOOG_VERSION_MINOR != 15 \
5880     || CLOOG_VERSION_REVISION < 5
5881     choke me
5882    #endif
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h.  */
5890 #include "cloog/cloog.h"
5891 int
5892 main ()
5893 {
5894 #if CLOOG_VERSION_MAJOR != 0 \
5895     || CLOOG_VERSION_MINOR != 15 \
5896     || CLOOG_VERSION_REVISION < 9
5897     choke me
5898    #endif
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904   gcc_cv_cloog_ct_0_15_5=yes
5905 else
5906   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 else
5910   gcc_cv_cloog_ct_0_15_5=no
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5915 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5916     fi
5917
5918     CFLAGS=$_cloog_saved_CFLAGS
5919     LDFLAGS=$_cloog_saved_LDFLAGS
5920   fi
5921
5922
5923
5924
5925
5926
5927
5928   if test "x${with_cloog}" = xno; then
5929     graphite_requested=no
5930   elif test "x${with_cloog}" != x \
5931     || test "x${with_cloog_include}" != x \
5932     || test "x${with_cloog_lib}" != x ; then
5933     graphite_requested=yes
5934   else
5935     graphite_requested=no
5936   fi
5937
5938
5939
5940   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5941     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5942     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5943     clooglibs=
5944     clooginc=
5945   fi
5946
5947   if test "${graphite_requested}" = yes \
5948     && test "x${clooglibs}" = x \
5949     && test "x${clooginc}" = x ; then
5950
5951     as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
5952   fi
5953
5954
5955 fi
5956
5957 # Check for LTO support.
5958 # Check whether --enable-lto was given.
5959 if test "${enable_lto+set}" = set; then :
5960   enableval=$enable_lto; enable_lto=$enableval
5961 else
5962   enable_lto=yes; default_enable_lto=yes
5963 fi
5964
5965
5966
5967
5968
5969 target_elf=no
5970 case $target in
5971   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5972   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5973   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5974     target_elf=no
5975     ;;
5976   *)
5977     target_elf=yes
5978     ;;
5979 esac
5980
5981 if test $target_elf = yes; then :
5982   # ELF platforms build the lto-plugin always.
5983   build_lto_plugin=yes
5984
5985 else
5986   if test x"$default_enable_lto" = x"yes" ; then
5987     case $target in
5988       *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
5989       # On other non-ELF platforms, LTO has yet to be validated.
5990       *) enable_lto=no ;;
5991     esac
5992   else
5993   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5994   # It would also be nice to check the binutils support, but we don't
5995   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5996   # warn during gcc/ subconfigure; unless you're bootstrapping with
5997   # -flto it won't be needed until after installation anyway.
5998     case $target in
5999       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6000       *) if test x"$enable_lto" = x"yes"; then
6001         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6002         fi
6003       ;;
6004     esac
6005   fi
6006   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6007   # Build it unless LTO was explicitly disabled.
6008   case $target in
6009     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6010     *) ;;
6011   esac
6012
6013 fi
6014
6015
6016
6017 # By default, C is the only stage 1 language.
6018 stage1_languages=,c,
6019
6020 # Target libraries that we bootstrap.
6021 bootstrap_target_libs=,target-libgcc,
6022
6023 # Figure out what language subdirectories are present.
6024 # Look if the user specified --enable-languages="..."; if not, use
6025 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6026 # go away some day.
6027 # NB:  embedded tabs in this IF block -- do not untabify
6028 if test -d ${srcdir}/gcc; then
6029   if test x"${enable_languages+set}" != xset; then
6030     if test x"${LANGUAGES+set}" = xset; then
6031       enable_languages="${LANGUAGES}"
6032         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6033     else
6034       enable_languages=all
6035     fi
6036   else
6037     if test x"${enable_languages}" = x ||
6038        test x"${enable_languages}" = xyes;
6039        then
6040       echo configure.in: --enable-languages needs at least one language argument 1>&2
6041       exit 1
6042     fi
6043   fi
6044   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6045
6046   # 'f95' is the old name for the 'fortran' language. We issue a warning
6047   # and make the substitution.
6048   case ,${enable_languages}, in
6049     *,f95,*)
6050       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6051       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6052       ;;
6053   esac
6054
6055   # First scan to see if an enabled language requires some other language.
6056   # We assume that a given config-lang.in will list all the language
6057   # front ends it requires, even if some are required indirectly.
6058   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6059     case ${lang_frag} in
6060       ..) ;;
6061       # The odd quoting in the next line works around
6062       # an apparent bug in bash 1.12 on linux.
6063       ${srcdir}/gcc/[*]/config-lang.in) ;;
6064       *)
6065         # From the config-lang.in, get $language, $lang_requires, and
6066         # $lang_requires_boot_languages.
6067         language=
6068         lang_requires=
6069         lang_requires_boot_languages=
6070         . ${lang_frag}
6071         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6072           case ,${enable_languages}, in
6073             *,$other,*) ;;
6074             *,all,*) ;;
6075             *,$language,*)
6076               echo " \`$other' language required by \`$language'; enabling" 1>&2
6077               enable_languages="${enable_languages},${other}"
6078               ;;
6079           esac
6080         done
6081         for other in ${lang_requires_boot_languages} ; do
6082           if test "$other" != "c"; then
6083             case ,${enable_stage1_languages}, in
6084               *,$other,*) ;;
6085               *,all,*) ;;
6086               *)
6087                 case ,${enable_languages}, in
6088                   *,$language,*)
6089                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6090                     enable_stage1_languages="$enable_stage1_languages,${other}"
6091                     ;;
6092                 esac
6093                 ;;
6094             esac
6095           fi
6096         done
6097         ;;
6098     esac
6099   done
6100
6101   new_enable_languages=,c,
6102
6103   # If LTO is enabled, add the LTO front end.
6104   extra_host_libiberty_configure_flags=
6105   if test "$enable_lto" = "yes" ; then
6106     case ,${enable_languages}, in
6107       *,lto,*) ;;
6108       *) enable_languages="${enable_languages},lto" ;;
6109     esac
6110     if test "${build_lto_plugin}" = "yes" ; then
6111       configdirs="$configdirs lto-plugin"
6112       extra_host_libiberty_configure_flags=--enable-shared
6113     fi
6114   fi
6115
6116
6117   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6118   potential_languages=,c,
6119
6120   enabled_target_libs=
6121   disabled_target_libs=
6122
6123   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6124     case ${lang_frag} in
6125       ..) ;;
6126       # The odd quoting in the next line works around
6127       # an apparent bug in bash 1.12 on linux.
6128       ${srcdir}/gcc/[*]/config-lang.in) ;;
6129       *)
6130         # From the config-lang.in, get $language, $target_libs,
6131         # $lang_dirs, $boot_language, and $build_by_default
6132         language=
6133         target_libs=
6134         lang_dirs=
6135         subdir_requires=
6136         boot_language=no
6137         build_by_default=yes
6138         . ${lang_frag}
6139         if test x${language} = x; then
6140           echo "${lang_frag} doesn't set \$language." 1>&2
6141           exit 1
6142         fi
6143
6144         if test "$language" = "c++" \
6145            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6146           boot_language=yes
6147         fi
6148
6149         case ,${enable_languages}, in
6150           *,${language},*)
6151             # Language was explicitly selected; include it.
6152             add_this_lang=yes
6153             ;;
6154           *,all,*)
6155             # 'all' was selected, select it if it is a default language
6156             add_this_lang=${build_by_default}
6157             ;;
6158           *)
6159             add_this_lang=no
6160             ;;
6161         esac
6162
6163         # Disable languages that need other directories if these aren't available.
6164         for i in $subdir_requires; do
6165           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6166           case ,${enable_languages}, in
6167             *,${language},*)
6168               # Specifically requested language; tell them.
6169               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6170               ;;
6171             *)
6172               # Silently disable.
6173               add_this_lang=unsupported
6174               ;;
6175           esac
6176         done
6177
6178         # Disable Ada if no preexisting GNAT is available.
6179         case ,${enable_languages},:${language}:${have_gnat} in
6180           *,${language},*:ada:no)
6181             # Specifically requested language; tell them.
6182             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6183             ;;
6184           *:ada:no)
6185             # Silently disable.
6186             add_this_lang=unsupported
6187             ;;
6188         esac
6189
6190         # Disable a language that is unsupported by the target.
6191         case " $unsupported_languages " in
6192           *" $language "*)
6193             add_this_lang=unsupported
6194             ;;
6195         esac
6196
6197         case $add_this_lang in
6198           unsupported)
6199             # Remove language-dependent dirs.
6200             disabled_target_libs="$disabled_target_libs $target_libs"
6201             noconfigdirs="$noconfigdirs $lang_dirs"
6202             ;;
6203           no)
6204             # Remove language-dependent dirs; still show language as supported.
6205             disabled_target_libs="$disabled_target_libs $target_libs"
6206             noconfigdirs="$noconfigdirs $lang_dirs"
6207             potential_languages="${potential_languages}${language},"
6208             ;;
6209           yes)
6210             new_enable_languages="${new_enable_languages}${language},"
6211             potential_languages="${potential_languages}${language},"
6212             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6213             enabled_target_libs="$enabled_target_libs $target_libs"
6214             case "${boot_language}:,$enable_stage1_languages," in
6215               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6216                 # Add to (comma-separated) list of stage 1 languages.
6217                 case ",$stage1_languages," in
6218                   *,$language,* | ,yes, | ,all,) ;;
6219                   *) stage1_languages="${stage1_languages}${language}," ;;
6220                 esac
6221                 # We need to bootstrap any supporting libraries.
6222                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6223                 ;;
6224             esac
6225             ;;
6226         esac
6227         ;;
6228     esac
6229   done
6230
6231   # Add target libraries which are only needed for disabled languages
6232   # to noconfigdirs.
6233   if test -n "$disabled_target_libs"; then
6234     for dir in $disabled_target_libs; do
6235       case " $enabled_target_libs " in
6236       *" ${dir} "*) ;;
6237       *) noconfigdirs="$noconfigdirs $dir" ;;
6238       esac
6239     done
6240   fi
6241
6242   # Check whether --enable-stage1-languages was given.
6243 if test "${enable_stage1_languages+set}" = set; then :
6244   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6245     ,no,|,,)
6246       # Set it to something that will have no effect in the loop below
6247       enable_stage1_languages=c ;;
6248     ,yes,)
6249       enable_stage1_languages=`echo $new_enable_languages | \
6250         sed -e "s/^,//" -e "s/,$//" ` ;;
6251     *,all,*)
6252       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6253         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6254   esac
6255
6256   # Add "good" languages from enable_stage1_languages to stage1_languages,
6257   # while "bad" languages go in missing_languages.  Leave no duplicates.
6258   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6259     case $potential_languages in
6260       *,$i,*)
6261         case $stage1_languages in
6262           *,$i,*) ;;
6263           *) stage1_languages="$stage1_languages$i," ;;
6264         esac ;;
6265       *)
6266         case $missing_languages in
6267           *,$i,*) ;;
6268           *) missing_languages="$missing_languages$i," ;;
6269         esac ;;
6270      esac
6271   done
6272 fi
6273
6274
6275   # Remove leading/trailing commas that were added for simplicity
6276   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6277   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6278   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6279   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6280
6281   if test "x$missing_languages" != x; then
6282     as_fn_error "
6283 The following requested languages could not be built: ${missing_languages}
6284 Supported languages are: ${potential_languages}" "$LINENO" 5
6285   fi
6286   if test "x$new_enable_languages" != "x$enable_languages"; then
6287     echo The following languages will be built: ${new_enable_languages}
6288     enable_languages="$new_enable_languages"
6289   fi
6290
6291
6292   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6293 fi
6294
6295 # Handle --disable-<component> generically.
6296 for dir in $configdirs $build_configdirs $target_configdirs ; do
6297   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6298   varname=`echo $dirname | sed -e s/+/_/g`
6299   if eval test x\${enable_${varname}} "=" xno ; then
6300     noconfigdirs="$noconfigdirs $dir"
6301   fi
6302 done
6303
6304 # Check for Boehm's garbage collector
6305 # Check whether --enable-objc-gc was given.
6306 if test "${enable_objc_gc+set}" = set; then :
6307   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6308   *,objc,*:*:yes:*target-boehm-gc*)
6309     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6310     ;;
6311 esac
6312 fi
6313
6314
6315 # Make sure we only build Boehm's garbage collector if required.
6316 case ,${enable_languages},:${enable_objc_gc} in
6317   *,objc,*:yes)
6318     # Keep target-boehm-gc if requested for Objective-C.
6319     ;;
6320   *)
6321     # Otherwise remove target-boehm-gc depending on target-libjava.
6322     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6323       noconfigdirs="$noconfigdirs target-boehm-gc"
6324     fi
6325     ;;
6326 esac
6327
6328 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6329 # $build_configdirs and $target_configdirs.
6330 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6331
6332 notsupp=""
6333 for dir in . $skipdirs $noconfigdirs ; do
6334   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6335   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6337     if test -r $srcdir/$dirname/configure ; then
6338       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6339         true
6340       else
6341         notsupp="$notsupp $dir"
6342       fi
6343     fi
6344   fi
6345   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6346     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6347     if test -r $srcdir/$dirname/configure ; then
6348       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6349         true
6350       else
6351         notsupp="$notsupp $dir"
6352       fi
6353     fi
6354   fi
6355   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6356     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6357     if test -r $srcdir/$dirname/configure ; then
6358       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6359         true
6360       else
6361         notsupp="$notsupp $dir"
6362       fi
6363     fi
6364   fi
6365 done
6366
6367 # Sometimes the tools are distributed with libiberty but with no other
6368 # libraries.  In that case, we don't want to build target-libiberty.
6369 # Don't let libgcc imply libiberty either.
6370 if test -n "${target_configdirs}" ; then
6371   libgcc=
6372   others=
6373   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6374     if test "$i" = "libgcc"; then
6375       libgcc=target-libgcc
6376     elif test "$i" != "libiberty" ; then
6377       if test -r $srcdir/$i/configure ; then
6378         others=yes;
6379         break;
6380       fi
6381     fi
6382   done
6383   if test -z "${others}" ; then
6384     target_configdirs=$libgcc
6385   fi
6386 fi
6387
6388 # Quietly strip out all directories which aren't configurable in this tree.
6389 # This relies on all configurable subdirectories being autoconfiscated, which
6390 # is now the case.
6391 build_configdirs_all="$build_configdirs"
6392 build_configdirs=
6393 for i in ${build_configdirs_all} ; do
6394   j=`echo $i | sed -e s/build-//g`
6395   if test -f ${srcdir}/$j/configure ; then
6396     build_configdirs="${build_configdirs} $i"
6397   fi
6398 done
6399
6400 configdirs_all="$configdirs"
6401 configdirs=
6402 for i in ${configdirs_all} ; do
6403   if test -f ${srcdir}/$i/configure ; then
6404     configdirs="${configdirs} $i"
6405   fi
6406 done
6407
6408 target_configdirs_all="$target_configdirs"
6409 target_configdirs=
6410 for i in ${target_configdirs_all} ; do
6411   j=`echo $i | sed -e s/target-//g`
6412   if test -f ${srcdir}/$j/configure ; then
6413     target_configdirs="${target_configdirs} $i"
6414   fi
6415 done
6416
6417 # Produce a warning message for the subdirs we can't configure.
6418 # This isn't especially interesting in the Cygnus tree, but in the individual
6419 # FSF releases, it's important to let people know when their machine isn't
6420 # supported by the one or two programs in a package.
6421
6422 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6423   # If $appdirs is non-empty, at least one of those directories must still
6424   # be configured, or we error out.  (E.g., if the gas release supports a
6425   # specified target in some subdirs but not the gas subdir, we shouldn't
6426   # pretend that all is well.)
6427   if test -n "$appdirs" ; then
6428     for dir in $appdirs ; do
6429       if test -r $dir/Makefile.in ; then
6430         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431           appdirs=""
6432           break
6433         fi
6434         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6435           appdirs=""
6436           break
6437         fi
6438       fi
6439     done
6440     if test -n "$appdirs" ; then
6441       echo "*** This configuration is not supported by this package." 1>&2
6442       exit 1
6443     fi
6444   fi
6445   # Okay, some application will build, or we don't care to check.  Still
6446   # notify of subdirs not getting built.
6447   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6448   echo "    ${notsupp}" 1>&2
6449   echo "    (Any other directories should still work fine.)" 1>&2
6450 fi
6451
6452 case "$host" in
6453   *msdosdjgpp*)
6454     enable_gdbtk=no ;;
6455 esac
6456
6457 # To find our prefix, in gcc_cv_tool_prefix.
6458
6459 # The user is always right.
6460 if test "${PATH_SEPARATOR+set}" != set; then
6461   echo "#! /bin/sh" >conf$$.sh
6462   echo  "exit 0"   >>conf$$.sh
6463   chmod +x conf$$.sh
6464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6465     PATH_SEPARATOR=';'
6466   else
6467     PATH_SEPARATOR=:
6468   fi
6469   rm -f conf$$.sh
6470 fi
6471
6472
6473
6474 if test "x$exec_prefix" = xNONE; then
6475         if test "x$prefix" = xNONE; then
6476                 gcc_cv_tool_prefix=$ac_default_prefix
6477         else
6478                 gcc_cv_tool_prefix=$prefix
6479         fi
6480 else
6481         gcc_cv_tool_prefix=$exec_prefix
6482 fi
6483
6484 # If there is no compiler in the tree, use the PATH only.  In any
6485 # case, if there is no compiler in the tree nobody should use
6486 # AS_FOR_TARGET and LD_FOR_TARGET.
6487 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6488     gcc_version=`cat $srcdir/gcc/BASE-VER`
6489     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6490     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6491     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6492     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6493     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6495 else
6496     gcc_cv_tool_dirs=
6497 fi
6498
6499 if test x$build = x$target && test -n "$md_exec_prefix"; then
6500         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6501 fi
6502
6503
6504
6505 copy_dirs=
6506
6507
6508 # Check whether --with-build-sysroot was given.
6509 if test "${with_build_sysroot+set}" = set; then :
6510   withval=$with_build_sysroot; if test x"$withval" != x ; then
6511      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6512    fi
6513 else
6514   SYSROOT_CFLAGS_FOR_TARGET=
6515 fi
6516
6517
6518
6519
6520 # Check whether --with-debug-prefix-map was given.
6521 if test "${with_debug_prefix_map+set}" = set; then :
6522   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6523      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6524      for debug_map in $withval; do
6525        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6526      done
6527    fi
6528 else
6529   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6530 fi
6531
6532
6533
6534 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6535 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6536 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6537 # We want to ensure that TARGET libraries (which we know are built with
6538 # gcc) are built with "-O2 -g", so include those options when setting
6539 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6540 if test "x$CFLAGS_FOR_TARGET" = x; then
6541   CFLAGS_FOR_TARGET=$CFLAGS
6542   case " $CFLAGS " in
6543     *" -O2 "*) ;;
6544     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6545   esac
6546   case " $CFLAGS " in
6547     *" -g "* | *" -g3 "*) ;;
6548     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6549   esac
6550 fi
6551
6552
6553 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6554   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6555   case " $CXXFLAGS " in
6556     *" -O2 "*) ;;
6557     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6558   esac
6559   case " $CXXFLAGS " in
6560     *" -g "* | *" -g3 "*) ;;
6561     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6562   esac
6563 fi
6564
6565
6566 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6567 # the named directory are copied to $(tooldir)/sys-include.
6568 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6569   if test x${is_cross_compiler} = xno ; then
6570     echo 1>&2 '***' --with-headers is only supported when cross compiling
6571     exit 1
6572   fi
6573   if test x"${with_headers}" != xyes ; then
6574     x=${gcc_cv_tool_prefix}
6575     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6576   fi
6577 fi
6578
6579 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6580 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6581 # are permitted.
6582 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6583   if test x${is_cross_compiler} = xno ; then
6584     echo 1>&2 '***' --with-libs is only supported when cross compiling
6585     exit 1
6586   fi
6587   if test x"${with_libs}" != xyes ; then
6588     # Copy the libraries in reverse order, so that files in the first named
6589     # library override files in subsequent libraries.
6590     x=${gcc_cv_tool_prefix}
6591     for l in ${with_libs}; do
6592       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6593     done
6594   fi
6595 fi
6596
6597 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6598 #
6599 # This is done by determining whether or not the appropriate directory
6600 # is available, and by checking whether or not specific configurations
6601 # have requested that this magic not happen.
6602 #
6603 # The command line options always override the explicit settings in
6604 # configure.in, and the settings in configure.in override this magic.
6605 #
6606 # If the default for a toolchain is to use GNU as and ld, and you don't
6607 # want to do that, then you should use the --without-gnu-as and
6608 # --without-gnu-ld options for the configure script.  Similarly, if
6609 # the default is to use the included zlib and you don't want to do that,
6610 # you should use the --with-system-zlib option for the configure script.
6611
6612 if test x${use_gnu_as} = x &&
6613    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6614   with_gnu_as=yes
6615   extra_host_args="$extra_host_args --with-gnu-as"
6616 fi
6617
6618 if test x${use_gnu_ld} = x &&
6619    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6620   with_gnu_ld=yes
6621   extra_host_args="$extra_host_args --with-gnu-ld"
6622 fi
6623
6624 if test x${use_included_zlib} = x &&
6625    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6626   :
6627 else
6628   with_system_zlib=yes
6629   extra_host_args="$extra_host_args --with-system-zlib"
6630 fi
6631
6632 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6633 # can detect this case.
6634
6635 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6636   with_newlib=yes
6637   extra_host_args="$extra_host_args --with-newlib"
6638 fi
6639
6640 # Handle ${copy_dirs}
6641 set fnord ${copy_dirs}
6642 shift
6643 while test $# != 0 ; do
6644   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6645     :
6646   else
6647     echo Copying $1 to $2
6648
6649     # Use the install script to create the directory and all required
6650     # parent directories.
6651     if test -d $2 ; then
6652       :
6653     else
6654       echo >config.temp
6655       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6656     fi
6657
6658     # Copy the directory, assuming we have tar.
6659     # FIXME: Should we use B in the second tar?  Not all systems support it.
6660     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6661
6662     # It is the responsibility of the user to correctly adjust all
6663     # symlinks.  If somebody can figure out how to handle them correctly
6664     # here, feel free to add the code.
6665
6666     echo $1 > $2/COPIED
6667   fi
6668   shift; shift
6669 done
6670
6671 # Determine a target-dependent exec_prefix that the installed
6672 # gcc will search in.  Keep this list sorted by triplet, with
6673 # the *-*-osname triplets last.
6674 md_exec_prefix=
6675 case "${target}" in
6676   alpha*-*-*vms*)
6677     md_exec_prefix=/gnu/lib/gcc-lib
6678     ;;
6679   i[34567]86-pc-msdosdjgpp*)
6680     md_exec_prefix=/dev/env/DJDIR/bin
6681     ;;
6682   i[34567]86-*-sco3.2v5*)
6683     if test $with_gnu_as = yes; then
6684       md_exec_prefix=/usr/gnu/bin
6685     else
6686       md_exec_prefix=/usr/ccs/bin/elf
6687     fi
6688     ;;
6689
6690   mn10300-*-* | \
6691   powerpc-*-chorusos* | \
6692   powerpc*-*-eabi* | \
6693   powerpc*-*-sysv* | \
6694   powerpc*-*-kaos* | \
6695   s390x-ibm-tpf*)
6696     md_exec_prefix=/usr/ccs/bin
6697     ;;
6698   sparc64-*-elf*)
6699     ;;
6700   v850*-*-*)
6701     md_exec_prefix=/usr/ccs/bin
6702     ;;
6703   xtensa*-*-elf*)
6704     ;;
6705
6706   *-*-beos* | \
6707   *-*-elf* | \
6708   *-*-hpux* | \
6709   *-*-netware* | \
6710   *-*-nto-qnx* | \
6711   *-*-rtems* | \
6712   *-*-solaris2* | \
6713   *-*-sysv[45]* | \
6714   *-*-vxworks* | \
6715   *-wrs-windiss)
6716     md_exec_prefix=/usr/ccs/bin
6717     ;;
6718 esac
6719
6720 extra_arflags_for_target=
6721 extra_nmflags_for_target=
6722 extra_ranlibflags_for_target=
6723 target_makefile_frag=/dev/null
6724 case "${target}" in
6725   spu-*-*)
6726     target_makefile_frag="config/mt-spu"
6727     ;;
6728   mips*-sde-elf*)
6729     target_makefile_frag="config/mt-sde"
6730     ;;
6731   mipsisa*-*-elfoabi*)
6732     target_makefile_frag="config/mt-mips-elfoabi"
6733     ;;
6734   mips*-*-*linux* | mips*-*-gnu*)
6735     target_makefile_frag="config/mt-mips-gnu"
6736     ;;
6737   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6738     target_makefile_frag="config/mt-gnu"
6739     ;;
6740   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6741     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6742     # commands to handle both 32-bit and 64-bit objects.  These flags are
6743     # harmless if we're using GNU nm or ar.
6744     extra_arflags_for_target=" -X32_64"
6745     extra_nmflags_for_target=" -B -X32_64"
6746     ;;
6747   *-*-darwin[3-9]*)
6748     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6749     extra_ranlibflags_for_target=" -c"
6750     ;;
6751 esac
6752
6753 alphaieee_frag=/dev/null
6754 case $target in
6755   alpha*-*-*)
6756     # This just makes sure to use the -mieee option to build target libs.
6757     # This should probably be set individually by each library.
6758     alphaieee_frag="config/mt-alphaieee"
6759     ;;
6760 esac
6761
6762 # If --enable-target-optspace always use -Os instead of -O2 to build
6763 # the target libraries, similarly if it is not specified, use -Os
6764 # on selected platforms.
6765 ospace_frag=/dev/null
6766 case "${enable_target_optspace}:${target}" in
6767   yes:*)
6768     ospace_frag="config/mt-ospace"
6769     ;;
6770   :d30v-*)
6771     ospace_frag="config/mt-d30v"
6772     ;;
6773   :m32r-* | :d10v-* | :fr30-*)
6774     ospace_frag="config/mt-ospace"
6775     ;;
6776   no:* | :*)
6777     ;;
6778   *)
6779     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6780     ;;
6781 esac
6782
6783 # Default to using --with-stabs for certain targets.
6784 if test x${with_stabs} = x ; then
6785   case "${target}" in
6786   mips*-*-irix[56]*)
6787     ;;
6788   mips*-*-* | alpha*-*-osf*)
6789     with_stabs=yes;
6790     extra_host_args="${extra_host_args} --with-stabs"
6791     ;;
6792   esac
6793 fi
6794
6795 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6796 # them automatically.
6797 case "${host}" in
6798   hppa*64*-*-hpux11*)
6799     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6800     ;;
6801 esac
6802
6803 # Some systems (e.g., one of the i386-aix systems the gas testers are
6804 # using) don't handle "\$" correctly, so don't use it here.
6805 tooldir='${exec_prefix}'/${target_noncanonical}
6806 build_tooldir=${tooldir}
6807
6808 # Create a .gdbinit file which runs the one in srcdir
6809 # and tells GDB to look there for source files.
6810
6811 if test -r ${srcdir}/.gdbinit ; then
6812   case ${srcdir} in
6813     .) ;;
6814     *) cat > ./.gdbinit <<EOF
6815 # ${NO_EDIT}
6816 dir ${srcdir}
6817 dir .
6818 source ${srcdir}/.gdbinit
6819 EOF
6820     ;;
6821   esac
6822 fi
6823
6824 # Make sure that the compiler is able to generate an executable.  If it
6825 # can't, we are probably in trouble.  We don't care whether we can run the
6826 # executable--we might be using a cross compiler--we only care whether it
6827 # can be created.  At this point the main configure script has set CC.
6828 we_are_ok=no
6829 echo "int main () { return 0; }" > conftest.c
6830 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6831 if test $? = 0 ; then
6832   if test -s conftest || test -s conftest.exe ; then
6833     we_are_ok=yes
6834   fi
6835 fi
6836 case $we_are_ok in
6837   no)
6838     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6839     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6840     rm -f conftest*
6841     exit 1
6842     ;;
6843 esac
6844 rm -f conftest*
6845
6846 # The Solaris /usr/ucb/cc compiler does not appear to work.
6847 case "${host}" in
6848   sparc-sun-solaris2*)
6849       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6850       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6851           could_use=
6852           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6853           if test -d /opt/cygnus/bin ; then
6854               if test "$could_use" = "" ; then
6855                   could_use="/opt/cygnus/bin"
6856               else
6857                   could_use="$could_use or /opt/cygnus/bin"
6858               fi
6859           fi
6860         if test "$could_use" = "" ; then
6861             echo "Warning: compilation may fail because you're using"
6862             echo "/usr/ucb/cc.  You should change your PATH or CC "
6863             echo "variable and rerun configure."
6864         else
6865             echo "Warning: compilation may fail because you're using"
6866             echo "/usr/ucb/cc, when you should use the C compiler from"
6867             echo "$could_use.  You should change your"
6868             echo "PATH or CC variable and rerun configure."
6869         fi
6870       fi
6871   ;;
6872 esac
6873
6874 # Decide which environment variable is used to find dynamic libraries.
6875 case "${host}" in
6876   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6877   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6878   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6879   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6880 esac
6881
6882 # On systems where the dynamic library environment variable is PATH,
6883 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6884 # built executables to PATH.
6885 if test "$RPATH_ENVVAR" = PATH; then
6886   GCC_SHLIB_SUBDIR=/shlib
6887 else
6888   GCC_SHLIB_SUBDIR=
6889 fi
6890
6891 # Record target_configdirs and the configure arguments for target and
6892 # build configuration in Makefile.
6893 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6894 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6895
6896 # If we are building libgomp, bootstrap it.
6897 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6898   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6899 fi
6900
6901 # Determine whether gdb needs tk/tcl or not.
6902 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6903 # and in that case we want gdb to be built without tk.  Ugh!
6904 # In fact I believe gdb is the *only* package directly dependent on tk,
6905 # so we should be able to put the 'maybe's in unconditionally and
6906 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6907 # 100% sure that that's safe though.
6908
6909 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6910 case "$enable_gdbtk" in
6911   no)
6912     GDB_TK="" ;;
6913   yes)
6914     GDB_TK="${gdb_tk}" ;;
6915   *)
6916     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6917     # distro.  Eventually someone will fix this and move Insight, nee
6918     # gdbtk to a separate directory.
6919     if test -d ${srcdir}/gdb/gdbtk ; then
6920       GDB_TK="${gdb_tk}"
6921     else
6922       GDB_TK=""
6923     fi
6924     ;;
6925 esac
6926 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6927 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6928
6929 # Strip out unwanted targets.
6930
6931 # While at that, we remove Makefiles if we were started for recursive
6932 # configuration, so that the top-level Makefile reconfigures them,
6933 # like we used to do when configure itself was recursive.
6934
6935 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6936 # but now we're fixing up the Makefile ourselves with the additional
6937 # commands passed to AC_CONFIG_FILES.  Use separate variables
6938 # extrasub-{build,host,target} not because there is any reason to split
6939 # the substitutions up that way, but only to remain below the limit of
6940 # 99 commands in a script, for HP-UX sed.
6941 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6942
6943 # Check whether --enable-bootstrap was given.
6944 if test "${enable_bootstrap+set}" = set; then :
6945   enableval=$enable_bootstrap;
6946 else
6947   enable_bootstrap=default
6948 fi
6949
6950
6951 # Issue errors and warnings for invalid/strange bootstrap combinations.
6952 case "$configdirs" in
6953   *gcc*) have_compiler=yes ;;
6954   *) have_compiler=no ;;
6955 esac
6956
6957 case "$have_compiler:$host:$target:$enable_bootstrap" in
6958   *:*:*:no) ;;
6959
6960   # Default behavior.  Enable bootstrap if we have a compiler
6961   # and we are in a native configuration.
6962   yes:$build:$build:default)
6963     enable_bootstrap=yes ;;
6964
6965   *:*:*:default)
6966     enable_bootstrap=no ;;
6967
6968   # We have a compiler and we are in a native configuration, bootstrap is ok
6969   yes:$build:$build:yes)
6970     ;;
6971
6972   # Other configurations, but we have a compiler.  Assume the user knows
6973   # what he's doing.
6974   yes:*:*:yes)
6975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6976 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6977     ;;
6978
6979   # No compiler: if they passed --enable-bootstrap explicitly, fail
6980   no:*:*:yes)
6981     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6982
6983   # Fail if wrong command line
6984   *)
6985     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6986     ;;
6987 esac
6988
6989 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6990   *,c++,*:yes:yes) ;;
6991   *:yes:yes)
6992     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6993     ;;
6994 esac
6995
6996 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6997   yes:yes:*\ gold\ *:*,c++,*) ;;
6998   yes:yes:*\ gold\ *:*)
6999     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7000     ;;
7001 esac
7002
7003 # Adjust the toplevel makefile according to whether bootstrap was selected.
7004 case $enable_bootstrap in
7005   yes)
7006     bootstrap_suffix=bootstrap
7007     BUILD_CONFIG=bootstrap-debug
7008     ;;
7009   no)
7010     bootstrap_suffix=no-bootstrap
7011     BUILD_CONFIG=
7012     ;;
7013 esac
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7017
7018
7019 # Check whether --with-build-config was given.
7020 if test "${with_build_config+set}" = set; then :
7021   withval=$with_build_config; case $with_build_config in
7022    yes) with_build_config= ;;
7023    no) with_build_config= BUILD_CONFIG= ;;
7024    esac
7025 fi
7026
7027
7028 if test "x${with_build_config}" != x; then
7029   BUILD_CONFIG=$with_build_config
7030 else
7031   case $BUILD_CONFIG in
7032   bootstrap-debug)
7033     if echo "int f (void) { return 0; }" > conftest.c &&
7034        ${CC} -c conftest.c &&
7035        mv conftest.o conftest.o.g0 &&
7036        ${CC} -c -g conftest.c &&
7037        mv conftest.o conftest.o.g &&
7038        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7039       :
7040     else
7041       BUILD_CONFIG=
7042     fi
7043     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7044     ;;
7045   esac
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048 $as_echo "$BUILD_CONFIG" >&6; }
7049
7050
7051 extrasub_build=
7052 for module in ${build_configdirs} ; do
7053   if test -z "${no_recursion}" \
7054      && test -f ${build_subdir}/${module}/Makefile; then
7055     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7056     rm -f ${build_subdir}/${module}/Makefile
7057   fi
7058   extrasub_build="$extrasub_build
7059 /^@if build-$module\$/d
7060 /^@endif build-$module\$/d
7061 /^@if build-$module-$bootstrap_suffix\$/d
7062 /^@endif build-$module-$bootstrap_suffix\$/d"
7063 done
7064 extrasub_host=
7065 for module in ${configdirs} ; do
7066   if test -z "${no_recursion}"; then
7067     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7068       if test -f ${file}; then
7069         echo 1>&2 "*** removing ${file} to force reconfigure"
7070         rm -f ${file}
7071       fi
7072     done
7073   fi
7074   extrasub_host="$extrasub_host
7075 /^@if $module\$/d
7076 /^@endif $module\$/d
7077 /^@if $module-$bootstrap_suffix\$/d
7078 /^@endif $module-$bootstrap_suffix\$/d"
7079 done
7080 extrasub_target=
7081 for module in ${target_configdirs} ; do
7082   if test -z "${no_recursion}" \
7083      && test -f ${target_subdir}/${module}/Makefile; then
7084     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7085     rm -f ${target_subdir}/${module}/Makefile
7086   fi
7087
7088   # We only bootstrap target libraries listed in bootstrap_target_libs.
7089   case $bootstrap_target_libs in
7090     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7091     *) target_bootstrap_suffix=no-bootstrap ;;
7092   esac
7093
7094   extrasub_target="$extrasub_target
7095 /^@if target-$module\$/d
7096 /^@endif target-$module\$/d
7097 /^@if target-$module-$target_bootstrap_suffix\$/d
7098 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7099 done
7100
7101 # Do the final fixup along with target modules.
7102 extrasub_target="$extrasub_target
7103 /^@if /,/^@endif /d"
7104
7105 # Create the serialization dependencies.  This uses a temporary file.
7106
7107 # Check whether --enable-serial-configure was given.
7108 if test "${enable_serial_configure+set}" = set; then :
7109   enableval=$enable_serial_configure;
7110 fi
7111
7112
7113 case ${enable_serial_configure} in
7114   yes)
7115     enable_serial_build_configure=yes
7116     enable_serial_host_configure=yes
7117     enable_serial_target_configure=yes
7118     ;;
7119 esac
7120
7121 # These force 'configure's to be done one at a time, to avoid problems
7122 # with contention over a shared config.cache.
7123 rm -f serdep.tmp
7124 echo '# serdep.tmp' > serdep.tmp
7125 olditem=
7126 test "x${enable_serial_build_configure}" = xyes &&
7127 for item in ${build_configdirs} ; do
7128   case ${olditem} in
7129     "") ;;
7130     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7131   esac
7132   olditem=${item}
7133 done
7134 olditem=
7135 test "x${enable_serial_host_configure}" = xyes &&
7136 for item in ${configdirs} ; do
7137   case ${olditem} in
7138     "") ;;
7139     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7140   esac
7141   olditem=${item}
7142 done
7143 olditem=
7144 test "x${enable_serial_target_configure}" = xyes &&
7145 for item in ${target_configdirs} ; do
7146   case ${olditem} in
7147     "") ;;
7148     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7149   esac
7150   olditem=${item}
7151 done
7152 serialization_dependencies=serdep.tmp
7153
7154
7155 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7156 # target, nonopt, and variable assignments.  These are the ones we
7157 # might not want to pass down to subconfigures.  The exception being
7158 # --cache-file=/dev/null, which is used to turn off the use of cache
7159 # files altogether, and which should be passed on to subconfigures.
7160 # Also strip program-prefix, program-suffix, and program-transform-name,
7161 # so that we can pass down a consistent program-transform-name.
7162 baseargs=
7163 tbaseargs=
7164 keep_next=no
7165 skip_next=no
7166 eval "set -- $ac_configure_args"
7167 for ac_arg
7168 do
7169   if test X"$skip_next" = X"yes"; then
7170     skip_next=no
7171     continue
7172   fi
7173   if test X"$keep_next" = X"yes"; then
7174     case $ac_arg in
7175       *\'*)
7176         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7177     esac
7178     baseargs="$baseargs '$ac_arg'"
7179     tbaseargs="$tbaseargs '$ac_arg'"
7180     keep_next=no
7181     continue
7182   fi
7183
7184   # Handle separated arguments.  Based on the logic generated by
7185   # autoconf 2.59.
7186   case $ac_arg in
7187     *=* | --config-cache | -C | -disable-* | --disable-* \
7188       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7189       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7190       | -with-* | --with-* | -without-* | --without-* | --x)
7191       separate_arg=no
7192       ;;
7193     -*)
7194       separate_arg=yes
7195       ;;
7196     *)
7197       separate_arg=no
7198       ;;
7199   esac
7200
7201   skip_targ=no
7202   case $ac_arg in
7203
7204   --with-* | --without-*)
7205     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7206
7207     case $libopt in
7208     *[-_]include)
7209       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7210       ;;
7211     *[-_]lib)
7212       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7213       ;;
7214     *)
7215       lib=$libopt
7216       ;;
7217     esac
7218
7219
7220     case $lib in
7221     mpc | mpfr | gmp | ppl | cloog)
7222       # If we're processing --with-$lib, --with-$lib-include or
7223       # --with-$lib-lib, for one of the libs above, and target is
7224       # different from host, don't pass the current argument to any
7225       # target library's configure.
7226       if test x$is_cross_compiler = xyes; then
7227         skip_targ=yes
7228       fi
7229       ;;
7230     esac
7231     ;;
7232   esac
7233
7234   case "$ac_arg" in
7235     --cache-file=/dev/null | \
7236     -cache-file=/dev/null )
7237       # Handled here to avoid the test to skip args below.
7238       baseargs="$baseargs '$ac_arg'"
7239       tbaseargs="$tbaseargs '$ac_arg'"
7240       # Assert: $separate_arg should always be no.
7241       keep_next=$separate_arg
7242       ;;
7243     --no*)
7244       continue
7245       ;;
7246     --c* | \
7247     --sr* | \
7248     --ho* | \
7249     --bu* | \
7250     --t* | \
7251     --program-* | \
7252     -cache_file* | \
7253     -srcdir* | \
7254     -host* | \
7255     -build* | \
7256     -target* | \
7257     -program-prefix* | \
7258     -program-suffix* | \
7259     -program-transform-name* )
7260       skip_next=$separate_arg
7261       continue
7262       ;;
7263     -*)
7264       # An option.  Add it.
7265       case $ac_arg in
7266         *\'*)
7267           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7268       esac
7269       baseargs="$baseargs '$ac_arg'"
7270       if test X"$skip_targ" = Xno; then
7271         tbaseargs="$tbaseargs '$ac_arg'"
7272       fi
7273       keep_next=$separate_arg
7274       ;;
7275     *)
7276       # Either a variable assignment, or a nonopt (triplet).  Don't
7277       # pass it down; let the Makefile handle this.
7278       continue
7279       ;;
7280   esac
7281 done
7282 # Remove the initial space we just introduced and, as these will be
7283 # expanded by make, quote '$'.
7284 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7285
7286 # Add in --program-transform-name, after --program-prefix and
7287 # --program-suffix have been applied to it.  Autoconf has already
7288 # doubled dollar signs and backslashes in program_transform_name; we want
7289 # the backslashes un-doubled, and then the entire thing wrapped in single
7290 # quotes, because this will be expanded first by make and then by the shell.
7291 # Also, because we want to override the logic in subdir configure scripts to
7292 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7293 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7294 ${program_transform_name}
7295 EOF_SED
7296 gcc_transform_name=`cat conftestsed.out`
7297 rm -f conftestsed.out
7298 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7299 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7300 if test "$silent" = yes; then
7301   baseargs="$baseargs --silent"
7302   tbaseargs="$tbaseargs --silent"
7303 fi
7304 baseargs="$baseargs --disable-option-checking"
7305 tbaseargs="$tbaseargs --disable-option-checking"
7306
7307 # Record and document user additions to sub configure arguments.
7308
7309
7310
7311
7312 # For the build-side libraries, we just need to pretend we're native,
7313 # and not use the same cache file.  Multilibs are neither needed nor
7314 # desired.
7315 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7316
7317 # For host modules, accept cache file option, or specification as blank.
7318 case "${cache_file}" in
7319 "") # empty
7320   cache_file_option="" ;;
7321 /* | [A-Za-z]:[\\/]* ) # absolute path
7322   cache_file_option="--cache-file=${cache_file}" ;;
7323 *) # relative path
7324   cache_file_option="--cache-file=../${cache_file}" ;;
7325 esac
7326
7327 # Host dirs don't like to share a cache file either, horribly enough.
7328 # This seems to be due to autoconf 2.5x stupidity.
7329 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7330
7331 target_configargs="$target_configargs ${tbaseargs}"
7332
7333 # Passing a --with-cross-host argument lets the target libraries know
7334 # whether they are being built with a cross-compiler or being built
7335 # native.  However, it would be better to use other mechanisms to make the
7336 # sorts of decisions they want to make on this basis.  Please consider
7337 # this option to be deprecated.  FIXME.
7338 if test x${is_cross_compiler} = xyes ; then
7339   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7340 fi
7341
7342 # Default to --enable-multilib.
7343 if test x${enable_multilib} = x ; then
7344   target_configargs="--enable-multilib ${target_configargs}"
7345 fi
7346
7347 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7348 # changed from the earlier setting of with_newlib.
7349 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7350   target_configargs="--with-newlib ${target_configargs}"
7351 fi
7352
7353 # Different target subdirs use different values of certain variables
7354 # (notably CXX).  Worse, multilibs use *lots* of different values.
7355 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7356 # it doesn't automatically accept command-line overrides of them.
7357 # This means it's not safe for target subdirs to share a cache file,
7358 # which is disgusting, but there you have it.  Hopefully this can be
7359 # fixed in future.  It's still worthwhile to use a cache file for each
7360 # directory.  I think.
7361
7362 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7363 # We need to pass --target, as newer autoconf's requires consistency
7364 # for target_alias and gcc doesn't manage it consistently.
7365 target_configargs="--cache-file=./config.cache ${target_configargs}"
7366
7367 FLAGS_FOR_TARGET=
7368 case " $target_configdirs " in
7369  *" newlib "*)
7370   case " $target_configargs " in
7371   *" --with-newlib "*)
7372    case "$target" in
7373     *-cygwin*)
7374       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7375       ;;
7376    esac
7377
7378    # If we're not building GCC, don't discard standard headers.
7379    if test -d ${srcdir}/gcc; then
7380      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7381
7382      if test "${build}" != "${host}"; then
7383        # On Canadian crosses, CC_FOR_TARGET will have already been set
7384        # by `configure', so we won't have an opportunity to add -Bgcc/
7385        # to it.  This is right: we don't want to search that directory
7386        # for binaries, but we want the header files in there, so add
7387        # them explicitly.
7388        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7389
7390        # Someone might think of using the pre-installed headers on
7391        # Canadian crosses, in case the installed compiler is not fully
7392        # compatible with the compiler being built.  In this case, it
7393        # would be better to flag an error than risking having
7394        # incompatible object files being constructed.  We can't
7395        # guarantee that an error will be flagged, but let's hope the
7396        # compiler will do it, when presented with incompatible header
7397        # files.
7398      fi
7399    fi
7400
7401    case "${target}-${is_cross_compiler}" in
7402    i[3456789]86-*-linux*-no)
7403       # Here host == target, so we don't need to build gcc,
7404       # so we don't want to discard standard headers.
7405       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7406       ;;
7407    *)
7408       # If we're building newlib, use its generic headers last, but search
7409       # for any libc-related directories first (so make it the last -B
7410       # switch).
7411       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7412
7413       # If we're building libgloss, find the startup file, simulator library
7414       # and linker script.
7415       case " $target_configdirs " in
7416         *" libgloss "*)
7417         # Look for startup file, simulator library and maybe linker script.
7418         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7419         # Look for libnosys.a in case the target needs it.
7420         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7421         # Most targets have the linker script in the source directory.
7422         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7423         ;;
7424       esac
7425       ;;
7426    esac
7427    ;;
7428   esac
7429   ;;
7430 esac
7431
7432 case "$target" in
7433   x86_64-*mingw* | *-w64-mingw*)
7434   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7435   # however, use a symlink named 'mingw' in ${prefix} .
7436     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7437     ;;
7438   *-mingw*)
7439   # MinGW can't be handled as Cygwin above since it does not use newlib.
7440     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'
7441     ;;
7442 esac
7443
7444 # Allow the user to override the flags for
7445 # our build compiler if desired.
7446 if test x"${build}" = x"${host}" ; then
7447   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7448   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7449   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7450 fi
7451
7452 # On Canadian crosses, we'll be searching the right directories for
7453 # the previously-installed cross compiler, so don't bother to add
7454 # flags for directories within the install tree of the compiler
7455 # being built; programs in there won't even run.
7456 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7457   # Search for pre-installed headers if nothing else fits.
7458   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7459 fi
7460
7461 if test "x${use_gnu_ld}" = x &&
7462    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7463   # Arrange for us to find uninstalled linker scripts.
7464   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7465 fi
7466
7467 # Search for other target-specific linker scripts and such.
7468 case "${target}" in
7469   mep*)
7470     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7471     ;;
7472 esac
7473
7474 # Makefile fragments.
7475 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7476 do
7477   eval fragval=\$$frag
7478   if test $fragval != /dev/null; then
7479     eval $frag=${srcdir}/$fragval
7480   fi
7481 done
7482
7483
7484
7485
7486
7487 # Miscellanea: directories, flags, etc.
7488
7489
7490
7491
7492
7493
7494
7495
7496 # Build module lists & subconfigure args.
7497
7498
7499
7500 # Host module lists & subconfigure args.
7501
7502
7503
7504
7505 # Target module lists & subconfigure args.
7506
7507
7508
7509 # Build tools.
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 # Generate default definitions for YACC, M4, LEX and other programs that run
7529 # on the build machine.  These are used if the Makefile can't locate these
7530 # programs in objdir.
7531 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7532
7533 for ac_prog in 'bison -y' byacc yacc
7534 do
7535   # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_YACC+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$YACC"; then
7543   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_YACC="$ac_prog"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 YACC=$ac_cv_prog_YACC
7563 if test -n "$YACC"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7565 $as_echo "$YACC" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571
7572   test -n "$YACC" && break
7573 done
7574 test -n "$YACC" || YACC="$MISSING bison -y"
7575
7576 case " $build_configdirs " in
7577   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7578   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7579 esac
7580
7581 for ac_prog in bison
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if test "${ac_cv_prog_BISON+set}" = set; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$BISON"; then
7591   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_prog_BISON="$ac_prog"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 BISON=$ac_cv_prog_BISON
7611 if test -n "$BISON"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7613 $as_echo "$BISON" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620   test -n "$BISON" && break
7621 done
7622 test -n "$BISON" || BISON="$MISSING bison"
7623
7624 case " $build_configdirs " in
7625   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7626 esac
7627
7628 for ac_prog in gm4 gnum4 m4
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_M4+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$M4"; then
7638   ac_cv_prog_M4="$M4" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_prog_M4="$ac_prog"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 M4=$ac_cv_prog_M4
7658 if test -n "$M4"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7660 $as_echo "$M4" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667   test -n "$M4" && break
7668 done
7669 test -n "$M4" || M4="$MISSING m4"
7670
7671 case " $build_configdirs " in
7672   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7673 esac
7674
7675 for ac_prog in flex lex
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_LEX+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$LEX"; then
7685   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_prog_LEX="$ac_prog"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 LEX=$ac_cv_prog_LEX
7705 if test -n "$LEX"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7707 $as_echo "$LEX" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714   test -n "$LEX" && break
7715 done
7716 test -n "$LEX" || LEX="$MISSING flex"
7717
7718 case " $build_configdirs " in
7719   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7720   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7721 esac
7722
7723 for ac_prog in flex
7724 do
7725   # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_FLEX+set}" = set; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   if test -n "$FLEX"; then
7733   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_prog_FLEX="$ac_prog"
7743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747   done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 FLEX=$ac_cv_prog_FLEX
7753 if test -n "$FLEX"; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7755 $as_echo "$FLEX" >&6; }
7756 else
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762   test -n "$FLEX" && break
7763 done
7764 test -n "$FLEX" || FLEX="$MISSING flex"
7765
7766 case " $build_configdirs " in
7767   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7768 esac
7769
7770 for ac_prog in makeinfo
7771 do
7772   # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$MAKEINFO"; then
7780   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_prog_MAKEINFO="$ac_prog"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 MAKEINFO=$ac_cv_prog_MAKEINFO
7800 if test -n "$MAKEINFO"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7802 $as_echo "$MAKEINFO" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809   test -n "$MAKEINFO" && break
7810 done
7811 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7812
7813 case " $build_configdirs " in
7814   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7815   *)
7816
7817     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7818     # higher, else we use the "missing" dummy.
7819     if ${MAKEINFO} --version \
7820        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7821       :
7822     else
7823       MAKEINFO="$MISSING makeinfo"
7824     fi
7825     ;;
7826
7827 esac
7828
7829 # FIXME: expect and dejagnu may become build tools?
7830
7831 for ac_prog in expect
7832 do
7833   # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   if test -n "$EXPECT"; then
7841   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_EXPECT="$ac_prog"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 EXPECT=$ac_cv_prog_EXPECT
7861 if test -n "$EXPECT"; then
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7863 $as_echo "$EXPECT" >&6; }
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869
7870   test -n "$EXPECT" && break
7871 done
7872 test -n "$EXPECT" || EXPECT="expect"
7873
7874 case " $configdirs " in
7875   *" expect "*)
7876     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7877     ;;
7878 esac
7879
7880 for ac_prog in runtest
7881 do
7882   # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$RUNTEST"; then
7890   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_RUNTEST="$ac_prog"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 RUNTEST=$ac_cv_prog_RUNTEST
7910 if test -n "$RUNTEST"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7912 $as_echo "$RUNTEST" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919   test -n "$RUNTEST" && break
7920 done
7921 test -n "$RUNTEST" || RUNTEST="runtest"
7922
7923 case " $configdirs " in
7924   *" dejagnu "*)
7925     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7926     ;;
7927 esac
7928
7929
7930 # Host tools.
7931 ncn_tool_prefix=
7932 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7933 ncn_target_tool_prefix=
7934 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7935
7936
7937
7938 if test -n "$AR"; then
7939   ac_cv_prog_AR=$AR
7940 elif test -n "$ac_cv_prog_AR"; then
7941   AR=$ac_cv_prog_AR
7942 fi
7943
7944 if test -n "$ac_cv_prog_AR"; then
7945   for ncn_progname in ar; do
7946     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7947 set dummy ${ncn_progname}; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_AR+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$AR"; then
7954   ac_cv_prog_AR="$AR" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_AR="${ncn_progname}"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 AR=$ac_cv_prog_AR
7974 if test -n "$AR"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976 $as_echo "$AR" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983   done
7984 fi
7985
7986 for ncn_progname in ar; do
7987   if test -n "$ncn_tool_prefix"; then
7988     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7989 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_AR+set}" = set; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$AR"; then
7996   ac_cv_prog_AR="$AR" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 AR=$ac_cv_prog_AR
8016 if test -n "$AR"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018 $as_echo "$AR" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025   fi
8026   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8027     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8028 set dummy ${ncn_progname}; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_AR+set}" = set; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   if test -n "$AR"; then
8035   ac_cv_prog_AR="$AR" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040   IFS=$as_save_IFS
8041   test -z "$as_dir" && as_dir=.
8042     for ac_exec_ext in '' $ac_executable_extensions; do
8043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044     ac_cv_prog_AR="${ncn_progname}"
8045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046     break 2
8047   fi
8048 done
8049   done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 AR=$ac_cv_prog_AR
8055 if test -n "$AR"; then
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8058 else
8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062
8063
8064   fi
8065   test -n "$ac_cv_prog_AR" && break
8066 done
8067
8068 if test -z "$ac_cv_prog_AR" ; then
8069   set dummy ar
8070   if test $build = $host ; then
8071     AR="$2"
8072   else
8073     AR="${ncn_tool_prefix}$2"
8074   fi
8075 fi
8076
8077
8078
8079 if test -n "$AS"; then
8080   ac_cv_prog_AS=$AS
8081 elif test -n "$ac_cv_prog_AS"; then
8082   AS=$ac_cv_prog_AS
8083 fi
8084
8085 if test -n "$ac_cv_prog_AS"; then
8086   for ncn_progname in as; do
8087     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8088 set dummy ${ncn_progname}; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_AS+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$AS"; then
8095   ac_cv_prog_AS="$AS" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104     ac_cv_prog_AS="${ncn_progname}"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 AS=$ac_cv_prog_AS
8115 if test -n "$AS"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8117 $as_echo "$AS" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124   done
8125 fi
8126
8127 for ncn_progname in as; do
8128   if test -n "$ncn_tool_prefix"; then
8129     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8130 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_AS+set}" = set; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   if test -n "$AS"; then
8137   ac_cv_prog_AS="$AS" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142   IFS=$as_save_IFS
8143   test -z "$as_dir" && as_dir=.
8144     for ac_exec_ext in '' $ac_executable_extensions; do
8145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151   done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 AS=$ac_cv_prog_AS
8157 if test -n "$AS"; then
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159 $as_echo "$AS" >&6; }
8160 else
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165
8166   fi
8167   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8168     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8169 set dummy ${ncn_progname}; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_AS+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   if test -n "$AS"; then
8176   ac_cv_prog_AS="$AS" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183     for ac_exec_ext in '' $ac_executable_extensions; do
8184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185     ac_cv_prog_AS="${ncn_progname}"
8186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190   done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 AS=$ac_cv_prog_AS
8196 if test -n "$AS"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198 $as_echo "$AS" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204
8205   fi
8206   test -n "$ac_cv_prog_AS" && break
8207 done
8208
8209 if test -z "$ac_cv_prog_AS" ; then
8210   set dummy as
8211   if test $build = $host ; then
8212     AS="$2"
8213   else
8214     AS="${ncn_tool_prefix}$2"
8215   fi
8216 fi
8217
8218
8219
8220 if test -n "$DLLTOOL"; then
8221   ac_cv_prog_DLLTOOL=$DLLTOOL
8222 elif test -n "$ac_cv_prog_DLLTOOL"; then
8223   DLLTOOL=$ac_cv_prog_DLLTOOL
8224 fi
8225
8226 if test -n "$ac_cv_prog_DLLTOOL"; then
8227   for ncn_progname in dlltool; do
8228     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8229 set dummy ${ncn_progname}; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   if test -n "$DLLTOOL"; then
8236   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245     ac_cv_prog_DLLTOOL="${ncn_progname}"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 DLLTOOL=$ac_cv_prog_DLLTOOL
8256 if test -n "$DLLTOOL"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8258 $as_echo "$DLLTOOL" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265   done
8266 fi
8267
8268 for ncn_progname in dlltool; do
8269   if test -n "$ncn_tool_prefix"; then
8270     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$DLLTOOL"; then
8278   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285     for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292   done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 DLLTOOL=$ac_cv_prog_DLLTOOL
8298 if test -n "$DLLTOOL"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300 $as_echo "$DLLTOOL" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307   fi
8308   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8309     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8310 set dummy ${ncn_progname}; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   if test -n "$DLLTOOL"; then
8317   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324     for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_prog_DLLTOOL="${ncn_progname}"
8327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331   done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 DLLTOOL=$ac_cv_prog_DLLTOOL
8337 if test -n "$DLLTOOL"; then
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8339 $as_echo "$DLLTOOL" >&6; }
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346   fi
8347   test -n "$ac_cv_prog_DLLTOOL" && break
8348 done
8349
8350 if test -z "$ac_cv_prog_DLLTOOL" ; then
8351   set dummy dlltool
8352   if test $build = $host ; then
8353     DLLTOOL="$2"
8354   else
8355     DLLTOOL="${ncn_tool_prefix}$2"
8356   fi
8357 fi
8358
8359
8360
8361 if test -n "$LD"; then
8362   ac_cv_prog_LD=$LD
8363 elif test -n "$ac_cv_prog_LD"; then
8364   LD=$ac_cv_prog_LD
8365 fi
8366
8367 if test -n "$ac_cv_prog_LD"; then
8368   for ncn_progname in ld; do
8369     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8370 set dummy ${ncn_progname}; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_prog_LD+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   if test -n "$LD"; then
8377   ac_cv_prog_LD="$LD" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8386     ac_cv_prog_LD="${ncn_progname}"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 LD=$ac_cv_prog_LD
8397 if test -n "$LD"; then
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8399 $as_echo "$LD" >&6; }
8400 else
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406   done
8407 fi
8408
8409 for ncn_progname in ld; do
8410   if test -n "$ncn_tool_prefix"; then
8411     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_LD+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   if test -n "$LD"; then
8419   ac_cv_prog_LD="$LD" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426     for ac_exec_ext in '' $ac_executable_extensions; do
8427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433   done
8434 IFS=$as_save_IFS
8435
8436 fi
8437 fi
8438 LD=$ac_cv_prog_LD
8439 if test -n "$LD"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441 $as_echo "$LD" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448   fi
8449   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8450     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_progname}; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_LD+set}" = set; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   if test -n "$LD"; then
8458   ac_cv_prog_LD="$LD" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465     for ac_exec_ext in '' $ac_executable_extensions; do
8466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467     ac_cv_prog_LD="${ncn_progname}"
8468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472   done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 LD=$ac_cv_prog_LD
8478 if test -n "$LD"; then
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8480 $as_echo "$LD" >&6; }
8481 else
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8484 fi
8485
8486
8487   fi
8488   test -n "$ac_cv_prog_LD" && break
8489 done
8490
8491 if test -z "$ac_cv_prog_LD" ; then
8492   set dummy ld
8493   if test $build = $host ; then
8494     LD="$2"
8495   else
8496     LD="${ncn_tool_prefix}$2"
8497   fi
8498 fi
8499
8500
8501
8502 if test -n "$LIPO"; then
8503   ac_cv_prog_LIPO=$LIPO
8504 elif test -n "$ac_cv_prog_LIPO"; then
8505   LIPO=$ac_cv_prog_LIPO
8506 fi
8507
8508 if test -n "$ac_cv_prog_LIPO"; then
8509   for ncn_progname in lipo; do
8510     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8511 set dummy ${ncn_progname}; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_prog_LIPO+set}" = set; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   if test -n "$LIPO"; then
8518   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_prog_LIPO="${ncn_progname}"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 LIPO=$ac_cv_prog_LIPO
8538 if test -n "$LIPO"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8540 $as_echo "$LIPO" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547   done
8548 fi
8549
8550 for ncn_progname in lipo; do
8551   if test -n "$ncn_tool_prefix"; then
8552     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8553 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_LIPO+set}" = set; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559   if test -n "$LIPO"; then
8560   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565   IFS=$as_save_IFS
8566   test -z "$as_dir" && as_dir=.
8567     for ac_exec_ext in '' $ac_executable_extensions; do
8568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571     break 2
8572   fi
8573 done
8574   done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 LIPO=$ac_cv_prog_LIPO
8580 if test -n "$LIPO"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582 $as_echo "$LIPO" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589   fi
8590   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8591     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592 set dummy ${ncn_progname}; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_prog_LIPO+set}" = set; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   if test -n "$LIPO"; then
8599   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604   IFS=$as_save_IFS
8605   test -z "$as_dir" && as_dir=.
8606     for ac_exec_ext in '' $ac_executable_extensions; do
8607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608     ac_cv_prog_LIPO="${ncn_progname}"
8609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610     break 2
8611   fi
8612 done
8613   done
8614 IFS=$as_save_IFS
8615
8616 fi
8617 fi
8618 LIPO=$ac_cv_prog_LIPO
8619 if test -n "$LIPO"; then
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8621 $as_echo "$LIPO" >&6; }
8622 else
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628   fi
8629   test -n "$ac_cv_prog_LIPO" && break
8630 done
8631
8632 if test -z "$ac_cv_prog_LIPO" ; then
8633   set dummy lipo
8634   if test $build = $host ; then
8635     LIPO="$2"
8636   else
8637     LIPO="${ncn_tool_prefix}$2"
8638   fi
8639 fi
8640
8641
8642
8643 if test -n "$NM"; then
8644   ac_cv_prog_NM=$NM
8645 elif test -n "$ac_cv_prog_NM"; then
8646   NM=$ac_cv_prog_NM
8647 fi
8648
8649 if test -n "$ac_cv_prog_NM"; then
8650   for ncn_progname in nm; do
8651     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652 set dummy ${ncn_progname}; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if test "${ac_cv_prog_NM+set}" = set; then :
8656   $as_echo_n "(cached) " >&6
8657 else
8658   if test -n "$NM"; then
8659   ac_cv_prog_NM="$NM" # Let the user override the test.
8660 else
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666     for ac_exec_ext in '' $ac_executable_extensions; do
8667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8668     ac_cv_prog_NM="${ncn_progname}"
8669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670     break 2
8671   fi
8672 done
8673   done
8674 IFS=$as_save_IFS
8675
8676 fi
8677 fi
8678 NM=$ac_cv_prog_NM
8679 if test -n "$NM"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8681 $as_echo "$NM" >&6; }
8682 else
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 fi
8686
8687
8688   done
8689 fi
8690
8691 for ncn_progname in nm; do
8692   if test -n "$ncn_tool_prefix"; then
8693     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if test "${ac_cv_prog_NM+set}" = set; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   if test -n "$NM"; then
8701   ac_cv_prog_NM="$NM" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715   done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 NM=$ac_cv_prog_NM
8721 if test -n "$NM"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723 $as_echo "$NM" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730   fi
8731   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8732     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733 set dummy ${ncn_progname}; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if test "${ac_cv_prog_NM+set}" = set; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   if test -n "$NM"; then
8740   ac_cv_prog_NM="$NM" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745   IFS=$as_save_IFS
8746   test -z "$as_dir" && as_dir=.
8747     for ac_exec_ext in '' $ac_executable_extensions; do
8748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749     ac_cv_prog_NM="${ncn_progname}"
8750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751     break 2
8752   fi
8753 done
8754   done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 NM=$ac_cv_prog_NM
8760 if test -n "$NM"; then
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8762 $as_echo "$NM" >&6; }
8763 else
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769   fi
8770   test -n "$ac_cv_prog_NM" && break
8771 done
8772
8773 if test -z "$ac_cv_prog_NM" ; then
8774   set dummy nm
8775   if test $build = $host ; then
8776     NM="$2"
8777   else
8778     NM="${ncn_tool_prefix}$2"
8779   fi
8780 fi
8781
8782
8783
8784 if test -n "$RANLIB"; then
8785   ac_cv_prog_RANLIB=$RANLIB
8786 elif test -n "$ac_cv_prog_RANLIB"; then
8787   RANLIB=$ac_cv_prog_RANLIB
8788 fi
8789
8790 if test -n "$ac_cv_prog_RANLIB"; then
8791   for ncn_progname in ranlib; do
8792     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793 set dummy ${ncn_progname}; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   if test -n "$RANLIB"; then
8800   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8801 else
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809     ac_cv_prog_RANLIB="${ncn_progname}"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816
8817 fi
8818 fi
8819 RANLIB=$ac_cv_prog_RANLIB
8820 if test -n "$RANLIB"; then
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8822 $as_echo "$RANLIB" >&6; }
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8826 fi
8827
8828
8829   done
8830 fi
8831
8832 for ncn_progname in ranlib; do
8833   if test -n "$ncn_tool_prefix"; then
8834     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   if test -n "$RANLIB"; then
8842   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847   IFS=$as_save_IFS
8848   test -z "$as_dir" && as_dir=.
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856   done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 RANLIB=$ac_cv_prog_RANLIB
8862 if test -n "$RANLIB"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864 $as_echo "$RANLIB" >&6; }
8865 else
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870
8871   fi
8872   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8873     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8874 set dummy ${ncn_progname}; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   if test -n "$RANLIB"; then
8881   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8885 do
8886   IFS=$as_save_IFS
8887   test -z "$as_dir" && as_dir=.
8888     for ac_exec_ext in '' $ac_executable_extensions; do
8889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8890     ac_cv_prog_RANLIB="${ncn_progname}"
8891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892     break 2
8893   fi
8894 done
8895   done
8896 IFS=$as_save_IFS
8897
8898 fi
8899 fi
8900 RANLIB=$ac_cv_prog_RANLIB
8901 if test -n "$RANLIB"; then
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8903 $as_echo "$RANLIB" >&6; }
8904 else
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908
8909
8910   fi
8911   test -n "$ac_cv_prog_RANLIB" && break
8912 done
8913
8914 if test -z "$ac_cv_prog_RANLIB" ; then
8915   RANLIB="true"
8916 fi
8917
8918
8919
8920 if test -n "$STRIP"; then
8921   ac_cv_prog_STRIP=$STRIP
8922 elif test -n "$ac_cv_prog_STRIP"; then
8923   STRIP=$ac_cv_prog_STRIP
8924 fi
8925
8926 if test -n "$ac_cv_prog_STRIP"; then
8927   for ncn_progname in strip; do
8928     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8929 set dummy ${ncn_progname}; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_prog_STRIP+set}" = set; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   if test -n "$STRIP"; then
8936   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941   IFS=$as_save_IFS
8942   test -z "$as_dir" && as_dir=.
8943     for ac_exec_ext in '' $ac_executable_extensions; do
8944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945     ac_cv_prog_STRIP="${ncn_progname}"
8946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947     break 2
8948   fi
8949 done
8950   done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 STRIP=$ac_cv_prog_STRIP
8956 if test -n "$STRIP"; then
8957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8958 $as_echo "$STRIP" >&6; }
8959 else
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965   done
8966 fi
8967
8968 for ncn_progname in strip; do
8969   if test -n "$ncn_tool_prefix"; then
8970     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if test "${ac_cv_prog_STRIP+set}" = set; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   if test -n "$STRIP"; then
8978   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983   IFS=$as_save_IFS
8984   test -z "$as_dir" && as_dir=.
8985     for ac_exec_ext in '' $ac_executable_extensions; do
8986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8987     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989     break 2
8990   fi
8991 done
8992   done
8993 IFS=$as_save_IFS
8994
8995 fi
8996 fi
8997 STRIP=$ac_cv_prog_STRIP
8998 if test -n "$STRIP"; then
8999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000 $as_echo "$STRIP" >&6; }
9001 else
9002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007   fi
9008   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9009     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010 set dummy ${ncn_progname}; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if test "${ac_cv_prog_STRIP+set}" = set; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   if test -n "$STRIP"; then
9017   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   test -z "$as_dir" && as_dir=.
9024     for ac_exec_ext in '' $ac_executable_extensions; do
9025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026     ac_cv_prog_STRIP="${ncn_progname}"
9027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028     break 2
9029   fi
9030 done
9031   done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 STRIP=$ac_cv_prog_STRIP
9037 if test -n "$STRIP"; then
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9039 $as_echo "$STRIP" >&6; }
9040 else
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046   fi
9047   test -n "$ac_cv_prog_STRIP" && break
9048 done
9049
9050 if test -z "$ac_cv_prog_STRIP" ; then
9051   STRIP="true"
9052 fi
9053
9054
9055
9056 if test -n "$WINDRES"; then
9057   ac_cv_prog_WINDRES=$WINDRES
9058 elif test -n "$ac_cv_prog_WINDRES"; then
9059   WINDRES=$ac_cv_prog_WINDRES
9060 fi
9061
9062 if test -n "$ac_cv_prog_WINDRES"; then
9063   for ncn_progname in windres; do
9064     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065 set dummy ${ncn_progname}; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   if test -n "$WINDRES"; then
9072   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9073 else
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081     ac_cv_prog_WINDRES="${ncn_progname}"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 WINDRES=$ac_cv_prog_WINDRES
9092 if test -n "$WINDRES"; then
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9094 $as_echo "$WINDRES" >&6; }
9095 else
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101   done
9102 fi
9103
9104 for ncn_progname in windres; do
9105   if test -n "$ncn_tool_prefix"; then
9106     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9107 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   if test -n "$WINDRES"; then
9114   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9118 do
9119   IFS=$as_save_IFS
9120   test -z "$as_dir" && as_dir=.
9121     for ac_exec_ext in '' $ac_executable_extensions; do
9122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125     break 2
9126   fi
9127 done
9128   done
9129 IFS=$as_save_IFS
9130
9131 fi
9132 fi
9133 WINDRES=$ac_cv_prog_WINDRES
9134 if test -n "$WINDRES"; then
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136 $as_echo "$WINDRES" >&6; }
9137 else
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9140 fi
9141
9142
9143   fi
9144   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9145     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146 set dummy ${ncn_progname}; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   if test -n "$WINDRES"; then
9153   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9157 do
9158   IFS=$as_save_IFS
9159   test -z "$as_dir" && as_dir=.
9160     for ac_exec_ext in '' $ac_executable_extensions; do
9161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9162     ac_cv_prog_WINDRES="${ncn_progname}"
9163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164     break 2
9165   fi
9166 done
9167   done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 WINDRES=$ac_cv_prog_WINDRES
9173 if test -n "$WINDRES"; then
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9175 $as_echo "$WINDRES" >&6; }
9176 else
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182   fi
9183   test -n "$ac_cv_prog_WINDRES" && break
9184 done
9185
9186 if test -z "$ac_cv_prog_WINDRES" ; then
9187   set dummy windres
9188   if test $build = $host ; then
9189     WINDRES="$2"
9190   else
9191     WINDRES="${ncn_tool_prefix}$2"
9192   fi
9193 fi
9194
9195
9196
9197 if test -n "$WINDMC"; then
9198   ac_cv_prog_WINDMC=$WINDMC
9199 elif test -n "$ac_cv_prog_WINDMC"; then
9200   WINDMC=$ac_cv_prog_WINDMC
9201 fi
9202
9203 if test -n "$ac_cv_prog_WINDMC"; then
9204   for ncn_progname in windmc; do
9205     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9206 set dummy ${ncn_progname}; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   if test -n "$WINDMC"; then
9213   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9214 else
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9222     ac_cv_prog_WINDMC="${ncn_progname}"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229
9230 fi
9231 fi
9232 WINDMC=$ac_cv_prog_WINDMC
9233 if test -n "$WINDMC"; then
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9235 $as_echo "$WINDMC" >&6; }
9236 else
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 fi
9240
9241
9242   done
9243 fi
9244
9245 for ncn_progname in windmc; do
9246   if test -n "$ncn_tool_prefix"; then
9247     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252   $as_echo_n "(cached) " >&6
9253 else
9254   if test -n "$WINDMC"; then
9255   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260   IFS=$as_save_IFS
9261   test -z "$as_dir" && as_dir=.
9262     for ac_exec_ext in '' $ac_executable_extensions; do
9263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269   done
9270 IFS=$as_save_IFS
9271
9272 fi
9273 fi
9274 WINDMC=$ac_cv_prog_WINDMC
9275 if test -n "$WINDMC"; then
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277 $as_echo "$WINDMC" >&6; }
9278 else
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282
9283
9284   fi
9285   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9286     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9287 set dummy ${ncn_progname}; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   if test -n "$WINDMC"; then
9294   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299   IFS=$as_save_IFS
9300   test -z "$as_dir" && as_dir=.
9301     for ac_exec_ext in '' $ac_executable_extensions; do
9302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303     ac_cv_prog_WINDMC="${ncn_progname}"
9304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305     break 2
9306   fi
9307 done
9308   done
9309 IFS=$as_save_IFS
9310
9311 fi
9312 fi
9313 WINDMC=$ac_cv_prog_WINDMC
9314 if test -n "$WINDMC"; then
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9316 $as_echo "$WINDMC" >&6; }
9317 else
9318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9320 fi
9321
9322
9323   fi
9324   test -n "$ac_cv_prog_WINDMC" && break
9325 done
9326
9327 if test -z "$ac_cv_prog_WINDMC" ; then
9328   set dummy windmc
9329   if test $build = $host ; then
9330     WINDMC="$2"
9331   else
9332     WINDMC="${ncn_tool_prefix}$2"
9333   fi
9334 fi
9335
9336
9337
9338 if test -n "$OBJCOPY"; then
9339   ac_cv_prog_OBJCOPY=$OBJCOPY
9340 elif test -n "$ac_cv_prog_OBJCOPY"; then
9341   OBJCOPY=$ac_cv_prog_OBJCOPY
9342 fi
9343
9344 if test -n "$ac_cv_prog_OBJCOPY"; then
9345   for ncn_progname in objcopy; do
9346     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347 set dummy ${ncn_progname}; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   if test -n "$OBJCOPY"; then
9354   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9355 else
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9358 do
9359   IFS=$as_save_IFS
9360   test -z "$as_dir" && as_dir=.
9361     for ac_exec_ext in '' $ac_executable_extensions; do
9362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363     ac_cv_prog_OBJCOPY="${ncn_progname}"
9364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365     break 2
9366   fi
9367 done
9368   done
9369 IFS=$as_save_IFS
9370
9371 fi
9372 fi
9373 OBJCOPY=$ac_cv_prog_OBJCOPY
9374 if test -n "$OBJCOPY"; then
9375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9376 $as_echo "$OBJCOPY" >&6; }
9377 else
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9380 fi
9381
9382
9383   done
9384 fi
9385
9386 for ncn_progname in objcopy; do
9387   if test -n "$ncn_tool_prefix"; then
9388     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   if test -n "$OBJCOPY"; then
9396   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401   IFS=$as_save_IFS
9402   test -z "$as_dir" && as_dir=.
9403     for ac_exec_ext in '' $ac_executable_extensions; do
9404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407     break 2
9408   fi
9409 done
9410   done
9411 IFS=$as_save_IFS
9412
9413 fi
9414 fi
9415 OBJCOPY=$ac_cv_prog_OBJCOPY
9416 if test -n "$OBJCOPY"; then
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418 $as_echo "$OBJCOPY" >&6; }
9419 else
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9422 fi
9423
9424
9425   fi
9426   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9427     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9428 set dummy ${ncn_progname}; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   if test -n "$OBJCOPY"; then
9435   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9439 do
9440   IFS=$as_save_IFS
9441   test -z "$as_dir" && as_dir=.
9442     for ac_exec_ext in '' $ac_executable_extensions; do
9443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444     ac_cv_prog_OBJCOPY="${ncn_progname}"
9445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446     break 2
9447   fi
9448 done
9449   done
9450 IFS=$as_save_IFS
9451
9452 fi
9453 fi
9454 OBJCOPY=$ac_cv_prog_OBJCOPY
9455 if test -n "$OBJCOPY"; then
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9457 $as_echo "$OBJCOPY" >&6; }
9458 else
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9461 fi
9462
9463
9464   fi
9465   test -n "$ac_cv_prog_OBJCOPY" && break
9466 done
9467
9468 if test -z "$ac_cv_prog_OBJCOPY" ; then
9469   set dummy objcopy
9470   if test $build = $host ; then
9471     OBJCOPY="$2"
9472   else
9473     OBJCOPY="${ncn_tool_prefix}$2"
9474   fi
9475 fi
9476
9477
9478
9479 if test -n "$OBJDUMP"; then
9480   ac_cv_prog_OBJDUMP=$OBJDUMP
9481 elif test -n "$ac_cv_prog_OBJDUMP"; then
9482   OBJDUMP=$ac_cv_prog_OBJDUMP
9483 fi
9484
9485 if test -n "$ac_cv_prog_OBJDUMP"; then
9486   for ncn_progname in objdump; do
9487     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_progname}; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -n "$OBJDUMP"; then
9495   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500   IFS=$as_save_IFS
9501   test -z "$as_dir" && as_dir=.
9502     for ac_exec_ext in '' $ac_executable_extensions; do
9503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504     ac_cv_prog_OBJDUMP="${ncn_progname}"
9505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506     break 2
9507   fi
9508 done
9509   done
9510 IFS=$as_save_IFS
9511
9512 fi
9513 fi
9514 OBJDUMP=$ac_cv_prog_OBJDUMP
9515 if test -n "$OBJDUMP"; then
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9517 $as_echo "$OBJDUMP" >&6; }
9518 else
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524   done
9525 fi
9526
9527 for ncn_progname in objdump; do
9528   if test -n "$ncn_tool_prefix"; then
9529     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9530 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534   $as_echo_n "(cached) " >&6
9535 else
9536   if test -n "$OBJDUMP"; then
9537   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   test -z "$as_dir" && as_dir=.
9544     for ac_exec_ext in '' $ac_executable_extensions; do
9545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9546     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548     break 2
9549   fi
9550 done
9551   done
9552 IFS=$as_save_IFS
9553
9554 fi
9555 fi
9556 OBJDUMP=$ac_cv_prog_OBJDUMP
9557 if test -n "$OBJDUMP"; then
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559 $as_echo "$OBJDUMP" >&6; }
9560 else
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 fi
9564
9565
9566   fi
9567   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9568     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9569 set dummy ${ncn_progname}; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   if test -n "$OBJDUMP"; then
9576   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9577 else
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9580 do
9581   IFS=$as_save_IFS
9582   test -z "$as_dir" && as_dir=.
9583     for ac_exec_ext in '' $ac_executable_extensions; do
9584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585     ac_cv_prog_OBJDUMP="${ncn_progname}"
9586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587     break 2
9588   fi
9589 done
9590   done
9591 IFS=$as_save_IFS
9592
9593 fi
9594 fi
9595 OBJDUMP=$ac_cv_prog_OBJDUMP
9596 if test -n "$OBJDUMP"; then
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9598 $as_echo "$OBJDUMP" >&6; }
9599 else
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9602 fi
9603
9604
9605   fi
9606   test -n "$ac_cv_prog_OBJDUMP" && break
9607 done
9608
9609 if test -z "$ac_cv_prog_OBJDUMP" ; then
9610   set dummy objdump
9611   if test $build = $host ; then
9612     OBJDUMP="$2"
9613   else
9614     OBJDUMP="${ncn_tool_prefix}$2"
9615   fi
9616 fi
9617
9618
9619
9620
9621
9622
9623 # Target tools.
9624
9625 # Check whether --with-build-time-tools was given.
9626 if test "${with_build_time_tools+set}" = set; then :
9627   withval=$with_build_time_tools; case x"$withval" in
9628      x/*) ;;
9629      *)
9630        with_build_time_tools=
9631        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9632 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9633        ;;
9634    esac
9635 else
9636   with_build_time_tools=
9637 fi
9638
9639
9640
9641
9642 if test -n "$CC_FOR_TARGET"; then
9643   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9644 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9645   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9646 fi
9647
9648 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9649   for ncn_progname in cc gcc; do
9650     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651 set dummy ${ncn_progname}; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   if test -n "$CC_FOR_TARGET"; then
9658   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663   IFS=$as_save_IFS
9664   test -z "$as_dir" && as_dir=.
9665     for ac_exec_ext in '' $ac_executable_extensions; do
9666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669     break 2
9670   fi
9671 done
9672   done
9673 IFS=$as_save_IFS
9674
9675 fi
9676 fi
9677 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9678 if test -n "$CC_FOR_TARGET"; then
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9680 $as_echo "$CC_FOR_TARGET" >&6; }
9681 else
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687   done
9688 fi
9689
9690 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9691   for ncn_progname in cc gcc; do
9692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9694     if test -x $with_build_time_tools/${ncn_progname}; then
9695       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697 $as_echo "yes" >&6; }
9698       break
9699     else
9700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702     fi
9703   done
9704 fi
9705
9706 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9707   for ncn_progname in cc gcc; do
9708     if test -n "$ncn_target_tool_prefix"; then
9709       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   if test -n "$CC_FOR_TARGET"; then
9717   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9718 else
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9721 do
9722   IFS=$as_save_IFS
9723   test -z "$as_dir" && as_dir=.
9724     for ac_exec_ext in '' $ac_executable_extensions; do
9725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728     break 2
9729   fi
9730 done
9731   done
9732 IFS=$as_save_IFS
9733
9734 fi
9735 fi
9736 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9737 if test -n "$CC_FOR_TARGET"; then
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9739 $as_echo "$CC_FOR_TARGET" >&6; }
9740 else
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9743 fi
9744
9745
9746     fi
9747     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9748       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9749 set dummy ${ncn_progname}; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   if test -n "$CC_FOR_TARGET"; then
9756   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763     for ac_exec_ext in '' $ac_executable_extensions; do
9764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770   done
9771 IFS=$as_save_IFS
9772
9773 fi
9774 fi
9775 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9776 if test -n "$CC_FOR_TARGET"; then
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9778 $as_echo "$CC_FOR_TARGET" >&6; }
9779 else
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9782 fi
9783
9784
9785     fi
9786     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9787   done
9788 fi
9789
9790 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9791   set dummy cc gcc
9792   if test $build = $target ; then
9793     CC_FOR_TARGET="$2"
9794   else
9795     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9796   fi
9797 else
9798   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9799 fi
9800
9801
9802
9803 if test -n "$CXX_FOR_TARGET"; then
9804   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9805 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9806   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9807 fi
9808
9809 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9810   for ncn_progname in c++ g++ cxx gxx; do
9811     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9812 set dummy ${ncn_progname}; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   if test -n "$CXX_FOR_TARGET"; then
9819   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9823 do
9824   IFS=$as_save_IFS
9825   test -z "$as_dir" && as_dir=.
9826     for ac_exec_ext in '' $ac_executable_extensions; do
9827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830     break 2
9831   fi
9832 done
9833   done
9834 IFS=$as_save_IFS
9835
9836 fi
9837 fi
9838 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9839 if test -n "$CXX_FOR_TARGET"; then
9840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9841 $as_echo "$CXX_FOR_TARGET" >&6; }
9842 else
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9845 fi
9846
9847
9848   done
9849 fi
9850
9851 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9852   for ncn_progname in c++ g++ cxx gxx; do
9853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9855     if test -x $with_build_time_tools/${ncn_progname}; then
9856       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9858 $as_echo "yes" >&6; }
9859       break
9860     else
9861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9863     fi
9864   done
9865 fi
9866
9867 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9868   for ncn_progname in c++ g++ cxx gxx; do
9869     if test -n "$ncn_target_tool_prefix"; then
9870       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   if test -n "$CXX_FOR_TARGET"; then
9878   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885     for ac_exec_ext in '' $ac_executable_extensions; do
9886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892   done
9893 IFS=$as_save_IFS
9894
9895 fi
9896 fi
9897 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9898 if test -n "$CXX_FOR_TARGET"; then
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9900 $as_echo "$CXX_FOR_TARGET" >&6; }
9901 else
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9904 fi
9905
9906
9907     fi
9908     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9909       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910 set dummy ${ncn_progname}; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   if test -n "$CXX_FOR_TARGET"; then
9917   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9918 else
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9921 do
9922   IFS=$as_save_IFS
9923   test -z "$as_dir" && as_dir=.
9924     for ac_exec_ext in '' $ac_executable_extensions; do
9925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928     break 2
9929   fi
9930 done
9931   done
9932 IFS=$as_save_IFS
9933
9934 fi
9935 fi
9936 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9937 if test -n "$CXX_FOR_TARGET"; then
9938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9939 $as_echo "$CXX_FOR_TARGET" >&6; }
9940 else
9941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9943 fi
9944
9945
9946     fi
9947     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9948   done
9949 fi
9950
9951 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9952   set dummy c++ g++ cxx gxx
9953   if test $build = $target ; then
9954     CXX_FOR_TARGET="$2"
9955   else
9956     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9957   fi
9958 else
9959   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9960 fi
9961
9962
9963
9964 if test -n "$GCC_FOR_TARGET"; then
9965   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9966 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9967   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9968 fi
9969
9970 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9971   for ncn_progname in gcc; do
9972     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_progname}; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   if test -n "$GCC_FOR_TARGET"; then
9980   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9984 do
9985   IFS=$as_save_IFS
9986   test -z "$as_dir" && as_dir=.
9987     for ac_exec_ext in '' $ac_executable_extensions; do
9988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9989     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991     break 2
9992   fi
9993 done
9994   done
9995 IFS=$as_save_IFS
9996
9997 fi
9998 fi
9999 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10000 if test -n "$GCC_FOR_TARGET"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10002 $as_echo "$GCC_FOR_TARGET" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007
10008
10009   done
10010 fi
10011
10012 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10013   for ncn_progname in gcc; do
10014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10015 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10016     if test -x $with_build_time_tools/${ncn_progname}; then
10017       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019 $as_echo "yes" >&6; }
10020       break
10021     else
10022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10024     fi
10025   done
10026 fi
10027
10028 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10029   for ncn_progname in gcc; do
10030     if test -n "$ncn_target_tool_prefix"; then
10031       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   if test -n "$GCC_FOR_TARGET"; then
10039   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10043 do
10044   IFS=$as_save_IFS
10045   test -z "$as_dir" && as_dir=.
10046     for ac_exec_ext in '' $ac_executable_extensions; do
10047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10048     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050     break 2
10051   fi
10052 done
10053   done
10054 IFS=$as_save_IFS
10055
10056 fi
10057 fi
10058 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10059 if test -n "$GCC_FOR_TARGET"; then
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10061 $as_echo "$GCC_FOR_TARGET" >&6; }
10062 else
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10065 fi
10066
10067
10068     fi
10069     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10070       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10071 set dummy ${ncn_progname}; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10075   $as_echo_n "(cached) " >&6
10076 else
10077   if test -n "$GCC_FOR_TARGET"; then
10078   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10082 do
10083   IFS=$as_save_IFS
10084   test -z "$as_dir" && as_dir=.
10085     for ac_exec_ext in '' $ac_executable_extensions; do
10086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089     break 2
10090   fi
10091 done
10092   done
10093 IFS=$as_save_IFS
10094
10095 fi
10096 fi
10097 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10098 if test -n "$GCC_FOR_TARGET"; then
10099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10100 $as_echo "$GCC_FOR_TARGET" >&6; }
10101 else
10102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10104 fi
10105
10106
10107     fi
10108     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10109   done
10110 fi
10111
10112 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10113   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10114 else
10115   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10116 fi
10117
10118
10119
10120 if test -n "$GCJ_FOR_TARGET"; then
10121   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10122 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10123   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10124 fi
10125
10126 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10127   for ncn_progname in gcj; do
10128     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10129 set dummy ${ncn_progname}; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   if test -n "$GCJ_FOR_TARGET"; then
10136   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10137 else
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141   IFS=$as_save_IFS
10142   test -z "$as_dir" && as_dir=.
10143     for ac_exec_ext in '' $ac_executable_extensions; do
10144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10145     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147     break 2
10148   fi
10149 done
10150   done
10151 IFS=$as_save_IFS
10152
10153 fi
10154 fi
10155 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10156 if test -n "$GCJ_FOR_TARGET"; then
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10158 $as_echo "$GCJ_FOR_TARGET" >&6; }
10159 else
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10162 fi
10163
10164
10165   done
10166 fi
10167
10168 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10169   for ncn_progname in gcj; do
10170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10171 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10172     if test -x $with_build_time_tools/${ncn_progname}; then
10173       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175 $as_echo "yes" >&6; }
10176       break
10177     else
10178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180     fi
10181   done
10182 fi
10183
10184 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10185   for ncn_progname in gcj; do
10186     if test -n "$ncn_target_tool_prefix"; then
10187       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   if test -n "$GCJ_FOR_TARGET"; then
10195   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10196 else
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10199 do
10200   IFS=$as_save_IFS
10201   test -z "$as_dir" && as_dir=.
10202     for ac_exec_ext in '' $ac_executable_extensions; do
10203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206     break 2
10207   fi
10208 done
10209   done
10210 IFS=$as_save_IFS
10211
10212 fi
10213 fi
10214 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10215 if test -n "$GCJ_FOR_TARGET"; then
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10217 $as_echo "$GCJ_FOR_TARGET" >&6; }
10218 else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222
10223
10224     fi
10225     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10226       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227 set dummy ${ncn_progname}; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10231   $as_echo_n "(cached) " >&6
10232 else
10233   if test -n "$GCJ_FOR_TARGET"; then
10234   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10235 else
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10238 do
10239   IFS=$as_save_IFS
10240   test -z "$as_dir" && as_dir=.
10241     for ac_exec_ext in '' $ac_executable_extensions; do
10242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10243     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245     break 2
10246   fi
10247 done
10248   done
10249 IFS=$as_save_IFS
10250
10251 fi
10252 fi
10253 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10254 if test -n "$GCJ_FOR_TARGET"; then
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10256 $as_echo "$GCJ_FOR_TARGET" >&6; }
10257 else
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10260 fi
10261
10262
10263     fi
10264     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10265   done
10266 fi
10267
10268 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10269   set dummy gcj
10270   if test $build = $target ; then
10271     GCJ_FOR_TARGET="$2"
10272   else
10273     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10274   fi
10275 else
10276   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10277 fi
10278
10279
10280
10281 if test -n "$GFORTRAN_FOR_TARGET"; then
10282   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10283 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10284   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10285 fi
10286
10287 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10288   for ncn_progname in gfortran; do
10289     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10290 set dummy ${ncn_progname}; ac_word=$2
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292 $as_echo_n "checking for $ac_word... " >&6; }
10293 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10294   $as_echo_n "(cached) " >&6
10295 else
10296   if test -n "$GFORTRAN_FOR_TARGET"; then
10297   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10298 else
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $PATH
10301 do
10302   IFS=$as_save_IFS
10303   test -z "$as_dir" && as_dir=.
10304     for ac_exec_ext in '' $ac_executable_extensions; do
10305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308     break 2
10309   fi
10310 done
10311   done
10312 IFS=$as_save_IFS
10313
10314 fi
10315 fi
10316 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10317 if test -n "$GFORTRAN_FOR_TARGET"; then
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10319 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10320 else
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 fi
10324
10325
10326   done
10327 fi
10328
10329 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10330   for ncn_progname in gfortran; do
10331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10333     if test -x $with_build_time_tools/${ncn_progname}; then
10334       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336 $as_echo "yes" >&6; }
10337       break
10338     else
10339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341     fi
10342   done
10343 fi
10344
10345 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10346   for ncn_progname in gfortran; do
10347     if test -n "$ncn_target_tool_prefix"; then
10348       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   if test -n "$GFORTRAN_FOR_TARGET"; then
10356   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10365     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372
10373 fi
10374 fi
10375 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10376 if test -n "$GFORTRAN_FOR_TARGET"; then
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10378 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383
10384
10385     fi
10386     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10387       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10388 set dummy ${ncn_progname}; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10392   $as_echo_n "(cached) " >&6
10393 else
10394   if test -n "$GFORTRAN_FOR_TARGET"; then
10395   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10399 do
10400   IFS=$as_save_IFS
10401   test -z "$as_dir" && as_dir=.
10402     for ac_exec_ext in '' $ac_executable_extensions; do
10403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406     break 2
10407   fi
10408 done
10409   done
10410 IFS=$as_save_IFS
10411
10412 fi
10413 fi
10414 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10415 if test -n "$GFORTRAN_FOR_TARGET"; then
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10417 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10418 else
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10421 fi
10422
10423
10424     fi
10425     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10426   done
10427 fi
10428
10429 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10430   set dummy gfortran
10431   if test $build = $target ; then
10432     GFORTRAN_FOR_TARGET="$2"
10433   else
10434     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10435   fi
10436 else
10437   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10438 fi
10439
10440
10441
10442 if test -n "$GOC_FOR_TARGET"; then
10443   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10444 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10445   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10446 fi
10447
10448 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10449   for ncn_progname in gccgo; do
10450     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10451 set dummy ${ncn_progname}; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   if test -n "$GOC_FOR_TARGET"; then
10458   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10462 do
10463   IFS=$as_save_IFS
10464   test -z "$as_dir" && as_dir=.
10465     for ac_exec_ext in '' $ac_executable_extensions; do
10466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469     break 2
10470   fi
10471 done
10472   done
10473 IFS=$as_save_IFS
10474
10475 fi
10476 fi
10477 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10478 if test -n "$GOC_FOR_TARGET"; then
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10480 $as_echo "$GOC_FOR_TARGET" >&6; }
10481 else
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10484 fi
10485
10486
10487   done
10488 fi
10489
10490 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10491   for ncn_progname in gccgo; do
10492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10494     if test -x $with_build_time_tools/${ncn_progname}; then
10495       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10497 $as_echo "yes" >&6; }
10498       break
10499     else
10500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502     fi
10503   done
10504 fi
10505
10506 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10507   for ncn_progname in gccgo; do
10508     if test -n "$ncn_target_tool_prefix"; then
10509       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10514   $as_echo_n "(cached) " >&6
10515 else
10516   if test -n "$GOC_FOR_TARGET"; then
10517   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10518 else
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10521 do
10522   IFS=$as_save_IFS
10523   test -z "$as_dir" && as_dir=.
10524     for ac_exec_ext in '' $ac_executable_extensions; do
10525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528     break 2
10529   fi
10530 done
10531   done
10532 IFS=$as_save_IFS
10533
10534 fi
10535 fi
10536 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10537 if test -n "$GOC_FOR_TARGET"; then
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10539 $as_echo "$GOC_FOR_TARGET" >&6; }
10540 else
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10543 fi
10544
10545
10546     fi
10547     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10548       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10549 set dummy ${ncn_progname}; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   if test -n "$GOC_FOR_TARGET"; then
10556   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   test -z "$as_dir" && as_dir=.
10563     for ac_exec_ext in '' $ac_executable_extensions; do
10564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567     break 2
10568   fi
10569 done
10570   done
10571 IFS=$as_save_IFS
10572
10573 fi
10574 fi
10575 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10576 if test -n "$GOC_FOR_TARGET"; then
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10578 $as_echo "$GOC_FOR_TARGET" >&6; }
10579 else
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10582 fi
10583
10584
10585     fi
10586     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10587   done
10588 fi
10589
10590 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10591   set dummy gccgo
10592   if test $build = $target ; then
10593     GOC_FOR_TARGET="$2"
10594   else
10595     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10596   fi
10597 else
10598   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10599 fi
10600
10601
10602
10603 cat > conftest.c << \EOF
10604 #ifdef __GNUC__
10605   gcc_yay;
10606 #endif
10607 EOF
10608 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10609   have_gcc_for_target=yes
10610 else
10611   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10612   have_gcc_for_target=no
10613 fi
10614 rm conftest.c
10615
10616
10617
10618
10619 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10620   if test -n "$with_build_time_tools"; then
10621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10622 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10623     if test -x $with_build_time_tools/ar; then
10624       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10625       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10627 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10628     else
10629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10631     fi
10632   elif test $build != $host && test $have_gcc_for_target = yes; then
10633     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10634     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10635     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10636   fi
10637 fi
10638 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10639   # Extract the first word of "ar", so it can be a program name with args.
10640 set dummy ar; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   case $AR_FOR_TARGET in
10647   [\\/]* | ?:[\\/]*)
10648   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10649   ;;
10650   *)
10651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $gcc_cv_tool_dirs
10653 do
10654   IFS=$as_save_IFS
10655   test -z "$as_dir" && as_dir=.
10656     for ac_exec_ext in '' $ac_executable_extensions; do
10657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660     break 2
10661   fi
10662 done
10663   done
10664 IFS=$as_save_IFS
10665
10666   ;;
10667 esac
10668 fi
10669 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10670 if test -n "$AR_FOR_TARGET"; then
10671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10672 $as_echo "$AR_FOR_TARGET" >&6; }
10673 else
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10676 fi
10677
10678
10679 fi
10680 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10681
10682
10683 if test -n "$AR_FOR_TARGET"; then
10684   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10685 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10686   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10687 fi
10688
10689 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10690   for ncn_progname in ar; do
10691     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10692 set dummy ${ncn_progname}; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   if test -n "$AR_FOR_TARGET"; then
10699   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715
10716 fi
10717 fi
10718 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10719 if test -n "$AR_FOR_TARGET"; then
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10721 $as_echo "$AR_FOR_TARGET" >&6; }
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 fi
10726
10727
10728   done
10729 fi
10730
10731 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10732   for ncn_progname in ar; do
10733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10734 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10735     if test -x $with_build_time_tools/${ncn_progname}; then
10736       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738 $as_echo "yes" >&6; }
10739       break
10740     else
10741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743     fi
10744   done
10745 fi
10746
10747 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10748   for ncn_progname in ar; do
10749     if test -n "$ncn_target_tool_prefix"; then
10750       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   if test -n "$AR_FOR_TARGET"; then
10758   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765     for ac_exec_ext in '' $ac_executable_extensions; do
10766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772   done
10773 IFS=$as_save_IFS
10774
10775 fi
10776 fi
10777 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10778 if test -n "$AR_FOR_TARGET"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10780 $as_echo "$AR_FOR_TARGET" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787     fi
10788     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10789       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   if test -n "$AR_FOR_TARGET"; then
10797   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802   IFS=$as_save_IFS
10803   test -z "$as_dir" && as_dir=.
10804     for ac_exec_ext in '' $ac_executable_extensions; do
10805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808     break 2
10809   fi
10810 done
10811   done
10812 IFS=$as_save_IFS
10813
10814 fi
10815 fi
10816 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10817 if test -n "$AR_FOR_TARGET"; then
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10819 $as_echo "$AR_FOR_TARGET" >&6; }
10820 else
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824
10825
10826     fi
10827     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10828   done
10829 fi
10830
10831 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10832   set dummy ar
10833   if test $build = $target ; then
10834     AR_FOR_TARGET="$2"
10835   else
10836     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10837   fi
10838 else
10839   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10840 fi
10841
10842 else
10843   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10844 fi
10845
10846
10847
10848
10849 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10850   if test -n "$with_build_time_tools"; then
10851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10852 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10853     if test -x $with_build_time_tools/as; then
10854       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10855       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10857 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10858     else
10859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861     fi
10862   elif test $build != $host && test $have_gcc_for_target = yes; then
10863     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10864     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10865     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10866   fi
10867 fi
10868 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10869   # Extract the first word of "as", so it can be a program name with args.
10870 set dummy as; ac_word=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10874   $as_echo_n "(cached) " >&6
10875 else
10876   case $AS_FOR_TARGET in
10877   [\\/]* | ?:[\\/]*)
10878   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10879   ;;
10880   *)
10881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $gcc_cv_tool_dirs
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886     for ac_exec_ext in '' $ac_executable_extensions; do
10887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893   done
10894 IFS=$as_save_IFS
10895
10896   ;;
10897 esac
10898 fi
10899 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10900 if test -n "$AS_FOR_TARGET"; then
10901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10902 $as_echo "$AS_FOR_TARGET" >&6; }
10903 else
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909 fi
10910 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10911
10912
10913 if test -n "$AS_FOR_TARGET"; then
10914   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10915 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10916   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10917 fi
10918
10919 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10920   for ncn_progname in as; do
10921     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922 set dummy ${ncn_progname}; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   if test -n "$AS_FOR_TARGET"; then
10929   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934   IFS=$as_save_IFS
10935   test -z "$as_dir" && as_dir=.
10936     for ac_exec_ext in '' $ac_executable_extensions; do
10937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940     break 2
10941   fi
10942 done
10943   done
10944 IFS=$as_save_IFS
10945
10946 fi
10947 fi
10948 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10949 if test -n "$AS_FOR_TARGET"; then
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10951 $as_echo "$AS_FOR_TARGET" >&6; }
10952 else
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10955 fi
10956
10957
10958   done
10959 fi
10960
10961 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10962   for ncn_progname in as; do
10963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10965     if test -x $with_build_time_tools/${ncn_progname}; then
10966       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969       break
10970     else
10971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973     fi
10974   done
10975 fi
10976
10977 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10978   for ncn_progname in as; do
10979     if test -n "$ncn_target_tool_prefix"; then
10980       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   if test -n "$AS_FOR_TARGET"; then
10988   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10989 else
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10992 do
10993   IFS=$as_save_IFS
10994   test -z "$as_dir" && as_dir=.
10995     for ac_exec_ext in '' $ac_executable_extensions; do
10996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10997     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999     break 2
11000   fi
11001 done
11002   done
11003 IFS=$as_save_IFS
11004
11005 fi
11006 fi
11007 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11008 if test -n "$AS_FOR_TARGET"; then
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11010 $as_echo "$AS_FOR_TARGET" >&6; }
11011 else
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014 fi
11015
11016
11017     fi
11018     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11019       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   if test -n "$AS_FOR_TARGET"; then
11027   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11047 if test -n "$AS_FOR_TARGET"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11049 $as_echo "$AS_FOR_TARGET" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056     fi
11057     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11058   done
11059 fi
11060
11061 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11062   set dummy as
11063   if test $build = $target ; then
11064     AS_FOR_TARGET="$2"
11065   else
11066     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11067   fi
11068 else
11069   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11070 fi
11071
11072 else
11073   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11074 fi
11075
11076
11077
11078
11079 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11080   if test -n "$with_build_time_tools"; then
11081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11082 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11083     if test -x $with_build_time_tools/dlltool; then
11084       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11085       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11087 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11088     else
11089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091     fi
11092   elif test $build != $host && test $have_gcc_for_target = yes; then
11093     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11094     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11095     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11096   fi
11097 fi
11098 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11099   # Extract the first word of "dlltool", so it can be a program name with args.
11100 set dummy dlltool; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   case $DLLTOOL_FOR_TARGET in
11107   [\\/]* | ?:[\\/]*)
11108   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11109   ;;
11110   *)
11111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $gcc_cv_tool_dirs
11113 do
11114   IFS=$as_save_IFS
11115   test -z "$as_dir" && as_dir=.
11116     for ac_exec_ext in '' $ac_executable_extensions; do
11117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120     break 2
11121   fi
11122 done
11123   done
11124 IFS=$as_save_IFS
11125
11126   ;;
11127 esac
11128 fi
11129 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11130 if test -n "$DLLTOOL_FOR_TARGET"; then
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11132 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136 fi
11137
11138
11139 fi
11140 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11141
11142
11143 if test -n "$DLLTOOL_FOR_TARGET"; then
11144   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11145 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11146   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11147 fi
11148
11149 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11150   for ncn_progname in dlltool; do
11151     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152 set dummy ${ncn_progname}; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   if test -n "$DLLTOOL_FOR_TARGET"; then
11159   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166     for ac_exec_ext in '' $ac_executable_extensions; do
11167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173   done
11174 IFS=$as_save_IFS
11175
11176 fi
11177 fi
11178 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11179 if test -n "$DLLTOOL_FOR_TARGET"; then
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11181 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11182 else
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185 fi
11186
11187
11188   done
11189 fi
11190
11191 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11192   for ncn_progname in dlltool; do
11193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11195     if test -x $with_build_time_tools/${ncn_progname}; then
11196       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198 $as_echo "yes" >&6; }
11199       break
11200     else
11201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11203     fi
11204   done
11205 fi
11206
11207 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11208   for ncn_progname in dlltool; do
11209     if test -n "$ncn_target_tool_prefix"; then
11210       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   if test -n "$DLLTOOL_FOR_TARGET"; then
11218   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223   IFS=$as_save_IFS
11224   test -z "$as_dir" && as_dir=.
11225     for ac_exec_ext in '' $ac_executable_extensions; do
11226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229     break 2
11230   fi
11231 done
11232   done
11233 IFS=$as_save_IFS
11234
11235 fi
11236 fi
11237 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11238 if test -n "$DLLTOOL_FOR_TARGET"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11240 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245
11246
11247     fi
11248     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11249       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if test -n "$DLLTOOL_FOR_TARGET"; then
11257   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273
11274 fi
11275 fi
11276 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11277 if test -n "$DLLTOOL_FOR_TARGET"; then
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11279 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11280 else
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284
11285
11286     fi
11287     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11288   done
11289 fi
11290
11291 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11292   set dummy dlltool
11293   if test $build = $target ; then
11294     DLLTOOL_FOR_TARGET="$2"
11295   else
11296     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11297   fi
11298 else
11299   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11300 fi
11301
11302 else
11303   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11304 fi
11305
11306
11307
11308
11309 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11310   if test -n "$with_build_time_tools"; then
11311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11312 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11313     if test -x $with_build_time_tools/ld; then
11314       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11315       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11317 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11318     else
11319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321     fi
11322   elif test $build != $host && test $have_gcc_for_target = yes; then
11323     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11324     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11325     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11326   fi
11327 fi
11328 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11329   # Extract the first word of "ld", so it can be a program name with args.
11330 set dummy ld; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   case $LD_FOR_TARGET in
11337   [\\/]* | ?:[\\/]*)
11338   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11339   ;;
11340   *)
11341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $gcc_cv_tool_dirs
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355
11356   ;;
11357 esac
11358 fi
11359 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11360 if test -n "$LD_FOR_TARGET"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11362 $as_echo "$LD_FOR_TARGET" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369 fi
11370 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11371
11372
11373 if test -n "$LD_FOR_TARGET"; then
11374   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11375 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11376   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11377 fi
11378
11379 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11380   for ncn_progname in ld; do
11381     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382 set dummy ${ncn_progname}; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -n "$LD_FOR_TARGET"; then
11389   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11409 if test -n "$LD_FOR_TARGET"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11411 $as_echo "$LD_FOR_TARGET" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418   done
11419 fi
11420
11421 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11422   for ncn_progname in ld; do
11423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11424 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11425     if test -x $with_build_time_tools/${ncn_progname}; then
11426       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11429       break
11430     else
11431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433     fi
11434   done
11435 fi
11436
11437 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11438   for ncn_progname in ld; do
11439     if test -n "$ncn_target_tool_prefix"; then
11440       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11441 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   if test -n "$LD_FOR_TARGET"; then
11448   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453   IFS=$as_save_IFS
11454   test -z "$as_dir" && as_dir=.
11455     for ac_exec_ext in '' $ac_executable_extensions; do
11456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11457     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459     break 2
11460   fi
11461 done
11462   done
11463 IFS=$as_save_IFS
11464
11465 fi
11466 fi
11467 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11468 if test -n "$LD_FOR_TARGET"; then
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11470 $as_echo "$LD_FOR_TARGET" >&6; }
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476
11477     fi
11478     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11479       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$LD_FOR_TARGET"; then
11487   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11507 if test -n "$LD_FOR_TARGET"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11509 $as_echo "$LD_FOR_TARGET" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516     fi
11517     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11518   done
11519 fi
11520
11521 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11522   set dummy ld
11523   if test $build = $target ; then
11524     LD_FOR_TARGET="$2"
11525   else
11526     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11527   fi
11528 else
11529   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11530 fi
11531
11532 else
11533   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11534 fi
11535
11536
11537
11538
11539 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11540   if test -n "$with_build_time_tools"; then
11541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11542 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11543     if test -x $with_build_time_tools/lipo; then
11544       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11545       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11547 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11548     else
11549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551     fi
11552   elif test $build != $host && test $have_gcc_for_target = yes; then
11553     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11554     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11555     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11556   fi
11557 fi
11558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11559   # Extract the first word of "lipo", so it can be a program name with args.
11560 set dummy lipo; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   case $LIPO_FOR_TARGET in
11567   [\\/]* | ?:[\\/]*)
11568   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11569   ;;
11570   *)
11571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $gcc_cv_tool_dirs
11573 do
11574   IFS=$as_save_IFS
11575   test -z "$as_dir" && as_dir=.
11576     for ac_exec_ext in '' $ac_executable_extensions; do
11577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11580     break 2
11581   fi
11582 done
11583   done
11584 IFS=$as_save_IFS
11585
11586   ;;
11587 esac
11588 fi
11589 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11590 if test -n "$LIPO_FOR_TARGET"; then
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11592 $as_echo "$LIPO_FOR_TARGET" >&6; }
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 fi
11597
11598
11599 fi
11600 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11601
11602
11603 if test -n "$LIPO_FOR_TARGET"; then
11604   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11605 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11606   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11607 fi
11608
11609 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11610   for ncn_progname in lipo; do
11611     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   if test -n "$LIPO_FOR_TARGET"; then
11619   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626     for ac_exec_ext in '' $ac_executable_extensions; do
11627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633   done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11639 if test -n "$LIPO_FOR_TARGET"; then
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11641 $as_echo "$LIPO_FOR_TARGET" >&6; }
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646
11647
11648   done
11649 fi
11650
11651 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11652   for ncn_progname in lipo; do
11653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11654 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11655     if test -x $with_build_time_tools/${ncn_progname}; then
11656       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11659       break
11660     else
11661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663     fi
11664   done
11665 fi
11666
11667 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11668   for ncn_progname in lipo; do
11669     if test -n "$ncn_target_tool_prefix"; then
11670       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11671 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   if test -n "$LIPO_FOR_TARGET"; then
11678   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11679 else
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11682 do
11683   IFS=$as_save_IFS
11684   test -z "$as_dir" && as_dir=.
11685     for ac_exec_ext in '' $ac_executable_extensions; do
11686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689     break 2
11690   fi
11691 done
11692   done
11693 IFS=$as_save_IFS
11694
11695 fi
11696 fi
11697 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11698 if test -n "$LIPO_FOR_TARGET"; then
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11700 $as_echo "$LIPO_FOR_TARGET" >&6; }
11701 else
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704 fi
11705
11706
11707     fi
11708     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11709       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$LIPO_FOR_TARGET"; then
11717   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11737 if test -n "$LIPO_FOR_TARGET"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11739 $as_echo "$LIPO_FOR_TARGET" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746     fi
11747     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11748   done
11749 fi
11750
11751 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11752   set dummy lipo
11753   if test $build = $target ; then
11754     LIPO_FOR_TARGET="$2"
11755   else
11756     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11757   fi
11758 else
11759   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11760 fi
11761
11762 else
11763   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11764 fi
11765
11766
11767
11768
11769 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11770   if test -n "$with_build_time_tools"; then
11771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11772 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11773     if test -x $with_build_time_tools/nm; then
11774       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11775       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11777 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11778     else
11779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781     fi
11782   elif test $build != $host && test $have_gcc_for_target = yes; then
11783     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11784     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11785     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11786   fi
11787 fi
11788 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11789   # Extract the first word of "nm", so it can be a program name with args.
11790 set dummy nm; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796   case $NM_FOR_TARGET in
11797   [\\/]* | ?:[\\/]*)
11798   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11799   ;;
11800   *)
11801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $gcc_cv_tool_dirs
11803 do
11804   IFS=$as_save_IFS
11805   test -z "$as_dir" && as_dir=.
11806     for ac_exec_ext in '' $ac_executable_extensions; do
11807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810     break 2
11811   fi
11812 done
11813   done
11814 IFS=$as_save_IFS
11815
11816   ;;
11817 esac
11818 fi
11819 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11820 if test -n "$NM_FOR_TARGET"; then
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11822 $as_echo "$NM_FOR_TARGET" >&6; }
11823 else
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829 fi
11830 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11831
11832
11833 if test -n "$NM_FOR_TARGET"; then
11834   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11835 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11836   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11837 fi
11838
11839 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11840   for ncn_progname in nm; do
11841     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11842 set dummy ${ncn_progname}; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   if test -n "$NM_FOR_TARGET"; then
11849   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11850 else
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854   IFS=$as_save_IFS
11855   test -z "$as_dir" && as_dir=.
11856     for ac_exec_ext in '' $ac_executable_extensions; do
11857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860     break 2
11861   fi
11862 done
11863   done
11864 IFS=$as_save_IFS
11865
11866 fi
11867 fi
11868 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11869 if test -n "$NM_FOR_TARGET"; then
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11871 $as_echo "$NM_FOR_TARGET" >&6; }
11872 else
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 fi
11876
11877
11878   done
11879 fi
11880
11881 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11882   for ncn_progname in nm; do
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11884 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11885     if test -x $with_build_time_tools/${ncn_progname}; then
11886       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889       break
11890     else
11891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893     fi
11894   done
11895 fi
11896
11897 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11898   for ncn_progname in nm; do
11899     if test -n "$ncn_target_tool_prefix"; then
11900       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11901 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   if test -n "$NM_FOR_TARGET"; then
11908   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11928 if test -n "$NM_FOR_TARGET"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11930 $as_echo "$NM_FOR_TARGET" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936
11937     fi
11938     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11939       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11940 set dummy ${ncn_progname}; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if test -n "$NM_FOR_TARGET"; then
11947   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963
11964 fi
11965 fi
11966 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11967 if test -n "$NM_FOR_TARGET"; then
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11969 $as_echo "$NM_FOR_TARGET" >&6; }
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975
11976     fi
11977     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11978   done
11979 fi
11980
11981 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11982   set dummy nm
11983   if test $build = $target ; then
11984     NM_FOR_TARGET="$2"
11985   else
11986     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11987   fi
11988 else
11989   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11990 fi
11991
11992 else
11993   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11994 fi
11995
11996
11997
11998
11999 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12000   if test -n "$with_build_time_tools"; then
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12002 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12003     if test -x $with_build_time_tools/objdump; then
12004       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12005       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12007 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12008     else
12009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011     fi
12012   elif test $build != $host && test $have_gcc_for_target = yes; then
12013     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12014     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12015     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12016   fi
12017 fi
12018 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12019   # Extract the first word of "objdump", so it can be a program name with args.
12020 set dummy objdump; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   case $OBJDUMP_FOR_TARGET in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $gcc_cv_tool_dirs
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036     for ac_exec_ext in '' $ac_executable_extensions; do
12037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043   done
12044 IFS=$as_save_IFS
12045
12046   ;;
12047 esac
12048 fi
12049 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12050 if test -n "$OBJDUMP_FOR_TARGET"; then
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12052 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 fi
12060 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12061
12062
12063 if test -n "$OBJDUMP_FOR_TARGET"; then
12064   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12065 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12066   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12067 fi
12068
12069 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12070   for ncn_progname in objdump; do
12071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072 set dummy ${ncn_progname}; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   if test -n "$OBJDUMP_FOR_TARGET"; then
12079   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093   done
12094 IFS=$as_save_IFS
12095
12096 fi
12097 fi
12098 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12099 if test -n "$OBJDUMP_FOR_TARGET"; then
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12101 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12102 else
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106
12107
12108   done
12109 fi
12110
12111 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12112   for ncn_progname in objdump; do
12113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12114 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12115     if test -x $with_build_time_tools/${ncn_progname}; then
12116       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119       break
12120     else
12121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123     fi
12124   done
12125 fi
12126
12127 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12128   for ncn_progname in objdump; do
12129     if test -n "$ncn_target_tool_prefix"; then
12130       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   if test -n "$OBJDUMP_FOR_TARGET"; then
12138   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_exec_ext in '' $ac_executable_extensions; do
12146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152   done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12158 if test -n "$OBJDUMP_FOR_TARGET"; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12160 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167     fi
12168     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12169       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12170 set dummy ${ncn_progname}; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   if test -n "$OBJDUMP_FOR_TARGET"; then
12177   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191   done
12192 IFS=$as_save_IFS
12193
12194 fi
12195 fi
12196 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12197 if test -n "$OBJDUMP_FOR_TARGET"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12199 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206     fi
12207     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12208   done
12209 fi
12210
12211 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12212   set dummy objdump
12213   if test $build = $target ; then
12214     OBJDUMP_FOR_TARGET="$2"
12215   else
12216     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12217   fi
12218 else
12219   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12220 fi
12221
12222 else
12223   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12224 fi
12225
12226
12227
12228
12229 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12230   if test -n "$with_build_time_tools"; then
12231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12232 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12233     if test -x $with_build_time_tools/ranlib; then
12234       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12235       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12237 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12238     else
12239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241     fi
12242   elif test $build != $host && test $have_gcc_for_target = yes; then
12243     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12244     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12245     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12246   fi
12247 fi
12248 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12249   # Extract the first word of "ranlib", so it can be a program name with args.
12250 set dummy ranlib; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $RANLIB_FOR_TARGET in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $gcc_cv_tool_dirs
12263 do
12264   IFS=$as_save_IFS
12265   test -z "$as_dir" && as_dir=.
12266     for ac_exec_ext in '' $ac_executable_extensions; do
12267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270     break 2
12271   fi
12272 done
12273   done
12274 IFS=$as_save_IFS
12275
12276   ;;
12277 esac
12278 fi
12279 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12280 if test -n "$RANLIB_FOR_TARGET"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12282 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288
12289 fi
12290 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12291
12292
12293 if test -n "$RANLIB_FOR_TARGET"; then
12294   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12295 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12296   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12297 fi
12298
12299 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12300   for ncn_progname in ranlib; do
12301     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12302 set dummy ${ncn_progname}; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   if test -n "$RANLIB_FOR_TARGET"; then
12309   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314   IFS=$as_save_IFS
12315   test -z "$as_dir" && as_dir=.
12316     for ac_exec_ext in '' $ac_executable_extensions; do
12317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320     break 2
12321   fi
12322 done
12323   done
12324 IFS=$as_save_IFS
12325
12326 fi
12327 fi
12328 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12329 if test -n "$RANLIB_FOR_TARGET"; then
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12331 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336
12337
12338   done
12339 fi
12340
12341 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12342   for ncn_progname in ranlib; do
12343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12344 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12345     if test -x $with_build_time_tools/${ncn_progname}; then
12346       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349       break
12350     else
12351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353     fi
12354   done
12355 fi
12356
12357 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12358   for ncn_progname in ranlib; do
12359     if test -n "$ncn_target_tool_prefix"; then
12360       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363 $as_echo_n "checking for $ac_word... " >&6; }
12364 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367   if test -n "$RANLIB_FOR_TARGET"; then
12368   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12369 else
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373   IFS=$as_save_IFS
12374   test -z "$as_dir" && as_dir=.
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379     break 2
12380   fi
12381 done
12382   done
12383 IFS=$as_save_IFS
12384
12385 fi
12386 fi
12387 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12388 if test -n "$RANLIB_FOR_TARGET"; then
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12390 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12391 else
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395
12396
12397     fi
12398     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12399       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12400 set dummy ${ncn_progname}; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if test -n "$RANLIB_FOR_TARGET"; then
12407   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412   IFS=$as_save_IFS
12413   test -z "$as_dir" && as_dir=.
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418     break 2
12419   fi
12420 done
12421   done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12427 if test -n "$RANLIB_FOR_TARGET"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12429 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436     fi
12437     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12438   done
12439 fi
12440
12441 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12442   set dummy ranlib
12443   if test $build = $target ; then
12444     RANLIB_FOR_TARGET="$2"
12445   else
12446     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12447   fi
12448 else
12449   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12450 fi
12451
12452 else
12453   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12454 fi
12455
12456
12457
12458
12459 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12460   if test -n "$with_build_time_tools"; then
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12462 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12463     if test -x $with_build_time_tools/strip; then
12464       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12465       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12467 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12468     else
12469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12471     fi
12472   elif test $build != $host && test $have_gcc_for_target = yes; then
12473     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12474     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12475     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12476   fi
12477 fi
12478 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12479   # Extract the first word of "strip", so it can be a program name with args.
12480 set dummy strip; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486   case $STRIP_FOR_TARGET in
12487   [\\/]* | ?:[\\/]*)
12488   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12489   ;;
12490   *)
12491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $gcc_cv_tool_dirs
12493 do
12494   IFS=$as_save_IFS
12495   test -z "$as_dir" && as_dir=.
12496     for ac_exec_ext in '' $ac_executable_extensions; do
12497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12498     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500     break 2
12501   fi
12502 done
12503   done
12504 IFS=$as_save_IFS
12505
12506   ;;
12507 esac
12508 fi
12509 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12510 if test -n "$STRIP_FOR_TARGET"; then
12511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12512 $as_echo "$STRIP_FOR_TARGET" >&6; }
12513 else
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517
12518
12519 fi
12520 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12521
12522
12523 if test -n "$STRIP_FOR_TARGET"; then
12524   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12525 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12526   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12527 fi
12528
12529 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12530   for ncn_progname in strip; do
12531     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   if test -n "$STRIP_FOR_TARGET"; then
12539   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12543 do
12544   IFS=$as_save_IFS
12545   test -z "$as_dir" && as_dir=.
12546     for ac_exec_ext in '' $ac_executable_extensions; do
12547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550     break 2
12551   fi
12552 done
12553   done
12554 IFS=$as_save_IFS
12555
12556 fi
12557 fi
12558 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12559 if test -n "$STRIP_FOR_TARGET"; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12561 $as_echo "$STRIP_FOR_TARGET" >&6; }
12562 else
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565 fi
12566
12567
12568   done
12569 fi
12570
12571 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12572   for ncn_progname in strip; do
12573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12574 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12575     if test -x $with_build_time_tools/${ncn_progname}; then
12576       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578 $as_echo "yes" >&6; }
12579       break
12580     else
12581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583     fi
12584   done
12585 fi
12586
12587 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12588   for ncn_progname in strip; do
12589     if test -n "$ncn_target_tool_prefix"; then
12590       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12591 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12595   $as_echo_n "(cached) " >&6
12596 else
12597   if test -n "$STRIP_FOR_TARGET"; then
12598   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603   IFS=$as_save_IFS
12604   test -z "$as_dir" && as_dir=.
12605     for ac_exec_ext in '' $ac_executable_extensions; do
12606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614
12615 fi
12616 fi
12617 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12618 if test -n "$STRIP_FOR_TARGET"; then
12619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12620 $as_echo "$STRIP_FOR_TARGET" >&6; }
12621 else
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624 fi
12625
12626
12627     fi
12628     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12629       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12630 set dummy ${ncn_progname}; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   if test -n "$STRIP_FOR_TARGET"; then
12637   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12638 else
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642   IFS=$as_save_IFS
12643   test -z "$as_dir" && as_dir=.
12644     for ac_exec_ext in '' $ac_executable_extensions; do
12645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648     break 2
12649   fi
12650 done
12651   done
12652 IFS=$as_save_IFS
12653
12654 fi
12655 fi
12656 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12657 if test -n "$STRIP_FOR_TARGET"; then
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12659 $as_echo "$STRIP_FOR_TARGET" >&6; }
12660 else
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 fi
12664
12665
12666     fi
12667     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12668   done
12669 fi
12670
12671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12672   set dummy strip
12673   if test $build = $target ; then
12674     STRIP_FOR_TARGET="$2"
12675   else
12676     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12677   fi
12678 else
12679   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12680 fi
12681
12682 else
12683   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12684 fi
12685
12686
12687
12688
12689 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12690   if test -n "$with_build_time_tools"; then
12691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12692 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12693     if test -x $with_build_time_tools/windres; then
12694       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12695       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12697 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12698     else
12699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701     fi
12702   elif test $build != $host && test $have_gcc_for_target = yes; then
12703     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12704     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12705     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12706   fi
12707 fi
12708 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12709   # Extract the first word of "windres", so it can be a program name with args.
12710 set dummy windres; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   case $WINDRES_FOR_TARGET in
12717   [\\/]* | ?:[\\/]*)
12718   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12719   ;;
12720   *)
12721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $gcc_cv_tool_dirs
12723 do
12724   IFS=$as_save_IFS
12725   test -z "$as_dir" && as_dir=.
12726     for ac_exec_ext in '' $ac_executable_extensions; do
12727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12728     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12730     break 2
12731   fi
12732 done
12733   done
12734 IFS=$as_save_IFS
12735
12736   ;;
12737 esac
12738 fi
12739 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12740 if test -n "$WINDRES_FOR_TARGET"; then
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12742 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12743 else
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749 fi
12750 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12751
12752
12753 if test -n "$WINDRES_FOR_TARGET"; then
12754   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12755 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12756   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12757 fi
12758
12759 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12760   for ncn_progname in windres; do
12761     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12762 set dummy ${ncn_progname}; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   if test -n "$WINDRES_FOR_TARGET"; then
12769   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12770 else
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774   IFS=$as_save_IFS
12775   test -z "$as_dir" && as_dir=.
12776     for ac_exec_ext in '' $ac_executable_extensions; do
12777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780     break 2
12781   fi
12782 done
12783   done
12784 IFS=$as_save_IFS
12785
12786 fi
12787 fi
12788 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12789 if test -n "$WINDRES_FOR_TARGET"; then
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12791 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12792 else
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797
12798   done
12799 fi
12800
12801 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12802   for ncn_progname in windres; do
12803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12804 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12805     if test -x $with_build_time_tools/${ncn_progname}; then
12806       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12809       break
12810     else
12811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813     fi
12814   done
12815 fi
12816
12817 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12818   for ncn_progname in windres; do
12819     if test -n "$ncn_target_tool_prefix"; then
12820       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823 $as_echo_n "checking for $ac_word... " >&6; }
12824 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12825   $as_echo_n "(cached) " >&6
12826 else
12827   if test -n "$WINDRES_FOR_TARGET"; then
12828   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12829 else
12830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833   IFS=$as_save_IFS
12834   test -z "$as_dir" && as_dir=.
12835     for ac_exec_ext in '' $ac_executable_extensions; do
12836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12837     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839     break 2
12840   fi
12841 done
12842   done
12843 IFS=$as_save_IFS
12844
12845 fi
12846 fi
12847 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12848 if test -n "$WINDRES_FOR_TARGET"; then
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12850 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855
12856
12857     fi
12858     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12859       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12860 set dummy ${ncn_progname}; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   if test -n "$WINDRES_FOR_TARGET"; then
12867   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12887 if test -n "$WINDRES_FOR_TARGET"; then
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12889 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12890 else
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894
12895
12896     fi
12897     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12898   done
12899 fi
12900
12901 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12902   set dummy windres
12903   if test $build = $target ; then
12904     WINDRES_FOR_TARGET="$2"
12905   else
12906     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12907   fi
12908 else
12909   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12910 fi
12911
12912 else
12913   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12914 fi
12915
12916
12917
12918
12919 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12920   if test -n "$with_build_time_tools"; then
12921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12922 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12923     if test -x $with_build_time_tools/windmc; then
12924       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12925       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12927 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12928     else
12929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931     fi
12932   elif test $build != $host && test $have_gcc_for_target = yes; then
12933     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12934     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12935     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12936   fi
12937 fi
12938 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12939   # Extract the first word of "windmc", so it can be a program name with args.
12940 set dummy windmc; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12944   $as_echo_n "(cached) " >&6
12945 else
12946   case $WINDMC_FOR_TARGET in
12947   [\\/]* | ?:[\\/]*)
12948   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12949   ;;
12950   *)
12951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $gcc_cv_tool_dirs
12953 do
12954   IFS=$as_save_IFS
12955   test -z "$as_dir" && as_dir=.
12956     for ac_exec_ext in '' $ac_executable_extensions; do
12957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12958     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12960     break 2
12961   fi
12962 done
12963   done
12964 IFS=$as_save_IFS
12965
12966   ;;
12967 esac
12968 fi
12969 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12970 if test -n "$WINDMC_FOR_TARGET"; then
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12972 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12973 else
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979 fi
12980 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12981
12982
12983 if test -n "$WINDMC_FOR_TARGET"; then
12984   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12985 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12986   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12987 fi
12988
12989 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12990   for ncn_progname in windmc; do
12991     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12992 set dummy ${ncn_progname}; ac_word=$2
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994 $as_echo_n "checking for $ac_word... " >&6; }
12995 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12996   $as_echo_n "(cached) " >&6
12997 else
12998   if test -n "$WINDMC_FOR_TARGET"; then
12999   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13000 else
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13003 do
13004   IFS=$as_save_IFS
13005   test -z "$as_dir" && as_dir=.
13006     for ac_exec_ext in '' $ac_executable_extensions; do
13007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010     break 2
13011   fi
13012 done
13013   done
13014 IFS=$as_save_IFS
13015
13016 fi
13017 fi
13018 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13019 if test -n "$WINDMC_FOR_TARGET"; then
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13021 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13022 else
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13025 fi
13026
13027
13028   done
13029 fi
13030
13031 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13032   for ncn_progname in windmc; do
13033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13034 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13035     if test -x $with_build_time_tools/${ncn_progname}; then
13036       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13038 $as_echo "yes" >&6; }
13039       break
13040     else
13041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043     fi
13044   done
13045 fi
13046
13047 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13048   for ncn_progname in windmc; do
13049     if test -n "$ncn_target_tool_prefix"; then
13050       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13051 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053 $as_echo_n "checking for $ac_word... " >&6; }
13054 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   if test -n "$WINDMC_FOR_TARGET"; then
13058   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13059 else
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063   IFS=$as_save_IFS
13064   test -z "$as_dir" && as_dir=.
13065     for ac_exec_ext in '' $ac_executable_extensions; do
13066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069     break 2
13070   fi
13071 done
13072   done
13073 IFS=$as_save_IFS
13074
13075 fi
13076 fi
13077 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13078 if test -n "$WINDMC_FOR_TARGET"; then
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13080 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13081 else
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085
13086
13087     fi
13088     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13089       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13090 set dummy ${ncn_progname}; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   if test -n "$WINDMC_FOR_TARGET"; then
13097   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102   IFS=$as_save_IFS
13103   test -z "$as_dir" && as_dir=.
13104     for ac_exec_ext in '' $ac_executable_extensions; do
13105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108     break 2
13109   fi
13110 done
13111   done
13112 IFS=$as_save_IFS
13113
13114 fi
13115 fi
13116 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13117 if test -n "$WINDMC_FOR_TARGET"; then
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13119 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124
13125
13126     fi
13127     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13128   done
13129 fi
13130
13131 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13132   set dummy windmc
13133   if test $build = $target ; then
13134     WINDMC_FOR_TARGET="$2"
13135   else
13136     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13137   fi
13138 else
13139   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13140 fi
13141
13142 else
13143   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13144 fi
13145
13146
13147 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13150 $as_echo_n "checking where to find the target ar... " >&6; }
13151 if test "x${build}" != "x${host}" ; then
13152   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13153     # We already found the complete path
13154     ac_dir=`dirname $AR_FOR_TARGET`
13155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13156 $as_echo "pre-installed in $ac_dir" >&6; }
13157   else
13158     # Canadian cross, just use what we found
13159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13160 $as_echo "pre-installed" >&6; }
13161   fi
13162 else
13163   ok=yes
13164   case " ${configdirs} " in
13165     *" binutils "*) ;;
13166     *) ok=no ;;
13167   esac
13168
13169   if test $ok = yes; then
13170     # An in-tree tool is available and we can use it
13171     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13173 $as_echo "just compiled" >&6; }
13174   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13175     # We already found the complete path
13176     ac_dir=`dirname $AR_FOR_TARGET`
13177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13178 $as_echo "pre-installed in $ac_dir" >&6; }
13179   elif test "x$target" = "x$host"; then
13180     # We can use an host tool
13181     AR_FOR_TARGET='$(AR)'
13182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13183 $as_echo "host tool" >&6; }
13184   else
13185     # We need a cross tool
13186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13187 $as_echo "pre-installed" >&6; }
13188   fi
13189 fi
13190
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13192 $as_echo_n "checking where to find the target as... " >&6; }
13193 if test "x${build}" != "x${host}" ; then
13194   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13195     # We already found the complete path
13196     ac_dir=`dirname $AS_FOR_TARGET`
13197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13198 $as_echo "pre-installed in $ac_dir" >&6; }
13199   else
13200     # Canadian cross, just use what we found
13201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13202 $as_echo "pre-installed" >&6; }
13203   fi
13204 else
13205   ok=yes
13206   case " ${configdirs} " in
13207     *" gas "*) ;;
13208     *) ok=no ;;
13209   esac
13210
13211   if test $ok = yes; then
13212     # An in-tree tool is available and we can use it
13213     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13215 $as_echo "just compiled" >&6; }
13216   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13217     # We already found the complete path
13218     ac_dir=`dirname $AS_FOR_TARGET`
13219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13220 $as_echo "pre-installed in $ac_dir" >&6; }
13221   elif test "x$target" = "x$host"; then
13222     # We can use an host tool
13223     AS_FOR_TARGET='$(AS)'
13224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13225 $as_echo "host tool" >&6; }
13226   else
13227     # We need a cross tool
13228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13229 $as_echo "pre-installed" >&6; }
13230   fi
13231 fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13234 $as_echo_n "checking where to find the target cc... " >&6; }
13235 if test "x${build}" != "x${host}" ; then
13236   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13237     # We already found the complete path
13238     ac_dir=`dirname $CC_FOR_TARGET`
13239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13240 $as_echo "pre-installed in $ac_dir" >&6; }
13241   else
13242     # Canadian cross, just use what we found
13243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13244 $as_echo "pre-installed" >&6; }
13245   fi
13246 else
13247   ok=yes
13248   case " ${configdirs} " in
13249     *" gcc "*) ;;
13250     *) ok=no ;;
13251   esac
13252
13253   if test $ok = yes; then
13254     # An in-tree tool is available and we can use it
13255     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13257 $as_echo "just compiled" >&6; }
13258   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13259     # We already found the complete path
13260     ac_dir=`dirname $CC_FOR_TARGET`
13261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13262 $as_echo "pre-installed in $ac_dir" >&6; }
13263   elif test "x$target" = "x$host"; then
13264     # We can use an host tool
13265     CC_FOR_TARGET='$(CC)'
13266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13267 $as_echo "host tool" >&6; }
13268   else
13269     # We need a cross tool
13270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13271 $as_echo "pre-installed" >&6; }
13272   fi
13273 fi
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13276 $as_echo_n "checking where to find the target c++... " >&6; }
13277 if test "x${build}" != "x${host}" ; then
13278   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13279     # We already found the complete path
13280     ac_dir=`dirname $CXX_FOR_TARGET`
13281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13282 $as_echo "pre-installed in $ac_dir" >&6; }
13283   else
13284     # Canadian cross, just use what we found
13285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286 $as_echo "pre-installed" >&6; }
13287   fi
13288 else
13289   ok=yes
13290   case " ${configdirs} " in
13291     *" gcc "*) ;;
13292     *) ok=no ;;
13293   esac
13294   case ,${enable_languages}, in
13295     *,c++,*) ;;
13296     *) ok=no ;;
13297   esac
13298   if test $ok = yes; then
13299     # An in-tree tool is available and we can use it
13300     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13302 $as_echo "just compiled" >&6; }
13303   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13304     # We already found the complete path
13305     ac_dir=`dirname $CXX_FOR_TARGET`
13306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13307 $as_echo "pre-installed in $ac_dir" >&6; }
13308   elif test "x$target" = "x$host"; then
13309     # We can use an host tool
13310     CXX_FOR_TARGET='$(CXX)'
13311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13312 $as_echo "host tool" >&6; }
13313   else
13314     # We need a cross tool
13315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13316 $as_echo "pre-installed" >&6; }
13317   fi
13318 fi
13319
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13321 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13322 if test "x${build}" != "x${host}" ; then
13323   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13324     # We already found the complete path
13325     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13327 $as_echo "pre-installed in $ac_dir" >&6; }
13328   else
13329     # Canadian cross, just use what we found
13330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331 $as_echo "pre-installed" >&6; }
13332   fi
13333 else
13334   ok=yes
13335   case " ${configdirs} " in
13336     *" gcc "*) ;;
13337     *) ok=no ;;
13338   esac
13339   case ,${enable_languages}, in
13340     *,c++,*) ;;
13341     *) ok=no ;;
13342   esac
13343   if test $ok = yes; then
13344     # An in-tree tool is available and we can use it
13345     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'
13346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13347 $as_echo "just compiled" >&6; }
13348   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13349     # We already found the complete path
13350     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13352 $as_echo "pre-installed in $ac_dir" >&6; }
13353   elif test "x$target" = "x$host"; then
13354     # We can use an host tool
13355     RAW_CXX_FOR_TARGET='$(CXX)'
13356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13357 $as_echo "host tool" >&6; }
13358   else
13359     # We need a cross tool
13360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13361 $as_echo "pre-installed" >&6; }
13362   fi
13363 fi
13364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13366 $as_echo_n "checking where to find the target dlltool... " >&6; }
13367 if test "x${build}" != "x${host}" ; then
13368   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13369     # We already found the complete path
13370     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13372 $as_echo "pre-installed in $ac_dir" >&6; }
13373   else
13374     # Canadian cross, just use what we found
13375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13376 $as_echo "pre-installed" >&6; }
13377   fi
13378 else
13379   ok=yes
13380   case " ${configdirs} " in
13381     *" binutils "*) ;;
13382     *) ok=no ;;
13383   esac
13384
13385   if test $ok = yes; then
13386     # An in-tree tool is available and we can use it
13387     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13389 $as_echo "just compiled" >&6; }
13390   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13391     # We already found the complete path
13392     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13394 $as_echo "pre-installed in $ac_dir" >&6; }
13395   elif test "x$target" = "x$host"; then
13396     # We can use an host tool
13397     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13399 $as_echo "host tool" >&6; }
13400   else
13401     # We need a cross tool
13402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13403 $as_echo "pre-installed" >&6; }
13404   fi
13405 fi
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13408 $as_echo_n "checking where to find the target gcc... " >&6; }
13409 if test "x${build}" != "x${host}" ; then
13410   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13411     # We already found the complete path
13412     ac_dir=`dirname $GCC_FOR_TARGET`
13413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13414 $as_echo "pre-installed in $ac_dir" >&6; }
13415   else
13416     # Canadian cross, just use what we found
13417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418 $as_echo "pre-installed" >&6; }
13419   fi
13420 else
13421   ok=yes
13422   case " ${configdirs} " in
13423     *" gcc "*) ;;
13424     *) ok=no ;;
13425   esac
13426
13427   if test $ok = yes; then
13428     # An in-tree tool is available and we can use it
13429     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13431 $as_echo "just compiled" >&6; }
13432   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13433     # We already found the complete path
13434     ac_dir=`dirname $GCC_FOR_TARGET`
13435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13436 $as_echo "pre-installed in $ac_dir" >&6; }
13437   elif test "x$target" = "x$host"; then
13438     # We can use an host tool
13439     GCC_FOR_TARGET='$()'
13440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13441 $as_echo "host tool" >&6; }
13442   else
13443     # We need a cross tool
13444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13445 $as_echo "pre-installed" >&6; }
13446   fi
13447 fi
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13450 $as_echo_n "checking where to find the target gcj... " >&6; }
13451 if test "x${build}" != "x${host}" ; then
13452   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13453     # We already found the complete path
13454     ac_dir=`dirname $GCJ_FOR_TARGET`
13455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13456 $as_echo "pre-installed in $ac_dir" >&6; }
13457   else
13458     # Canadian cross, just use what we found
13459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460 $as_echo "pre-installed" >&6; }
13461   fi
13462 else
13463   ok=yes
13464   case " ${configdirs} " in
13465     *" gcc "*) ;;
13466     *) ok=no ;;
13467   esac
13468   case ,${enable_languages}, in
13469     *,java,*) ;;
13470     *) ok=no ;;
13471   esac
13472   if test $ok = yes; then
13473     # An in-tree tool is available and we can use it
13474     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13476 $as_echo "just compiled" >&6; }
13477   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13478     # We already found the complete path
13479     ac_dir=`dirname $GCJ_FOR_TARGET`
13480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13481 $as_echo "pre-installed in $ac_dir" >&6; }
13482   elif test "x$target" = "x$host"; then
13483     # We can use an host tool
13484     GCJ_FOR_TARGET='$(GCJ)'
13485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13486 $as_echo "host tool" >&6; }
13487   else
13488     # We need a cross tool
13489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13490 $as_echo "pre-installed" >&6; }
13491   fi
13492 fi
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13495 $as_echo_n "checking where to find the target gfortran... " >&6; }
13496 if test "x${build}" != "x${host}" ; then
13497   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13498     # We already found the complete path
13499     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13501 $as_echo "pre-installed in $ac_dir" >&6; }
13502   else
13503     # Canadian cross, just use what we found
13504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505 $as_echo "pre-installed" >&6; }
13506   fi
13507 else
13508   ok=yes
13509   case " ${configdirs} " in
13510     *" gcc "*) ;;
13511     *) ok=no ;;
13512   esac
13513   case ,${enable_languages}, in
13514     *,fortran,*) ;;
13515     *) ok=no ;;
13516   esac
13517   if test $ok = yes; then
13518     # An in-tree tool is available and we can use it
13519     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13521 $as_echo "just compiled" >&6; }
13522   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13523     # We already found the complete path
13524     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13526 $as_echo "pre-installed in $ac_dir" >&6; }
13527   elif test "x$target" = "x$host"; then
13528     # We can use an host tool
13529     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13531 $as_echo "host tool" >&6; }
13532   else
13533     # We need a cross tool
13534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13535 $as_echo "pre-installed" >&6; }
13536   fi
13537 fi
13538
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13540 $as_echo_n "checking where to find the target gccgo... " >&6; }
13541 if test "x${build}" != "x${host}" ; then
13542   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13543     # We already found the complete path
13544     ac_dir=`dirname $GOC_FOR_TARGET`
13545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13546 $as_echo "pre-installed in $ac_dir" >&6; }
13547   else
13548     # Canadian cross, just use what we found
13549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13550 $as_echo "pre-installed" >&6; }
13551   fi
13552 else
13553   ok=yes
13554   case " ${configdirs} " in
13555     *" gcc "*) ;;
13556     *) ok=no ;;
13557   esac
13558   case ,${enable_languages}, in
13559     *,go,*) ;;
13560     *) ok=no ;;
13561   esac
13562   if test $ok = yes; then
13563     # An in-tree tool is available and we can use it
13564     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13566 $as_echo "just compiled" >&6; }
13567   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13568     # We already found the complete path
13569     ac_dir=`dirname $GOC_FOR_TARGET`
13570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13571 $as_echo "pre-installed in $ac_dir" >&6; }
13572   elif test "x$target" = "x$host"; then
13573     # We can use an host tool
13574     GOC_FOR_TARGET='$(GOC)'
13575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13576 $as_echo "host tool" >&6; }
13577   else
13578     # We need a cross tool
13579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13580 $as_echo "pre-installed" >&6; }
13581   fi
13582 fi
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13585 $as_echo_n "checking where to find the target ld... " >&6; }
13586 if test "x${build}" != "x${host}" ; then
13587   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13588     # We already found the complete path
13589     ac_dir=`dirname $LD_FOR_TARGET`
13590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591 $as_echo "pre-installed in $ac_dir" >&6; }
13592   else
13593     # Canadian cross, just use what we found
13594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595 $as_echo "pre-installed" >&6; }
13596   fi
13597 else
13598   ok=yes
13599   case " ${configdirs} " in
13600     *" ld "*) ;;
13601     *) ok=no ;;
13602   esac
13603
13604   if test $ok = yes; then
13605     # An in-tree tool is available and we can use it
13606     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13608 $as_echo "just compiled" >&6; }
13609   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13610     # We already found the complete path
13611     ac_dir=`dirname $LD_FOR_TARGET`
13612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13613 $as_echo "pre-installed in $ac_dir" >&6; }
13614   elif test "x$target" = "x$host"; then
13615     # We can use an host tool
13616     LD_FOR_TARGET='$(LD)'
13617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13618 $as_echo "host tool" >&6; }
13619   else
13620     # We need a cross tool
13621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13622 $as_echo "pre-installed" >&6; }
13623   fi
13624 fi
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13627 $as_echo_n "checking where to find the target lipo... " >&6; }
13628 if test "x${build}" != "x${host}" ; then
13629   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13630     # We already found the complete path
13631     ac_dir=`dirname $LIPO_FOR_TARGET`
13632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633 $as_echo "pre-installed in $ac_dir" >&6; }
13634   else
13635     # Canadian cross, just use what we found
13636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637 $as_echo "pre-installed" >&6; }
13638   fi
13639 else
13640   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13641     # We already found the complete path
13642     ac_dir=`dirname $LIPO_FOR_TARGET`
13643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644 $as_echo "pre-installed in $ac_dir" >&6; }
13645   elif test "x$target" = "x$host"; then
13646     # We can use an host tool
13647     LIPO_FOR_TARGET='$(LIPO)'
13648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13649 $as_echo "host tool" >&6; }
13650   else
13651     # We need a cross tool
13652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653 $as_echo "pre-installed" >&6; }
13654   fi
13655 fi
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13658 $as_echo_n "checking where to find the target nm... " >&6; }
13659 if test "x${build}" != "x${host}" ; then
13660   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13661     # We already found the complete path
13662     ac_dir=`dirname $NM_FOR_TARGET`
13663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13664 $as_echo "pre-installed in $ac_dir" >&6; }
13665   else
13666     # Canadian cross, just use what we found
13667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13668 $as_echo "pre-installed" >&6; }
13669   fi
13670 else
13671   ok=yes
13672   case " ${configdirs} " in
13673     *" binutils "*) ;;
13674     *) ok=no ;;
13675   esac
13676
13677   if test $ok = yes; then
13678     # An in-tree tool is available and we can use it
13679     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13681 $as_echo "just compiled" >&6; }
13682   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13683     # We already found the complete path
13684     ac_dir=`dirname $NM_FOR_TARGET`
13685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686 $as_echo "pre-installed in $ac_dir" >&6; }
13687   elif test "x$target" = "x$host"; then
13688     # We can use an host tool
13689     NM_FOR_TARGET='$(NM)'
13690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13691 $as_echo "host tool" >&6; }
13692   else
13693     # We need a cross tool
13694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695 $as_echo "pre-installed" >&6; }
13696   fi
13697 fi
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13700 $as_echo_n "checking where to find the target objdump... " >&6; }
13701 if test "x${build}" != "x${host}" ; then
13702   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13703     # We already found the complete path
13704     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706 $as_echo "pre-installed in $ac_dir" >&6; }
13707   else
13708     # Canadian cross, just use what we found
13709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710 $as_echo "pre-installed" >&6; }
13711   fi
13712 else
13713   ok=yes
13714   case " ${configdirs} " in
13715     *" binutils "*) ;;
13716     *) ok=no ;;
13717   esac
13718
13719   if test $ok = yes; then
13720     # An in-tree tool is available and we can use it
13721     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723 $as_echo "just compiled" >&6; }
13724   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13725     # We already found the complete path
13726     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728 $as_echo "pre-installed in $ac_dir" >&6; }
13729   elif test "x$target" = "x$host"; then
13730     # We can use an host tool
13731     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733 $as_echo "host tool" >&6; }
13734   else
13735     # We need a cross tool
13736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737 $as_echo "pre-installed" >&6; }
13738   fi
13739 fi
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13742 $as_echo_n "checking where to find the target ranlib... " >&6; }
13743 if test "x${build}" != "x${host}" ; then
13744   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13745     # We already found the complete path
13746     ac_dir=`dirname $RANLIB_FOR_TARGET`
13747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748 $as_echo "pre-installed in $ac_dir" >&6; }
13749   else
13750     # Canadian cross, just use what we found
13751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752 $as_echo "pre-installed" >&6; }
13753   fi
13754 else
13755   ok=yes
13756   case " ${configdirs} " in
13757     *" binutils "*) ;;
13758     *) ok=no ;;
13759   esac
13760
13761   if test $ok = yes; then
13762     # An in-tree tool is available and we can use it
13763     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13765 $as_echo "just compiled" >&6; }
13766   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13767     # We already found the complete path
13768     ac_dir=`dirname $RANLIB_FOR_TARGET`
13769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770 $as_echo "pre-installed in $ac_dir" >&6; }
13771   elif test "x$target" = "x$host"; then
13772     # We can use an host tool
13773     RANLIB_FOR_TARGET='$(RANLIB)'
13774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13775 $as_echo "host tool" >&6; }
13776   else
13777     # We need a cross tool
13778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779 $as_echo "pre-installed" >&6; }
13780   fi
13781 fi
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13784 $as_echo_n "checking where to find the target strip... " >&6; }
13785 if test "x${build}" != "x${host}" ; then
13786   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13787     # We already found the complete path
13788     ac_dir=`dirname $STRIP_FOR_TARGET`
13789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790 $as_echo "pre-installed in $ac_dir" >&6; }
13791   else
13792     # Canadian cross, just use what we found
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13794 $as_echo "pre-installed" >&6; }
13795   fi
13796 else
13797   ok=yes
13798   case " ${configdirs} " in
13799     *" binutils "*) ;;
13800     *) ok=no ;;
13801   esac
13802
13803   if test $ok = yes; then
13804     # An in-tree tool is available and we can use it
13805     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13807 $as_echo "just compiled" >&6; }
13808   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13809     # We already found the complete path
13810     ac_dir=`dirname $STRIP_FOR_TARGET`
13811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812 $as_echo "pre-installed in $ac_dir" >&6; }
13813   elif test "x$target" = "x$host"; then
13814     # We can use an host tool
13815     STRIP_FOR_TARGET='$(STRIP)'
13816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13817 $as_echo "host tool" >&6; }
13818   else
13819     # We need a cross tool
13820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821 $as_echo "pre-installed" >&6; }
13822   fi
13823 fi
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13826 $as_echo_n "checking where to find the target windres... " >&6; }
13827 if test "x${build}" != "x${host}" ; then
13828   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13829     # We already found the complete path
13830     ac_dir=`dirname $WINDRES_FOR_TARGET`
13831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832 $as_echo "pre-installed in $ac_dir" >&6; }
13833   else
13834     # Canadian cross, just use what we found
13835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13836 $as_echo "pre-installed" >&6; }
13837   fi
13838 else
13839   ok=yes
13840   case " ${configdirs} " in
13841     *" binutils "*) ;;
13842     *) ok=no ;;
13843   esac
13844
13845   if test $ok = yes; then
13846     # An in-tree tool is available and we can use it
13847     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13849 $as_echo "just compiled" >&6; }
13850   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13851     # We already found the complete path
13852     ac_dir=`dirname $WINDRES_FOR_TARGET`
13853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13854 $as_echo "pre-installed in $ac_dir" >&6; }
13855   elif test "x$target" = "x$host"; then
13856     # We can use an host tool
13857     WINDRES_FOR_TARGET='$(WINDRES)'
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13859 $as_echo "host tool" >&6; }
13860   else
13861     # We need a cross tool
13862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13863 $as_echo "pre-installed" >&6; }
13864   fi
13865 fi
13866
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13868 $as_echo_n "checking where to find the target windmc... " >&6; }
13869 if test "x${build}" != "x${host}" ; then
13870   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13871     # We already found the complete path
13872     ac_dir=`dirname $WINDMC_FOR_TARGET`
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874 $as_echo "pre-installed in $ac_dir" >&6; }
13875   else
13876     # Canadian cross, just use what we found
13877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13878 $as_echo "pre-installed" >&6; }
13879   fi
13880 else
13881   ok=yes
13882   case " ${configdirs} " in
13883     *" binutils "*) ;;
13884     *) ok=no ;;
13885   esac
13886
13887   if test $ok = yes; then
13888     # An in-tree tool is available and we can use it
13889     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13891 $as_echo "just compiled" >&6; }
13892   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13893     # We already found the complete path
13894     ac_dir=`dirname $WINDMC_FOR_TARGET`
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13897   elif test "x$target" = "x$host"; then
13898     # We can use an host tool
13899     WINDMC_FOR_TARGET='$(WINDMC)'
13900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13901 $as_echo "host tool" >&6; }
13902   else
13903     # We need a cross tool
13904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905 $as_echo "pre-installed" >&6; }
13906   fi
13907 fi
13908
13909
13910
13911
13912
13913 # Certain tools may need extra flags.
13914 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13915 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13916 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13917
13918 # When building target libraries, except in a Canadian cross, we use
13919 # the same toolchain as the compiler we just built.
13920 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13921 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13922 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13923 if test $host = $build; then
13924   case " $configdirs " in
13925     *" gcc "*)
13926       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13927       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13928       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13929       ;;
13930   esac
13931 fi
13932
13933
13934
13935
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13938 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13939 # Check whether --enable-maintainer-mode was given.
13940 if test "${enable_maintainer_mode+set}" = set; then :
13941   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13942 else
13943   USE_MAINTAINER_MODE=no
13944 fi
13945
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13947 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13948
13949
13950 if test "$USE_MAINTAINER_MODE" = yes; then
13951   MAINTAINER_MODE_TRUE=
13952   MAINTAINER_MODE_FALSE='#'
13953 else
13954   MAINTAINER_MODE_TRUE='#'
13955   MAINTAINER_MODE_FALSE=
13956 fi
13957 MAINT=$MAINTAINER_MODE_TRUE
13958
13959 # ---------------------
13960 # GCC bootstrap support
13961 # ---------------------
13962
13963 # Stage specific cflags for build.
13964 stage1_cflags="-g"
13965 case $build in
13966   vax-*-*)
13967     case ${GCC} in
13968       yes) stage1_cflags="-g -Wa,-J" ;;
13969       *) stage1_cflags="-g -J" ;;
13970     esac ;;
13971 esac
13972
13973 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13974 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13975   saved_CFLAGS="$CFLAGS"
13976
13977   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13978   CFLAGS="$CFLAGS -fkeep-inline-functions"
13979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13980 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h.  */
13983
13984 #if (__GNUC__ < 3) \
13985     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13986                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13987 #error http://gcc.gnu.org/PR29382
13988 #endif
13989
13990 int
13991 main ()
13992 {
13993
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 if ac_fn_c_try_compile "$LINENO"; then :
13999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14001 else
14002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006
14007   CFLAGS="$saved_CFLAGS"
14008 fi
14009
14010
14011
14012 # Enable --enable-checking in stage1 of the compiler.
14013 # Check whether --enable-stage1-checking was given.
14014 if test "${enable_stage1_checking+set}" = set; then :
14015   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14016 else
14017   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14018   stage1_checking=--enable-checking=yes,types
14019 else
14020   stage1_checking=--enable-checking=$enable_checking,types
14021 fi
14022 fi
14023
14024
14025
14026 # Enable -Werror in bootstrap stage2 and later.
14027 # Check whether --enable-werror was given.
14028 if test "${enable_werror+set}" = set; then :
14029   enableval=$enable_werror;
14030 else
14031   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14032   enable_werror=yes
14033 else
14034   enable_werror=no
14035 fi
14036 fi
14037
14038 case ${enable_werror} in
14039   yes) stage2_werror_flag="--enable-werror-always" ;;
14040   *) stage2_werror_flag="" ;;
14041 esac
14042
14043
14044 # Specify what files to not compare during bootstrap.
14045
14046 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14047 case "$target" in
14048   hppa*64*-*-hpux*) ;;
14049   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14050 esac
14051 case " $configdirs " in
14052 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14053 esac
14054
14055
14056 ac_config_files="$ac_config_files Makefile"
14057
14058 cat >confcache <<\_ACEOF
14059 # This file is a shell script that caches the results of configure
14060 # tests run on this system so they can be shared between configure
14061 # scripts and configure runs, see configure's option --config-cache.
14062 # It is not useful on other systems.  If it contains results you don't
14063 # want to keep, you may remove or edit it.
14064 #
14065 # config.status only pays attention to the cache file if you give it
14066 # the --recheck option to rerun configure.
14067 #
14068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14070 # following values.
14071
14072 _ACEOF
14073
14074 # The following way of writing the cache mishandles newlines in values,
14075 # but we know of no workaround that is simple, portable, and efficient.
14076 # So, we kill variables containing newlines.
14077 # Ultrix sh set writes to stderr and can't be redirected directly,
14078 # and sets the high bit in the cache file unless we assign to the vars.
14079 (
14080   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14081     eval ac_val=\$$ac_var
14082     case $ac_val in #(
14083     *${as_nl}*)
14084       case $ac_var in #(
14085       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14087       esac
14088       case $ac_var in #(
14089       _ | IFS | as_nl) ;; #(
14090       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14091       *) { eval $ac_var=; unset $ac_var;} ;;
14092       esac ;;
14093     esac
14094   done
14095
14096   (set) 2>&1 |
14097     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14098     *${as_nl}ac_space=\ *)
14099       # `set' does not quote correctly, so add quotes: double-quote
14100       # substitution turns \\\\ into \\, and sed turns \\ into \.
14101       sed -n \
14102         "s/'/'\\\\''/g;
14103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14104       ;; #(
14105     *)
14106       # `set' quotes correctly as required by POSIX, so do not add quotes.
14107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14108       ;;
14109     esac |
14110     sort
14111 ) |
14112   sed '
14113      /^ac_cv_env_/b end
14114      t clear
14115      :clear
14116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14117      t end
14118      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14119      :end' >>confcache
14120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14121   if test -w "$cache_file"; then
14122     test "x$cache_file" != "x/dev/null" &&
14123       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14124 $as_echo "$as_me: updating cache $cache_file" >&6;}
14125     cat confcache >$cache_file
14126   else
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14129   fi
14130 fi
14131 rm -f confcache
14132
14133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134 # Let make expand exec_prefix.
14135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14136
14137 # Transform confdefs.h into DEFS.
14138 # Protect against shell expansion while executing Makefile rules.
14139 # Protect against Makefile macro expansion.
14140 #
14141 # If the first sed substitution is executed (which looks for macros that
14142 # take arguments), then branch to the quote section.  Otherwise,
14143 # look for a macro that doesn't take arguments.
14144 ac_script='
14145 :mline
14146 /\\$/{
14147  N
14148  s,\\\n,,
14149  b mline
14150 }
14151 t clear
14152 :clear
14153 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14154 t quote
14155 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14156 t quote
14157 b any
14158 :quote
14159 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14160 s/\[/\\&/g
14161 s/\]/\\&/g
14162 s/\$/$$/g
14163 H
14164 :any
14165 ${
14166         g
14167         s/^\n//
14168         s/\n/ /g
14169         p
14170 }
14171 '
14172 DEFS=`sed -n "$ac_script" confdefs.h`
14173
14174
14175 ac_libobjs=
14176 ac_ltlibobjs=
14177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14178   # 1. Remove the extension, and $U if already installed.
14179   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14180   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14181   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14182   #    will be set to the directory where LIBOBJS objects are built.
14183   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14184   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14185 done
14186 LIBOBJS=$ac_libobjs
14187
14188 LTLIBOBJS=$ac_ltlibobjs
14189
14190
14191
14192 : ${CONFIG_STATUS=./config.status}
14193 ac_write_fail=0
14194 ac_clean_files_save=$ac_clean_files
14195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14198 as_write_fail=0
14199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14200 #! $SHELL
14201 # Generated by $as_me.
14202 # Run this file to recreate the current configuration.
14203 # Compiler output produced by configure, useful for debugging
14204 # configure, is in config.log if it exists.
14205
14206 debug=false
14207 ac_cs_recheck=false
14208 ac_cs_silent=false
14209
14210 SHELL=\${CONFIG_SHELL-$SHELL}
14211 export SHELL
14212 _ASEOF
14213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14214 ## -------------------- ##
14215 ## M4sh Initialization. ##
14216 ## -------------------- ##
14217
14218 # Be more Bourne compatible
14219 DUALCASE=1; export DUALCASE # for MKS sh
14220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14221   emulate sh
14222   NULLCMD=:
14223   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14224   # is contrary to our usage.  Disable this feature.
14225   alias -g '${1+"$@"}'='"$@"'
14226   setopt NO_GLOB_SUBST
14227 else
14228   case `(set -o) 2>/dev/null` in #(
14229   *posix*) :
14230     set -o posix ;; #(
14231   *) :
14232      ;;
14233 esac
14234 fi
14235
14236
14237 as_nl='
14238 '
14239 export as_nl
14240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14244 # Prefer a ksh shell builtin over an external printf program on Solaris,
14245 # but without wasting forks for bash or zsh.
14246 if test -z "$BASH_VERSION$ZSH_VERSION" \
14247     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14248   as_echo='print -r --'
14249   as_echo_n='print -rn --'
14250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14251   as_echo='printf %s\n'
14252   as_echo_n='printf %s'
14253 else
14254   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14255     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14256     as_echo_n='/usr/ucb/echo -n'
14257   else
14258     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14259     as_echo_n_body='eval
14260       arg=$1;
14261       case $arg in #(
14262       *"$as_nl"*)
14263         expr "X$arg" : "X\\(.*\\)$as_nl";
14264         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14265       esac;
14266       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14267     '
14268     export as_echo_n_body
14269     as_echo_n='sh -c $as_echo_n_body as_echo'
14270   fi
14271   export as_echo_body
14272   as_echo='sh -c $as_echo_body as_echo'
14273 fi
14274
14275 # The user is always right.
14276 if test "${PATH_SEPARATOR+set}" != set; then
14277   PATH_SEPARATOR=:
14278   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14279     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14280       PATH_SEPARATOR=';'
14281   }
14282 fi
14283
14284
14285 # IFS
14286 # We need space, tab and new line, in precisely that order.  Quoting is
14287 # there to prevent editors from complaining about space-tab.
14288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14289 # splitting by setting IFS to empty value.)
14290 IFS=" ""        $as_nl"
14291
14292 # Find who we are.  Look in the path if we contain no directory separator.
14293 case $0 in #((
14294   *[\\/]* ) as_myself=$0 ;;
14295   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 for as_dir in $PATH
14297 do
14298   IFS=$as_save_IFS
14299   test -z "$as_dir" && as_dir=.
14300     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14301   done
14302 IFS=$as_save_IFS
14303
14304      ;;
14305 esac
14306 # We did not find ourselves, most probably we were run as `sh COMMAND'
14307 # in which case we are not to be found in the path.
14308 if test "x$as_myself" = x; then
14309   as_myself=$0
14310 fi
14311 if test ! -f "$as_myself"; then
14312   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313   exit 1
14314 fi
14315
14316 # Unset variables that we do not need and which cause bugs (e.g. in
14317 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14318 # suppresses any "Segmentation fault" message there.  '((' could
14319 # trigger a bug in pdksh 5.2.14.
14320 for as_var in BASH_ENV ENV MAIL MAILPATH
14321 do eval test x\${$as_var+set} = xset \
14322   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14323 done
14324 PS1='$ '
14325 PS2='> '
14326 PS4='+ '
14327
14328 # NLS nuisances.
14329 LC_ALL=C
14330 export LC_ALL
14331 LANGUAGE=C
14332 export LANGUAGE
14333
14334 # CDPATH.
14335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337
14338 # as_fn_error ERROR [LINENO LOG_FD]
14339 # ---------------------------------
14340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14342 # script with status $?, using 1 if that was 0.
14343 as_fn_error ()
14344 {
14345   as_status=$?; test $as_status -eq 0 && as_status=1
14346   if test "$3"; then
14347     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14348     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14349   fi
14350   $as_echo "$as_me: error: $1" >&2
14351   as_fn_exit $as_status
14352 } # as_fn_error
14353
14354
14355 # as_fn_set_status STATUS
14356 # -----------------------
14357 # Set $? to STATUS, without forking.
14358 as_fn_set_status ()
14359 {
14360   return $1
14361 } # as_fn_set_status
14362
14363 # as_fn_exit STATUS
14364 # -----------------
14365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14366 as_fn_exit ()
14367 {
14368   set +e
14369   as_fn_set_status $1
14370   exit $1
14371 } # as_fn_exit
14372
14373 # as_fn_unset VAR
14374 # ---------------
14375 # Portably unset VAR.
14376 as_fn_unset ()
14377 {
14378   { eval $1=; unset $1;}
14379 }
14380 as_unset=as_fn_unset
14381 # as_fn_append VAR VALUE
14382 # ----------------------
14383 # Append the text in VALUE to the end of the definition contained in VAR. Take
14384 # advantage of any shell optimizations that allow amortized linear growth over
14385 # repeated appends, instead of the typical quadratic growth present in naive
14386 # implementations.
14387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14388   eval 'as_fn_append ()
14389   {
14390     eval $1+=\$2
14391   }'
14392 else
14393   as_fn_append ()
14394   {
14395     eval $1=\$$1\$2
14396   }
14397 fi # as_fn_append
14398
14399 # as_fn_arith ARG...
14400 # ------------------
14401 # Perform arithmetic evaluation on the ARGs, and store the result in the
14402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14403 # must be portable across $(()) and expr.
14404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14405   eval 'as_fn_arith ()
14406   {
14407     as_val=$(( $* ))
14408   }'
14409 else
14410   as_fn_arith ()
14411   {
14412     as_val=`expr "$@" || test $? -eq 1`
14413   }
14414 fi # as_fn_arith
14415
14416
14417 if expr a : '\(a\)' >/dev/null 2>&1 &&
14418    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14419   as_expr=expr
14420 else
14421   as_expr=false
14422 fi
14423
14424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14425   as_basename=basename
14426 else
14427   as_basename=false
14428 fi
14429
14430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14431   as_dirname=dirname
14432 else
14433   as_dirname=false
14434 fi
14435
14436 as_me=`$as_basename -- "$0" ||
14437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14438          X"$0" : 'X\(//\)$' \| \
14439          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440 $as_echo X/"$0" |
14441     sed '/^.*\/\([^/][^/]*\)\/*$/{
14442             s//\1/
14443             q
14444           }
14445           /^X\/\(\/\/\)$/{
14446             s//\1/
14447             q
14448           }
14449           /^X\/\(\/\).*/{
14450             s//\1/
14451             q
14452           }
14453           s/.*/./; q'`
14454
14455 # Avoid depending upon Character Ranges.
14456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14459 as_cr_digits='0123456789'
14460 as_cr_alnum=$as_cr_Letters$as_cr_digits
14461
14462 ECHO_C= ECHO_N= ECHO_T=
14463 case `echo -n x` in #(((((
14464 -n*)
14465   case `echo 'xy\c'` in
14466   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14467   xy)  ECHO_C='\c';;
14468   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14469        ECHO_T=' ';;
14470   esac;;
14471 *)
14472   ECHO_N='-n';;
14473 esac
14474
14475 rm -f conf$$ conf$$.exe conf$$.file
14476 if test -d conf$$.dir; then
14477   rm -f conf$$.dir/conf$$.file
14478 else
14479   rm -f conf$$.dir
14480   mkdir conf$$.dir 2>/dev/null
14481 fi
14482 if (echo >conf$$.file) 2>/dev/null; then
14483   if ln -s conf$$.file conf$$ 2>/dev/null; then
14484     as_ln_s='ln -s'
14485     # ... but there are two gotchas:
14486     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14487     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14488     # In both cases, we have to default to `cp -p'.
14489     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14490       as_ln_s='cp -p'
14491   elif ln conf$$.file conf$$ 2>/dev/null; then
14492     as_ln_s=ln
14493   else
14494     as_ln_s='cp -p'
14495   fi
14496 else
14497   as_ln_s='cp -p'
14498 fi
14499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14500 rmdir conf$$.dir 2>/dev/null
14501
14502
14503 # as_fn_mkdir_p
14504 # -------------
14505 # Create "$as_dir" as a directory, including parents if necessary.
14506 as_fn_mkdir_p ()
14507 {
14508
14509   case $as_dir in #(
14510   -*) as_dir=./$as_dir;;
14511   esac
14512   test -d "$as_dir" || eval $as_mkdir_p || {
14513     as_dirs=
14514     while :; do
14515       case $as_dir in #(
14516       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14517       *) as_qdir=$as_dir;;
14518       esac
14519       as_dirs="'$as_qdir' $as_dirs"
14520       as_dir=`$as_dirname -- "$as_dir" ||
14521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522          X"$as_dir" : 'X\(//\)[^/]' \| \
14523          X"$as_dir" : 'X\(//\)$' \| \
14524          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14525 $as_echo X"$as_dir" |
14526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527             s//\1/
14528             q
14529           }
14530           /^X\(\/\/\)[^/].*/{
14531             s//\1/
14532             q
14533           }
14534           /^X\(\/\/\)$/{
14535             s//\1/
14536             q
14537           }
14538           /^X\(\/\).*/{
14539             s//\1/
14540             q
14541           }
14542           s/.*/./; q'`
14543       test -d "$as_dir" && break
14544     done
14545     test -z "$as_dirs" || eval "mkdir $as_dirs"
14546   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14547
14548
14549 } # as_fn_mkdir_p
14550 if mkdir -p . 2>/dev/null; then
14551   as_mkdir_p='mkdir -p "$as_dir"'
14552 else
14553   test -d ./-p && rmdir ./-p
14554   as_mkdir_p=false
14555 fi
14556
14557 if test -x / >/dev/null 2>&1; then
14558   as_test_x='test -x'
14559 else
14560   if ls -dL / >/dev/null 2>&1; then
14561     as_ls_L_option=L
14562   else
14563     as_ls_L_option=
14564   fi
14565   as_test_x='
14566     eval sh -c '\''
14567       if test -d "$1"; then
14568         test -d "$1/.";
14569       else
14570         case $1 in #(
14571         -*)set "./$1";;
14572         esac;
14573         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14574         ???[sx]*):;;*)false;;esac;fi
14575     '\'' sh
14576   '
14577 fi
14578 as_executable_p=$as_test_x
14579
14580 # Sed expression to map a string onto a valid CPP name.
14581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583 # Sed expression to map a string onto a valid variable name.
14584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
14587 exec 6>&1
14588 ## ----------------------------------- ##
14589 ## Main body of $CONFIG_STATUS script. ##
14590 ## ----------------------------------- ##
14591 _ASEOF
14592 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14593
14594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595 # Save the log message, to keep $0 and so on meaningful, and to
14596 # report actual input values of CONFIG_FILES etc. instead of their
14597 # values after options handling.
14598 ac_log="
14599 This file was extended by $as_me, which was
14600 generated by GNU Autoconf 2.64.  Invocation command line was
14601
14602   CONFIG_FILES    = $CONFIG_FILES
14603   CONFIG_HEADERS  = $CONFIG_HEADERS
14604   CONFIG_LINKS    = $CONFIG_LINKS
14605   CONFIG_COMMANDS = $CONFIG_COMMANDS
14606   $ $0 $@
14607
14608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14609 "
14610
14611 _ACEOF
14612
14613 case $ac_config_files in *"
14614 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14615 esac
14616
14617
14618
14619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620 # Files that config.status was made for.
14621 config_files="$ac_config_files"
14622
14623 _ACEOF
14624
14625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14626 ac_cs_usage="\
14627 \`$as_me' instantiates files and other configuration actions
14628 from templates according to the current configuration.  Unless the files
14629 and actions are specified as TAGs, all are instantiated by default.
14630
14631 Usage: $0 [OPTION]... [TAG]...
14632
14633   -h, --help       print this help, then exit
14634   -V, --version    print version number and configuration settings, then exit
14635   -q, --quiet, --silent
14636                    do not print progress messages
14637   -d, --debug      don't remove temporary files
14638       --recheck    update $as_me by reconfiguring in the same conditions
14639       --file=FILE[:TEMPLATE]
14640                    instantiate the configuration file FILE
14641
14642 Configuration files:
14643 $config_files
14644
14645 Report bugs to the package provider."
14646
14647 _ACEOF
14648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 ac_cs_version="\\
14650 config.status
14651 configured by $0, generated by GNU Autoconf 2.64,
14652   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14653
14654 Copyright (C) 2009 Free Software Foundation, Inc.
14655 This config.status script is free software; the Free Software Foundation
14656 gives unlimited permission to copy, distribute and modify it."
14657
14658 ac_pwd='$ac_pwd'
14659 srcdir='$srcdir'
14660 INSTALL='$INSTALL'
14661 AWK='$AWK'
14662 test -n "\$AWK" || AWK=awk
14663 _ACEOF
14664
14665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666 # The default lists apply if the user does not specify any file.
14667 ac_need_defaults=:
14668 while test $# != 0
14669 do
14670   case $1 in
14671   --*=*)
14672     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14673     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14674     ac_shift=:
14675     ;;
14676   *)
14677     ac_option=$1
14678     ac_optarg=$2
14679     ac_shift=shift
14680     ;;
14681   esac
14682
14683   case $ac_option in
14684   # Handling of the options.
14685   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14686     ac_cs_recheck=: ;;
14687   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688     $as_echo "$ac_cs_version"; exit ;;
14689   --debug | --debu | --deb | --de | --d | -d )
14690     debug=: ;;
14691   --file | --fil | --fi | --f )
14692     $ac_shift
14693     case $ac_optarg in
14694     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14695     esac
14696     as_fn_append CONFIG_FILES " '$ac_optarg'"
14697     ac_need_defaults=false;;
14698   --he | --h |  --help | --hel | -h )
14699     $as_echo "$ac_cs_usage"; exit ;;
14700   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14701   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14702     ac_cs_silent=: ;;
14703
14704   # This is an error.
14705   -*) as_fn_error "unrecognized option: \`$1'
14706 Try \`$0 --help' for more information." ;;
14707
14708   *) as_fn_append ac_config_targets " $1"
14709      ac_need_defaults=false ;;
14710
14711   esac
14712   shift
14713 done
14714
14715 ac_configure_extra_args=
14716
14717 if $ac_cs_silent; then
14718   exec 6>/dev/null
14719   ac_configure_extra_args="$ac_configure_extra_args --silent"
14720 fi
14721
14722 _ACEOF
14723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14724 if \$ac_cs_recheck; then
14725   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14726   shift
14727   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14728   CONFIG_SHELL='$SHELL'
14729   export CONFIG_SHELL
14730   exec "\$@"
14731 fi
14732
14733 _ACEOF
14734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735 exec 5>>config.log
14736 {
14737   echo
14738   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739 ## Running $as_me. ##
14740 _ASBOX
14741   $as_echo "$ac_log"
14742 } >&5
14743
14744 _ACEOF
14745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14746 #
14747 # INIT-COMMANDS
14748 #
14749 extrasub_build="$extrasub_build"
14750    extrasub_host="$extrasub_host"
14751    extrasub_target="$extrasub_target"
14752
14753 _ACEOF
14754
14755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14756
14757 # Handling of arguments.
14758 for ac_config_target in $ac_config_targets
14759 do
14760   case $ac_config_target in
14761     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762
14763   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14764   esac
14765 done
14766
14767
14768 # If the user did not use the arguments to specify the items to instantiate,
14769 # then the envvar interface is used.  Set only those that are not.
14770 # We use the long form for the default assignment because of an extremely
14771 # bizarre bug on SunOS 4.1.3.
14772 if $ac_need_defaults; then
14773   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14774 fi
14775
14776 # Have a temporary directory for convenience.  Make it in the build tree
14777 # simply because there is no reason against having it here, and in addition,
14778 # creating and moving files from /tmp can sometimes cause problems.
14779 # Hook for its removal unless debugging.
14780 # Note that there is a small window in which the directory will not be cleaned:
14781 # after its creation but before its name has been assigned to `$tmp'.
14782 $debug ||
14783 {
14784   tmp=
14785   trap 'exit_status=$?
14786   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14787 ' 0
14788   trap 'as_fn_exit 1' 1 2 13 15
14789 }
14790 # Create a (secure) tmp directory for tmp files.
14791
14792 {
14793   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14794   test -n "$tmp" && test -d "$tmp"
14795 }  ||
14796 {
14797   tmp=./conf$$-$RANDOM
14798   (umask 077 && mkdir "$tmp")
14799 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14800
14801 # Set up the scripts for CONFIG_FILES section.
14802 # No need to generate them if there are no CONFIG_FILES.
14803 # This happens for instance with `./config.status config.h'.
14804 if test -n "$CONFIG_FILES"; then
14805
14806 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14807   ac_cs_awk_getline=:
14808   ac_cs_awk_pipe_init=
14809   ac_cs_awk_read_file='
14810       while ((getline aline < (F[key])) > 0)
14811         print(aline)
14812       close(F[key])'
14813   ac_cs_awk_pipe_fini=
14814 else
14815   ac_cs_awk_getline=false
14816   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14817   ac_cs_awk_read_file='
14818       print "|#_!!_#|"
14819       print "cat " F[key] " &&"
14820       '$ac_cs_awk_pipe_init
14821   # The final `:' finishes the AND list.
14822   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14823 fi
14824 ac_cr=`echo X | tr X '\015'`
14825 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14826 # But we know of no other shell where ac_cr would be empty at this
14827 # point, so we can use a bashism as a fallback.
14828 if test "x$ac_cr" = x; then
14829   eval ac_cr=\$\'\\r\'
14830 fi
14831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833   ac_cs_awk_cr='\r'
14834 else
14835   ac_cs_awk_cr=$ac_cr
14836 fi
14837
14838 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14839 _ACEOF
14840
14841 # Create commands to substitute file output variables.
14842 {
14843   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14844   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14845   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14846   echo "_ACAWK" &&
14847   echo "_ACEOF"
14848 } >conf$$files.sh &&
14849 . ./conf$$files.sh ||
14850   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851 rm -f conf$$files.sh
14852
14853 {
14854   echo "cat >conf$$subs.awk <<_ACEOF" &&
14855   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14856   echo "_ACEOF"
14857 } >conf$$subs.sh ||
14858   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14860 ac_delim='%!_!# '
14861 for ac_last_try in false false false false false :; do
14862   . ./conf$$subs.sh ||
14863     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14864
14865   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866   if test $ac_delim_n = $ac_delim_num; then
14867     break
14868   elif $ac_last_try; then
14869     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870   else
14871     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14872   fi
14873 done
14874 rm -f conf$$subs.sh
14875
14876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14878 _ACEOF
14879 sed -n '
14880 h
14881 s/^/S["/; s/!.*/"]=/
14882 p
14883 g
14884 s/^[^!]*!//
14885 :repl
14886 t repl
14887 s/'"$ac_delim"'$//
14888 t delim
14889 :nl
14890 h
14891 s/\(.\{148\}\).*/\1/
14892 t more1
14893 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14894 p
14895 n
14896 b repl
14897 :more1
14898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14899 p
14900 g
14901 s/.\{148\}//
14902 t nl
14903 :delim
14904 h
14905 s/\(.\{148\}\).*/\1/
14906 t more2
14907 s/["\\]/\\&/g; s/^/"/; s/$/"/
14908 p
14909 b
14910 :more2
14911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14912 p
14913 g
14914 s/.\{148\}//
14915 t delim
14916 ' <conf$$subs.awk | sed '
14917 /^[^""]/{
14918   N
14919   s/\n//
14920 }
14921 ' >>$CONFIG_STATUS || ac_write_fail=1
14922 rm -f conf$$subs.awk
14923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924 _ACAWK
14925 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14926   for (key in S) S_is_set[key] = 1
14927   FS = "\a"
14928   \$ac_cs_awk_pipe_init
14929 }
14930 {
14931   line = $ 0
14932   nfields = split(line, field, "@")
14933   substed = 0
14934   len = length(field[1])
14935   for (i = 2; i < nfields; i++) {
14936     key = field[i]
14937     keylen = length(key)
14938     if (S_is_set[key]) {
14939       value = S[key]
14940       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14941       len += length(value) + length(field[++i])
14942       substed = 1
14943     } else
14944       len += 1 + keylen
14945   }
14946   if (nfields == 3 && !substed) {
14947     key = field[2]
14948     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14949       \$ac_cs_awk_read_file
14950       next
14951     }
14952   }
14953   print line
14954 }
14955 \$ac_cs_awk_pipe_fini
14956 _ACAWK
14957 _ACEOF
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14960   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14961 else
14962   cat
14963 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14964   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14965 _ACEOF
14966
14967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14969 # trailing colons and then remove the whole line if VPATH becomes empty
14970 # (actually we leave an empty line to preserve line numbers).
14971 if test "x$srcdir" = x.; then
14972   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14973 s/:*\$(srcdir):*/:/
14974 s/:*\${srcdir}:*/:/
14975 s/:*@srcdir@:*/:/
14976 s/^\([^=]*=[     ]*\):*/\1/
14977 s/:*$//
14978 s/^[^=]*=[       ]*$//
14979 }'
14980 fi
14981
14982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983 fi # test -n "$CONFIG_FILES"
14984
14985
14986 eval set X "  :F $CONFIG_FILES      "
14987 shift
14988 for ac_tag
14989 do
14990   case $ac_tag in
14991   :[FHLC]) ac_mode=$ac_tag; continue;;
14992   esac
14993   case $ac_mode$ac_tag in
14994   :[FHL]*:*);;
14995   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14996   :[FH]-) ac_tag=-:-;;
14997   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14998   esac
14999   ac_save_IFS=$IFS
15000   IFS=:
15001   set x $ac_tag
15002   IFS=$ac_save_IFS
15003   shift
15004   ac_file=$1
15005   shift
15006
15007   case $ac_mode in
15008   :L) ac_source=$1;;
15009   :[FH])
15010     ac_file_inputs=
15011     for ac_f
15012     do
15013       case $ac_f in
15014       -) ac_f="$tmp/stdin";;
15015       *) # Look for the file first in the build tree, then in the source tree
15016          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15017          # because $ac_f cannot contain `:'.
15018          test -f "$ac_f" ||
15019            case $ac_f in
15020            [\\/$]*) false;;
15021            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022            esac ||
15023            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15024       esac
15025       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15026       as_fn_append ac_file_inputs " '$ac_f'"
15027     done
15028
15029     # Let's still pretend it is `configure' which instantiates (i.e., don't
15030     # use $as_me), people would be surprised to read:
15031     #    /* config.h.  Generated by config.status.  */
15032     configure_input='Generated from '`
15033           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15034         `' by configure.'
15035     if test x"$ac_file" != x-; then
15036       configure_input="$ac_file.  $configure_input"
15037       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15038 $as_echo "$as_me: creating $ac_file" >&6;}
15039     fi
15040     # Neutralize special characters interpreted by sed in replacement strings.
15041     case $configure_input in #(
15042     *\&* | *\|* | *\\* )
15043        ac_sed_conf_input=`$as_echo "$configure_input" |
15044        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15045     *) ac_sed_conf_input=$configure_input;;
15046     esac
15047
15048     case $ac_tag in
15049     *:-:* | *:-) cat >"$tmp/stdin" \
15050       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15051     esac
15052     ;;
15053   esac
15054
15055   ac_dir=`$as_dirname -- "$ac_file" ||
15056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15057          X"$ac_file" : 'X\(//\)[^/]' \| \
15058          X"$ac_file" : 'X\(//\)$' \| \
15059          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15060 $as_echo X"$ac_file" |
15061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15062             s//\1/
15063             q
15064           }
15065           /^X\(\/\/\)[^/].*/{
15066             s//\1/
15067             q
15068           }
15069           /^X\(\/\/\)$/{
15070             s//\1/
15071             q
15072           }
15073           /^X\(\/\).*/{
15074             s//\1/
15075             q
15076           }
15077           s/.*/./; q'`
15078   as_dir="$ac_dir"; as_fn_mkdir_p
15079   ac_builddir=.
15080
15081 case "$ac_dir" in
15082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15083 *)
15084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15085   # A ".." for each directory in $ac_dir_suffix.
15086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15087   case $ac_top_builddir_sub in
15088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090   esac ;;
15091 esac
15092 ac_abs_top_builddir=$ac_pwd
15093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15094 # for backward compatibility:
15095 ac_top_builddir=$ac_top_build_prefix
15096
15097 case $srcdir in
15098   .)  # We are building in place.
15099     ac_srcdir=.
15100     ac_top_srcdir=$ac_top_builddir_sub
15101     ac_abs_top_srcdir=$ac_pwd ;;
15102   [\\/]* | ?:[\\/]* )  # Absolute name.
15103     ac_srcdir=$srcdir$ac_dir_suffix;
15104     ac_top_srcdir=$srcdir
15105     ac_abs_top_srcdir=$srcdir ;;
15106   *) # Relative name.
15107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15108     ac_top_srcdir=$ac_top_build_prefix$srcdir
15109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15110 esac
15111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15112
15113
15114   case $ac_mode in
15115   :F)
15116   #
15117   # CONFIG_FILE
15118   #
15119
15120   case $INSTALL in
15121   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15122   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15123   esac
15124 _ACEOF
15125
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 # If the template does not know about datarootdir, expand it.
15128 # FIXME: This hack should be removed a few years after 2.60.
15129 ac_datarootdir_hack=; ac_datarootdir_seen=
15130 ac_sed_dataroot='
15131 /datarootdir/ {
15132   p
15133   q
15134 }
15135 /@datadir@/p
15136 /@docdir@/p
15137 /@infodir@/p
15138 /@localedir@/p
15139 /@mandir@/p'
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147   ac_datarootdir_hack='
15148   s&@datadir@&$datadir&g
15149   s&@docdir@&$docdir&g
15150   s&@infodir@&$infodir&g
15151   s&@localedir@&$localedir&g
15152   s&@mandir@&$mandir&g
15153   s&\\\${datarootdir}&$datarootdir&g' ;;
15154 esac
15155 _ACEOF
15156
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15162 $extrasub
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15165 :t
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15179 "
15180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15181 if $ac_cs_awk_getline; then
15182   $AWK -f "$tmp/subs.awk"
15183 else
15184   $AWK -f "$tmp/subs.awk" | $SHELL
15185 fi >$tmp/out \
15186   || as_fn_error "could not create $ac_file" "$LINENO" 5
15187
15188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192 which seems to be undefined.  Please make sure it is defined." >&5
15193 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194 which seems to be undefined.  Please make sure it is defined." >&2;}
15195
15196   rm -f "$tmp/stdin"
15197   case $ac_file in
15198   -) cat "$tmp/out" && rm -f "$tmp/out";;
15199   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15200   esac \
15201   || as_fn_error "could not create $ac_file" "$LINENO" 5
15202  ;;
15203
15204
15205
15206   esac
15207
15208
15209   case $ac_file$ac_mode in
15210     "Makefile":F) sed "$extrasub_build" Makefile |
15211    sed "$extrasub_host" |
15212    sed "$extrasub_target" > mf$$
15213    mv -f mf$$ Makefile ;;
15214
15215   esac
15216 done # for ac_tag
15217
15218
15219 as_fn_exit 0
15220 _ACEOF
15221 ac_clean_files=$ac_clean_files_save
15222
15223 test $ac_write_fail = 0 ||
15224   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15225
15226
15227 # configure is writing to config.log, and then calls config.status.
15228 # config.status does its own redirection, appending to config.log.
15229 # Unfortunately, on DOS this fails, as config.log is still kept open
15230 # by configure, so config.status won't be able to write to it; its
15231 # output is simply discarded.  So we exec the FD to /dev/null,
15232 # effectively closing config.log, so it can be properly (re)opened and
15233 # appended to by config.status.  When coming back to configure, we
15234 # need to make the FD available again.
15235 if test "$no_create" != yes; then
15236   ac_cs_success=:
15237   ac_config_status_args=
15238   test "$silent" = yes &&
15239     ac_config_status_args="$ac_config_status_args --quiet"
15240   exec 5>/dev/null
15241   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242   exec 5>>config.log
15243   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244   # would make configure fail if this is the last instruction.
15245   $ac_cs_success || as_fn_exit $?
15246 fi
15247 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15248   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15249 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15250 fi
15251