* configure.ac: For --enable-gold, handle value `default' instead of
[platform/upstream/binutils.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_libada
746 enable_libssp
747 enable_build_with_cxx
748 with_mpc
749 with_mpc_include
750 with_mpc_lib
751 with_mpfr_dir
752 with_mpfr
753 with_mpfr_include
754 with_mpfr_lib
755 with_gmp_dir
756 with_gmp
757 with_gmp_include
758 with_gmp_lib
759 with_host_libstdcxx
760 with_stage1_ldflags
761 with_stage1_libs
762 with_boot_libs
763 with_boot_ldflags
764 with_ppl
765 with_ppl_include
766 with_ppl_lib
767 enable_ppl_version_check
768 with_cloog
769 with_cloog_include
770 with_cloog_lib
771 enable_cloog_backend
772 enable_cloog_version_check
773 enable_lto
774 enable_stage1_languages
775 enable_objc_gc
776 with_build_sysroot
777 with_debug_prefix_map
778 enable_bootstrap
779 with_build_config
780 enable_serial_configure
781 with_build_time_tools
782 enable_maintainer_mode
783 enable_stage1_checking
784 enable_werror
785 '
786       ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 CXX
795 CXXFLAGS
796 CCC
797 build_configargs
798 host_configargs
799 target_configargs
800 AR
801 AS
802 DLLTOOL
803 LD
804 LIPO
805 NM
806 RANLIB
807 STRIP
808 WINDRES
809 WINDMC
810 OBJCOPY
811 OBJDUMP
812 CC_FOR_TARGET
813 CXX_FOR_TARGET
814 GCC_FOR_TARGET
815 GCJ_FOR_TARGET
816 GFORTRAN_FOR_TARGET
817 GOC_FOR_TARGET
818 AR_FOR_TARGET
819 AS_FOR_TARGET
820 DLLTOOL_FOR_TARGET
821 LD_FOR_TARGET
822 LIPO_FOR_TARGET
823 NM_FOR_TARGET
824 OBJDUMP_FOR_TARGET
825 RANLIB_FOR_TARGET
826 STRIP_FOR_TARGET
827 WINDRES_FOR_TARGET
828 WINDMC_FOR_TARGET'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *)    ac_optarg=yes ;;
893   esac
894
895   # Accept the important Cygnus configure options, so we can diagnose typos.
896
897   case $ac_dashdash$ac_option in
898   --)
899     ac_dashdash=yes ;;
900
901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
902     ac_prev=bindir ;;
903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904     bindir=$ac_optarg ;;
905
906   -build | --build | --buil | --bui | --bu)
907     ac_prev=build_alias ;;
908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909     build_alias=$ac_optarg ;;
910
911   -cache-file | --cache-file | --cache-fil | --cache-fi \
912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913     ac_prev=cache_file ;;
914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916     cache_file=$ac_optarg ;;
917
918   --config-cache | -C)
919     cache_file=config.cache ;;
920
921   -datadir | --datadir | --datadi | --datad)
922     ac_prev=datadir ;;
923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
924     datadir=$ac_optarg ;;
925
926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927   | --dataroo | --dataro | --datar)
928     ac_prev=datarootdir ;;
929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931     datarootdir=$ac_optarg ;;
932
933   -disable-* | --disable-*)
934     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937       as_fn_error "invalid feature name: $ac_useropt"
938     ac_useropt_orig=$ac_useropt
939     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940     case $ac_user_opts in
941       *"
942 "enable_$ac_useropt"
943 "*) ;;
944       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945          ac_unrecognized_sep=', ';;
946     esac
947     eval enable_$ac_useropt=no ;;
948
949   -docdir | --docdir | --docdi | --doc | --do)
950     ac_prev=docdir ;;
951   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952     docdir=$ac_optarg ;;
953
954   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955     ac_prev=dvidir ;;
956   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957     dvidir=$ac_optarg ;;
958
959   -enable-* | --enable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=\$ac_optarg ;;
974
975   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977   | --exec | --exe | --ex)
978     ac_prev=exec_prefix ;;
979   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981   | --exec=* | --exe=* | --ex=*)
982     exec_prefix=$ac_optarg ;;
983
984   -gas | --gas | --ga | --g)
985     # Obsolete; use --with-gas.
986     with_gas=yes ;;
987
988   -help | --help | --hel | --he | -h)
989     ac_init_help=long ;;
990   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991     ac_init_help=recursive ;;
992   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993     ac_init_help=short ;;
994
995   -host | --host | --hos | --ho)
996     ac_prev=host_alias ;;
997   -host=* | --host=* | --hos=* | --ho=*)
998     host_alias=$ac_optarg ;;
999
1000   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001     ac_prev=htmldir ;;
1002   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003   | --ht=*)
1004     htmldir=$ac_optarg ;;
1005
1006   -includedir | --includedir | --includedi | --included | --include \
1007   | --includ | --inclu | --incl | --inc)
1008     ac_prev=includedir ;;
1009   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010   | --includ=* | --inclu=* | --incl=* | --inc=*)
1011     includedir=$ac_optarg ;;
1012
1013   -infodir | --infodir | --infodi | --infod | --info | --inf)
1014     ac_prev=infodir ;;
1015   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016     infodir=$ac_optarg ;;
1017
1018   -libdir | --libdir | --libdi | --libd)
1019     ac_prev=libdir ;;
1020   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021     libdir=$ac_optarg ;;
1022
1023   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024   | --libexe | --libex | --libe)
1025     ac_prev=libexecdir ;;
1026   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027   | --libexe=* | --libex=* | --libe=*)
1028     libexecdir=$ac_optarg ;;
1029
1030   -localedir | --localedir | --localedi | --localed | --locale)
1031     ac_prev=localedir ;;
1032   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033     localedir=$ac_optarg ;;
1034
1035   -localstatedir | --localstatedir | --localstatedi | --localstated \
1036   | --localstate | --localstat | --localsta | --localst | --locals)
1037     ac_prev=localstatedir ;;
1038   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040     localstatedir=$ac_optarg ;;
1041
1042   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043     ac_prev=mandir ;;
1044   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045     mandir=$ac_optarg ;;
1046
1047   -nfp | --nfp | --nf)
1048     # Obsolete; use --without-fp.
1049     with_fp=no ;;
1050
1051   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052   | --no-cr | --no-c | -n)
1053     no_create=yes ;;
1054
1055   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057     no_recursion=yes ;;
1058
1059   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061   | --oldin | --oldi | --old | --ol | --o)
1062     ac_prev=oldincludedir ;;
1063   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066     oldincludedir=$ac_optarg ;;
1067
1068   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069     ac_prev=prefix ;;
1070   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071     prefix=$ac_optarg ;;
1072
1073   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074   | --program-pre | --program-pr | --program-p)
1075     ac_prev=program_prefix ;;
1076   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078     program_prefix=$ac_optarg ;;
1079
1080   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081   | --program-suf | --program-su | --program-s)
1082     ac_prev=program_suffix ;;
1083   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085     program_suffix=$ac_optarg ;;
1086
1087   -program-transform-name | --program-transform-name \
1088   | --program-transform-nam | --program-transform-na \
1089   | --program-transform-n | --program-transform- \
1090   | --program-transform | --program-transfor \
1091   | --program-transfo | --program-transf \
1092   | --program-trans | --program-tran \
1093   | --progr-tra | --program-tr | --program-t)
1094     ac_prev=program_transform_name ;;
1095   -program-transform-name=* | --program-transform-name=* \
1096   | --program-transform-nam=* | --program-transform-na=* \
1097   | --program-transform-n=* | --program-transform-=* \
1098   | --program-transform=* | --program-transfor=* \
1099   | --program-transfo=* | --program-transf=* \
1100   | --program-trans=* | --program-tran=* \
1101   | --progr-tra=* | --program-tr=* | --program-t=*)
1102     program_transform_name=$ac_optarg ;;
1103
1104   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105     ac_prev=pdfdir ;;
1106   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107     pdfdir=$ac_optarg ;;
1108
1109   -psdir | --psdir | --psdi | --psd | --ps)
1110     ac_prev=psdir ;;
1111   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112     psdir=$ac_optarg ;;
1113
1114   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115   | -silent | --silent | --silen | --sile | --sil)
1116     silent=yes ;;
1117
1118   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119     ac_prev=sbindir ;;
1120   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121   | --sbi=* | --sb=*)
1122     sbindir=$ac_optarg ;;
1123
1124   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126   | --sharedst | --shareds | --shared | --share | --shar \
1127   | --sha | --sh)
1128     ac_prev=sharedstatedir ;;
1129   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132   | --sha=* | --sh=*)
1133     sharedstatedir=$ac_optarg ;;
1134
1135   -site | --site | --sit)
1136     ac_prev=site ;;
1137   -site=* | --site=* | --sit=*)
1138     site=$ac_optarg ;;
1139
1140   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141     ac_prev=srcdir ;;
1142   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143     srcdir=$ac_optarg ;;
1144
1145   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146   | --syscon | --sysco | --sysc | --sys | --sy)
1147     ac_prev=sysconfdir ;;
1148   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150     sysconfdir=$ac_optarg ;;
1151
1152   -target | --target | --targe | --targ | --tar | --ta | --t)
1153     ac_prev=target_alias ;;
1154   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155     target_alias=$ac_optarg ;;
1156
1157   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158     verbose=yes ;;
1159
1160   -version | --version | --versio | --versi | --vers | -V)
1161     ac_init_version=: ;;
1162
1163   -with-* | --with-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=no ;;
1194
1195   --x)
1196     # Obsolete; use --with-x.
1197     with_x=yes ;;
1198
1199   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200   | --x-incl | --x-inc | --x-in | --x-i)
1201     ac_prev=x_includes ;;
1202   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204     x_includes=$ac_optarg ;;
1205
1206   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208     ac_prev=x_libraries ;;
1209   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211     x_libraries=$ac_optarg ;;
1212
1213   -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1215     ;;
1216
1217   *=*)
1218     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219     # Reject names that are not valid shell variable names.
1220     case $ac_envvar in #(
1221       '' | [0-9]* | *[!_$as_cr_alnum]* )
1222       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223     esac
1224     eval $ac_envvar=\$ac_optarg
1225     export $ac_envvar ;;
1226
1227   *)
1228     # FIXME: should be removed in autoconf 3.0.
1229     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233     ;;
1234
1235   esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240   as_fn_error "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244   case $enable_option_checking in
1245     no) ;;
1246     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248   esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253                 datadir sysconfdir sharedstatedir localstatedir includedir \
1254                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255                 libdir localedir mandir
1256 do
1257   eval ac_val=\$$ac_var
1258   # Remove trailing slashes.
1259   case $ac_val in
1260     */ )
1261       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262       eval $ac_var=\$ac_val;;
1263   esac
1264   # Be sure to have absolute directory names.
1265   case $ac_val in
1266     [\\/$]* | ?:[\\/]* )  continue;;
1267     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268   esac
1269   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281   if test "x$build_alias" = x; then
1282     cross_compiling=maybe
1283     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284     If a cross compiler is detected then cross compile mode will be used." >&2
1285   elif test "x$build_alias" != "x$host_alias"; then
1286     cross_compiling=yes
1287   fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299   as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301   as_fn_error "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306   ac_srcdir_defaulted=yes
1307   # Try the directory containing this script, then the parent directory.
1308   ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310          X"$as_myself" : 'X\(//\)[^/]' \| \
1311          X"$as_myself" : 'X\(//\)$' \| \
1312          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)[^/].*/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\).*/{
1327             s//\1/
1328             q
1329           }
1330           s/.*/./; q'`
1331   srcdir=$ac_confdir
1332   if test ! -r "$srcdir/$ac_unique_file"; then
1333     srcdir=..
1334   fi
1335 else
1336   ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345         pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348   srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 case $srcdir in
1357   *" "*)
1358     as_fn_error "path to source, $srcdir, contains spaces"
1359     ;;
1360 esac
1361 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362
1363 for ac_var in $ac_precious_vars; do
1364   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_env_${ac_var}_value=\$${ac_var}
1366   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374   # Omit some internal or obsolete options to make the list less imposing.
1375   # This message is too long to be a string in the A/UX 3.1 sh.
1376   cat <<_ACEOF
1377 \`configure' configures this package to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387   -h, --help              display this help and exit
1388       --help=short        display options specific to this package
1389       --help=recursive    display the short help of all the included packages
1390   -V, --version           display version information and exit
1391   -q, --quiet, --silent   do not print \`checking...' messages
1392       --cache-file=FILE   cache test results in FILE [disabled]
1393   -C, --config-cache      alias for \`--cache-file=config.cache'
1394   -n, --no-create         do not create output files
1395       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398   --prefix=PREFIX         install architecture-independent files in PREFIX
1399                           [$ac_default_prefix]
1400   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                           [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411   --bindir=DIR            user executables [EPREFIX/bin]
1412   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413   --libexecdir=DIR        program executables [EPREFIX/libexec]
1414   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417   --libdir=DIR            object code libraries [EPREFIX/lib]
1418   --includedir=DIR        C header files [PREFIX/include]
1419   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422   --infodir=DIR           info documentation [DATAROOTDIR/info]
1423   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424   --mandir=DIR            man documentation [DATAROOTDIR/man]
1425   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1426   --htmldir=DIR           html documentation [DOCDIR]
1427   --dvidir=DIR            dvi documentation [DOCDIR]
1428   --pdfdir=DIR            pdf documentation [DOCDIR]
1429   --psdir=DIR             ps documentation [DOCDIR]
1430 _ACEOF
1431
1432   cat <<\_ACEOF
1433
1434 Program names:
1435   --program-prefix=PREFIX            prepend PREFIX to installed program names
1436   --program-suffix=SUFFIX            append SUFFIX to installed program names
1437   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442   --target=TARGET   configure for building compilers for TARGET [HOST]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1455   --enable-ld[=ARG]     build ld [ARG={default,yes,no}]
1456   --enable-libada         build libada directory
1457   --enable-libssp         build libssp directory
1458   --enable-build-with-cxx build with C++ compiler instead of C compiler
1459   --disable-ppl-version-check    disable check for PPL version
1460   --enable-cloog-backend[=BACKEND]
1461                           set the CLooG BACKEND used to either isl, ppl or
1462                           ppl-legacy (default)
1463   --disable-cloog-version-check
1464                           disable check for CLooG version
1465   --enable-lto            enable link time optimization support
1466   --enable-stage1-languages[=all]   choose additional languages to build during
1467                           stage1.  Mostly useful for compiler development.
1468   --enable-objc-gc        enable use of Boehm's garbage collector with the
1469                           GNU Objective-C runtime
1470   --enable-bootstrap      enable bootstrapping [yes if native build]
1471   --enable-serial-[{host,target,build}-]configure
1472                           force sequential configuration of
1473                           sub-packages for the host, target or build
1474                           machine, or all sub-packages
1475   --enable-maintainer-mode enable make rules and dependencies not useful
1476                           (and sometimes confusing) to the casual installer
1477   --enable-stage1-checking[=all]   choose additional checking for stage1
1478                           of the compiler
1479   --enable-werror         enable -Werror in bootstrap stage2 and later
1480
1481 Optional Packages:
1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1485   --with-mpc=PATH        specify prefix directory for installed MPC package.
1486                           Equivalent to --with-mpc-include=PATH/include
1487                           plus --with-mpc-lib=PATH/lib
1488   --with-mpc-include=PATH
1489                           specify directory for installed MPC include files
1490   --with-mpc-lib=PATH    specify directory for the installed MPC library
1491   --with-mpfr-dir=PATH    this option has been REMOVED
1492   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1493                           Equivalent to --with-mpfr-include=PATH/include
1494                           plus --with-mpfr-lib=PATH/lib
1495   --with-mpfr-include=PATH
1496                           specify directory for installed MPFR include files
1497   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1498   --with-gmp-dir=PATH     this option has been REMOVED
1499   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1500                           Equivalent to --with-gmp-include=PATH/include
1501                           plus --with-gmp-lib=PATH/lib
1502   --with-gmp-include=PATH specify directory for installed GMP include files
1503   --with-gmp-lib=PATH     specify directory for the installed GMP library
1504   --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505                           when linking with PPL
1506   --with-stage1-ldflags=FLAGS Linker flags for stage1
1507   -with-stage1-libs=LIBS      Libraries for stage1
1508   --with-boot-libs=LIBS     Libraries for stage2 and later
1509   --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1510   --with-ppl=PATH         Specify prefix directory for the installed PPL package
1511                           Equivalent to --with-ppl-include=PATH/include
1512                           plus --with-ppl-lib=PATH/lib
1513   --with-ppl-include=PATH Specify directory for installed PPL include files
1514   --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1515   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1516                           package. Equivalent to
1517                           --with-cloog-include=PATH/include plus
1518                           --with-cloog-lib=PATH/lib
1519   --with-cloog-include=PATH
1520                           Specify directory for installed CLooG include files
1521   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1522                           library
1523   --with-build-sysroot=SYSROOT
1524                           use sysroot as the system root during the build
1525   --with-debug-prefix-map='A=B C=D ...'
1526                              map A to B, C to D ... in debug information
1527 --with-build-config='NAME NAME2...'
1528                           Use config/NAME.mk build configuration
1529   --with-build-time-tools=PATH
1530                           use given path to find target tools during the build
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CXX         C++ compiler command
1541   CXXFLAGS    C++ compiler flags
1542   build_configargs
1543               additional configure arguments for build directories
1544   host_configargs
1545               additional configure arguments for host directories
1546   target_configargs
1547               additional configure arguments for target directories
1548   AR          AR for the host
1549   AS          AS for the host
1550   DLLTOOL     DLLTOOL for the host
1551   LD          LD for the host
1552   LIPO        LIPO for the host
1553   NM          NM for the host
1554   RANLIB      RANLIB for the host
1555   STRIP       STRIP for the host
1556   WINDRES     WINDRES for the host
1557   WINDMC      WINDMC for the host
1558   OBJCOPY     OBJCOPY for the host
1559   OBJDUMP     OBJDUMP for the host
1560   CC_FOR_TARGET
1561               CC for the target
1562   CXX_FOR_TARGET
1563               CXX for the target
1564   GCC_FOR_TARGET
1565               GCC for the target
1566   GCJ_FOR_TARGET
1567               GCJ for the target
1568   GFORTRAN_FOR_TARGET
1569               GFORTRAN for the target
1570   GOC_FOR_TARGET
1571               GOC for the target
1572   AR_FOR_TARGET
1573               AR for the target
1574   AS_FOR_TARGET
1575               AS for the target
1576   DLLTOOL_FOR_TARGET
1577               DLLTOOL for the target
1578   LD_FOR_TARGET
1579               LD for the target
1580   LIPO_FOR_TARGET
1581               LIPO for the target
1582   NM_FOR_TARGET
1583               NM for the target
1584   OBJDUMP_FOR_TARGET
1585               OBJDUMP for the target
1586   RANLIB_FOR_TARGET
1587               RANLIB for the target
1588   STRIP_FOR_TARGET
1589               STRIP for the target
1590   WINDRES_FOR_TARGET
1591               WINDRES for the target
1592   WINDMC_FOR_TARGET
1593               WINDMC for the target
1594
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1597
1598 Report bugs to the package provider.
1599 _ACEOF
1600 ac_status=$?
1601 fi
1602
1603 if test "$ac_init_help" = "recursive"; then
1604   # If there are subdirs, report their specific --help.
1605   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606     test -d "$ac_dir" ||
1607       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608       continue
1609     ac_builddir=.
1610
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *)
1614   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615   # A ".." for each directory in $ac_dir_suffix.
1616   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617   case $ac_top_builddir_sub in
1618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620   esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1626
1627 case $srcdir in
1628   .)  # We are building in place.
1629     ac_srcdir=.
1630     ac_top_srcdir=$ac_top_builddir_sub
1631     ac_abs_top_srcdir=$ac_pwd ;;
1632   [\\/]* | ?:[\\/]* )  # Absolute name.
1633     ac_srcdir=$srcdir$ac_dir_suffix;
1634     ac_top_srcdir=$srcdir
1635     ac_abs_top_srcdir=$srcdir ;;
1636   *) # Relative name.
1637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638     ac_top_srcdir=$ac_top_build_prefix$srcdir
1639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643     cd "$ac_dir" || { ac_status=$?; continue; }
1644     # Check for guested configure.
1645     if test -f "$ac_srcdir/configure.gnu"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648     elif test -f "$ac_srcdir/configure"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure" --help=recursive
1651     else
1652       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653     fi || ac_status=$?
1654     cd "$ac_pwd" || { ac_status=$?; break; }
1655   done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660   cat <<\_ACEOF
1661 configure
1662 generated by GNU Autoconf 2.64
1663
1664 Copyright (C) 2009 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668   exit
1669 fi
1670
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1674
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   rm -f conftest.$ac_objext
1682   if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_compile") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && {
1698          test -z "$ac_c_werror_flag" ||
1699          test ! -s conftest.err
1700        } && test -s conftest.$ac_objext; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709   return $ac_retval
1710
1711 } # ac_fn_c_try_compile
1712
1713 # ac_fn_cxx_try_compile LINENO
1714 # ----------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext
1720   if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_compile") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_cxx_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest.$ac_objext; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744         ac_retval=1
1745 fi
1746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747   return $ac_retval
1748
1749 } # ac_fn_cxx_try_compile
1750
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   rm -f conftest.$ac_objext conftest$ac_exeext
1758   if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_link") 2>conftest.err
1766   ac_status=$?
1767   if test -s conftest.err; then
1768     grep -v '^ *+' conftest.err >conftest.er1
1769     cat conftest.er1 >&5
1770     mv -f conftest.er1 conftest.err
1771   fi
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && {
1774          test -z "$ac_c_werror_flag" ||
1775          test ! -s conftest.err
1776        } && test -s conftest$ac_exeext && {
1777          test "$cross_compiling" = yes ||
1778          $as_test_x conftest$ac_exeext
1779        }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785         ac_retval=1
1786 fi
1787   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789   # interfere with the next link command; also delete a directory that is
1790   # left behind by Apple's compiler.  We do this before executing the actions.
1791   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793   return $ac_retval
1794
1795 } # ac_fn_c_try_link
1796 cat >config.log <<_ACEOF
1797 This file contains any messages produced by compilers while
1798 running configure, to aid debugging if configure makes a mistake.
1799
1800 It was created by $as_me, which was
1801 generated by GNU Autoconf 2.64.  Invocation command line was
1802
1803   $ $0 $@
1804
1805 _ACEOF
1806 exec 5>>config.log
1807 {
1808 cat <<_ASUNAME
1809 ## --------- ##
1810 ## Platform. ##
1811 ## --------- ##
1812
1813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1821
1822 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1823 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1825 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1826 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1827 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1828 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1829
1830 _ASUNAME
1831
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835   IFS=$as_save_IFS
1836   test -z "$as_dir" && as_dir=.
1837     $as_echo "PATH: $as_dir"
1838   done
1839 IFS=$as_save_IFS
1840
1841 } >&5
1842
1843 cat >&5 <<_ACEOF
1844
1845
1846 ## ----------- ##
1847 ## Core tests. ##
1848 ## ----------- ##
1849
1850 _ACEOF
1851
1852
1853 # Keep a trace of the command line.
1854 # Strip out --no-create and --no-recursion so they do not pile up.
1855 # Strip out --silent because we don't want to record it for future runs.
1856 # Also quote any args containing shell meta-characters.
1857 # Make two passes to allow for proper duplicate-argument suppression.
1858 ac_configure_args=
1859 ac_configure_args0=
1860 ac_configure_args1=
1861 ac_must_keep_next=false
1862 for ac_pass in 1 2
1863 do
1864   for ac_arg
1865   do
1866     case $ac_arg in
1867     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869     | -silent | --silent | --silen | --sile | --sil)
1870       continue ;;
1871     *\'*)
1872       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1873     esac
1874     case $ac_pass in
1875     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1876     2)
1877       as_fn_append ac_configure_args1 " '$ac_arg'"
1878       if test $ac_must_keep_next = true; then
1879         ac_must_keep_next=false # Got value, back to normal.
1880       else
1881         case $ac_arg in
1882           *=* | --config-cache | -C | -disable-* | --disable-* \
1883           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885           | -with-* | --with-* | -without-* | --without-* | --x)
1886             case "$ac_configure_args0 " in
1887               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888             esac
1889             ;;
1890           -* ) ac_must_keep_next=true ;;
1891         esac
1892       fi
1893       as_fn_append ac_configure_args " '$ac_arg'"
1894       ;;
1895     esac
1896   done
1897 done
1898 { ac_configure_args0=; unset ac_configure_args0;}
1899 { ac_configure_args1=; unset ac_configure_args1;}
1900
1901 # When interrupted or exit'd, cleanup temporary files, and complete
1902 # config.log.  We remove comments because anyway the quotes in there
1903 # would cause problems or look ugly.
1904 # WARNING: Use '\'' to represent an apostrophe within the trap.
1905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1906 trap 'exit_status=$?
1907   # Save into config.log some information that might help in debugging.
1908   {
1909     echo
1910
1911     cat <<\_ASBOX
1912 ## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##
1915 _ASBOX
1916     echo
1917     # The following way of writing the cache mishandles newlines in values,
1918 (
1919   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920     eval ac_val=\$$ac_var
1921     case $ac_val in #(
1922     *${as_nl}*)
1923       case $ac_var in #(
1924       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926       esac
1927       case $ac_var in #(
1928       _ | IFS | as_nl) ;; #(
1929       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930       *) { eval $ac_var=; unset $ac_var;} ;;
1931       esac ;;
1932     esac
1933   done
1934   (set) 2>&1 |
1935     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936     *${as_nl}ac_space=\ *)
1937       sed -n \
1938         "s/'\''/'\''\\\\'\'''\''/g;
1939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940       ;; #(
1941     *)
1942       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943       ;;
1944     esac |
1945     sort
1946 )
1947     echo
1948
1949     cat <<\_ASBOX
1950 ## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##
1953 _ASBOX
1954     echo
1955     for ac_var in $ac_subst_vars
1956     do
1957       eval ac_val=\$$ac_var
1958       case $ac_val in
1959       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960       esac
1961       $as_echo "$ac_var='\''$ac_val'\''"
1962     done | sort
1963     echo
1964
1965     if test -n "$ac_subst_files"; then
1966       cat <<\_ASBOX
1967 ## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##
1970 _ASBOX
1971       echo
1972       for ac_var in $ac_subst_files
1973       do
1974         eval ac_val=\$$ac_var
1975         case $ac_val in
1976         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977         esac
1978         $as_echo "$ac_var='\''$ac_val'\''"
1979       done | sort
1980       echo
1981     fi
1982
1983     if test -s confdefs.h; then
1984       cat <<\_ASBOX
1985 ## ----------- ##
1986 ## confdefs.h. ##
1987 ## ----------- ##
1988 _ASBOX
1989       echo
1990       cat confdefs.h
1991       echo
1992     fi
1993     test "$ac_signal" != 0 &&
1994       $as_echo "$as_me: caught signal $ac_signal"
1995     $as_echo "$as_me: exit $exit_status"
1996   } >&5
1997   rm -f core *.core core.conftest.* &&
1998     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999     exit $exit_status
2000 ' 0
2001 for ac_signal in 1 2 13 15; do
2002   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2005
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2008
2009 $as_echo "/* confdefs.h */" > confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2035 _ACEOF
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043   ac_site_file1=$CONFIG_SITE
2044 elif test "x$prefix" != xNONE; then
2045   ac_site_file1=$prefix/share/config.site
2046   ac_site_file2=$prefix/etc/config.site
2047 else
2048   ac_site_file1=$ac_default_prefix/share/config.site
2049   ac_site_file2=$ac_default_prefix/etc/config.site
2050 fi
2051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052 do
2053   test "x$ac_site_file" = xNONE && continue
2054   if test -r "$ac_site_file"; then
2055     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057     sed 's/^/| /' "$ac_site_file" >&5
2058     . "$ac_site_file"
2059   fi
2060 done
2061
2062 if test -r "$cache_file"; then
2063   # Some versions of bash will fail to source /dev/null (special
2064   # files actually), so we avoid doing that.
2065   if test -f "$cache_file"; then
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067 $as_echo "$as_me: loading cache $cache_file" >&6;}
2068     case $cache_file in
2069       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070       *)                      . "./$cache_file";;
2071     esac
2072   fi
2073 else
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075 $as_echo "$as_me: creating cache $cache_file" >&6;}
2076   >$cache_file
2077 fi
2078
2079 # Check that the precious variables saved in the cache have kept the same
2080 # value.
2081 ac_cache_corrupted=false
2082 for ac_var in $ac_precious_vars; do
2083   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084   eval ac_new_set=\$ac_env_${ac_var}_set
2085   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086   eval ac_new_val=\$ac_env_${ac_var}_value
2087   case $ac_old_set,$ac_new_set in
2088     set,)
2089       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091       ac_cache_corrupted=: ;;
2092     ,set)
2093       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095       ac_cache_corrupted=: ;;
2096     ,);;
2097     *)
2098       if test "x$ac_old_val" != "x$ac_new_val"; then
2099         # differences in whitespace do not lead to failure.
2100         ac_old_val_w=`echo x $ac_old_val`
2101         ac_new_val_w=`echo x $ac_new_val`
2102         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105           ac_cache_corrupted=:
2106         else
2107           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109           eval $ac_var=\$ac_old_val
2110         fi
2111         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2112 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2113         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2114 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2115       fi;;
2116   esac
2117   # Pass precious variables to config.status.
2118   if test "$ac_new_set" = set; then
2119     case $ac_new_val in
2120     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121     *) ac_arg=$ac_var=$ac_new_val ;;
2122     esac
2123     case " $ac_configure_args " in
2124       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2125       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2126     esac
2127   fi
2128 done
2129 if $ac_cache_corrupted; then
2130   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2135 fi
2136 ## -------------------- ##
2137 ## Main body of script. ##
2138 ## -------------------- ##
2139
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154 progname=$0
2155 # if PWD already has a value, it is probably wrong.
2156 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2157
2158 # Export original configure arguments for use by sub-configures.
2159 # Quote arguments with shell meta charatcers.
2160 TOPLEVEL_CONFIGURE_ARGUMENTS=
2161 set -- "$progname" "$@"
2162 for ac_arg
2163 do
2164   case "$ac_arg" in
2165   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167     # if the argument is of the form -foo=baz, quote the baz part only
2168     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169   *) ;;
2170   esac
2171   # Add the quoted argument to the list.
2172   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173 done
2174 if test "$silent" = yes; then
2175   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2176 fi
2177 # Remove the initial space we just introduced and, as these will be
2178 # expanded by make, quote '$'.
2179 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180
2181
2182 # Find the build, host, and target systems.
2183 ac_aux_dir=
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185   for ac_t in install-sh install.sh shtool; do
2186     if test -f "$ac_dir/$ac_t"; then
2187       ac_aux_dir=$ac_dir
2188       ac_install_sh="$ac_aux_dir/$ac_t -c"
2189       break 2
2190     fi
2191   done
2192 done
2193 if test -z "$ac_aux_dir"; then
2194   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195 fi
2196
2197 # These three variables are undocumented and unsupported,
2198 # and are intended to be withdrawn in a future Autoconf release.
2199 # They can cause serious problems if a builder's source tree is in a directory
2200 # whose full name contains unusual characters.
2201 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2202 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2203 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2204
2205
2206 # Make sure we can run config.sub.
2207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211 $as_echo_n "checking build system type... " >&6; }
2212 if test "${ac_cv_build+set}" = set; then :
2213   $as_echo_n "(cached) " >&6
2214 else
2215   ac_build_alias=$build_alias
2216 test "x$ac_build_alias" = x &&
2217   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218 test "x$ac_build_alias" = x &&
2219   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225 $as_echo "$ac_cv_build" >&6; }
2226 case $ac_cv_build in
2227 *-*-*) ;;
2228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229 esac
2230 build=$ac_cv_build
2231 ac_save_IFS=$IFS; IFS='-'
2232 set x $ac_cv_build
2233 shift
2234 build_cpu=$1
2235 build_vendor=$2
2236 shift; shift
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2239 build_os=$*
2240 IFS=$ac_save_IFS
2241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2242
2243
2244  case ${build_alias} in
2245   "") build_noncanonical=${build} ;;
2246   *) build_noncanonical=${build_alias} ;;
2247 esac
2248
2249
2250
2251  case ${host_alias} in
2252   "") host_noncanonical=${build_noncanonical} ;;
2253   *) host_noncanonical=${host_alias} ;;
2254 esac
2255
2256
2257
2258  case ${target_alias} in
2259   "") target_noncanonical=${host_noncanonical} ;;
2260   *) target_noncanonical=${target_alias} ;;
2261 esac
2262
2263
2264
2265
2266 test "$host_noncanonical" = "$target_noncanonical" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_transform_name=s,y,y,
2270
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272 $as_echo_n "checking host system type... " >&6; }
2273 if test "${ac_cv_host+set}" = set; then :
2274   $as_echo_n "(cached) " >&6
2275 else
2276   if test "x$host_alias" = x; then
2277   ac_cv_host=$ac_cv_build
2278 else
2279   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281 fi
2282
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285 $as_echo "$ac_cv_host" >&6; }
2286 case $ac_cv_host in
2287 *-*-*) ;;
2288 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289 esac
2290 host=$ac_cv_host
2291 ac_save_IFS=$IFS; IFS='-'
2292 set x $ac_cv_host
2293 shift
2294 host_cpu=$1
2295 host_vendor=$2
2296 shift; shift
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2299 host_os=$*
2300 IFS=$ac_save_IFS
2301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2302
2303
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305 $as_echo_n "checking target system type... " >&6; }
2306 if test "${ac_cv_target+set}" = set; then :
2307   $as_echo_n "(cached) " >&6
2308 else
2309   if test "x$target_alias" = x; then
2310   ac_cv_target=$ac_cv_host
2311 else
2312   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314 fi
2315
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318 $as_echo "$ac_cv_target" >&6; }
2319 case $ac_cv_target in
2320 *-*-*) ;;
2321 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322 esac
2323 target=$ac_cv_target
2324 ac_save_IFS=$IFS; IFS='-'
2325 set x $ac_cv_target
2326 shift
2327 target_cpu=$1
2328 target_vendor=$2
2329 shift; shift
2330 # Remember, the first character of IFS is used to create $*,
2331 # except with old shells:
2332 target_os=$*
2333 IFS=$ac_save_IFS
2334 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2335
2336
2337 # The aliases save the names the user supplied, while $host etc.
2338 # will get canonicalized.
2339 test -n "$target_alias" &&
2340   test "$program_prefix$program_suffix$program_transform_name" = \
2341     NONENONEs,x,x, &&
2342   program_prefix=${target_alias}-
2343
2344 test "$program_prefix" != NONE &&
2345   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346 # Use a double $ so make ignores it.
2347 test "$program_suffix" != NONE &&
2348   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349 # Double any \ or $.
2350 # By default was `s,x,x', remove it if useless.
2351 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2353
2354
2355
2356 # Get 'install' or 'install-sh' and its variants.
2357 # Find a good install program.  We prefer a C program (faster),
2358 # so one script is as good as another.  But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2363 # AIX /bin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if test "${ac_cv_path_install+set}" = set; then :
2375   $as_echo_n "(cached) " >&6
2376 else
2377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382     # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384   ./ | .// | /[cC]/* | \
2385   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387   /usr/ucb/* ) ;;
2388   *)
2389     # OSF1 and SCO ODT 3.0 have their own names for install.
2390     # Don't use installbsd from OSF since it installs stuff as root
2391     # by default.
2392     for ac_prog in ginstall scoinst install; do
2393       for ac_exec_ext in '' $ac_executable_extensions; do
2394         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395           if test $ac_prog = install &&
2396             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397             # AIX install.  It has an incompatible calling convention.
2398             :
2399           elif test $ac_prog = install &&
2400             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401             # program-specific install script used by HP pwplus--don't use.
2402             :
2403           else
2404             rm -rf conftest.one conftest.two conftest.dir
2405             echo one > conftest.one
2406             echo two > conftest.two
2407             mkdir conftest.dir
2408             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409               test -s conftest.one && test -s conftest.two &&
2410               test -s conftest.dir/conftest.one &&
2411               test -s conftest.dir/conftest.two
2412             then
2413               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414               break 3
2415             fi
2416           fi
2417         fi
2418       done
2419     done
2420     ;;
2421 esac
2422
2423   done
2424 IFS=$as_save_IFS
2425
2426 rm -rf conftest.one conftest.two conftest.dir
2427
2428 fi
2429   if test "${ac_cv_path_install+set}" = set; then
2430     INSTALL=$ac_cv_path_install
2431   else
2432     # As a last resort, use the slow shell script.  Don't cache a
2433     # value for INSTALL within a source directory, because that will
2434     # break other packages using the cache if that directory is
2435     # removed, or if the value is a relative name.
2436     INSTALL=$ac_install_sh
2437   fi
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2441
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451 $as_echo_n "checking whether ln works... " >&6; }
2452 if test "${acx_cv_prog_LN+set}" = set; then :
2453   $as_echo_n "(cached) " >&6
2454 else
2455   rm -f conftestdata_t
2456 echo >conftestdata_f
2457 if ln conftestdata_f conftestdata_t 2>/dev/null
2458 then
2459   acx_cv_prog_LN=ln
2460 else
2461   acx_cv_prog_LN=no
2462 fi
2463 rm -f conftestdata_f conftestdata_t
2464
2465 fi
2466 if test $acx_cv_prog_LN = no; then
2467   LN="cp"
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469 $as_echo "no, using $LN" >&6; }
2470 else
2471   LN="$acx_cv_prog_LN"
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 fi
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477 $as_echo_n "checking whether ln -s works... " >&6; }
2478 LN_S=$as_ln_s
2479 if test "$LN_S" = "ln -s"; then
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 else
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484 $as_echo "no, using $LN_S" >&6; }
2485 fi
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489 if test "${ac_cv_path_SED+set}" = set; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493      for ac_i in 1 2 3 4 5 6 7; do
2494        ac_script="$ac_script$as_nl$ac_script"
2495      done
2496      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497      { ac_script=; unset ac_script;}
2498      if test -z "$SED"; then
2499   ac_path_SED_found=false
2500   # Loop through the user's path and test for each of PROGNAME-LIST
2501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506     for ac_prog in sed gsed; do
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510 # Check for GNU ac_path_SED and select it if it is found.
2511   # Check for GNU $ac_path_SED
2512 case `"$ac_path_SED" --version 2>&1` in
2513 *GNU*)
2514   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2515 *)
2516   ac_count=0
2517   $as_echo_n 0123456789 >"conftest.in"
2518   while :
2519   do
2520     cat "conftest.in" "conftest.in" >"conftest.tmp"
2521     mv "conftest.tmp" "conftest.in"
2522     cp "conftest.in" "conftest.nl"
2523     $as_echo '' >> "conftest.nl"
2524     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526     as_fn_arith $ac_count + 1 && ac_count=$as_val
2527     if test $ac_count -gt ${ac_path_SED_max-0}; then
2528       # Best one so far, save it but keep looking for a better one
2529       ac_cv_path_SED="$ac_path_SED"
2530       ac_path_SED_max=$ac_count
2531     fi
2532     # 10*(2^10) chars as input seems more than enough
2533     test $ac_count -gt 10 && break
2534   done
2535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536 esac
2537
2538       $ac_path_SED_found && break 3
2539     done
2540   done
2541   done
2542 IFS=$as_save_IFS
2543   if test -z "$ac_cv_path_SED"; then
2544     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545   fi
2546 else
2547   ac_cv_path_SED=$SED
2548 fi
2549
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552 $as_echo "$ac_cv_path_SED" >&6; }
2553  SED="$ac_cv_path_SED"
2554   rm -f conftest.sed
2555
2556 for ac_prog in gawk mawk nawk awk
2557 do
2558   # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_AWK+set}" = set; then :
2563   $as_echo_n "(cached) " >&6
2564 else
2565   if test -n "$AWK"; then
2566   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573     for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     ac_cv_prog_AWK="$ac_prog"
2576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580   done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 AWK=$ac_cv_prog_AWK
2586 if test -n "$AWK"; then
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2589 else
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595   test -n "$AWK" && break
2596 done
2597
2598
2599 ### we might need to use some other shell than /bin/sh for running subshells
2600 ### If we are on Windows, search for the shell.  This will permit people
2601 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602 ### without also having to set CONFIG_SHELL.  This code will work when
2603 ### using bash, which sets OSTYPE.
2604 case "${OSTYPE}" in
2605 *win32*)
2606   if test x${CONFIG_SHELL} = x ; then
2607     if test ! -f /bin/sh ; then
2608       if test x${SHELL} != x && test -f ${SHELL} ; then
2609         CONFIG_SHELL=${SHELL}
2610         export CONFIG_SHELL
2611       else
2612         for prog in sh sh.exe bash bash.exe; do
2613           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2614           for dir in $PATH; do
2615             test -z "$dir" && dir=.
2616             if test -f $dir/$prog; then
2617               CONFIG_SHELL=$dir/$prog
2618               export CONFIG_SHELL
2619               break
2620             fi
2621           done
2622           IFS="$save_ifs"
2623           test -n "${CONFIG_SHELL}" && break
2624         done
2625       fi
2626     fi
2627   fi
2628   ;;
2629 esac
2630
2631 config_shell=${CONFIG_SHELL-/bin/sh}
2632
2633 moveifchange=${srcdir}/move-if-change
2634
2635 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2636
2637 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2638 # a relative path.
2639 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640   INSTALL="${srcpwd}/install-sh -c"
2641 fi
2642
2643 # Set srcdir to "." if that's what it is.
2644 # This is important for multilib support.
2645 pwd=`${PWDCMD-pwd}`
2646 if test "${pwd}" = "${srcpwd}" ; then
2647   srcdir=.
2648 fi
2649
2650 topsrcdir=$srcpwd
2651
2652 extra_host_args=
2653
2654 ### To add a new directory to the tree, first choose whether it is a target
2655 ### or a host dependent tool.  Then put it into the appropriate list
2656 ### (library or tools, host or target), doing a dependency sort.
2657
2658 # Subdirs will be configured in the order listed in build_configdirs,
2659 # configdirs, or target_configdirs; see the serialization section below.
2660
2661 # Dependency sorting is only needed when *configuration* must be done in
2662 # a particular order.  In all cases a dependency should be specified in
2663 # the Makefile, whether or not it's implicitly specified here.
2664
2665 # Double entries in build_configdirs, configdirs, or target_configdirs may
2666 # cause circular dependencies and break everything horribly.
2667
2668 # these library is used by various programs built for the build
2669 # environment
2670 #
2671 build_libs="build-libiberty"
2672
2673 # these tools are built for the build environment
2674 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2675
2676 # these libraries are used by various programs built for the host environment
2677 #
2678 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2679
2680 # these tools are built for the host environment
2681 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682 # know that we are building the simulator.
2683 # binutils, gas and ld appear in that order because it makes sense to run
2684 # "make check" in that particular order.
2685 # If --enable-gold is used, "gold" may replace "ld".
2686 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"
2687
2688 # libgcj represents the runtime libraries only used by gcj.
2689 libgcj="target-libffi \
2690         target-zlib \
2691         target-qthreads \
2692         target-libjava"
2693
2694 # these libraries are built for the target environment, and are built after
2695 # the host libraries and the host tools (which may be a cross compiler)
2696 #
2697 target_libraries="target-libgcc \
2698                 target-libiberty \
2699                 target-libgloss \
2700                 target-newlib \
2701                 target-libgomp \
2702                 target-libstdc++-v3 \
2703                 target-libmudflap \
2704                 target-libssp \
2705                 target-libquadmath \
2706                 target-libgfortran \
2707                 target-boehm-gc \
2708                 ${libgcj} \
2709                 target-libobjc \
2710                 target-libada \
2711                 target-libgo"
2712
2713 # these tools are built using the target libraries, and are intended to
2714 # run only in the target environment
2715 #
2716 # note: any program that *uses* libraries that are in the "target_libraries"
2717 # list belongs in this list.  those programs are also very likely
2718 # candidates for the "native_only" list which follows
2719 #
2720 target_tools="target-examples target-groff target-gperf target-rda"
2721
2722 ################################################################################
2723
2724 ## All tools belong in one of the four categories, and are assigned above
2725 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2726 ## is important because configure will choke if they ever get through.
2727 ## ${configdirs} is directories we build using the host tools.
2728 ## ${target_configdirs} is directories we build using the target tools.
2729 configdirs=`echo ${host_libs} ${host_tools}`
2730 target_configdirs=`echo ${target_libraries} ${target_tools}`
2731 build_configdirs=`echo ${build_libs} ${build_tools}`
2732
2733
2734
2735 ################################################################################
2736
2737 srcname="gnu development package"
2738
2739 # This gets set non-empty for some net releases of packages.
2740 appdirs=""
2741
2742 # Define is_cross_compiler to save on calls to 'test'.
2743 is_cross_compiler=
2744 if test x"${host}" = x"${target}" ; then
2745   is_cross_compiler=no
2746 else
2747   is_cross_compiler=yes
2748 fi
2749
2750 # Find the build and target subdir names.
2751
2752 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753 # have matching libraries, they should use host libraries: Makefile.tpl
2754 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755 # However, they still use the build modules, because the corresponding
2756 # host modules (e.g. bison) are only built for the host when bootstrap
2757 # finishes. So:
2758 # - build_subdir is where we find build modules, and never changes.
2759 # - build_libsubdir is where we find build libraries, and can be overridden.
2760
2761 # Prefix 'build-' so this never conflicts with target_subdir.
2762 build_subdir="build-${build_noncanonical}"
2763
2764 # Check whether --with-build-libsubdir was given.
2765 if test "${with_build_libsubdir+set}" = set; then :
2766   withval=$with_build_libsubdir; build_libsubdir="$withval"
2767 else
2768   build_libsubdir="$build_subdir"
2769 fi
2770
2771 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772 if ( test $srcdir = . && test -d gcc ) \
2773    || test -d $srcdir/../host-${host_noncanonical}; then
2774   host_subdir="host-${host_noncanonical}"
2775 else
2776   host_subdir=.
2777 fi
2778 # No prefix.
2779 target_subdir=${target_noncanonical}
2780
2781 # Be sure to cover against remnants of an in-tree build.
2782 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2783   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785 fi
2786
2787 # Skipdirs are removed silently.
2788 skipdirs=
2789 # Noconfigdirs are removed loudly.
2790 noconfigdirs=""
2791
2792 use_gnu_ld=
2793 # Make sure we don't let GNU ld be added if we didn't want it.
2794 if test x$with_gnu_ld = xno ; then
2795   use_gnu_ld=no
2796   noconfigdirs="$noconfigdirs ld gold"
2797 fi
2798
2799 use_gnu_as=
2800 # Make sure we don't let GNU as be added if we didn't want it.
2801 if test x$with_gnu_as = xno ; then
2802   use_gnu_as=no
2803   noconfigdirs="$noconfigdirs gas"
2804 fi
2805
2806 use_included_zlib=
2807 # Make sure we don't let ZLIB be added if we didn't want it.
2808 if test x$with_system_zlib = xyes ; then
2809   use_included_zlib=no
2810   noconfigdirs="$noconfigdirs zlib"
2811 fi
2812
2813 # some tools are so dependent upon X11 that if we're not building with X,
2814 # it's not even worth trying to configure, much less build, that tool.
2815
2816 case ${with_x} in
2817   yes | "") ;; # the default value for this tree is that X11 is available
2818   no)
2819     skipdirs="${skipdirs} tk itcl libgui"
2820     # We won't be able to build gdbtk without X.
2821     enable_gdbtk=no
2822     ;;
2823   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824 esac
2825
2826 # Some tools are only suitable for building in a "native" situation.
2827 # Remove these if host!=target.
2828 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2829
2830 # Similarly, some are only suitable for cross toolchains.
2831 # Remove these if host=target.
2832 cross_only="target-libgloss target-newlib target-opcodes"
2833
2834 case $is_cross_compiler in
2835   no) skipdirs="${skipdirs} ${cross_only}" ;;
2836   yes) skipdirs="${skipdirs} ${native_only}" ;;
2837 esac
2838
2839 # If both --with-headers and --with-libs are specified, default to
2840 # --without-newlib.
2841 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2843   if test x"${with_newlib}" = x ; then
2844     with_newlib=no
2845   fi
2846 fi
2847
2848 # Recognize --with-newlib/--without-newlib.
2849 case ${with_newlib} in
2850   no) skipdirs="${skipdirs} target-newlib" ;;
2851   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852 esac
2853
2854 # Handle --enable-gold, --enable-ld.
2855 # --disable-gold [--enable-ld]
2856 #     Build only ld.  Default option.
2857 # --enable-gold[=default] [--enable-ld]
2858 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2859 #     install ld as "ld.bfd".
2860 # --enable-gold[=default] --disable-ld
2861 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2862 # --enable-gold --enable-ld=default
2863 #     Build both gold (installed as "gold") and ld (installed as "ld").
2864 #     In other words, ld is default
2865 # --enable-gold=default --enable-ld=default
2866 #     Error.
2867
2868 default_ld=
2869 # Check whether --enable-gold was given.
2870 if test "${enable_gold+set}" = set; then :
2871   enableval=$enable_gold; ENABLE_GOLD=$enableval
2872 else
2873   ENABLE_GOLD=no
2874 fi
2875
2876 case "${ENABLE_GOLD}" in
2877   yes|default)
2878     # Check for ELF target.
2879     is_elf=no
2880     case "${target}" in
2881       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2882       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2883       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2884         case "${target}" in
2885           *-*-linux*aout* | *-*-linux*oldld*)
2886             ;;
2887           *)
2888             is_elf=yes
2889             ;;
2890         esac
2891     esac
2892
2893     if test "$is_elf" = "yes"; then
2894       # Check for target supported by gold.
2895       case "${target}" in
2896         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2897           configdirs="$configdirs gold"
2898           if test x${ENABLE_GOLD} = xdefault; then
2899             default_ld=gold
2900           fi
2901           ENABLE_GOLD=yes
2902           ;;
2903       esac
2904     fi
2905     ;;
2906   no)
2907     ;;
2908   *)
2909     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2910     ;;
2911 esac
2912
2913 # Check whether --enable-ld was given.
2914 if test "${enable_ld+set}" = set; then :
2915   enableval=$enable_ld; ENABLE_LD=$enableval
2916 else
2917   ENABLE_LD=yes
2918 fi
2919
2920
2921 case "${ENABLE_LD}" in
2922   default)
2923     if test x${default_ld} != xgold; then
2924       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2925     fi
2926     ;;
2927   yes)
2928     ;;
2929   no)
2930     if test x${ENABLE_GOLD} != xyes; then
2931       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2932 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2933     fi
2934     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2935     ;;
2936   *)
2937     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2938     ;;
2939 esac
2940
2941 # Configure extra directories which are host specific
2942
2943 case "${host}" in
2944   *-cygwin*)
2945     configdirs="$configdirs libtermcap" ;;
2946 esac
2947
2948 # A target can indicate whether a language isn't supported for some reason.
2949 # Only spaces may be used in this macro; not newlines or tabs.
2950 unsupported_languages=
2951
2952 # Remove more programs from consideration, based on the host or
2953 # target this usually means that a port of the program doesn't
2954 # exist yet.
2955
2956 case "${host}" in
2957   hppa*64*-*-*)
2958     noconfigdirs="$noconfigdirs byacc"
2959     ;;
2960   i[3456789]86-*-vsta)
2961     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2962     ;;
2963   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2964     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2965     ;;
2966   x86_64-*-mingw*)
2967     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2968     ;;
2969   i[3456789]86-*-mingw32*)
2970     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2971     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2972     ;;
2973   i[3456789]86-*-beos*)
2974     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2975     ;;
2976   *-*-cygwin*)
2977     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2978     ;;
2979   *-*-netbsd*)
2980     noconfigdirs="$noconfigdirs rcs"
2981     ;;
2982   ppc*-*-pe)
2983     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2984     ;;
2985   powerpc-*-beos*)
2986     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2987     ;;
2988 esac
2989
2990
2991 # Check whether --enable-libada was given.
2992 if test "${enable_libada+set}" = set; then :
2993   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2994 else
2995   ENABLE_LIBADA=yes
2996 fi
2997
2998 if test "${ENABLE_LIBADA}" != "yes" ; then
2999   noconfigdirs="$noconfigdirs gnattools"
3000 fi
3001
3002 # Check whether --enable-libssp was given.
3003 if test "${enable_libssp+set}" = set; then :
3004   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3005 else
3006   ENABLE_LIBSSP=yes
3007 fi
3008
3009
3010 # Save it here so that, even in case of --enable-libgcj, if the Java
3011 # front-end isn't enabled, we still get libgcj disabled.
3012 libgcj_saved=$libgcj
3013 case $enable_libgcj in
3014 yes)
3015   # If we reset it here, it won't get added to noconfigdirs in the
3016   # target-specific build rules, so it will be forcibly enabled
3017   # (unless the Java language itself isn't enabled).
3018   libgcj=
3019   ;;
3020 no)
3021   # Make sure we get it printed in the list of not supported target libs.
3022   # Don't disable libffi, though, other languages use it.
3023   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3024   ;;
3025 esac
3026
3027
3028 # Disable libmudflap on some systems.
3029 if test x$enable_libmudflap = x ; then
3030     case "${target}" in
3031     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3032         # Enable libmudflap by default in GNU and friends.
3033         ;;
3034     *-*-freebsd*)
3035         # Enable libmudflap by default in FreeBSD.
3036         ;;
3037     *)
3038         # Disable it by default everywhere else.
3039         noconfigdirs="$noconfigdirs target-libmudflap"
3040         ;;
3041     esac
3042 fi
3043
3044 # Disable libgomp on non POSIX hosted systems.
3045 if test x$enable_libgomp = x ; then
3046     # Enable libgomp by default on hosted POSIX systems.
3047     case "${target}" in
3048     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3049         ;;
3050     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3051         ;;
3052     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3053         ;;
3054     *-*-darwin* | *-*-aix*)
3055         ;;
3056     *)
3057         noconfigdirs="$noconfigdirs target-libgomp"
3058         ;;
3059     esac
3060 fi
3061
3062 # Default libgloss CPU subdirectory.
3063 libgloss_dir="$target_cpu"
3064
3065 case "${target}" in
3066   *-*-chorusos)
3067     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3068     ;;
3069   powerpc-*-darwin*)
3070     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3071     noconfigdirs="$noconfigdirs sim target-rda"
3072     ;;
3073   i[3456789]86-*-darwin*)
3074     noconfigdirs="$noconfigdirs ld gprof"
3075     noconfigdirs="$noconfigdirs sim target-rda"
3076     ;;
3077   x86_64-*-darwin[912]*)
3078     noconfigdirs="$noconfigdirs ld gas gprof"
3079     noconfigdirs="$noconfigdirs sim target-rda"
3080     ;;
3081   *-*-darwin*)
3082     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3083     noconfigdirs="$noconfigdirs sim target-rda"
3084     noconfigdirs="$noconfigdirs ${libgcj}"
3085     ;;
3086   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3087     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3088     ;;
3089   *-*-freebsd*)
3090     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3091     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3092         && test -f /usr/local/include/gmp.h; then
3093       with_gmp=/usr/local
3094     fi
3095
3096     # Skip some stuff that's unsupported on some FreeBSD configurations.
3097     case "${target}" in
3098       i*86-*-*) ;;
3099       alpha*-*-*) ;;
3100       x86_64-*-*) ;;
3101       *)
3102         noconfigdirs="$noconfigdirs ${libgcj}"
3103         ;;
3104     esac
3105     ;;
3106   *-*-kaos*)
3107     # Remove unsupported stuff on all kaOS configurations.
3108     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3109     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3110     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3111     noconfigdirs="$noconfigdirs target-libgloss"
3112     ;;
3113   *-*-netbsd*)
3114     # Skip some stuff on all NetBSD configurations.
3115     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3116
3117     # Skip some stuff that's unsupported on some NetBSD configurations.
3118     case "${target}" in
3119       i*86-*-netbsdelf*) ;;
3120       arm*-*-netbsdelf*) ;;
3121       *)
3122         noconfigdirs="$noconfigdirs ${libgcj}"
3123         ;;
3124     esac
3125     ;;
3126   *-*-netware*)
3127     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3128     ;;
3129   *-*-rtems*)
3130     skipdirs="${skipdirs} target-libiberty"
3131     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3132     ;;
3133     # The tpf target doesn't support gdb yet.
3134   *-*-tpf*)
3135     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3136     ;;
3137   *-*-uclinux*)
3138     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3139     ;;
3140   *-*-vxworks*)
3141     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3142     ;;
3143   alpha*-dec-osf*)
3144     # ld works, but does not support shared libraries.
3145     # newlib is not 64 bit ready.  I'm not sure about fileutils.
3146     # gas doesn't generate exception information.
3147     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3148     ;;
3149   alpha*-*-*vms*)
3150     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3151     ;;
3152   alpha*-*-linux*)
3153     # newlib is not 64 bit ready
3154     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3155     ;;
3156   alpha*-*-*)
3157     # newlib is not 64 bit ready
3158     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3159     ;;
3160   am33_2.0-*-linux*)
3161     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3162     ;;
3163   sh-*-linux*)
3164     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3165     ;;
3166   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3167     noconfigdirs="$noconfigdirs ${libgcj}"
3168     noconfigdirs="$noconfigdirs target-examples"
3169     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3170     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3171     noconfigdirs="$noconfigdirs expect dejagnu"
3172     # the C++ libraries don't build on top of CE's C libraries
3173     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174     noconfigdirs="$noconfigdirs target-newlib"
3175     case "${host}" in
3176       *-*-cygwin*) ;; # keep gdb and readline
3177       *) noconfigdirs="$noconfigdirs gdb readline"
3178          ;;
3179     esac
3180     libgloss_dir=wince
3181     ;;
3182   arc-*-*)
3183     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3184     ;;
3185   arm-semi-aof )
3186     ;;
3187   arm-*-coff | strongarm-*-coff | xscale-*-coff)
3188     noconfigdirs="$noconfigdirs ${libgcj}"
3189     libgloss_dir=arm
3190     ;;
3191   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3192     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3193     libgloss_dir=arm
3194     ;;
3195   arm*-*-linux-gnueabi)
3196     noconfigdirs="$noconfigdirs target-qthreads"
3197     case ${with_newlib} in
3198       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3199     esac
3200     libgloss_dir=arm
3201     ;;
3202   arm*-*-symbianelf*)
3203     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3204     libgloss_dir=arm
3205     ;;
3206   arm-*-pe*)
3207     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3208     ;;
3209   thumb-*-coff)
3210     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3211     ;;
3212   thumb-*-elf)
3213     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3214     ;;
3215   thumb-*-pe)
3216     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3217     ;;
3218   arm-*-riscix*)
3219     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3220     ;;
3221   avr-*-*)
3222     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3223     ;;
3224   bfin-*-*)
3225     unsupported_languages="$unsupported_languages java"
3226     noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3227     if test x${is_cross_compiler} != xno ; then
3228       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3229     fi
3230     ;;
3231   c4x-*-* | tic4x-*-*)
3232     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3233     ;;
3234   c54x*-*-* | tic54x-*-*)
3235     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3236     ;;
3237   cr16-*-*)
3238     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3239     ;;
3240   cris-*-* | crisv32-*-*)
3241     unsupported_languages="$unsupported_languages java"
3242     case "${target}" in
3243       *-*-aout)
3244         unsupported_languages="$unsupported_languages fortran"
3245         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3246       *-*-elf)
3247         noconfigdirs="$noconfigdirs target-boehm-gc";;
3248       *-*-linux*)
3249         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3250       *)
3251         unsupported_languages="$unsupported_languages fortran"
3252         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3253     esac
3254     libgloss_dir=cris
3255     ;;
3256   crx-*-*)
3257     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3258     ;;
3259   d10v-*-*)
3260     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3261     ;;
3262   d30v-*-*)
3263     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3264     ;;
3265   ep9312-*-elf | ep9312-*-coff)
3266     libgloss_dir=arm
3267     ;;
3268   fr30-*-elf*)
3269     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3270     ;;
3271   frv-*-*)
3272     noconfigdirs="$noconfigdirs ${libgcj}"
3273     ;;
3274   moxie-*-*)
3275     noconfigdirs="$noconfigdirs ${libgcj}"
3276     noconfigdirs="$noconfigdirs gprof"
3277     ;;
3278   h8300*-*-*)
3279     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3280     ;;
3281   h8500-*-*)
3282     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3283     ;;
3284   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3285     ;;
3286   hppa*64*-*-linux* | parisc*64*-*-linux*)
3287     # In this case, it's because the hppa64-linux target is for
3288     # the kernel only at this point and has no libc, and thus no
3289     # headers, crt*.o, etc., all of which are needed by these.
3290     noconfigdirs="$noconfigdirs target-zlib"
3291     ;;
3292   parisc*-*-linux* | hppa*-*-linux*)
3293     ;;
3294   hppa*-*-*elf* | \
3295   hppa*-*-lites* | \
3296   hppa*-*-openbsd* | \
3297   hppa*64*-*-*)
3298     noconfigdirs="$noconfigdirs ${libgcj}"
3299     ;;
3300   hppa*-hp-hpux11*)
3301     noconfigdirs="$noconfigdirs ld shellutils"
3302     ;;
3303   hppa*-*-pro*)
3304     libgloss_dir=pa
3305     ;;
3306   hppa*-*-*)
3307     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3308     # build on HP-UX 10.20.
3309     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3310     ;;
3311   i960-*-*)
3312     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3313     ;;
3314   ia64*-*-elf*)
3315     # No gdb support yet.
3316     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3317     ;;
3318   ia64*-**-hpux*)
3319     # No gdb or ld support yet.
3320     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3321     ;;
3322   ia64*-*-*vms*)
3323     # No gdb or ld support yet.
3324     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3325     ;;
3326   i370-*-opened*)
3327     ;;
3328   i[3456789]86-*-coff | i[3456789]86-*-elf)
3329     noconfigdirs="$noconfigdirs ${libgcj}"
3330     libgloss_dir=i386
3331     ;;
3332   i[3456789]86-*-linux*)
3333     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3334     # not build java stuff by default.
3335     case "${target}" in
3336       *-*-*libc1*)
3337         noconfigdirs="$noconfigdirs ${libgcj}";;
3338     esac
3339
3340     # This section makes it possible to build newlib natively on linux.
3341     # If we are using a cross compiler then don't configure newlib.
3342     if test x${is_cross_compiler} != xno ; then
3343       noconfigdirs="$noconfigdirs target-newlib"
3344     fi
3345     noconfigdirs="$noconfigdirs target-libgloss"
3346     # If we are not using a cross compiler, do configure newlib.
3347     # Note however, that newlib will only be configured in this situation
3348     # if the --with-newlib option has been given, because otherwise
3349     # 'target-newlib' will appear in skipdirs.
3350     ;;
3351   i[3456789]86-w64-mingw*)
3352     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3353     ;;
3354   i[3456789]86-*-mingw*)
3355     target_configdirs="$target_configdirs target-winsup"
3356     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3357     ;;
3358   x86_64-*-mingw*)
3359     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3360     ;;
3361   *-*-cygwin*)
3362     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3363     noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3364     # always build newlib if winsup directory is present.
3365     if test -d "$srcdir/winsup/cygwin"; then
3366       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3367     elif test -d "$srcdir/newlib"; then
3368       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3369     fi
3370     ;;
3371   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3372   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3373     ;;
3374   i[3456789]86-*-pe)
3375     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3376     ;;
3377   i[3456789]86-*-sco3.2v5*)
3378     # The linker does not yet know about weak symbols in COFF,
3379     # and is not configured to handle mixed ELF and COFF.
3380     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3381     ;;
3382   i[3456789]86-*-sco*)
3383     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3384     ;;
3385   i[3456789]86-*-solaris2*)
3386     noconfigdirs="$noconfigdirs target-libgloss"
3387     ;;
3388   i[3456789]86-*-sysv4*)
3389     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3390     ;;
3391   i[3456789]86-*-beos*)
3392     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3393     ;;
3394   i[3456789]86-*-rdos*)
3395     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3396     ;;
3397   m32r-*-*)
3398     noconfigdirs="$noconfigdirs ${libgcj}"
3399     ;;
3400   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3401     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3402     libgloss_dir=m68hc11
3403     ;;
3404   m68k-*-elf*)
3405     noconfigdirs="$noconfigdirs ${libgcj}"
3406     ;;
3407   m68k-*-coff*)
3408     noconfigdirs="$noconfigdirs ${libgcj}"
3409     ;;
3410   m68*-*-* | fido-*-*)
3411     libgloss_dir=m68k
3412     ;;
3413   mcore-*-pe*)
3414   # The EPOC C++ environment does not support exceptions or rtti,
3415   # and so building libstdc++-v3 tends not to always work.
3416     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417     ;;
3418   mmix-*-*)
3419     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3420     unsupported_languages="$unsupported_languages fortran java"
3421     ;;
3422   mn10200-*-*)
3423     noconfigdirs="$noconfigdirs ${libgcj}"
3424     ;;
3425   mn10300-*-*)
3426     noconfigdirs="$noconfigdirs ${libgcj}"
3427     ;;
3428   mt-*-*)
3429     noconfigdirs="$noconfigdirs sim"
3430     ;;
3431   powerpc-*-aix*)
3432     # copied from rs6000-*-* entry
3433     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3434     ;;
3435   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3436     target_configdirs="$target_configdirs target-winsup"
3437     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3438     # always build newlib.
3439     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3440     ;;
3441     # This is temporary until we can link against shared libraries
3442   powerpcle-*-solaris*)
3443     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3444     libgloss_dir=rs6000
3445     ;;
3446   powerpc-*-beos*)
3447     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3448     ;;
3449   powerpc-*-eabi)
3450     noconfigdirs="$noconfigdirs ${libgcj}"
3451     libgloss_dir=rs6000
3452     ;;
3453   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3454     libgloss_dir=rs6000
3455     ;;
3456   rs6000-*-lynxos*)
3457     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3458     ;;
3459   rs6000-*-aix*)
3460     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3461     ;;
3462   rs6000-*-*)
3463     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3464     ;;
3465   m68k-apollo-*)
3466     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3467     ;;
3468   microblaze*)
3469     noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3470     ;;
3471   mips*-sde-elf*)
3472     skipdirs="$skipdirs target-libiberty"
3473     noconfigdirs="$noconfigdirs ${libgcj}"
3474     if test x$with_newlib = xyes; then
3475       noconfigdirs="$noconfigdirs gprof"
3476     fi
3477     libgloss_dir=mips
3478     ;;
3479   mips*-*-irix5*)
3480     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3481     ;;
3482   mips*-*-irix6*)
3483     # Linking libjava exceeds command-line length limits on at least
3484     # IRIX 6.2, but not on IRIX 6.5.
3485     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3486     # <oldham@codesourcery.com>
3487     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3488     ;;
3489   mips*-*-bsd*)
3490     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3491     ;;
3492   mips*-*-linux*)
3493     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494     ;;
3495   mips*-*-*)
3496     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3497     libgloss_dir=mips
3498     ;;
3499   romp-*-*)
3500     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3501     ;;
3502   sh-*-* | sh64-*-*)
3503     case "${host}" in
3504       i[3456789]86-*-vsta) ;; # don't add gprof back in
3505       i[3456789]86-*-go32*) ;; # don't add gprof back in
3506       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3507       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3508     esac
3509     case "${target}" in
3510       sh*-*-elf)
3511          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3512       *)
3513          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3514     esac
3515     ;;
3516   sparclet-*-aout* | sparc86x-*-*)
3517     libgloss_dir=sparc
3518     ;;
3519   sparc-*-elf*)
3520     noconfigdirs="$noconfigdirs ${libgcj}"
3521     ;;
3522   sparc64-*-elf*)
3523     noconfigdirs="$noconfigdirs ${libgcj}"
3524     libgloss_dir=sparc
3525     ;;
3526   sparclite-*-*)
3527     noconfigdirs="$noconfigdirs ${libgcj}"
3528     libgloss_dir=sparc
3529     ;;
3530   sparc-*-sunos4*)
3531     noconfigdirs="$noconfigdirs ${libgcj}"
3532     if test x${is_cross_compiler} != xno ; then
3533            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3534     else
3535            use_gnu_ld=no
3536     fi
3537     ;;
3538   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3539     noconfigdirs="$noconfigdirs ${libgcj}"
3540     ;;
3541   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3542     ;;
3543   tic6x-*-*)
3544     noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3545     ;;
3546   v810-*-*)
3547     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3548     ;;
3549   v850*-*-*)
3550     noconfigdirs="$noconfigdirs ${libgcj}"
3551     ;;
3552   vax-*-vms)
3553     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3554     ;;
3555   vax-*-*)
3556     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3557     ;;
3558   xtensa*-*-*)
3559     noconfigdirs="$noconfigdirs ${libgcj}"
3560     ;;
3561   ip2k-*-*)
3562     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3563     ;;
3564   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3565     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566     ;;
3567   *-*-lynxos*)
3568     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3569     ;;
3570   *-*-*)
3571     noconfigdirs="$noconfigdirs ${libgcj}"
3572     ;;
3573 esac
3574
3575 # If we aren't building newlib, then don't build libgloss, since libgloss
3576 # depends upon some newlib header files.
3577 case "${noconfigdirs}" in
3578   *target-libgloss*) ;;
3579   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3580 esac
3581
3582 # Work in distributions that contain no compiler tools, like Autoconf.
3583 tentative_cc=""
3584 host_makefile_frag=/dev/null
3585 if test -d ${srcdir}/config ; then
3586 case "${host}" in
3587   m68k-hp-hpux*)
3588     # Avoid "too much defining" errors from HPUX compiler.
3589     tentative_cc="cc -Wp,-H256000"
3590     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3591     # If it's HP/UX ar, this should be harmless.
3592     RANLIB="ar ts"
3593     ;;
3594   m68k-apollo-sysv*)
3595     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3596     ;;
3597   m68k-apollo-bsd*)
3598     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3599     # chokes on bfd, the compiler won't let you assign integers to enums, and
3600     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3601     # the apollo compiler" (the preferred version of GCC could be called cc,
3602     # or whatever), but I'm not sure leaving CC as cc is any better...
3603     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3604     # Used to have BISON=yacc.
3605     tentative_cc=gcc
3606     ;;
3607   m88k-dg-dgux*)
3608     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3609     ;;
3610   m88k-harris-cxux*)
3611     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3612     tentative_cc="cc -Xa"
3613     host_makefile_frag="config/mh-cxux"
3614     ;;
3615   m88k-motorola-sysv*)
3616     ;;
3617   mips*-dec-ultrix*)
3618     tentative_cc="cc -Wf,-XNg1000"
3619     host_makefile_frag="config/mh-decstation"
3620     ;;
3621   mips*-nec-sysv4*)
3622     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3623     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3624     host_makefile_frag="config/mh-necv4"
3625     ;;
3626   mips*-sgi-irix4*)
3627     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3628     # environment.  Also bump switch table size so that cp-parse will
3629     # compile.  Bump string length limit so linker builds.
3630     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3631     ;;
3632   mips*-*-sysv4*)
3633     host_makefile_frag="config/mh-sysv4"
3634     ;;
3635   mips*-*-sysv*)
3636     # This is for a MIPS running RISC/os 4.52C.
3637
3638     # This is needed for GDB, but needs to be in the top-level make because
3639     # if a library is compiled with the bsd headers and gets linked with the
3640     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3641     # a different size).
3642     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3643     # known except to select the sysv environment.  Could we use /proc instead?
3644     # These "sysv environments" and "bsd environments" often end up being a pain.
3645     #
3646     # This is not part of CFLAGS because perhaps not all C compilers have this
3647     # option.
3648     tentative_cc="cc -systype sysv"
3649     ;;
3650   i370-ibm-opened*)
3651     tentative_cc="c89"
3652     ;;
3653   i[3456789]86-*-sysv5*)
3654     host_makefile_frag="config/mh-sysv5"
3655     ;;
3656   i[3456789]86-*-dgux*)
3657     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3658     host_makefile_frag="config/mh-dgux386"
3659     ;;
3660   i[3456789]86-ncr-sysv4.3*)
3661     # The MetaWare compiler will generate a copyright message unless you
3662     # turn it off by adding the -Hnocopyr flag.
3663     tentative_cc="cc -Hnocopyr"
3664     ;;
3665   i[3456789]86-ncr-sysv4*)
3666     # for an NCR 3000 (i486/SVR4) system.
3667     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3668     # This compiler not only emits obnoxious copyright messages every time
3669     # you run it, but it chokes and dies on a whole bunch of GNU source
3670     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3671     tentative_cc="/usr/ccs/ATT/cc"
3672     host_makefile_frag="config/mh-ncr3000"
3673     ;;
3674   i[3456789]86-*-sco3.2v5*)
3675     ;;
3676   i[3456789]86-*-sco*)
3677     # The native C compiler botches some simple uses of const.  Unfortunately,
3678     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3679     tentative_cc="cc -Dconst="
3680     host_makefile_frag="config/mh-sco"
3681     ;;
3682   i[3456789]86-*-udk*)
3683     host_makefile_frag="config/mh-sysv5"
3684     ;;
3685   i[3456789]86-*-solaris2*)
3686     host_makefile_frag="config/mh-sysv4"
3687     ;;
3688   i[3456789]86-*-msdosdjgpp*)
3689     host_makefile_frag="config/mh-djgpp"
3690     ;;
3691   *-cygwin*)
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3694 $as_echo_n "checking to see if cat works as expected... " >&6; }
3695 echo a >cygwin-cat-check
3696 if test `cat cygwin-cat-check` = a ; then
3697   rm cygwin-cat-check
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3699 $as_echo "yes" >&6; }
3700 else
3701   rm cygwin-cat-check
3702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704   as_fn_error "The cat command does not ignore carriage return characters.
3705   Please either mount the build directory in binary mode or run the following
3706   commands before running any configure script:
3707 set -o igncr
3708 export SHELLOPTS
3709   " "$LINENO" 5
3710 fi
3711
3712     host_makefile_frag="config/mh-cygwin"
3713     ;;
3714   *-mingw*)
3715     host_makefile_frag="config/mh-mingw"
3716     ;;
3717   *-interix*)
3718     host_makefile_frag="config/mh-interix"
3719     ;;
3720   vax-*-ultrix2*)
3721     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3722     tentative_cc=gcc
3723     ;;
3724   *-*-solaris2*)
3725     host_makefile_frag="config/mh-solaris"
3726     ;;
3727   m68k-sun-sunos*)
3728     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3729     # without overflowing the jump tables (-J says to use a 32 bit table)
3730     tentative_cc="cc -J"
3731     ;;
3732   hppa*-hp-hpux10*)
3733     tentative_cc="cc -Wp,-H256000"
3734     host_makefile_frag="config/mh-pa-hpux10"
3735     ;;
3736   hppa*-hp-hpux* | hppa*-*-hiux*)
3737     tentative_cc="cc -Wp,-H256000"
3738     host_makefile_frag="config/mh-pa"
3739     ;;
3740   hppa*-*)
3741     host_makefile_frag="config/mh-pa"
3742     ;;
3743   *-hp-hpux* | *-*-hiux*)
3744     tentative_cc="cc -Wp,-H256000"
3745     ;;
3746   rs6000-*-lynxos*)
3747     # /bin/cc is less than useful for our purposes.  Always use GCC
3748     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3749     host_makefile_frag="config/mh-lynxrs6k"
3750     ;;
3751   *-*-darwin*)
3752     host_makefile_frag="config/mh-darwin"
3753     ;;
3754   powerpc-*-aix*)
3755     host_makefile_frag="config/mh-ppc-aix"
3756     ;;
3757   rs6000-*-aix*)
3758     host_makefile_frag="config/mh-ppc-aix"
3759     ;;
3760   *-*-lynxos*)
3761     # /bin/cc is less than useful for our purposes.  Always use GCC
3762     tentative_cc="/bin/gcc"
3763     ;;
3764   *-*-sysv4*)
3765     host_makefile_frag="config/mh-sysv4"
3766     ;;
3767   # This is placed last to prevent interfering with the cases above.
3768   i[3456789]86-*-*)
3769     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3770     host_makefile_frag="config/mh-x86omitfp"
3771     ;;
3772 esac
3773 fi
3774
3775 # If we aren't going to be using gcc, see if we can extract a definition
3776 # of CC from the fragment.
3777 # Actually, use the 'pre-extracted' version above.
3778 if test -z "${CC}" && test "${build}" = "${host}" ; then
3779   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3780   found=
3781   for dir in $PATH; do
3782     test -z "$dir" && dir=.
3783     if test -f $dir/gcc; then
3784       found=yes
3785       break
3786     fi
3787   done
3788   IFS="$save_ifs"
3789   if test -z "${found}" && test -n "${tentative_cc}" ; then
3790     CC=$tentative_cc
3791   fi
3792 fi
3793
3794 if test "${build}" != "${host}" ; then
3795   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3796   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3797   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3798   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3799   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3800   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3801   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3802   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3803   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3804   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3805   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3806   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3807   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3808 else
3809   AR_FOR_BUILD="\$(AR)"
3810   AS_FOR_BUILD="\$(AS)"
3811   CC_FOR_BUILD="\$(CC)"
3812   CXX_FOR_BUILD="\$(CXX)"
3813   GCJ_FOR_BUILD="\$(GCJ)"
3814   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3815   GOC_FOR_BUILD="\$(GOC)"
3816   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3817   LD_FOR_BUILD="\$(LD)"
3818   NM_FOR_BUILD="\$(NM)"
3819   RANLIB_FOR_BUILD="\$(RANLIB)"
3820   WINDRES_FOR_BUILD="\$(WINDRES)"
3821   WINDMC_FOR_BUILD="\$(WINDMC)"
3822 fi
3823
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 if test -n "$ac_tool_prefix"; then
3830   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if test "${ac_cv_prog_CC+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845     for ac_exec_ext in '' $ac_executable_extensions; do
3846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3847     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849     break 2
3850   fi
3851 done
3852   done
3853 IFS=$as_save_IFS
3854
3855 fi
3856 fi
3857 CC=$ac_cv_prog_CC
3858 if test -n "$CC"; then
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860 $as_echo "$CC" >&6; }
3861 else
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3864 fi
3865
3866
3867 fi
3868 if test -z "$ac_cv_prog_CC"; then
3869   ac_ct_CC=$CC
3870   # Extract the first word of "gcc", so it can be a program name with args.
3871 set dummy gcc; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   if test -n "$ac_ct_CC"; then
3878   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885     for ac_exec_ext in '' $ac_executable_extensions; do
3886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887     ac_cv_prog_ac_ct_CC="gcc"
3888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892   done
3893 IFS=$as_save_IFS
3894
3895 fi
3896 fi
3897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3898 if test -n "$ac_ct_CC"; then
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3900 $as_echo "$ac_ct_CC" >&6; }
3901 else
3902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906   if test "x$ac_ct_CC" = x; then
3907     CC=""
3908   else
3909     case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913 ac_tool_warned=yes ;;
3914 esac
3915     CC=$ac_ct_CC
3916   fi
3917 else
3918   CC="$ac_cv_prog_CC"
3919 fi
3920
3921 if test -z "$CC"; then
3922           if test -n "$ac_tool_prefix"; then
3923     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}cc; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if test "${ac_cv_prog_CC+set}" = set; then :
3928   $as_echo_n "(cached) " >&6
3929 else
3930   if test -n "$CC"; then
3931   ac_cv_prog_CC="$CC" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938     for ac_exec_ext in '' $ac_executable_extensions; do
3939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940     ac_cv_prog_CC="${ac_tool_prefix}cc"
3941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945   done
3946 IFS=$as_save_IFS
3947
3948 fi
3949 fi
3950 CC=$ac_cv_prog_CC
3951 if test -n "$CC"; then
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953 $as_echo "$CC" >&6; }
3954 else
3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 fi
3958
3959
3960   fi
3961 fi
3962 if test -z "$CC"; then
3963   # Extract the first word of "cc", so it can be a program name with args.
3964 set dummy cc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if test "${ac_cv_prog_CC+set}" = set; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -n "$CC"; then
3971   ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973   ac_prog_rejected=no
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979     for ac_exec_ext in '' $ac_executable_extensions; do
3980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3982        ac_prog_rejected=yes
3983        continue
3984      fi
3985     ac_cv_prog_CC="cc"
3986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990   done
3991 IFS=$as_save_IFS
3992
3993 if test $ac_prog_rejected = yes; then
3994   # We found a bogon in the path, so make sure we never use it.
3995   set dummy $ac_cv_prog_CC
3996   shift
3997   if test $# != 0; then
3998     # We chose a different compiler from the bogus one.
3999     # However, it has the same basename, so the bogon will be chosen
4000     # first if we set CC to just the basename; use the full file name.
4001     shift
4002     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4003   fi
4004 fi
4005 fi
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 $as_echo "$CC" >&6; }
4011 else
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016
4017 fi
4018 if test -z "$CC"; then
4019   if test -n "$ac_tool_prefix"; then
4020   for ac_prog in cl.exe
4021   do
4022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_CC+set}" = set; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   if test -n "$CC"; then
4030   ac_cv_prog_CC="$CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037     for ac_exec_ext in '' $ac_executable_extensions; do
4038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044   done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 $as_echo "$CC" >&6; }
4053 else
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058
4059     test -n "$CC" && break
4060   done
4061 fi
4062 if test -z "$CC"; then
4063   ac_ct_CC=$CC
4064   for ac_prog in cl.exe
4065 do
4066   # Extract the first word of "$ac_prog", so it can be a program name with args.
4067 set dummy $ac_prog; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -n "$ac_ct_CC"; then
4074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083     ac_cv_prog_ac_ct_CC="$ac_prog"
4084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088   done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102
4103   test -n "$ac_ct_CC" && break
4104 done
4105
4106   if test "x$ac_ct_CC" = x; then
4107     CC=""
4108   else
4109     case $cross_compiling:$ac_tool_warned in
4110 yes:)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113 ac_tool_warned=yes ;;
4114 esac
4115     CC=$ac_ct_CC
4116   fi
4117 fi
4118
4119 fi
4120
4121
4122 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124 as_fn_error "no acceptable C compiler found in \$PATH
4125 See \`config.log' for more details." "$LINENO" 5; }
4126
4127 # Provide some information about the compiler.
4128 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4129 set X $ac_compile
4130 ac_compiler=$2
4131 for ac_option in --version -v -V -qversion; do
4132   { { ac_try="$ac_compiler $ac_option >&5"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 $as_echo "$ac_try_echo"; } >&5
4139   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4140   ac_status=$?
4141   if test -s conftest.err; then
4142     sed '10a\
4143 ... rest of stderr output deleted ...
4144          10q' conftest.err >conftest.er1
4145     cat conftest.er1 >&5
4146     rm -f conftest.er1 conftest.err
4147   fi
4148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149   test $ac_status = 0; }
4150 done
4151
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154
4155 int
4156 main ()
4157 {
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 ac_clean_files_save=$ac_clean_files
4164 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4165 # Try to create an executable without -o first, disregard a.out.
4166 # It will help us diagnose broken compilers, and finding out an intuition
4167 # of exeext.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4169 $as_echo_n "checking for C compiler default output file name... " >&6; }
4170 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4171
4172 # The possible output files:
4173 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4174
4175 ac_rmfiles=
4176 for ac_file in $ac_files
4177 do
4178   case $ac_file in
4179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4181   esac
4182 done
4183 rm -f $ac_rmfiles
4184
4185 if { { ac_try="$ac_link_default"
4186 case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192   (eval "$ac_link_default") 2>&5
4193   ac_status=$?
4194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195   test $ac_status = 0; }; then :
4196   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4198 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4199 # so that the user can short-circuit this test for compilers unknown to
4200 # Autoconf.
4201 for ac_file in $ac_files ''
4202 do
4203   test -f "$ac_file" || continue
4204   case $ac_file in
4205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4206         ;;
4207     [ab].out )
4208         # We found the default executable, but exeext='' is most
4209         # certainly right.
4210         break;;
4211     *.* )
4212         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4213         then :; else
4214            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4215         fi
4216         # We set ac_cv_exeext here because the later test for it is not
4217         # safe: cross compilers may not add the suffix if given an `-o'
4218         # argument, so we may need to know it at that point already.
4219         # Even if this section looks crufty: it has the advantage of
4220         # actually working.
4221         break;;
4222     * )
4223         break;;
4224   esac
4225 done
4226 test "$ac_cv_exeext" = no && ac_cv_exeext=
4227
4228 else
4229   ac_file=''
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4232 $as_echo "$ac_file" >&6; }
4233 if test -z "$ac_file"; then :
4234   $as_echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239 { as_fn_set_status 77
4240 as_fn_error "C compiler cannot create executables
4241 See \`config.log' for more details." "$LINENO" 5; }; }
4242 fi
4243 ac_exeext=$ac_cv_exeext
4244
4245 # Check that the compiler produces executables we can run.  If not, either
4246 # the compiler is broken, or we cross compile.
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4248 $as_echo_n "checking whether the C compiler works... " >&6; }
4249 # If not cross compiling, check that we can run a simple program.
4250 if test "$cross_compiling" != yes; then
4251   if { ac_try='./$ac_file'
4252   { { case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261   test $ac_status = 0; }; }; then
4262     cross_compiling=no
4263   else
4264     if test "$cross_compiling" = maybe; then
4265         cross_compiling=yes
4266     else
4267         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error "cannot run C compiled programs.
4270 If you meant to cross compile, use \`--host'.
4271 See \`config.log' for more details." "$LINENO" 5; }
4272     fi
4273   fi
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276 $as_echo "yes" >&6; }
4277
4278 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4279 ac_clean_files=$ac_clean_files_save
4280 # Check that the compiler produces executables we can run.  If not, either
4281 # the compiler is broken, or we cross compile.
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4283 $as_echo_n "checking whether we are cross compiling... " >&6; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4285 $as_echo "$cross_compiling" >&6; }
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4288 $as_echo_n "checking for suffix of executables... " >&6; }
4289 if { { ac_try="$ac_link"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296   (eval "$ac_link") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299   test $ac_status = 0; }; then :
4300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4302 # work properly (i.e., refer to `conftest.exe'), while it won't with
4303 # `rm'.
4304 for ac_file in conftest.exe conftest conftest.*; do
4305   test -f "$ac_file" || continue
4306   case $ac_file in
4307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4309           break;;
4310     * ) break;;
4311   esac
4312 done
4313 else
4314   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error "cannot compute suffix of executables: cannot compile and link
4317 See \`config.log' for more details." "$LINENO" 5; }
4318 fi
4319 rm -f conftest$ac_cv_exeext
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4321 $as_echo "$ac_cv_exeext" >&6; }
4322
4323 rm -f conftest.$ac_ext
4324 EXEEXT=$ac_cv_exeext
4325 ac_exeext=$EXEEXT
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4327 $as_echo_n "checking for suffix of object files... " >&6; }
4328 if test "${ac_cv_objext+set}" = set; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.o conftest.obj
4343 if { { ac_try="$ac_compile"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350   (eval "$ac_compile") 2>&5
4351   ac_status=$?
4352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353   test $ac_status = 0; }; then :
4354   for ac_file in conftest.o conftest.obj conftest.*; do
4355   test -f "$ac_file" || continue;
4356   case $ac_file in
4357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4359        break;;
4360   esac
4361 done
4362 else
4363   $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error "cannot compute suffix of object files: cannot compile
4369 See \`config.log' for more details." "$LINENO" 5; }
4370 fi
4371 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4374 $as_echo "$ac_cv_objext" >&6; }
4375 OBJEXT=$ac_cv_objext
4376 ac_objext=$OBJEXT
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4378 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4379 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384
4385 int
4386 main ()
4387 {
4388 #ifndef __GNUC__
4389        choke me
4390 #endif
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397   ac_compiler_gnu=yes
4398 else
4399   ac_compiler_gnu=no
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4403
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4406 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4407 if test $ac_compiler_gnu = yes; then
4408   GCC=yes
4409 else
4410   GCC=
4411 fi
4412 ac_test_CFLAGS=${CFLAGS+set}
4413 ac_save_CFLAGS=$CFLAGS
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4415 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4416 if test "${ac_cv_prog_cc_g+set}" = set; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   ac_save_c_werror_flag=$ac_c_werror_flag
4420    ac_c_werror_flag=yes
4421    ac_cv_prog_cc_g=no
4422    CFLAGS="-g"
4423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425
4426 int
4427 main ()
4428 {
4429
4430   ;
4431   return 0;
4432 }
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
4435   ac_cv_prog_cc_g=yes
4436 else
4437   CFLAGS=""
4438       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440
4441 int
4442 main ()
4443 {
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450
4451 else
4452   ac_c_werror_flag=$ac_save_c_werror_flag
4453          CFLAGS="-g"
4454          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456
4457 int
4458 main ()
4459 {
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466   ac_cv_prog_cc_g=yes
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473    ac_c_werror_flag=$ac_save_c_werror_flag
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4476 $as_echo "$ac_cv_prog_cc_g" >&6; }
4477 if test "$ac_test_CFLAGS" = set; then
4478   CFLAGS=$ac_save_CFLAGS
4479 elif test $ac_cv_prog_cc_g = yes; then
4480   if test "$GCC" = yes; then
4481     CFLAGS="-g -O2"
4482   else
4483     CFLAGS="-g"
4484   fi
4485 else
4486   if test "$GCC" = yes; then
4487     CFLAGS="-O2"
4488   else
4489     CFLAGS=
4490   fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4493 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4494 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   ac_cv_prog_cc_c89=no
4498 ac_save_CC=$CC
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #include <stdarg.h>
4502 #include <stdio.h>
4503 #include <sys/types.h>
4504 #include <sys/stat.h>
4505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4506 struct buf { int x; };
4507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4508 static char *e (p, i)
4509      char **p;
4510      int i;
4511 {
4512   return p[i];
4513 }
4514 static char *f (char * (*g) (char **, int), char **p, ...)
4515 {
4516   char *s;
4517   va_list v;
4518   va_start (v,p);
4519   s = g (p, va_arg (v,int));
4520   va_end (v);
4521   return s;
4522 }
4523
4524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4525    function prototypes and stuff, but not '\xHH' hex character constants.
4526    These don't provoke an error unfortunately, instead are silently treated
4527    as 'x'.  The following induces an error, until -std is added to get
4528    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4529    array size at least.  It's necessary to write '\x00'==0 to get something
4530    that's true only with -std.  */
4531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4532
4533 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4534    inside strings and character constants.  */
4535 #define FOO(x) 'x'
4536 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4537
4538 int test (int i, double x);
4539 struct s1 {int (*f) (int a);};
4540 struct s2 {int (*f) (double a);};
4541 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4542 int argc;
4543 char **argv;
4544 int
4545 main ()
4546 {
4547 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4553         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4554 do
4555   CC="$ac_save_CC $ac_arg"
4556   if ac_fn_c_try_compile "$LINENO"; then :
4557   ac_cv_prog_cc_c89=$ac_arg
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext
4560   test "x$ac_cv_prog_cc_c89" != "xno" && break
4561 done
4562 rm -f conftest.$ac_ext
4563 CC=$ac_save_CC
4564
4565 fi
4566 # AC_CACHE_VAL
4567 case "x$ac_cv_prog_cc_c89" in
4568   x)
4569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4570 $as_echo "none needed" >&6; } ;;
4571   xno)
4572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4573 $as_echo "unsupported" >&6; } ;;
4574   *)
4575     CC="$CC $ac_cv_prog_cc_c89"
4576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4577 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4578 esac
4579 if test "x$ac_cv_prog_cc_c89" != xno; then :
4580
4581 fi
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589 ac_ext=cpp
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594 if test -z "$CXX"; then
4595   if test -n "$CCC"; then
4596     CXX=$CCC
4597   else
4598     if test -n "$ac_tool_prefix"; then
4599   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4600   do
4601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_CXX+set}" = set; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if test -n "$CXX"; then
4609   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623   done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 CXX=$ac_cv_prog_CXX
4629 if test -n "$CXX"; then
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4631 $as_echo "$CXX" >&6; }
4632 else
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638     test -n "$CXX" && break
4639   done
4640 fi
4641 if test -z "$CXX"; then
4642   ac_ct_CXX=$CXX
4643   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4644 do
4645   # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   if test -n "$ac_ct_CXX"; then
4653   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660     for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     ac_cv_prog_ac_ct_CXX="$ac_prog"
4663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667   done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4673 if test -n "$ac_ct_CXX"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4675 $as_echo "$ac_ct_CXX" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682   test -n "$ac_ct_CXX" && break
4683 done
4684
4685   if test "x$ac_ct_CXX" = x; then
4686     CXX="g++"
4687   else
4688     case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694     CXX=$ac_ct_CXX
4695   fi
4696 fi
4697
4698   fi
4699 fi
4700 # Provide some information about the compiler.
4701 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4702 set X $ac_compile
4703 ac_compiler=$2
4704 for ac_option in --version -v -V -qversion; do
4705   { { ac_try="$ac_compiler $ac_option >&5"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4713   ac_status=$?
4714   if test -s conftest.err; then
4715     sed '10a\
4716 ... rest of stderr output deleted ...
4717          10q' conftest.err >conftest.er1
4718     cat conftest.er1 >&5
4719     rm -f conftest.er1 conftest.err
4720   fi
4721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722   test $ac_status = 0; }
4723 done
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4726 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h.  */
4732
4733 int
4734 main ()
4735 {
4736 #ifndef __GNUC__
4737        choke me
4738 #endif
4739
4740   ;
4741   return 0;
4742 }
4743 _ACEOF
4744 if ac_fn_cxx_try_compile "$LINENO"; then :
4745   ac_compiler_gnu=yes
4746 else
4747   ac_compiler_gnu=no
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4751
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4754 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4755 if test $ac_compiler_gnu = yes; then
4756   GXX=yes
4757 else
4758   GXX=
4759 fi
4760 ac_test_CXXFLAGS=${CXXFLAGS+set}
4761 ac_save_CXXFLAGS=$CXXFLAGS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4763 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4764 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4768    ac_cxx_werror_flag=yes
4769    ac_cv_prog_cxx_g=no
4770    CXXFLAGS="-g"
4771    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h.  */
4773
4774 int
4775 main ()
4776 {
4777
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783   ac_cv_prog_cxx_g=yes
4784 else
4785   CXXFLAGS=""
4786       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h.  */
4788
4789 int
4790 main ()
4791 {
4792
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_cxx_try_compile "$LINENO"; then :
4798
4799 else
4800   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801          CXXFLAGS="-g"
4802          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h.  */
4804
4805 int
4806 main ()
4807 {
4808
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_cxx_try_compile "$LINENO"; then :
4814   ac_cv_prog_cxx_g=yes
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4824 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4825 if test "$ac_test_CXXFLAGS" = set; then
4826   CXXFLAGS=$ac_save_CXXFLAGS
4827 elif test $ac_cv_prog_cxx_g = yes; then
4828   if test "$GXX" = yes; then
4829     CXXFLAGS="-g -O2"
4830   else
4831     CXXFLAGS="-g"
4832   fi
4833 else
4834   if test "$GXX" = yes; then
4835     CXXFLAGS="-O2"
4836   else
4837     CXXFLAGS=
4838   fi
4839 fi
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845
4846
4847 # We must set the default linker to the linker used by gcc for the correct
4848 # operation of libtool.  If LD is not defined and we are using gcc, try to
4849 # set the LD default to the ld used by gcc.
4850 if test -z "$LD"; then
4851   if test "$GCC" = yes; then
4852     case $build in
4853     *-*-mingw*)
4854       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4855     *)
4856       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4857     esac
4858     case $gcc_prog_ld in
4859     # Accept absolute paths.
4860     [\\/]* | [A-Za-z]:[\\/]*)
4861       LD="$gcc_prog_ld" ;;
4862     esac
4863   fi
4864 fi
4865
4866
4867
4868
4869 if test -n "$ac_tool_prefix"; then
4870   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if test -n "$GNATBIND"; then
4878   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892   done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 GNATBIND=$ac_cv_prog_GNATBIND
4898 if test -n "$GNATBIND"; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4900 $as_echo "$GNATBIND" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907 fi
4908 if test -z "$ac_cv_prog_GNATBIND"; then
4909   ac_ct_GNATBIND=$GNATBIND
4910   # Extract the first word of "gnatbind", so it can be a program name with args.
4911 set dummy gnatbind; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$ac_ct_GNATBIND"; then
4918   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4938 if test -n "$ac_ct_GNATBIND"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4940 $as_echo "$ac_ct_GNATBIND" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946   if test "x$ac_ct_GNATBIND" = x; then
4947     GNATBIND="no"
4948   else
4949     case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955     GNATBIND=$ac_ct_GNATBIND
4956   fi
4957 else
4958   GNATBIND="$ac_cv_prog_GNATBIND"
4959 fi
4960
4961 if test -n "$ac_tool_prefix"; then
4962   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4963 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$GNATMAKE"; then
4970   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 GNATMAKE=$ac_cv_prog_GNATMAKE
4990 if test -n "$GNATMAKE"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4992 $as_echo "$GNATMAKE" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999 fi
5000 if test -z "$ac_cv_prog_GNATMAKE"; then
5001   ac_ct_GNATMAKE=$GNATMAKE
5002   # Extract the first word of "gnatmake", so it can be a program name with args.
5003 set dummy gnatmake; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$ac_ct_GNATMAKE"; then
5010   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5030 if test -n "$ac_ct_GNATMAKE"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5032 $as_echo "$ac_ct_GNATMAKE" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038   if test "x$ac_ct_GNATMAKE" = x; then
5039     GNATMAKE="no"
5040   else
5041     case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047     GNATMAKE=$ac_ct_GNATMAKE
5048   fi
5049 else
5050   GNATMAKE="$ac_cv_prog_GNATMAKE"
5051 fi
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5054 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5055 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058   cat >conftest.adb <<EOF
5059 procedure conftest is begin null; end conftest;
5060 EOF
5061 acx_cv_cc_gcc_supports_ada=no
5062 # There is a bug in old released versions of GCC which causes the
5063 # driver to exit successfully when the appropriate language module
5064 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5065 # Therefore we must check for the error message as well as an
5066 # unsuccessful exit.
5067 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5068 # given a .adb file, but produce no object file.  So we must check
5069 # if an object file was really produced to guard against this.
5070 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5071 if test x"$errors" = x && test -f conftest.$ac_objext; then
5072   acx_cv_cc_gcc_supports_ada=yes
5073 fi
5074 rm -f conftest.*
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5077 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5078
5079 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5080   have_gnat=yes
5081 else
5082   have_gnat=no
5083 fi
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5086 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5087 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090    echo abfoo >t1
5091   echo cdfoo >t2
5092   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5093   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5094     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5095       :
5096     else
5097       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5098     fi
5099   fi
5100   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5101     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5102       :
5103     else
5104       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5105     fi
5106   fi
5107   rm t1 t2
5108
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5111 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5112 do_compare="$gcc_cv_prog_cmp_skip"
5113
5114
5115
5116 # See if we are building gcc with C++.
5117 # Check whether --enable-build-with-cxx was given.
5118 if test "${enable_build_with_cxx+set}" = set; then :
5119   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5120 else
5121   ENABLE_BUILD_WITH_CXX=no
5122 fi
5123
5124
5125 # Used for setting $lt_cv_objdir
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5127 $as_echo_n "checking for objdir... " >&6; }
5128 if test "${lt_cv_objdir+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   rm -f .libs 2>/dev/null
5132 mkdir .libs 2>/dev/null
5133 if test -d .libs; then
5134   lt_cv_objdir=.libs
5135 else
5136   # MS-DOS does not allow filenames that begin with a dot.
5137   lt_cv_objdir=_libs
5138 fi
5139 rmdir .libs 2>/dev/null
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5142 $as_echo "$lt_cv_objdir" >&6; }
5143 objdir=$lt_cv_objdir
5144
5145
5146
5147
5148
5149 cat >>confdefs.h <<_ACEOF
5150 #define LT_OBJDIR "$lt_cv_objdir/"
5151 _ACEOF
5152
5153
5154
5155 # Check for GMP, MPFR and MPC
5156 gmplibs="-lmpc -lmpfr -lgmp"
5157 gmpinc=
5158 have_gmp=no
5159
5160 # Specify a location for mpc
5161 # check for this first so it ends up on the link line before mpfr.
5162
5163 # Check whether --with-mpc was given.
5164 if test "${with_mpc+set}" = set; then :
5165   withval=$with_mpc;
5166 fi
5167
5168
5169 # Check whether --with-mpc-include was given.
5170 if test "${with_mpc_include+set}" = set; then :
5171   withval=$with_mpc_include;
5172 fi
5173
5174
5175 # Check whether --with-mpc-lib was given.
5176 if test "${with_mpc_lib+set}" = set; then :
5177   withval=$with_mpc_lib;
5178 fi
5179
5180
5181 if test "x$with_mpc" != x; then
5182   gmplibs="-L$with_mpc/lib $gmplibs"
5183   gmpinc="-I$with_mpc/include $gmpinc"
5184 fi
5185 if test "x$with_mpc_include" != x; then
5186   gmpinc="-I$with_mpc_include $gmpinc"
5187 fi
5188 if test "x$with_mpc_lib" != x; then
5189   gmplibs="-L$with_mpc_lib $gmplibs"
5190 fi
5191 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5192   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5193   gmpinc='-I$$s/mpc/src '"$gmpinc"
5194   # Do not test the mpc version.  Assume that it is sufficient, since
5195   # it is in the source tree, and the library has not been built yet
5196   # but it would be included on the link line in the version check below
5197   # hence making the test fail.
5198   have_gmp=yes
5199 fi
5200
5201 # Specify a location for mpfr
5202 # check for this first so it ends up on the link line before gmp.
5203
5204 # Check whether --with-mpfr-dir was given.
5205 if test "${with_mpfr_dir+set}" = set; then :
5206   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5207 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5208 fi
5209
5210
5211
5212 # Check whether --with-mpfr was given.
5213 if test "${with_mpfr+set}" = set; then :
5214   withval=$with_mpfr;
5215 fi
5216
5217
5218 # Check whether --with-mpfr-include was given.
5219 if test "${with_mpfr_include+set}" = set; then :
5220   withval=$with_mpfr_include;
5221 fi
5222
5223
5224 # Check whether --with-mpfr-lib was given.
5225 if test "${with_mpfr_lib+set}" = set; then :
5226   withval=$with_mpfr_lib;
5227 fi
5228
5229
5230 if test "x$with_mpfr" != x; then
5231   gmplibs="-L$with_mpfr/lib $gmplibs"
5232   gmpinc="-I$with_mpfr/include $gmpinc"
5233 fi
5234 if test "x$with_mpfr_include" != x; then
5235   gmpinc="-I$with_mpfr_include $gmpinc"
5236 fi
5237 if test "x$with_mpfr_lib" != x; then
5238   gmplibs="-L$with_mpfr_lib $gmplibs"
5239 fi
5240 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5241   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5242   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5243   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5244   # Do not test the mpfr version.  Assume that it is sufficient, since
5245   # it is in the source tree, and the library has not been built yet
5246   # but it would be included on the link line in the version check below
5247   # hence making the test fail.
5248   have_gmp=yes
5249 fi
5250
5251 # Specify a location for gmp
5252
5253 # Check whether --with-gmp-dir was given.
5254 if test "${with_gmp_dir+set}" = set; then :
5255   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5256 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5257 fi
5258
5259
5260
5261 # Check whether --with-gmp was given.
5262 if test "${with_gmp+set}" = set; then :
5263   withval=$with_gmp;
5264 fi
5265
5266
5267 # Check whether --with-gmp-include was given.
5268 if test "${with_gmp_include+set}" = set; then :
5269   withval=$with_gmp_include;
5270 fi
5271
5272
5273 # Check whether --with-gmp-lib was given.
5274 if test "${with_gmp_lib+set}" = set; then :
5275   withval=$with_gmp_lib;
5276 fi
5277
5278
5279
5280 if test "x$with_gmp" != x; then
5281   gmplibs="-L$with_gmp/lib $gmplibs"
5282   gmpinc="-I$with_gmp/include $gmpinc"
5283 fi
5284 if test "x$with_gmp_include" != x; then
5285   gmpinc="-I$with_gmp_include $gmpinc"
5286 fi
5287 if test "x$with_gmp_lib" != x; then
5288   gmplibs="-L$with_gmp_lib $gmplibs"
5289 fi
5290 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5291   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5292   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5293   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5294   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5295   # Do not test the gmp version.  Assume that it is sufficient, since
5296   # it is in the source tree, and the library has not been built yet
5297   # but it would be included on the link line in the version check below
5298   # hence making the test fail.
5299   have_gmp=yes
5300 fi
5301
5302 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5303   have_gmp=yes
5304   saved_CFLAGS="$CFLAGS"
5305   CFLAGS="$CFLAGS $gmpinc"
5306   # Check for the recommended and required versions of GMP.
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5308 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5309
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h.  */
5312 #include "gmp.h"
5313 int
5314 main ()
5315 {
5316
5317   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5318   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5319   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5320   choke me
5321   #endif
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h.  */
5330 #include <gmp.h>
5331 int
5332 main ()
5333 {
5334
5335   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5336   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5337   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5338   choke me
5339   #endif
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5350 $as_echo "buggy but acceptable" >&6; }
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }; have_gmp=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358
5359   # If we have GMP, check the MPFR version.
5360   if test x"$have_gmp" = xyes; then
5361     # Check for the recommended and required versions of MPFR.
5362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5363 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h.  */
5366 #include <gmp.h>
5367     #include <mpfr.h>
5368 int
5369 main ()
5370 {
5371
5372     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5373     choke me
5374     #endif
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383 #include <gmp.h>
5384     #include <mpfr.h>
5385 int
5386 main ()
5387 {
5388
5389     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5390     choke me
5391     #endif
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399 $as_echo "yes" >&6; }
5400 else
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5402 $as_echo "buggy but acceptable" >&6; }
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }; have_gmp=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410   fi
5411
5412   # Check for the MPC header version.
5413   if test x"$have_gmp" = xyes ; then
5414     # Check for the recommended and required versions of MPC.
5415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5416 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h.  */
5419 #include <mpc.h>
5420 int
5421 main ()
5422 {
5423
5424     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5425     choke me
5426     #endif
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h.  */
5435 #include <mpc.h>
5436 int
5437 main ()
5438 {
5439
5440     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5441     choke me
5442     #endif
5443
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5453 $as_echo "buggy but acceptable" >&6; }
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 else
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }; have_gmp=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461   fi
5462
5463   # Now check the MPFR library.
5464   if test x"$have_gmp" = xyes; then
5465     saved_LIBS="$LIBS"
5466     LIBS="$LIBS $gmplibs"
5467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5468 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h.  */
5471 #include <mpc.h>
5472 int
5473 main ()
5474 {
5475
5476     mpfr_t n;
5477     mpfr_t x;
5478     mpc_t c;
5479     int t;
5480     mpfr_init (n);
5481     mpfr_init (x);
5482     mpfr_atan2 (n, n, x, GMP_RNDN);
5483     mpfr_erfc (n, x, GMP_RNDN);
5484     mpfr_subnormalize (x, t, GMP_RNDN);
5485     mpfr_clear(n);
5486     mpfr_clear(x);
5487     mpc_init2 (c, 53);
5488     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5489     mpc_cosh (c, c, MPC_RNDNN);
5490     mpc_pow (c, c, c, MPC_RNDNN);
5491     mpc_acosh (c, c, MPC_RNDNN);
5492     mpc_clear (c);
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_link "$LINENO"; then :
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5501 else
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }; have_gmp=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext \
5506     conftest$ac_exeext conftest.$ac_ext
5507     LIBS="$saved_LIBS"
5508   fi
5509
5510   CFLAGS="$saved_CFLAGS"
5511
5512 # The library versions listed in the error message below should match
5513 # the HARD-minimums enforced above.
5514   if test x$have_gmp != xyes; then
5515     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5516 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5517 their locations.  Source code for these libraries can be found at
5518 their respective hosting sites as well as at
5519 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5520 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5521 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5522 make sure that you have installed both the libraries and the header
5523 files.  They may be located in separate packages." "$LINENO" 5
5524   fi
5525 fi
5526
5527 # Flags needed for both GMP, MPFR and/or MPC.
5528
5529
5530
5531
5532
5533
5534 # Allow host libstdc++ to be specified for static linking with PPL.
5535
5536 # Check whether --with-host-libstdcxx was given.
5537 if test "${with_host_libstdcxx+set}" = set; then :
5538   withval=$with_host_libstdcxx;
5539 fi
5540
5541
5542 case $with_host_libstdcxx in
5543   no|yes)
5544     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5545     ;;
5546 esac
5547
5548 # Linker flags to use for stage1 or when not boostrapping.
5549
5550 # Check whether --with-stage1-ldflags was given.
5551 if test "${with_stage1_ldflags+set}" = set; then :
5552   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5553    stage1_ldflags=
5554  else
5555    stage1_ldflags=$withval
5556  fi
5557 else
5558   stage1_ldflags=
5559 fi
5560
5561
5562
5563 # Libraries to use for stage1 or when not bootstrapping.
5564
5565 # Check whether --with-stage1-libs was given.
5566 if test "${with_stage1_libs+set}" = set; then :
5567   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5568    stage1_libs=
5569  else
5570    stage1_libs=$withval
5571  fi
5572 else
5573   stage1_libs=$with_host_libstdcxx
5574 fi
5575
5576
5577
5578 # Libraries to use for stage2 and later builds.  This defaults to the
5579 # argument passed to --with-host-libstdcxx.
5580
5581 # Check whether --with-boot-libs was given.
5582 if test "${with_boot_libs+set}" = set; then :
5583   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5584    poststage1_libs=
5585  else
5586    poststage1_libs=$withval
5587  fi
5588 else
5589   poststage1_libs=$with_host_libstdcxx
5590 fi
5591
5592
5593
5594 # Linker flags to use for stage2 and later builds.
5595
5596 # Check whether --with-boot-ldflags was given.
5597 if test "${with_boot_ldflags+set}" = set; then :
5598   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5599    poststage1_ldflags=
5600  else
5601    poststage1_ldflags=$withval
5602  fi
5603 else
5604   poststage1_ldflags=
5605  # With --enable-build-with-cxx, default to linking libstdc++ and
5606  # libgcc statically.  But if the user explicitly specified the
5607  # libraries to use, trust that they are doing what they want.
5608  if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5609    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5610  fi
5611 fi
5612
5613
5614
5615 # Check for PPL
5616 ppllibs=" -lppl_c -lppl -lgmpxx"
5617 pplinc=
5618
5619
5620 # Check whether --with-ppl was given.
5621 if test "${with_ppl+set}" = set; then :
5622   withval=$with_ppl;
5623 fi
5624
5625
5626 # Check whether --with-ppl-include was given.
5627 if test "${with_ppl_include+set}" = set; then :
5628   withval=$with_ppl_include;
5629 fi
5630
5631
5632 # Check whether --with-ppl-lib was given.
5633 if test "${with_ppl_lib+set}" = set; then :
5634   withval=$with_ppl_lib;
5635 fi
5636
5637
5638 case $with_ppl in
5639   no)
5640     ppllibs=
5641     ;;
5642   "" | yes)
5643     ;;
5644   *)
5645     ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5646     pplinc="-I$with_ppl/include $pplinc"
5647     ;;
5648 esac
5649 if test "x$with_ppl_include" != x; then
5650   pplinc="-I$with_ppl_include $pplinc"
5651 fi
5652 if test "x$with_ppl_lib" != x; then
5653   ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5654 fi
5655 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5656   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5657   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5658   enable_ppl_version_check=no
5659 fi
5660
5661 # Check whether --enable-ppl-version-check was given.
5662 if test "${enable_ppl_version_check+set}" = set; then :
5663   enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5664 else
5665   ENABLE_PPL_CHECK=yes
5666 fi
5667
5668
5669 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5670   saved_CFLAGS="$CFLAGS"
5671   CFLAGS="$CFLAGS $pplinc $gmpinc"
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5673 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h.  */
5676 #include "ppl_c.h"
5677 int
5678 main ()
5679 {
5680
5681   #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5682   choke me
5683   #endif
5684
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691 $as_echo "yes" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697   CFLAGS="$saved_CFLAGS"
5698 fi
5699
5700 # Flags needed for PPL
5701
5702
5703
5704
5705 # Check for CLOOG
5706
5707
5708
5709 # Check whether --with-cloog was given.
5710 if test "${with_cloog+set}" = set; then :
5711   withval=$with_cloog;
5712 fi
5713
5714
5715 # Check whether --with-cloog-include was given.
5716 if test "${with_cloog_include+set}" = set; then :
5717   withval=$with_cloog_include;
5718 fi
5719
5720
5721 # Check whether --with-cloog-lib was given.
5722 if test "${with_cloog_lib+set}" = set; then :
5723   withval=$with_cloog_lib;
5724 fi
5725
5726
5727   # Check whether --enable-cloog-backend was given.
5728 if test "${enable_cloog_backend+set}" = set; then :
5729   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5730         cloog_backend=isl
5731       elif test "x${enableval}" = "xppl"; then
5732         cloog_backend=ppl
5733       else
5734         cloog_backend=ppl-legacy
5735       fi
5736 else
5737   cloog_backend=ppl-legacy
5738 fi
5739
5740   # Check whether --enable-cloog-version-check was given.
5741 if test "${enable_cloog_version_check+set}" = set; then :
5742   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5743 else
5744   ENABLE_CLOOG_CHECK=yes
5745 fi
5746
5747
5748   # Initialize clooglibs and clooginc.
5749   case $with_cloog in
5750     no)
5751       clooglibs=
5752       clooginc=
5753       ;;
5754     "" | yes)
5755       ;;
5756     *)
5757       clooglibs="-L$with_cloog/lib"
5758       clooginc="-I$with_cloog/include"
5759       ;;
5760   esac
5761   if test "x${with_cloog_include}" != x ; then
5762     clooginc="-I$with_cloog_include"
5763   fi
5764   if test "x${with_cloog_lib}" != x; then
5765     clooglibs="-L$with_cloog_lib"
5766   fi
5767
5768
5769
5770
5771
5772 if test "x$with_ppl" = "xno"; then
5773   with_cloog=no
5774 fi
5775 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5776   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5777   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5778   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5779 fi
5780 if test "x$with_cloog" != "xno"; then
5781
5782
5783
5784   _cloog_saved_CFLAGS=$CFLAGS
5785   _cloog_saved_CPPFLAGS=$CPPFLAGS
5786   _cloog_saved_LDFLAGS=$LDFLAGS
5787   _cloog_saved_LIBS=$LIBS
5788
5789   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5790
5791     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5792   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5793   LDFLAGS="${LDFLAGS} ${clooglibs}"
5794
5795   case $cloog_backend in
5796     "ppl-legacy")
5797     CFLAGS="${CFLAGS} ${pplinc}"
5798     LDFLAGS="${LDFLAGS} ${ppllibs}"
5799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5800 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5801 if test "${gcc_cv_cloog_type+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   LIBS="-lcloog ${_cloog_saved_LIBS}"
5805       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h.  */
5807 #include "cloog/cloog.h"
5808 int
5809 main ()
5810 {
5811 #ifndef CLOOG_PPL_BACKEND
5812     choke me
5813    #endif
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"; then :
5819   gcc_cv_cloog_type="PPL Legacy"
5820 else
5821   gcc_cv_cloog_type=no
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext \
5824     conftest$ac_exeext conftest.$ac_ext
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5827 $as_echo "$gcc_cv_cloog_type" >&6; }
5828     ;;
5829     "isl")
5830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5831 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5832 if test "${gcc_cv_cloog_type+set}" = set; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5836       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h.  */
5838 #include "cloog/cloog.h"
5839 int
5840 main ()
5841 {
5842 cloog_version ()
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_link "$LINENO"; then :
5848   gcc_cv_cloog_type="ISL"
5849 else
5850   gcc_cv_cloog_type=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext \
5853     conftest$ac_exeext conftest.$ac_ext
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5856 $as_echo "$gcc_cv_cloog_type" >&6; }
5857     ;;
5858     "ppl")
5859     CFLAGS="${CFLAGS} ${pplinc}"
5860     LDFLAGS="${LDFLAGS} ${ppllibs}"
5861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5862 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5863 if test "${gcc_cv_cloog_type+set}" = set; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869 #include "cloog/cloog.h"
5870    #include "cloog/ppl/cloog.h"
5871 int
5872 main ()
5873 {
5874 cloog_version ()
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"; then :
5880   gcc_cv_cloog_type="PPL"
5881 else
5882   gcc_cv_cloog_type=no
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext \
5885     conftest$ac_exeext conftest.$ac_ext
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5888 $as_echo "$gcc_cv_cloog_type" >&6; }
5889     ;;
5890     *)
5891       gcc_cv_cloog_type=""
5892   esac
5893
5894   case $gcc_cv_cloog_type in
5895     "PPL Legacy")
5896       clooginc="${clooginc}"
5897       clooglibs="${clooglibs} -lcloog"
5898       cloog_org=no
5899       ;;
5900     "ISL")
5901       clooginc="${clooginc} ${_cloogorginc}"
5902       clooglibs="${clooglibs} -lcloog-isl"
5903       cloog_org=yes
5904       ;;
5905     "PPL")
5906       clooginc="${clooginc} ${_cloogorginc}"
5907       clooglibs="${clooglibs} -lcloog-ppl"
5908       cloog_org=yes
5909       ;;
5910     *)
5911       clooglibs=
5912       clooginc=
5913       cloog_org=
5914       ;;
5915   esac
5916
5917   LIBS=$_cloog_saved_LIBS
5918   CFLAGS=$_cloog_saved_CFLAGS
5919   CPPFLAGS=$_cloog_saved_CPPFLAGS
5920   LDFLAGS=$_cloog_saved_LDFLAGS
5921
5922
5923
5924
5925
5926   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5927     _cloog_saved_CFLAGS=$CFLAGS
5928     _cloog_saved_LDFLAGS=$LDFLAGS
5929
5930     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5931     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5932
5933     if test "${cloog_org}" = yes ; then
5934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5935 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5936 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h.  */
5941 #include "cloog/cloog.h"
5942 int
5943 main ()
5944 {
5945 #if CLOOG_VERSION_MAJOR != 0 \
5946     || CLOOG_VERSION_MINOR != 14 \
5947     || CLOOG_VERSION_REVISION < 0
5948     choke me
5949    #endif
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955   gcc_cv_cloog_ct_0_14_0=yes
5956 else
5957   gcc_cv_cloog_ct_0_14_0=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5962 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5963     elif test "${cloog_org}" = no ; then
5964       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5965 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5966 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 #include "cloog/cloog.h"
5972 int
5973 main ()
5974 {
5975 #if CLOOG_VERSION_MAJOR != 0 \
5976     || CLOOG_VERSION_MINOR != 15 \
5977     || CLOOG_VERSION_REVISION < 5
5978     choke me
5979    #endif
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987 #include "cloog/cloog.h"
5988 int
5989 main ()
5990 {
5991 #if CLOOG_VERSION_MAJOR != 0 \
5992     || CLOOG_VERSION_MINOR != 15 \
5993     || CLOOG_VERSION_REVISION < 9
5994     choke me
5995    #endif
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001   gcc_cv_cloog_ct_0_15_5=yes
6002 else
6003   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 else
6007   gcc_cv_cloog_ct_0_15_5=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6012 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6013     fi
6014
6015     CFLAGS=$_cloog_saved_CFLAGS
6016     LDFLAGS=$_cloog_saved_LDFLAGS
6017   fi
6018
6019
6020
6021
6022
6023
6024
6025   if test "x${with_cloog}" != x \
6026     || test "x${with_cloog_include}" != x \
6027     || test "x${with_cloog_lib}" != x ; then
6028     graphite_requested=yes
6029   else
6030     graphite_requested=no
6031   fi
6032
6033
6034
6035   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6036     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6037     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6038     clooglibs=
6039     clooginc=
6040   fi
6041
6042   if test "${graphite_requested}" = yes \
6043     && test "x${clooglibs}" = x \
6044     && test "x${clooginc}" = x ; then
6045
6046     as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6047   fi
6048
6049
6050 fi
6051
6052 # Check for LTO support.
6053 # Check whether --enable-lto was given.
6054 if test "${enable_lto+set}" = set; then :
6055   enableval=$enable_lto; enable_lto=$enableval
6056 else
6057   enable_lto=yes; default_enable_lto=yes
6058 fi
6059
6060
6061
6062
6063
6064 target_elf=no
6065 case $target in
6066   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6067   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6068   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6069     target_elf=no
6070     ;;
6071   *)
6072     target_elf=yes
6073     ;;
6074 esac
6075
6076 if test $target_elf = yes; then :
6077   # ELF platforms build the lto-plugin always.
6078   build_lto_plugin=yes
6079
6080 else
6081   if test x"$default_enable_lto" = x"yes" ; then
6082     case $target in
6083       *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6084       # On other non-ELF platforms, LTO has yet to be validated.
6085       *) enable_lto=no ;;
6086     esac
6087   else
6088   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6089   # It would also be nice to check the binutils support, but we don't
6090   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6091   # warn during gcc/ subconfigure; unless you're bootstrapping with
6092   # -flto it won't be needed until after installation anyway.
6093     case $target in
6094       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6095       *) if test x"$enable_lto" = x"yes"; then
6096         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6097         fi
6098       ;;
6099     esac
6100   fi
6101   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6102   # Build it unless LTO was explicitly disabled.
6103   case $target in
6104     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6105     *) ;;
6106   esac
6107
6108 fi
6109
6110
6111
6112 # By default, C is the only stage 1 language.
6113 stage1_languages=,c,
6114
6115 # Target libraries that we bootstrap.
6116 bootstrap_target_libs=,target-libgcc,
6117
6118 # Figure out what language subdirectories are present.
6119 # Look if the user specified --enable-languages="..."; if not, use
6120 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6121 # go away some day.
6122 # NB:  embedded tabs in this IF block -- do not untabify
6123 if test -d ${srcdir}/gcc; then
6124   if test x"${enable_languages+set}" != xset; then
6125     if test x"${LANGUAGES+set}" = xset; then
6126       enable_languages="${LANGUAGES}"
6127         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6128     else
6129       enable_languages=all
6130     fi
6131   else
6132     if test x"${enable_languages}" = x ||
6133        test x"${enable_languages}" = xyes;
6134        then
6135       echo configure.in: --enable-languages needs at least one language argument 1>&2
6136       exit 1
6137     fi
6138   fi
6139   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6140
6141   # 'f95' is the old name for the 'fortran' language. We issue a warning
6142   # and make the substitution.
6143   case ,${enable_languages}, in
6144     *,f95,*)
6145       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6146       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6147       ;;
6148   esac
6149
6150   # First scan to see if an enabled language requires some other language.
6151   # We assume that a given config-lang.in will list all the language
6152   # front ends it requires, even if some are required indirectly.
6153   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6154     case ${lang_frag} in
6155       ..) ;;
6156       # The odd quoting in the next line works around
6157       # an apparent bug in bash 1.12 on linux.
6158       ${srcdir}/gcc/[*]/config-lang.in) ;;
6159       *)
6160         # From the config-lang.in, get $language, $lang_requires, and
6161         # $lang_requires_boot_languages.
6162         language=
6163         lang_requires=
6164         lang_requires_boot_languages=
6165         . ${lang_frag}
6166         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6167           case ,${enable_languages}, in
6168             *,$other,*) ;;
6169             *,all,*) ;;
6170             *,$language,*)
6171               echo " \`$other' language required by \`$language'; enabling" 1>&2
6172               enable_languages="${enable_languages},${other}"
6173               ;;
6174           esac
6175         done
6176         for other in ${lang_requires_boot_languages} ; do
6177           if test "$other" != "c"; then
6178             case ,${enable_stage1_languages}, in
6179               *,$other,*) ;;
6180               *,all,*) ;;
6181               *)
6182                 case ,${enable_languages}, in
6183                   *,$language,*)
6184                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6185                     enable_stage1_languages="$enable_stage1_languages,${other}"
6186                     ;;
6187                 esac
6188                 ;;
6189             esac
6190           fi
6191         done
6192         ;;
6193     esac
6194   done
6195
6196   new_enable_languages=,c,
6197
6198   # If LTO is enabled, add the LTO front end.
6199   extra_host_libiberty_configure_flags=
6200   if test "$enable_lto" = "yes" ; then
6201     case ,${enable_languages}, in
6202       *,lto,*) ;;
6203       *) enable_languages="${enable_languages},lto" ;;
6204     esac
6205     if test "${build_lto_plugin}" = "yes" ; then
6206       configdirs="$configdirs lto-plugin"
6207       extra_host_libiberty_configure_flags=--enable-shared
6208     fi
6209   fi
6210
6211
6212   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6213   potential_languages=,c,
6214
6215   enabled_target_libs=
6216   disabled_target_libs=
6217
6218   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6219     case ${lang_frag} in
6220       ..) ;;
6221       # The odd quoting in the next line works around
6222       # an apparent bug in bash 1.12 on linux.
6223       ${srcdir}/gcc/[*]/config-lang.in) ;;
6224       *)
6225         # From the config-lang.in, get $language, $target_libs,
6226         # $lang_dirs, $boot_language, and $build_by_default
6227         language=
6228         target_libs=
6229         lang_dirs=
6230         subdir_requires=
6231         boot_language=no
6232         build_by_default=yes
6233         . ${lang_frag}
6234         if test x${language} = x; then
6235           echo "${lang_frag} doesn't set \$language." 1>&2
6236           exit 1
6237         fi
6238
6239         if test "$language" = "c++" \
6240            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6241           boot_language=yes
6242         fi
6243
6244         case ,${enable_languages}, in
6245           *,${language},*)
6246             # Language was explicitly selected; include it.
6247             add_this_lang=yes
6248             ;;
6249           *,all,*)
6250             # 'all' was selected, select it if it is a default language
6251             add_this_lang=${build_by_default}
6252             ;;
6253           *)
6254             add_this_lang=no
6255             ;;
6256         esac
6257
6258         # Disable languages that need other directories if these aren't available.
6259         for i in $subdir_requires; do
6260           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6261           case ,${enable_languages}, in
6262             *,${language},*)
6263               # Specifically requested language; tell them.
6264               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6265               ;;
6266             *)
6267               # Silently disable.
6268               add_this_lang=unsupported
6269               ;;
6270           esac
6271         done
6272
6273         # Disable Ada if no preexisting GNAT is available.
6274         case ,${enable_languages},:${language}:${have_gnat} in
6275           *,${language},*:ada:no)
6276             # Specifically requested language; tell them.
6277             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6278             ;;
6279           *:ada:no)
6280             # Silently disable.
6281             add_this_lang=unsupported
6282             ;;
6283         esac
6284
6285         # Disable a language that is unsupported by the target.
6286         case " $unsupported_languages " in
6287           *" $language "*)
6288             add_this_lang=unsupported
6289             ;;
6290         esac
6291
6292         case $add_this_lang in
6293           unsupported)
6294             # Remove language-dependent dirs.
6295             disabled_target_libs="$disabled_target_libs $target_libs"
6296             noconfigdirs="$noconfigdirs $lang_dirs"
6297             ;;
6298           no)
6299             # Remove language-dependent dirs; still show language as supported.
6300             disabled_target_libs="$disabled_target_libs $target_libs"
6301             noconfigdirs="$noconfigdirs $lang_dirs"
6302             potential_languages="${potential_languages}${language},"
6303             ;;
6304           yes)
6305             new_enable_languages="${new_enable_languages}${language},"
6306             potential_languages="${potential_languages}${language},"
6307             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6308             enabled_target_libs="$enabled_target_libs $target_libs"
6309             case "${boot_language}:,$enable_stage1_languages," in
6310               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6311                 # Add to (comma-separated) list of stage 1 languages.
6312                 case ",$stage1_languages," in
6313                   *,$language,* | ,yes, | ,all,) ;;
6314                   *) stage1_languages="${stage1_languages}${language}," ;;
6315                 esac
6316                 # We need to bootstrap any supporting libraries.
6317                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6318                 ;;
6319             esac
6320             ;;
6321         esac
6322         ;;
6323     esac
6324   done
6325
6326   # Add target libraries which are only needed for disabled languages
6327   # to noconfigdirs.
6328   if test -n "$disabled_target_libs"; then
6329     for dir in $disabled_target_libs; do
6330       case " $enabled_target_libs " in
6331       *" ${dir} "*) ;;
6332       *) noconfigdirs="$noconfigdirs $dir" ;;
6333       esac
6334     done
6335   fi
6336
6337   # Check whether --enable-stage1-languages was given.
6338 if test "${enable_stage1_languages+set}" = set; then :
6339   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6340     ,no,|,,)
6341       # Set it to something that will have no effect in the loop below
6342       enable_stage1_languages=c ;;
6343     ,yes,)
6344       enable_stage1_languages=`echo $new_enable_languages | \
6345         sed -e "s/^,//" -e "s/,$//" ` ;;
6346     *,all,*)
6347       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6348         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6349   esac
6350
6351   # Add "good" languages from enable_stage1_languages to stage1_languages,
6352   # while "bad" languages go in missing_languages.  Leave no duplicates.
6353   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6354     case $potential_languages in
6355       *,$i,*)
6356         case $stage1_languages in
6357           *,$i,*) ;;
6358           *) stage1_languages="$stage1_languages$i," ;;
6359         esac ;;
6360       *)
6361         case $missing_languages in
6362           *,$i,*) ;;
6363           *) missing_languages="$missing_languages$i," ;;
6364         esac ;;
6365      esac
6366   done
6367 fi
6368
6369
6370   # Remove leading/trailing commas that were added for simplicity
6371   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6372   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6373   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6374   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6375
6376   if test "x$missing_languages" != x; then
6377     as_fn_error "
6378 The following requested languages could not be built: ${missing_languages}
6379 Supported languages are: ${potential_languages}" "$LINENO" 5
6380   fi
6381   if test "x$new_enable_languages" != "x$enable_languages"; then
6382     echo The following languages will be built: ${new_enable_languages}
6383     enable_languages="$new_enable_languages"
6384   fi
6385
6386
6387   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6388 fi
6389
6390 # Handle --disable-<component> generically.
6391 for dir in $configdirs $build_configdirs $target_configdirs ; do
6392   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6393   varname=`echo $dirname | sed -e s/+/_/g`
6394   if eval test x\${enable_${varname}} "=" xno ; then
6395     noconfigdirs="$noconfigdirs $dir"
6396   fi
6397 done
6398
6399 # Check for Boehm's garbage collector
6400 # Check whether --enable-objc-gc was given.
6401 if test "${enable_objc_gc+set}" = set; then :
6402   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6403   *,objc,*:*:yes:*target-boehm-gc*)
6404     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6405     ;;
6406 esac
6407 fi
6408
6409
6410 # Make sure we only build Boehm's garbage collector if required.
6411 case ,${enable_languages},:${enable_objc_gc} in
6412   *,objc,*:yes)
6413     # Keep target-boehm-gc if requested for Objective-C.
6414     ;;
6415   *)
6416     # Otherwise remove target-boehm-gc depending on target-libjava.
6417     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6418       noconfigdirs="$noconfigdirs target-boehm-gc"
6419     fi
6420     ;;
6421 esac
6422
6423 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6424 # $build_configdirs and $target_configdirs.
6425 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6426
6427 notsupp=""
6428 for dir in . $skipdirs $noconfigdirs ; do
6429   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6430   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6432     if test -r $srcdir/$dirname/configure ; then
6433       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6434         true
6435       else
6436         notsupp="$notsupp $dir"
6437       fi
6438     fi
6439   fi
6440   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6441     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6442     if test -r $srcdir/$dirname/configure ; then
6443       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6444         true
6445       else
6446         notsupp="$notsupp $dir"
6447       fi
6448     fi
6449   fi
6450   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6452     if test -r $srcdir/$dirname/configure ; then
6453       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6454         true
6455       else
6456         notsupp="$notsupp $dir"
6457       fi
6458     fi
6459   fi
6460 done
6461
6462 # Sometimes the tools are distributed with libiberty but with no other
6463 # libraries.  In that case, we don't want to build target-libiberty.
6464 # Don't let libgcc imply libiberty either.
6465 if test -n "${target_configdirs}" ; then
6466   libgcc=
6467   others=
6468   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6469     if test "$i" = "libgcc"; then
6470       libgcc=target-libgcc
6471     elif test "$i" != "libiberty" ; then
6472       if test -r $srcdir/$i/configure ; then
6473         others=yes;
6474         break;
6475       fi
6476     fi
6477   done
6478   if test -z "${others}" ; then
6479     target_configdirs=$libgcc
6480   fi
6481 fi
6482
6483 # Quietly strip out all directories which aren't configurable in this tree.
6484 # This relies on all configurable subdirectories being autoconfiscated, which
6485 # is now the case.
6486 build_configdirs_all="$build_configdirs"
6487 build_configdirs=
6488 for i in ${build_configdirs_all} ; do
6489   j=`echo $i | sed -e s/build-//g`
6490   if test -f ${srcdir}/$j/configure ; then
6491     build_configdirs="${build_configdirs} $i"
6492   fi
6493 done
6494
6495 configdirs_all="$configdirs"
6496 configdirs=
6497 for i in ${configdirs_all} ; do
6498   if test -f ${srcdir}/$i/configure ; then
6499     configdirs="${configdirs} $i"
6500   fi
6501 done
6502
6503 target_configdirs_all="$target_configdirs"
6504 target_configdirs=
6505 for i in ${target_configdirs_all} ; do
6506   j=`echo $i | sed -e s/target-//g`
6507   if test -f ${srcdir}/$j/configure ; then
6508     target_configdirs="${target_configdirs} $i"
6509   fi
6510 done
6511
6512 # Produce a warning message for the subdirs we can't configure.
6513 # This isn't especially interesting in the Cygnus tree, but in the individual
6514 # FSF releases, it's important to let people know when their machine isn't
6515 # supported by the one or two programs in a package.
6516
6517 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6518   # If $appdirs is non-empty, at least one of those directories must still
6519   # be configured, or we error out.  (E.g., if the gas release supports a
6520   # specified target in some subdirs but not the gas subdir, we shouldn't
6521   # pretend that all is well.)
6522   if test -n "$appdirs" ; then
6523     for dir in $appdirs ; do
6524       if test -r $dir/Makefile.in ; then
6525         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526           appdirs=""
6527           break
6528         fi
6529         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6530           appdirs=""
6531           break
6532         fi
6533       fi
6534     done
6535     if test -n "$appdirs" ; then
6536       echo "*** This configuration is not supported by this package." 1>&2
6537       exit 1
6538     fi
6539   fi
6540   # Okay, some application will build, or we don't care to check.  Still
6541   # notify of subdirs not getting built.
6542   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6543   echo "    ${notsupp}" 1>&2
6544   echo "    (Any other directories should still work fine.)" 1>&2
6545 fi
6546
6547 case "$host" in
6548   *msdosdjgpp*)
6549     enable_gdbtk=no ;;
6550 esac
6551
6552 # To find our prefix, in gcc_cv_tool_prefix.
6553
6554 # The user is always right.
6555 if test "${PATH_SEPARATOR+set}" != set; then
6556   echo "#! /bin/sh" >conf$$.sh
6557   echo  "exit 0"   >>conf$$.sh
6558   chmod +x conf$$.sh
6559   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6560     PATH_SEPARATOR=';'
6561   else
6562     PATH_SEPARATOR=:
6563   fi
6564   rm -f conf$$.sh
6565 fi
6566
6567
6568
6569 if test "x$exec_prefix" = xNONE; then
6570         if test "x$prefix" = xNONE; then
6571                 gcc_cv_tool_prefix=$ac_default_prefix
6572         else
6573                 gcc_cv_tool_prefix=$prefix
6574         fi
6575 else
6576         gcc_cv_tool_prefix=$exec_prefix
6577 fi
6578
6579 # If there is no compiler in the tree, use the PATH only.  In any
6580 # case, if there is no compiler in the tree nobody should use
6581 # AS_FOR_TARGET and LD_FOR_TARGET.
6582 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6583     gcc_version=`cat $srcdir/gcc/BASE-VER`
6584     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6586     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6587     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6588     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6590 else
6591     gcc_cv_tool_dirs=
6592 fi
6593
6594 if test x$build = x$target && test -n "$md_exec_prefix"; then
6595         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6596 fi
6597
6598
6599
6600 copy_dirs=
6601
6602
6603 # Check whether --with-build-sysroot was given.
6604 if test "${with_build_sysroot+set}" = set; then :
6605   withval=$with_build_sysroot; if test x"$withval" != x ; then
6606      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6607    fi
6608 else
6609   SYSROOT_CFLAGS_FOR_TARGET=
6610 fi
6611
6612
6613
6614
6615 # Check whether --with-debug-prefix-map was given.
6616 if test "${with_debug_prefix_map+set}" = set; then :
6617   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6618      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6619      for debug_map in $withval; do
6620        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6621      done
6622    fi
6623 else
6624   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6625 fi
6626
6627
6628
6629 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6630 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6631 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6632 # We want to ensure that TARGET libraries (which we know are built with
6633 # gcc) are built with "-O2 -g", so include those options when setting
6634 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6635 if test "x$CFLAGS_FOR_TARGET" = x; then
6636   CFLAGS_FOR_TARGET=$CFLAGS
6637   case " $CFLAGS " in
6638     *" -O2 "*) ;;
6639     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6640   esac
6641   case " $CFLAGS " in
6642     *" -g "* | *" -g3 "*) ;;
6643     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6644   esac
6645 fi
6646
6647
6648 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6649   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6650   case " $CXXFLAGS " in
6651     *" -O2 "*) ;;
6652     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6653   esac
6654   case " $CXXFLAGS " in
6655     *" -g "* | *" -g3 "*) ;;
6656     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6657   esac
6658 fi
6659
6660
6661 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6662 # the named directory are copied to $(tooldir)/sys-include.
6663 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6664   if test x${is_cross_compiler} = xno ; then
6665     echo 1>&2 '***' --with-headers is only supported when cross compiling
6666     exit 1
6667   fi
6668   if test x"${with_headers}" != xyes ; then
6669     x=${gcc_cv_tool_prefix}
6670     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6671   fi
6672 fi
6673
6674 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6675 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6676 # are permitted.
6677 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6678   if test x${is_cross_compiler} = xno ; then
6679     echo 1>&2 '***' --with-libs is only supported when cross compiling
6680     exit 1
6681   fi
6682   if test x"${with_libs}" != xyes ; then
6683     # Copy the libraries in reverse order, so that files in the first named
6684     # library override files in subsequent libraries.
6685     x=${gcc_cv_tool_prefix}
6686     for l in ${with_libs}; do
6687       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6688     done
6689   fi
6690 fi
6691
6692 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6693 #
6694 # This is done by determining whether or not the appropriate directory
6695 # is available, and by checking whether or not specific configurations
6696 # have requested that this magic not happen.
6697 #
6698 # The command line options always override the explicit settings in
6699 # configure.in, and the settings in configure.in override this magic.
6700 #
6701 # If the default for a toolchain is to use GNU as and ld, and you don't
6702 # want to do that, then you should use the --without-gnu-as and
6703 # --without-gnu-ld options for the configure script.  Similarly, if
6704 # the default is to use the included zlib and you don't want to do that,
6705 # you should use the --with-system-zlib option for the configure script.
6706
6707 if test x${use_gnu_as} = x &&
6708    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6709   with_gnu_as=yes
6710   extra_host_args="$extra_host_args --with-gnu-as"
6711 fi
6712
6713 if test x${use_gnu_ld} = x &&
6714    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6715   with_gnu_ld=yes
6716   extra_host_args="$extra_host_args --with-gnu-ld"
6717 fi
6718
6719 if test x${use_included_zlib} = x &&
6720    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6721   :
6722 else
6723   with_system_zlib=yes
6724   extra_host_args="$extra_host_args --with-system-zlib"
6725 fi
6726
6727 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6728 # can detect this case.
6729
6730 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6731   with_newlib=yes
6732   extra_host_args="$extra_host_args --with-newlib"
6733 fi
6734
6735 # Handle ${copy_dirs}
6736 set fnord ${copy_dirs}
6737 shift
6738 while test $# != 0 ; do
6739   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6740     :
6741   else
6742     echo Copying $1 to $2
6743
6744     # Use the install script to create the directory and all required
6745     # parent directories.
6746     if test -d $2 ; then
6747       :
6748     else
6749       echo >config.temp
6750       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6751     fi
6752
6753     # Copy the directory, assuming we have tar.
6754     # FIXME: Should we use B in the second tar?  Not all systems support it.
6755     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6756
6757     # It is the responsibility of the user to correctly adjust all
6758     # symlinks.  If somebody can figure out how to handle them correctly
6759     # here, feel free to add the code.
6760
6761     echo $1 > $2/COPIED
6762   fi
6763   shift; shift
6764 done
6765
6766 # Determine a target-dependent exec_prefix that the installed
6767 # gcc will search in.  Keep this list sorted by triplet, with
6768 # the *-*-osname triplets last.
6769 md_exec_prefix=
6770 case "${target}" in
6771   alpha*-*-*vms*)
6772     md_exec_prefix=/gnu/lib/gcc-lib
6773     ;;
6774   i[34567]86-pc-msdosdjgpp*)
6775     md_exec_prefix=/dev/env/DJDIR/bin
6776     ;;
6777   i[34567]86-*-sco3.2v5*)
6778     if test $with_gnu_as = yes; then
6779       md_exec_prefix=/usr/gnu/bin
6780     else
6781       md_exec_prefix=/usr/ccs/bin/elf
6782     fi
6783     ;;
6784
6785   mn10300-*-* | \
6786   powerpc-*-chorusos* | \
6787   powerpc*-*-eabi* | \
6788   powerpc*-*-sysv* | \
6789   powerpc*-*-kaos* | \
6790   s390x-ibm-tpf*)
6791     md_exec_prefix=/usr/ccs/bin
6792     ;;
6793   sparc64-*-elf*)
6794     ;;
6795   v850*-*-*)
6796     md_exec_prefix=/usr/ccs/bin
6797     ;;
6798   xtensa*-*-elf*)
6799     ;;
6800
6801   *-*-beos* | \
6802   *-*-elf* | \
6803   *-*-hpux* | \
6804   *-*-netware* | \
6805   *-*-nto-qnx* | \
6806   *-*-rtems* | \
6807   *-*-solaris2* | \
6808   *-*-sysv[45]* | \
6809   *-*-vxworks* | \
6810   *-wrs-windiss)
6811     md_exec_prefix=/usr/ccs/bin
6812     ;;
6813 esac
6814
6815 extra_arflags_for_target=
6816 extra_nmflags_for_target=
6817 extra_ranlibflags_for_target=
6818 target_makefile_frag=/dev/null
6819 case "${target}" in
6820   mep*-*-*)
6821     target_makefile_frag="config/mt-mep"
6822     ;;
6823   spu-*-*)
6824     target_makefile_frag="config/mt-spu"
6825     ;;
6826   mips*-sde-elf*)
6827     target_makefile_frag="config/mt-sde"
6828     ;;
6829   mipsisa*-*-elfoabi*)
6830     target_makefile_frag="config/mt-mips-elfoabi"
6831     ;;
6832   mips*-*-*linux* | mips*-*-gnu*)
6833     target_makefile_frag="config/mt-mips-gnu"
6834     ;;
6835   *-*-netware*)
6836     target_makefile_frag="config/mt-netware"
6837     ;;
6838   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6839     target_makefile_frag="config/mt-gnu"
6840     ;;
6841   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6842     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6843     # commands to handle both 32-bit and 64-bit objects.  These flags are
6844     # harmless if we're using GNU nm or ar.
6845     extra_arflags_for_target=" -X32_64"
6846     extra_nmflags_for_target=" -B -X32_64"
6847     ;;
6848   *-*-darwin[3-9]*)
6849     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6850     extra_ranlibflags_for_target=" -c"
6851     ;;
6852   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6853     target_makefile_frag="config/mt-wince"
6854     ;;
6855 esac
6856
6857 alphaieee_frag=/dev/null
6858 case $target in
6859   alpha*-*-*)
6860     # This just makes sure to use the -mieee option to build target libs.
6861     # This should probably be set individually by each library.
6862     alphaieee_frag="config/mt-alphaieee"
6863     ;;
6864 esac
6865
6866 # If --enable-target-optspace always use -Os instead of -O2 to build
6867 # the target libraries, similarly if it is not specified, use -Os
6868 # on selected platforms.
6869 ospace_frag=/dev/null
6870 case "${enable_target_optspace}:${target}" in
6871   yes:*)
6872     ospace_frag="config/mt-ospace"
6873     ;;
6874   :d30v-*)
6875     ospace_frag="config/mt-d30v"
6876     ;;
6877   :m32r-* | :d10v-* | :fr30-*)
6878     ospace_frag="config/mt-ospace"
6879     ;;
6880   no:* | :*)
6881     ;;
6882   *)
6883     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6884     ;;
6885 esac
6886
6887 # Default to using --with-stabs for certain targets.
6888 if test x${with_stabs} = x ; then
6889   case "${target}" in
6890   mips*-*-irix[56]*)
6891     ;;
6892   mips*-*-* | alpha*-*-osf*)
6893     with_stabs=yes;
6894     extra_host_args="${extra_host_args} --with-stabs"
6895     ;;
6896   esac
6897 fi
6898
6899 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6900 # them automatically.
6901 case "${host}" in
6902   hppa*64*-*-hpux11*)
6903     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6904     ;;
6905 esac
6906
6907 # Some systems (e.g., one of the i386-aix systems the gas testers are
6908 # using) don't handle "\$" correctly, so don't use it here.
6909 tooldir='${exec_prefix}'/${target_noncanonical}
6910 build_tooldir=${tooldir}
6911
6912 # Create a .gdbinit file which runs the one in srcdir
6913 # and tells GDB to look there for source files.
6914
6915 if test -r ${srcdir}/.gdbinit ; then
6916   case ${srcdir} in
6917     .) ;;
6918     *) cat > ./.gdbinit <<EOF
6919 # ${NO_EDIT}
6920 dir ${srcdir}
6921 dir .
6922 source ${srcdir}/.gdbinit
6923 EOF
6924     ;;
6925   esac
6926 fi
6927
6928 # Make sure that the compiler is able to generate an executable.  If it
6929 # can't, we are probably in trouble.  We don't care whether we can run the
6930 # executable--we might be using a cross compiler--we only care whether it
6931 # can be created.  At this point the main configure script has set CC.
6932 we_are_ok=no
6933 echo "int main () { return 0; }" > conftest.c
6934 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935 if test $? = 0 ; then
6936   if test -s conftest || test -s conftest.exe ; then
6937     we_are_ok=yes
6938   fi
6939 fi
6940 case $we_are_ok in
6941   no)
6942     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944     rm -f conftest*
6945     exit 1
6946     ;;
6947 esac
6948 rm -f conftest*
6949
6950 # The Solaris /usr/ucb/cc compiler does not appear to work.
6951 case "${host}" in
6952   sparc-sun-solaris2*)
6953       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6954       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6955           could_use=
6956           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6957           if test -d /opt/cygnus/bin ; then
6958               if test "$could_use" = "" ; then
6959                   could_use="/opt/cygnus/bin"
6960               else
6961                   could_use="$could_use or /opt/cygnus/bin"
6962               fi
6963           fi
6964         if test "$could_use" = "" ; then
6965             echo "Warning: compilation may fail because you're using"
6966             echo "/usr/ucb/cc.  You should change your PATH or CC "
6967             echo "variable and rerun configure."
6968         else
6969             echo "Warning: compilation may fail because you're using"
6970             echo "/usr/ucb/cc, when you should use the C compiler from"
6971             echo "$could_use.  You should change your"
6972             echo "PATH or CC variable and rerun configure."
6973         fi
6974       fi
6975   ;;
6976 esac
6977
6978 # Decide which environment variable is used to find dynamic libraries.
6979 case "${host}" in
6980   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6981   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6982   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6983   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6984 esac
6985
6986 # On systems where the dynamic library environment variable is PATH,
6987 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6988 # built executables to PATH.
6989 if test "$RPATH_ENVVAR" = PATH; then
6990   GCC_SHLIB_SUBDIR=/shlib
6991 else
6992   GCC_SHLIB_SUBDIR=
6993 fi
6994
6995 # Record target_configdirs and the configure arguments for target and
6996 # build configuration in Makefile.
6997 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6998 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6999
7000 # If we are building libgomp, bootstrap it.
7001 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7002   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7003 fi
7004
7005 # Determine whether gdb needs tk/tcl or not.
7006 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7007 # and in that case we want gdb to be built without tk.  Ugh!
7008 # In fact I believe gdb is the *only* package directly dependent on tk,
7009 # so we should be able to put the 'maybe's in unconditionally and
7010 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7011 # 100% sure that that's safe though.
7012
7013 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7014 case "$enable_gdbtk" in
7015   no)
7016     GDB_TK="" ;;
7017   yes)
7018     GDB_TK="${gdb_tk}" ;;
7019   *)
7020     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7021     # distro.  Eventually someone will fix this and move Insight, nee
7022     # gdbtk to a separate directory.
7023     if test -d ${srcdir}/gdb/gdbtk ; then
7024       GDB_TK="${gdb_tk}"
7025     else
7026       GDB_TK=""
7027     fi
7028     ;;
7029 esac
7030 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7031 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7032
7033 # Strip out unwanted targets.
7034
7035 # While at that, we remove Makefiles if we were started for recursive
7036 # configuration, so that the top-level Makefile reconfigures them,
7037 # like we used to do when configure itself was recursive.
7038
7039 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7040 # but now we're fixing up the Makefile ourselves with the additional
7041 # commands passed to AC_CONFIG_FILES.  Use separate variables
7042 # extrasub-{build,host,target} not because there is any reason to split
7043 # the substitutions up that way, but only to remain below the limit of
7044 # 99 commands in a script, for HP-UX sed.
7045 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7046
7047 # Check whether --enable-bootstrap was given.
7048 if test "${enable_bootstrap+set}" = set; then :
7049   enableval=$enable_bootstrap;
7050 else
7051   enable_bootstrap=default
7052 fi
7053
7054
7055 # Issue errors and warnings for invalid/strange bootstrap combinations.
7056 case "$configdirs" in
7057   *gcc*) have_compiler=yes ;;
7058   *) have_compiler=no ;;
7059 esac
7060
7061 case "$have_compiler:$host:$target:$enable_bootstrap" in
7062   *:*:*:no) ;;
7063
7064   # Default behavior.  Enable bootstrap if we have a compiler
7065   # and we are in a native configuration.
7066   yes:$build:$build:default)
7067     enable_bootstrap=yes ;;
7068
7069   *:*:*:default)
7070     enable_bootstrap=no ;;
7071
7072   # We have a compiler and we are in a native configuration, bootstrap is ok
7073   yes:$build:$build:yes)
7074     ;;
7075
7076   # Other configurations, but we have a compiler.  Assume the user knows
7077   # what he's doing.
7078   yes:*:*:yes)
7079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7080 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7081     ;;
7082
7083   # No compiler: if they passed --enable-bootstrap explicitly, fail
7084   no:*:*:yes)
7085     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7086
7087   # Fail if wrong command line
7088   *)
7089     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7090     ;;
7091 esac
7092
7093 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7094   *,c++,*:yes:yes) ;;
7095   *:yes:yes)
7096     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7097     ;;
7098 esac
7099
7100 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7101   yes:yes:*\ gold\ *:*,c++,*) ;;
7102   yes:yes:*\ gold\ *:*)
7103     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7104     ;;
7105 esac
7106
7107 # Adjust the toplevel makefile according to whether bootstrap was selected.
7108 case $enable_bootstrap in
7109   yes)
7110     bootstrap_suffix=bootstrap
7111     BUILD_CONFIG=bootstrap-debug
7112     ;;
7113   no)
7114     bootstrap_suffix=no-bootstrap
7115     BUILD_CONFIG=
7116     ;;
7117 esac
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7120 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7121
7122
7123 # Check whether --with-build-config was given.
7124 if test "${with_build_config+set}" = set; then :
7125   withval=$with_build_config; case $with_build_config in
7126    yes) with_build_config= ;;
7127    no) with_build_config= BUILD_CONFIG= ;;
7128    esac
7129 fi
7130
7131
7132 if test "x${with_build_config}" != x; then
7133   BUILD_CONFIG=$with_build_config
7134 else
7135   case $BUILD_CONFIG in
7136   bootstrap-debug)
7137     if echo "int f (void) { return 0; }" > conftest.c &&
7138        ${CC} -c conftest.c &&
7139        mv conftest.o conftest.o.g0 &&
7140        ${CC} -c -g conftest.c &&
7141        mv conftest.o conftest.o.g &&
7142        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7143       :
7144     else
7145       BUILD_CONFIG=
7146     fi
7147     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7148     ;;
7149   esac
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7152 $as_echo "$BUILD_CONFIG" >&6; }
7153
7154
7155 extrasub_build=
7156 for module in ${build_configdirs} ; do
7157   if test -z "${no_recursion}" \
7158      && test -f ${build_subdir}/${module}/Makefile; then
7159     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160     rm -f ${build_subdir}/${module}/Makefile
7161   fi
7162   extrasub_build="$extrasub_build
7163 /^@if build-$module\$/d
7164 /^@endif build-$module\$/d
7165 /^@if build-$module-$bootstrap_suffix\$/d
7166 /^@endif build-$module-$bootstrap_suffix\$/d"
7167 done
7168 extrasub_host=
7169 for module in ${configdirs} ; do
7170   if test -z "${no_recursion}"; then
7171     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7172       if test -f ${file}; then
7173         echo 1>&2 "*** removing ${file} to force reconfigure"
7174         rm -f ${file}
7175       fi
7176     done
7177   fi
7178   extrasub_host="$extrasub_host
7179 /^@if $module\$/d
7180 /^@endif $module\$/d
7181 /^@if $module-$bootstrap_suffix\$/d
7182 /^@endif $module-$bootstrap_suffix\$/d"
7183 done
7184 extrasub_target=
7185 for module in ${target_configdirs} ; do
7186   if test -z "${no_recursion}" \
7187      && test -f ${target_subdir}/${module}/Makefile; then
7188     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7189     rm -f ${target_subdir}/${module}/Makefile
7190   fi
7191
7192   # We only bootstrap target libraries listed in bootstrap_target_libs.
7193   case $bootstrap_target_libs in
7194     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7195     *) target_bootstrap_suffix=no-bootstrap ;;
7196   esac
7197
7198   extrasub_target="$extrasub_target
7199 /^@if target-$module\$/d
7200 /^@endif target-$module\$/d
7201 /^@if target-$module-$target_bootstrap_suffix\$/d
7202 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7203 done
7204
7205 # Do the final fixup along with target modules.
7206 extrasub_target="$extrasub_target
7207 /^@if /,/^@endif /d"
7208
7209 # Create the serialization dependencies.  This uses a temporary file.
7210
7211 # Check whether --enable-serial-configure was given.
7212 if test "${enable_serial_configure+set}" = set; then :
7213   enableval=$enable_serial_configure;
7214 fi
7215
7216
7217 case ${enable_serial_configure} in
7218   yes)
7219     enable_serial_build_configure=yes
7220     enable_serial_host_configure=yes
7221     enable_serial_target_configure=yes
7222     ;;
7223 esac
7224
7225 # These force 'configure's to be done one at a time, to avoid problems
7226 # with contention over a shared config.cache.
7227 rm -f serdep.tmp
7228 echo '# serdep.tmp' > serdep.tmp
7229 olditem=
7230 test "x${enable_serial_build_configure}" = xyes &&
7231 for item in ${build_configdirs} ; do
7232   case ${olditem} in
7233     "") ;;
7234     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7235   esac
7236   olditem=${item}
7237 done
7238 olditem=
7239 test "x${enable_serial_host_configure}" = xyes &&
7240 for item in ${configdirs} ; do
7241   case ${olditem} in
7242     "") ;;
7243     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7244   esac
7245   olditem=${item}
7246 done
7247 olditem=
7248 test "x${enable_serial_target_configure}" = xyes &&
7249 for item in ${target_configdirs} ; do
7250   case ${olditem} in
7251     "") ;;
7252     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7253   esac
7254   olditem=${item}
7255 done
7256 serialization_dependencies=serdep.tmp
7257
7258
7259 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7260 # target, nonopt, and variable assignments.  These are the ones we
7261 # might not want to pass down to subconfigures.  The exception being
7262 # --cache-file=/dev/null, which is used to turn off the use of cache
7263 # files altogether, and which should be passed on to subconfigures.
7264 # Also strip program-prefix, program-suffix, and program-transform-name,
7265 # so that we can pass down a consistent program-transform-name.
7266 baseargs=
7267 keep_next=no
7268 skip_next=no
7269 eval "set -- $ac_configure_args"
7270 for ac_arg
7271 do
7272   if test X"$skip_next" = X"yes"; then
7273     skip_next=no
7274     continue
7275   fi
7276   if test X"$keep_next" = X"yes"; then
7277     case $ac_arg in
7278       *\'*)
7279         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7280     esac
7281     baseargs="$baseargs '$ac_arg'"
7282     keep_next=no
7283     continue
7284   fi
7285
7286   # Handle separated arguments.  Based on the logic generated by
7287   # autoconf 2.59.
7288   case $ac_arg in
7289     *=* | --config-cache | -C | -disable-* | --disable-* \
7290       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7291       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7292       | -with-* | --with-* | -without-* | --without-* | --x)
7293       separate_arg=no
7294       ;;
7295     -*)
7296       separate_arg=yes
7297       ;;
7298     *)
7299       separate_arg=no
7300       ;;
7301   esac
7302
7303   case "$ac_arg" in
7304     --cache-file=/dev/null | \
7305     -cache-file=/dev/null )
7306       # Handled here to avoid the test to skip args below.
7307       baseargs="$baseargs '$ac_arg'"
7308       # Assert: $separate_arg should always be no.
7309       keep_next=$separate_arg
7310       ;;
7311     --no*)
7312       continue
7313       ;;
7314     --c* | \
7315     --sr* | \
7316     --ho* | \
7317     --bu* | \
7318     --t* | \
7319     --program-* | \
7320     -cache_file* | \
7321     -srcdir* | \
7322     -host* | \
7323     -build* | \
7324     -target* | \
7325     -program-prefix* | \
7326     -program-suffix* | \
7327     -program-transform-name* )
7328       skip_next=$separate_arg
7329       continue
7330       ;;
7331     -*)
7332       # An option.  Add it.
7333       case $ac_arg in
7334         *\'*)
7335           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7336       esac
7337       baseargs="$baseargs '$ac_arg'"
7338       keep_next=$separate_arg
7339       ;;
7340     *)
7341       # Either a variable assignment, or a nonopt (triplet).  Don't
7342       # pass it down; let the Makefile handle this.
7343       continue
7344       ;;
7345   esac
7346 done
7347 # Remove the initial space we just introduced and, as these will be
7348 # expanded by make, quote '$'.
7349 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7350
7351 # Add in --program-transform-name, after --program-prefix and
7352 # --program-suffix have been applied to it.  Autoconf has already
7353 # doubled dollar signs and backslashes in program_transform_name; we want
7354 # the backslashes un-doubled, and then the entire thing wrapped in single
7355 # quotes, because this will be expanded first by make and then by the shell.
7356 # Also, because we want to override the logic in subdir configure scripts to
7357 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7358 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7359 ${program_transform_name}
7360 EOF_SED
7361 gcc_transform_name=`cat conftestsed.out`
7362 rm -f conftestsed.out
7363 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7364 if test "$silent" = yes; then
7365   baseargs="$baseargs --silent"
7366 fi
7367 baseargs="$baseargs --disable-option-checking"
7368
7369 # Record and document user additions to sub configure arguments.
7370
7371
7372
7373
7374 # For the build-side libraries, we just need to pretend we're native,
7375 # and not use the same cache file.  Multilibs are neither needed nor
7376 # desired.
7377 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7378
7379 # For host modules, accept cache file option, or specification as blank.
7380 case "${cache_file}" in
7381 "") # empty
7382   cache_file_option="" ;;
7383 /* | [A-Za-z]:[\\/]* ) # absolute path
7384   cache_file_option="--cache-file=${cache_file}" ;;
7385 *) # relative path
7386   cache_file_option="--cache-file=../${cache_file}" ;;
7387 esac
7388
7389 # Host dirs don't like to share a cache file either, horribly enough.
7390 # This seems to be due to autoconf 2.5x stupidity.
7391 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7392
7393 target_configargs="$target_configargs ${baseargs}"
7394
7395 # Passing a --with-cross-host argument lets the target libraries know
7396 # whether they are being built with a cross-compiler or being built
7397 # native.  However, it would be better to use other mechanisms to make the
7398 # sorts of decisions they want to make on this basis.  Please consider
7399 # this option to be deprecated.  FIXME.
7400 if test x${is_cross_compiler} = xyes ; then
7401   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7402 fi
7403
7404 # Default to --enable-multilib.
7405 if test x${enable_multilib} = x ; then
7406   target_configargs="--enable-multilib ${target_configargs}"
7407 fi
7408
7409 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7410 # changed from the earlier setting of with_newlib.
7411 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7412   target_configargs="--with-newlib ${target_configargs}"
7413 fi
7414
7415 # Different target subdirs use different values of certain variables
7416 # (notably CXX).  Worse, multilibs use *lots* of different values.
7417 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7418 # it doesn't automatically accept command-line overrides of them.
7419 # This means it's not safe for target subdirs to share a cache file,
7420 # which is disgusting, but there you have it.  Hopefully this can be
7421 # fixed in future.  It's still worthwhile to use a cache file for each
7422 # directory.  I think.
7423
7424 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7425 # We need to pass --target, as newer autoconf's requires consistency
7426 # for target_alias and gcc doesn't manage it consistently.
7427 target_configargs="--cache-file=./config.cache ${target_configargs}"
7428
7429 FLAGS_FOR_TARGET=
7430 case " $target_configdirs " in
7431  *" newlib "*)
7432   case " $target_configargs " in
7433   *" --with-newlib "*)
7434    case "$target" in
7435     *-cygwin*)
7436       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'
7437       ;;
7438    esac
7439
7440    # If we're not building GCC, don't discard standard headers.
7441    if test -d ${srcdir}/gcc; then
7442      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7443
7444      if test "${build}" != "${host}"; then
7445        # On Canadian crosses, CC_FOR_TARGET will have already been set
7446        # by `configure', so we won't have an opportunity to add -Bgcc/
7447        # to it.  This is right: we don't want to search that directory
7448        # for binaries, but we want the header files in there, so add
7449        # them explicitly.
7450        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7451
7452        # Someone might think of using the pre-installed headers on
7453        # Canadian crosses, in case the installed compiler is not fully
7454        # compatible with the compiler being built.  In this case, it
7455        # would be better to flag an error than risking having
7456        # incompatible object files being constructed.  We can't
7457        # guarantee that an error will be flagged, but let's hope the
7458        # compiler will do it, when presented with incompatible header
7459        # files.
7460      fi
7461    fi
7462
7463    case "${target}-${is_cross_compiler}" in
7464    i[3456789]86-*-linux*-no)
7465       # Here host == target, so we don't need to build gcc,
7466       # so we don't want to discard standard headers.
7467       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7468       ;;
7469    *)
7470       # If we're building newlib, use its generic headers last, but search
7471       # for any libc-related directories first (so make it the last -B
7472       # switch).
7473       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7474
7475       # If we're building libgloss, find the startup file, simulator library
7476       # and linker script.
7477       case " $target_configdirs " in
7478         *" libgloss "*)
7479         # Look for startup file, simulator library and maybe linker script.
7480         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7481         # Look for libnosys.a in case the target needs it.
7482         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7483         # Most targets have the linker script in the source directory.
7484         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7485         ;;
7486       esac
7487       ;;
7488    esac
7489    ;;
7490   esac
7491   ;;
7492 esac
7493
7494 case "$target" in
7495   x86_64-*mingw* | *-w64-mingw*)
7496   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7497   # however, use a symlink named 'mingw' in ${prefix} .
7498     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7499     ;;
7500   *-mingw*)
7501   # MinGW can't be handled as Cygwin above since it does not use newlib.
7502     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'
7503     ;;
7504 esac
7505
7506 # Allow the user to override the flags for
7507 # our build compiler if desired.
7508 if test x"${build}" = x"${host}" ; then
7509   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7510   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7511   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7512 fi
7513
7514 # On Canadian crosses, we'll be searching the right directories for
7515 # the previously-installed cross compiler, so don't bother to add
7516 # flags for directories within the install tree of the compiler
7517 # being built; programs in there won't even run.
7518 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7519   # Search for pre-installed headers if nothing else fits.
7520   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7521 fi
7522
7523 if test "x${use_gnu_ld}" = x &&
7524    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7525   # Arrange for us to find uninstalled linker scripts.
7526   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7527 fi
7528
7529 # Search for other target-specific linker scripts and such.
7530 case "${target}" in
7531   mep*)
7532     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7533     ;;
7534 esac
7535
7536 # Makefile fragments.
7537 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7538 do
7539   eval fragval=\$$frag
7540   if test $fragval != /dev/null; then
7541     eval $frag=${srcdir}/$fragval
7542   fi
7543 done
7544
7545
7546
7547
7548
7549 # Miscellanea: directories, flags, etc.
7550
7551
7552
7553
7554
7555
7556
7557
7558 # Build module lists & subconfigure args.
7559
7560
7561
7562 # Host module lists & subconfigure args.
7563
7564
7565
7566
7567 # Target module lists & subconfigure args.
7568
7569
7570
7571 # Build tools.
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 # Generate default definitions for YACC, M4, LEX and other programs that run
7591 # on the build machine.  These are used if the Makefile can't locate these
7592 # programs in objdir.
7593 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7594
7595 for ac_prog in 'bison -y' byacc yacc
7596 do
7597   # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_YACC+set}" = set; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$YACC"; then
7605   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_YACC="$ac_prog"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 YACC=$ac_cv_prog_YACC
7625 if test -n "$YACC"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7627 $as_echo "$YACC" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634   test -n "$YACC" && break
7635 done
7636 test -n "$YACC" || YACC="$MISSING bison -y"
7637
7638 case " $build_configdirs " in
7639   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7640   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7641 esac
7642
7643 for ac_prog in bison
7644 do
7645   # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy $ac_prog; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if test "${ac_cv_prog_BISON+set}" = set; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   if test -n "$BISON"; then
7653   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660     for ac_exec_ext in '' $ac_executable_extensions; do
7661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662     ac_cv_prog_BISON="$ac_prog"
7663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667   done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 BISON=$ac_cv_prog_BISON
7673 if test -n "$BISON"; then
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7675 $as_echo "$BISON" >&6; }
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681
7682   test -n "$BISON" && break
7683 done
7684 test -n "$BISON" || BISON="$MISSING bison"
7685
7686 case " $build_configdirs " in
7687   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7688 esac
7689
7690 for ac_prog in gm4 gnum4 m4
7691 do
7692   # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_M4+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$M4"; then
7700   ac_cv_prog_M4="$M4" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_M4="$ac_prog"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 M4=$ac_cv_prog_M4
7720 if test -n "$M4"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7722 $as_echo "$M4" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729   test -n "$M4" && break
7730 done
7731 test -n "$M4" || M4="$MISSING m4"
7732
7733 case " $build_configdirs " in
7734   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7735 esac
7736
7737 for ac_prog in flex lex
7738 do
7739   # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if test "${ac_cv_prog_LEX+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   if test -n "$LEX"; then
7747   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756     ac_cv_prog_LEX="$ac_prog"
7757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761   done
7762 IFS=$as_save_IFS
7763
7764 fi
7765 fi
7766 LEX=$ac_cv_prog_LEX
7767 if test -n "$LEX"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7769 $as_echo "$LEX" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776   test -n "$LEX" && break
7777 done
7778 test -n "$LEX" || LEX="$MISSING flex"
7779
7780 case " $build_configdirs " in
7781   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7782   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7783 esac
7784
7785 for ac_prog in flex
7786 do
7787   # Extract the first word of "$ac_prog", so it can be a program name with args.
7788 set dummy $ac_prog; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if test "${ac_cv_prog_FLEX+set}" = set; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   if test -n "$FLEX"; then
7795   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802     for ac_exec_ext in '' $ac_executable_extensions; do
7803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804     ac_cv_prog_FLEX="$ac_prog"
7805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809   done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 FLEX=$ac_cv_prog_FLEX
7815 if test -n "$FLEX"; then
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7817 $as_echo "$FLEX" >&6; }
7818 else
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824   test -n "$FLEX" && break
7825 done
7826 test -n "$FLEX" || FLEX="$MISSING flex"
7827
7828 case " $build_configdirs " in
7829   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7830 esac
7831
7832 for ac_prog in makeinfo
7833 do
7834   # Extract the first word of "$ac_prog", so it can be a program name with args.
7835 set dummy $ac_prog; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   if test -n "$MAKEINFO"; then
7842   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849     for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_prog_MAKEINFO="$ac_prog"
7852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856   done
7857 IFS=$as_save_IFS
7858
7859 fi
7860 fi
7861 MAKEINFO=$ac_cv_prog_MAKEINFO
7862 if test -n "$MAKEINFO"; then
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7864 $as_echo "$MAKEINFO" >&6; }
7865 else
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 fi
7869
7870
7871   test -n "$MAKEINFO" && break
7872 done
7873 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7874
7875 case " $build_configdirs " in
7876   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7877   *)
7878
7879     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7880     # higher, else we use the "missing" dummy.
7881     if ${MAKEINFO} --version \
7882        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7883       :
7884     else
7885       MAKEINFO="$MISSING makeinfo"
7886     fi
7887     ;;
7888
7889 esac
7890
7891 # FIXME: expect and dejagnu may become build tools?
7892
7893 for ac_prog in expect
7894 do
7895   # Extract the first word of "$ac_prog", so it can be a program name with args.
7896 set dummy $ac_prog; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$EXPECT"; then
7903   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912     ac_cv_prog_EXPECT="$ac_prog"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 EXPECT=$ac_cv_prog_EXPECT
7923 if test -n "$EXPECT"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7925 $as_echo "$EXPECT" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932   test -n "$EXPECT" && break
7933 done
7934 test -n "$EXPECT" || EXPECT="expect"
7935
7936 case " $configdirs " in
7937   *" expect "*)
7938     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7939     ;;
7940 esac
7941
7942 for ac_prog in runtest
7943 do
7944   # Extract the first word of "$ac_prog", so it can be a program name with args.
7945 set dummy $ac_prog; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$RUNTEST"; then
7952   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961     ac_cv_prog_RUNTEST="$ac_prog"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 RUNTEST=$ac_cv_prog_RUNTEST
7972 if test -n "$RUNTEST"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7974 $as_echo "$RUNTEST" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981   test -n "$RUNTEST" && break
7982 done
7983 test -n "$RUNTEST" || RUNTEST="runtest"
7984
7985 case " $configdirs " in
7986   *" dejagnu "*)
7987     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7988     ;;
7989 esac
7990
7991
7992 # Host tools.
7993 ncn_tool_prefix=
7994 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7995 ncn_target_tool_prefix=
7996 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7997
7998
7999
8000 if test -n "$AR"; then
8001   ac_cv_prog_AR=$AR
8002 elif test -n "$ac_cv_prog_AR"; then
8003   AR=$ac_cv_prog_AR
8004 fi
8005
8006 if test -n "$ac_cv_prog_AR"; then
8007   for ncn_progname in ar; do
8008     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8009 set dummy ${ncn_progname}; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_AR+set}" = set; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   if test -n "$AR"; then
8016   ac_cv_prog_AR="$AR" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025     ac_cv_prog_AR="${ncn_progname}"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 AR=$ac_cv_prog_AR
8036 if test -n "$AR"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8038 $as_echo "$AR" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045   done
8046 fi
8047
8048 for ncn_progname in ar; do
8049   if test -n "$ncn_tool_prefix"; then
8050     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_prog_AR+set}" = set; then :
8055   $as_echo_n "(cached) " >&6
8056 else
8057   if test -n "$AR"; then
8058   ac_cv_prog_AR="$AR" # Let the user override the test.
8059 else
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065     for ac_exec_ext in '' $ac_executable_extensions; do
8066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069     break 2
8070   fi
8071 done
8072   done
8073 IFS=$as_save_IFS
8074
8075 fi
8076 fi
8077 AR=$ac_cv_prog_AR
8078 if test -n "$AR"; then
8079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080 $as_echo "$AR" >&6; }
8081 else
8082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8084 fi
8085
8086
8087   fi
8088   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8089     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8090 set dummy ${ncn_progname}; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_AR+set}" = set; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   if test -n "$AR"; then
8097   ac_cv_prog_AR="$AR" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106     ac_cv_prog_AR="${ncn_progname}"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 AR=$ac_cv_prog_AR
8117 if test -n "$AR"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8119 $as_echo "$AR" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125
8126   fi
8127   test -n "$ac_cv_prog_AR" && break
8128 done
8129
8130 if test -z "$ac_cv_prog_AR" ; then
8131   set dummy ar
8132   if test $build = $host ; then
8133     AR="$2"
8134   else
8135     AR="${ncn_tool_prefix}$2"
8136   fi
8137 fi
8138
8139
8140
8141 if test -n "$AS"; then
8142   ac_cv_prog_AS=$AS
8143 elif test -n "$ac_cv_prog_AS"; then
8144   AS=$ac_cv_prog_AS
8145 fi
8146
8147 if test -n "$ac_cv_prog_AS"; then
8148   for ncn_progname in as; do
8149     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8150 set dummy ${ncn_progname}; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_AS+set}" = set; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$AS"; then
8157   ac_cv_prog_AS="$AS" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166     ac_cv_prog_AS="${ncn_progname}"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 AS=$ac_cv_prog_AS
8177 if test -n "$AS"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8179 $as_echo "$AS" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186   done
8187 fi
8188
8189 for ncn_progname in as; do
8190   if test -n "$ncn_tool_prefix"; then
8191     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_AS+set}" = set; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   if test -n "$AS"; then
8199   ac_cv_prog_AS="$AS" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206     for ac_exec_ext in '' $ac_executable_extensions; do
8207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213   done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 AS=$ac_cv_prog_AS
8219 if test -n "$AS"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8221 $as_echo "$AS" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228   fi
8229   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8230     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231 set dummy ${ncn_progname}; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_AS+set}" = set; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   if test -n "$AS"; then
8238   ac_cv_prog_AS="$AS" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245     for ac_exec_ext in '' $ac_executable_extensions; do
8246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247     ac_cv_prog_AS="${ncn_progname}"
8248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252   done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 AS=$ac_cv_prog_AS
8258 if test -n "$AS"; then
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8260 $as_echo "$AS" >&6; }
8261 else
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267   fi
8268   test -n "$ac_cv_prog_AS" && break
8269 done
8270
8271 if test -z "$ac_cv_prog_AS" ; then
8272   set dummy as
8273   if test $build = $host ; then
8274     AS="$2"
8275   else
8276     AS="${ncn_tool_prefix}$2"
8277   fi
8278 fi
8279
8280
8281
8282 if test -n "$DLLTOOL"; then
8283   ac_cv_prog_DLLTOOL=$DLLTOOL
8284 elif test -n "$ac_cv_prog_DLLTOOL"; then
8285   DLLTOOL=$ac_cv_prog_DLLTOOL
8286 fi
8287
8288 if test -n "$ac_cv_prog_DLLTOOL"; then
8289   for ncn_progname in dlltool; do
8290     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8291 set dummy ${ncn_progname}; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   if test -n "$DLLTOOL"; then
8298   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303   IFS=$as_save_IFS
8304   test -z "$as_dir" && as_dir=.
8305     for ac_exec_ext in '' $ac_executable_extensions; do
8306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307     ac_cv_prog_DLLTOOL="${ncn_progname}"
8308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309     break 2
8310   fi
8311 done
8312   done
8313 IFS=$as_save_IFS
8314
8315 fi
8316 fi
8317 DLLTOOL=$ac_cv_prog_DLLTOOL
8318 if test -n "$DLLTOOL"; then
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8320 $as_echo "$DLLTOOL" >&6; }
8321 else
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8324 fi
8325
8326
8327   done
8328 fi
8329
8330 for ncn_progname in dlltool; do
8331   if test -n "$ncn_tool_prefix"; then
8332     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test -n "$DLLTOOL"; then
8340   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347     for ac_exec_ext in '' $ac_executable_extensions; do
8348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354   done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 DLLTOOL=$ac_cv_prog_DLLTOOL
8360 if test -n "$DLLTOOL"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8362 $as_echo "$DLLTOOL" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369   fi
8370   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8371     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372 set dummy ${ncn_progname}; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8376   $as_echo_n "(cached) " >&6
8377 else
8378   if test -n "$DLLTOOL"; then
8379   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384   IFS=$as_save_IFS
8385   test -z "$as_dir" && as_dir=.
8386     for ac_exec_ext in '' $ac_executable_extensions; do
8387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388     ac_cv_prog_DLLTOOL="${ncn_progname}"
8389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393   done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 DLLTOOL=$ac_cv_prog_DLLTOOL
8399 if test -n "$DLLTOOL"; then
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8401 $as_echo "$DLLTOOL" >&6; }
8402 else
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407
8408   fi
8409   test -n "$ac_cv_prog_DLLTOOL" && break
8410 done
8411
8412 if test -z "$ac_cv_prog_DLLTOOL" ; then
8413   set dummy dlltool
8414   if test $build = $host ; then
8415     DLLTOOL="$2"
8416   else
8417     DLLTOOL="${ncn_tool_prefix}$2"
8418   fi
8419 fi
8420
8421
8422
8423 if test -n "$LD"; then
8424   ac_cv_prog_LD=$LD
8425 elif test -n "$ac_cv_prog_LD"; then
8426   LD=$ac_cv_prog_LD
8427 fi
8428
8429 if test -n "$ac_cv_prog_LD"; then
8430   for ncn_progname in ld; do
8431     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432 set dummy ${ncn_progname}; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_prog_LD+set}" = set; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$LD"; then
8439   ac_cv_prog_LD="$LD" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448     ac_cv_prog_LD="${ncn_progname}"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 LD=$ac_cv_prog_LD
8459 if test -n "$LD"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8461 $as_echo "$LD" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468   done
8469 fi
8470
8471 for ncn_progname in ld; do
8472   if test -n "$ncn_tool_prefix"; then
8473     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if test "${ac_cv_prog_LD+set}" = set; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   if test -n "$LD"; then
8481   ac_cv_prog_LD="$LD" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486   IFS=$as_save_IFS
8487   test -z "$as_dir" && as_dir=.
8488     for ac_exec_ext in '' $ac_executable_extensions; do
8489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492     break 2
8493   fi
8494 done
8495   done
8496 IFS=$as_save_IFS
8497
8498 fi
8499 fi
8500 LD=$ac_cv_prog_LD
8501 if test -n "$LD"; then
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8503 $as_echo "$LD" >&6; }
8504 else
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508
8509
8510   fi
8511   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8512     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513 set dummy ${ncn_progname}; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_prog_LD+set}" = set; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   if test -n "$LD"; then
8520   ac_cv_prog_LD="$LD" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527     for ac_exec_ext in '' $ac_executable_extensions; do
8528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529     ac_cv_prog_LD="${ncn_progname}"
8530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534   done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 LD=$ac_cv_prog_LD
8540 if test -n "$LD"; then
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8542 $as_echo "$LD" >&6; }
8543 else
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549   fi
8550   test -n "$ac_cv_prog_LD" && break
8551 done
8552
8553 if test -z "$ac_cv_prog_LD" ; then
8554   set dummy ld
8555   if test $build = $host ; then
8556     LD="$2"
8557   else
8558     LD="${ncn_tool_prefix}$2"
8559   fi
8560 fi
8561
8562
8563
8564 if test -n "$LIPO"; then
8565   ac_cv_prog_LIPO=$LIPO
8566 elif test -n "$ac_cv_prog_LIPO"; then
8567   LIPO=$ac_cv_prog_LIPO
8568 fi
8569
8570 if test -n "$ac_cv_prog_LIPO"; then
8571   for ncn_progname in lipo; do
8572     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573 set dummy ${ncn_progname}; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if test "${ac_cv_prog_LIPO+set}" = set; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   if test -n "$LIPO"; then
8580   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585   IFS=$as_save_IFS
8586   test -z "$as_dir" && as_dir=.
8587     for ac_exec_ext in '' $ac_executable_extensions; do
8588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589     ac_cv_prog_LIPO="${ncn_progname}"
8590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591     break 2
8592   fi
8593 done
8594   done
8595 IFS=$as_save_IFS
8596
8597 fi
8598 fi
8599 LIPO=$ac_cv_prog_LIPO
8600 if test -n "$LIPO"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8602 $as_echo "$LIPO" >&6; }
8603 else
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607
8608
8609   done
8610 fi
8611
8612 for ncn_progname in lipo; do
8613   if test -n "$ncn_tool_prefix"; then
8614     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if test "${ac_cv_prog_LIPO+set}" = set; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   if test -n "$LIPO"; then
8622   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 LIPO=$ac_cv_prog_LIPO
8642 if test -n "$LIPO"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8644 $as_echo "$LIPO" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651   fi
8652   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8653     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_progname}; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_prog_LIPO+set}" = set; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   if test -n "$LIPO"; then
8661   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666   IFS=$as_save_IFS
8667   test -z "$as_dir" && as_dir=.
8668     for ac_exec_ext in '' $ac_executable_extensions; do
8669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670     ac_cv_prog_LIPO="${ncn_progname}"
8671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672     break 2
8673   fi
8674 done
8675   done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 LIPO=$ac_cv_prog_LIPO
8681 if test -n "$LIPO"; then
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8683 $as_echo "$LIPO" >&6; }
8684 else
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690   fi
8691   test -n "$ac_cv_prog_LIPO" && break
8692 done
8693
8694 if test -z "$ac_cv_prog_LIPO" ; then
8695   set dummy lipo
8696   if test $build = $host ; then
8697     LIPO="$2"
8698   else
8699     LIPO="${ncn_tool_prefix}$2"
8700   fi
8701 fi
8702
8703
8704
8705 if test -n "$NM"; then
8706   ac_cv_prog_NM=$NM
8707 elif test -n "$ac_cv_prog_NM"; then
8708   NM=$ac_cv_prog_NM
8709 fi
8710
8711 if test -n "$ac_cv_prog_NM"; then
8712   for ncn_progname in nm; do
8713     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8714 set dummy ${ncn_progname}; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if test "${ac_cv_prog_NM+set}" = set; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test -n "$NM"; then
8721   ac_cv_prog_NM="$NM" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730     ac_cv_prog_NM="${ncn_progname}"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737
8738 fi
8739 fi
8740 NM=$ac_cv_prog_NM
8741 if test -n "$NM"; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8743 $as_echo "$NM" >&6; }
8744 else
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749
8750   done
8751 fi
8752
8753 for ncn_progname in nm; do
8754   if test -n "$ncn_tool_prefix"; then
8755     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if test "${ac_cv_prog_NM+set}" = set; then :
8760   $as_echo_n "(cached) " >&6
8761 else
8762   if test -n "$NM"; then
8763   ac_cv_prog_NM="$NM" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770     for ac_exec_ext in '' $ac_executable_extensions; do
8771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777   done
8778 IFS=$as_save_IFS
8779
8780 fi
8781 fi
8782 NM=$ac_cv_prog_NM
8783 if test -n "$NM"; then
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8785 $as_echo "$NM" >&6; }
8786 else
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790
8791
8792   fi
8793   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8794     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795 set dummy ${ncn_progname}; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if test "${ac_cv_prog_NM+set}" = set; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   if test -n "$NM"; then
8802   ac_cv_prog_NM="$NM" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807   IFS=$as_save_IFS
8808   test -z "$as_dir" && as_dir=.
8809     for ac_exec_ext in '' $ac_executable_extensions; do
8810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811     ac_cv_prog_NM="${ncn_progname}"
8812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813     break 2
8814   fi
8815 done
8816   done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 NM=$ac_cv_prog_NM
8822 if test -n "$NM"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8824 $as_echo "$NM" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831   fi
8832   test -n "$ac_cv_prog_NM" && break
8833 done
8834
8835 if test -z "$ac_cv_prog_NM" ; then
8836   set dummy nm
8837   if test $build = $host ; then
8838     NM="$2"
8839   else
8840     NM="${ncn_tool_prefix}$2"
8841   fi
8842 fi
8843
8844
8845
8846 if test -n "$RANLIB"; then
8847   ac_cv_prog_RANLIB=$RANLIB
8848 elif test -n "$ac_cv_prog_RANLIB"; then
8849   RANLIB=$ac_cv_prog_RANLIB
8850 fi
8851
8852 if test -n "$ac_cv_prog_RANLIB"; then
8853   for ncn_progname in ranlib; do
8854     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8855 set dummy ${ncn_progname}; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8859   $as_echo_n "(cached) " >&6
8860 else
8861   if test -n "$RANLIB"; then
8862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867   IFS=$as_save_IFS
8868   test -z "$as_dir" && as_dir=.
8869     for ac_exec_ext in '' $ac_executable_extensions; do
8870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871     ac_cv_prog_RANLIB="${ncn_progname}"
8872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873     break 2
8874   fi
8875 done
8876   done
8877 IFS=$as_save_IFS
8878
8879 fi
8880 fi
8881 RANLIB=$ac_cv_prog_RANLIB
8882 if test -n "$RANLIB"; then
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8884 $as_echo "$RANLIB" >&6; }
8885 else
8886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889
8890
8891   done
8892 fi
8893
8894 for ncn_progname in ranlib; do
8895   if test -n "$ncn_tool_prefix"; then
8896     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   if test -n "$RANLIB"; then
8904   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920
8921 fi
8922 fi
8923 RANLIB=$ac_cv_prog_RANLIB
8924 if test -n "$RANLIB"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8926 $as_echo "$RANLIB" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931
8932
8933   fi
8934   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8935     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936 set dummy ${ncn_progname}; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   if test -n "$RANLIB"; then
8943   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948   IFS=$as_save_IFS
8949   test -z "$as_dir" && as_dir=.
8950     for ac_exec_ext in '' $ac_executable_extensions; do
8951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952     ac_cv_prog_RANLIB="${ncn_progname}"
8953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954     break 2
8955   fi
8956 done
8957   done
8958 IFS=$as_save_IFS
8959
8960 fi
8961 fi
8962 RANLIB=$ac_cv_prog_RANLIB
8963 if test -n "$RANLIB"; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8965 $as_echo "$RANLIB" >&6; }
8966 else
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972   fi
8973   test -n "$ac_cv_prog_RANLIB" && break
8974 done
8975
8976 if test -z "$ac_cv_prog_RANLIB" ; then
8977   RANLIB="true"
8978 fi
8979
8980
8981
8982 if test -n "$STRIP"; then
8983   ac_cv_prog_STRIP=$STRIP
8984 elif test -n "$ac_cv_prog_STRIP"; then
8985   STRIP=$ac_cv_prog_STRIP
8986 fi
8987
8988 if test -n "$ac_cv_prog_STRIP"; then
8989   for ncn_progname in strip; do
8990     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8991 set dummy ${ncn_progname}; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_STRIP+set}" = set; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   if test -n "$STRIP"; then
8998   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005     for ac_exec_ext in '' $ac_executable_extensions; do
9006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007     ac_cv_prog_STRIP="${ncn_progname}"
9008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012   done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 STRIP=$ac_cv_prog_STRIP
9018 if test -n "$STRIP"; then
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9020 $as_echo "$STRIP" >&6; }
9021 else
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9024 fi
9025
9026
9027   done
9028 fi
9029
9030 for ncn_progname in strip; do
9031   if test -n "$ncn_tool_prefix"; then
9032     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if test "${ac_cv_prog_STRIP+set}" = set; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   if test -n "$STRIP"; then
9040   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9044 do
9045   IFS=$as_save_IFS
9046   test -z "$as_dir" && as_dir=.
9047     for ac_exec_ext in '' $ac_executable_extensions; do
9048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051     break 2
9052   fi
9053 done
9054   done
9055 IFS=$as_save_IFS
9056
9057 fi
9058 fi
9059 STRIP=$ac_cv_prog_STRIP
9060 if test -n "$STRIP"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9062 $as_echo "$STRIP" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067
9068
9069   fi
9070   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9072 set dummy ${ncn_progname}; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_STRIP+set}" = set; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   if test -n "$STRIP"; then
9079   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084   IFS=$as_save_IFS
9085   test -z "$as_dir" && as_dir=.
9086     for ac_exec_ext in '' $ac_executable_extensions; do
9087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088     ac_cv_prog_STRIP="${ncn_progname}"
9089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090     break 2
9091   fi
9092 done
9093   done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 STRIP=$ac_cv_prog_STRIP
9099 if test -n "$STRIP"; then
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9101 $as_echo "$STRIP" >&6; }
9102 else
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107
9108   fi
9109   test -n "$ac_cv_prog_STRIP" && break
9110 done
9111
9112 if test -z "$ac_cv_prog_STRIP" ; then
9113   STRIP="true"
9114 fi
9115
9116
9117
9118 if test -n "$WINDRES"; then
9119   ac_cv_prog_WINDRES=$WINDRES
9120 elif test -n "$ac_cv_prog_WINDRES"; then
9121   WINDRES=$ac_cv_prog_WINDRES
9122 fi
9123
9124 if test -n "$ac_cv_prog_WINDRES"; then
9125   for ncn_progname in windres; do
9126     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9127 set dummy ${ncn_progname}; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   if test -n "$WINDRES"; then
9134   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143     ac_cv_prog_WINDRES="${ncn_progname}"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 WINDRES=$ac_cv_prog_WINDRES
9154 if test -n "$WINDRES"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9156 $as_echo "$WINDRES" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163   done
9164 fi
9165
9166 for ncn_progname in windres; do
9167   if test -n "$ncn_tool_prefix"; then
9168     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9169 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   if test -n "$WINDRES"; then
9176   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9177 else
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in $PATH
9180 do
9181   IFS=$as_save_IFS
9182   test -z "$as_dir" && as_dir=.
9183     for ac_exec_ext in '' $ac_executable_extensions; do
9184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9185     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187     break 2
9188   fi
9189 done
9190   done
9191 IFS=$as_save_IFS
9192
9193 fi
9194 fi
9195 WINDRES=$ac_cv_prog_WINDRES
9196 if test -n "$WINDRES"; then
9197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9198 $as_echo "$WINDRES" >&6; }
9199 else
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9202 fi
9203
9204
9205   fi
9206   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9207     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   if test -n "$WINDRES"; then
9215   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220   IFS=$as_save_IFS
9221   test -z "$as_dir" && as_dir=.
9222     for ac_exec_ext in '' $ac_executable_extensions; do
9223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224     ac_cv_prog_WINDRES="${ncn_progname}"
9225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226     break 2
9227   fi
9228 done
9229   done
9230 IFS=$as_save_IFS
9231
9232 fi
9233 fi
9234 WINDRES=$ac_cv_prog_WINDRES
9235 if test -n "$WINDRES"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9237 $as_echo "$WINDRES" >&6; }
9238 else
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244   fi
9245   test -n "$ac_cv_prog_WINDRES" && break
9246 done
9247
9248 if test -z "$ac_cv_prog_WINDRES" ; then
9249   set dummy windres
9250   if test $build = $host ; then
9251     WINDRES="$2"
9252   else
9253     WINDRES="${ncn_tool_prefix}$2"
9254   fi
9255 fi
9256
9257
9258
9259 if test -n "$WINDMC"; then
9260   ac_cv_prog_WINDMC=$WINDMC
9261 elif test -n "$ac_cv_prog_WINDMC"; then
9262   WINDMC=$ac_cv_prog_WINDMC
9263 fi
9264
9265 if test -n "$ac_cv_prog_WINDMC"; then
9266   for ncn_progname in windmc; do
9267     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9268 set dummy ${ncn_progname}; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   if test -n "$WINDMC"; then
9275   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9279 do
9280   IFS=$as_save_IFS
9281   test -z "$as_dir" && as_dir=.
9282     for ac_exec_ext in '' $ac_executable_extensions; do
9283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284     ac_cv_prog_WINDMC="${ncn_progname}"
9285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286     break 2
9287   fi
9288 done
9289   done
9290 IFS=$as_save_IFS
9291
9292 fi
9293 fi
9294 WINDMC=$ac_cv_prog_WINDMC
9295 if test -n "$WINDMC"; then
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9297 $as_echo "$WINDMC" >&6; }
9298 else
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9301 fi
9302
9303
9304   done
9305 fi
9306
9307 for ncn_progname in windmc; do
9308   if test -n "$ncn_tool_prefix"; then
9309     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9310 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312 $as_echo_n "checking for $ac_word... " >&6; }
9313 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9314   $as_echo_n "(cached) " >&6
9315 else
9316   if test -n "$WINDMC"; then
9317   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9318 else
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9321 do
9322   IFS=$as_save_IFS
9323   test -z "$as_dir" && as_dir=.
9324     for ac_exec_ext in '' $ac_executable_extensions; do
9325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9326     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328     break 2
9329   fi
9330 done
9331   done
9332 IFS=$as_save_IFS
9333
9334 fi
9335 fi
9336 WINDMC=$ac_cv_prog_WINDMC
9337 if test -n "$WINDMC"; then
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9339 $as_echo "$WINDMC" >&6; }
9340 else
9341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9343 fi
9344
9345
9346   fi
9347   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9348     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9349 set dummy ${ncn_progname}; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9353   $as_echo_n "(cached) " >&6
9354 else
9355   if test -n "$WINDMC"; then
9356   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9360 do
9361   IFS=$as_save_IFS
9362   test -z "$as_dir" && as_dir=.
9363     for ac_exec_ext in '' $ac_executable_extensions; do
9364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365     ac_cv_prog_WINDMC="${ncn_progname}"
9366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367     break 2
9368   fi
9369 done
9370   done
9371 IFS=$as_save_IFS
9372
9373 fi
9374 fi
9375 WINDMC=$ac_cv_prog_WINDMC
9376 if test -n "$WINDMC"; then
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9378 $as_echo "$WINDMC" >&6; }
9379 else
9380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383
9384
9385   fi
9386   test -n "$ac_cv_prog_WINDMC" && break
9387 done
9388
9389 if test -z "$ac_cv_prog_WINDMC" ; then
9390   set dummy windmc
9391   if test $build = $host ; then
9392     WINDMC="$2"
9393   else
9394     WINDMC="${ncn_tool_prefix}$2"
9395   fi
9396 fi
9397
9398
9399
9400 if test -n "$OBJCOPY"; then
9401   ac_cv_prog_OBJCOPY=$OBJCOPY
9402 elif test -n "$ac_cv_prog_OBJCOPY"; then
9403   OBJCOPY=$ac_cv_prog_OBJCOPY
9404 fi
9405
9406 if test -n "$ac_cv_prog_OBJCOPY"; then
9407   for ncn_progname in objcopy; do
9408     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9409 set dummy ${ncn_progname}; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9413   $as_echo_n "(cached) " >&6
9414 else
9415   if test -n "$OBJCOPY"; then
9416   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9417 else
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $PATH
9420 do
9421   IFS=$as_save_IFS
9422   test -z "$as_dir" && as_dir=.
9423     for ac_exec_ext in '' $ac_executable_extensions; do
9424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9425     ac_cv_prog_OBJCOPY="${ncn_progname}"
9426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9427     break 2
9428   fi
9429 done
9430   done
9431 IFS=$as_save_IFS
9432
9433 fi
9434 fi
9435 OBJCOPY=$ac_cv_prog_OBJCOPY
9436 if test -n "$OBJCOPY"; then
9437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9438 $as_echo "$OBJCOPY" >&6; }
9439 else
9440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9442 fi
9443
9444
9445   done
9446 fi
9447
9448 for ncn_progname in objcopy; do
9449   if test -n "$ncn_tool_prefix"; then
9450     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   if test -n "$OBJCOPY"; then
9458   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9467     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 OBJCOPY=$ac_cv_prog_OBJCOPY
9478 if test -n "$OBJCOPY"; then
9479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9480 $as_echo "$OBJCOPY" >&6; }
9481 else
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 fi
9485
9486
9487   fi
9488   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9489     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_progname}; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   if test -n "$OBJCOPY"; then
9497   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502   IFS=$as_save_IFS
9503   test -z "$as_dir" && as_dir=.
9504     for ac_exec_ext in '' $ac_executable_extensions; do
9505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506     ac_cv_prog_OBJCOPY="${ncn_progname}"
9507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508     break 2
9509   fi
9510 done
9511   done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 OBJCOPY=$ac_cv_prog_OBJCOPY
9517 if test -n "$OBJCOPY"; then
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9519 $as_echo "$OBJCOPY" >&6; }
9520 else
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525
9526   fi
9527   test -n "$ac_cv_prog_OBJCOPY" && break
9528 done
9529
9530 if test -z "$ac_cv_prog_OBJCOPY" ; then
9531   set dummy objcopy
9532   if test $build = $host ; then
9533     OBJCOPY="$2"
9534   else
9535     OBJCOPY="${ncn_tool_prefix}$2"
9536   fi
9537 fi
9538
9539
9540
9541 if test -n "$OBJDUMP"; then
9542   ac_cv_prog_OBJDUMP=$OBJDUMP
9543 elif test -n "$ac_cv_prog_OBJDUMP"; then
9544   OBJDUMP=$ac_cv_prog_OBJDUMP
9545 fi
9546
9547 if test -n "$ac_cv_prog_OBJDUMP"; then
9548   for ncn_progname in objdump; do
9549     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9550 set dummy ${ncn_progname}; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9554   $as_echo_n "(cached) " >&6
9555 else
9556   if test -n "$OBJDUMP"; then
9557   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562   IFS=$as_save_IFS
9563   test -z "$as_dir" && as_dir=.
9564     for ac_exec_ext in '' $ac_executable_extensions; do
9565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566     ac_cv_prog_OBJDUMP="${ncn_progname}"
9567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568     break 2
9569   fi
9570 done
9571   done
9572 IFS=$as_save_IFS
9573
9574 fi
9575 fi
9576 OBJDUMP=$ac_cv_prog_OBJDUMP
9577 if test -n "$OBJDUMP"; then
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9579 $as_echo "$OBJDUMP" >&6; }
9580 else
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584
9585
9586   done
9587 fi
9588
9589 for ncn_progname in objdump; do
9590   if test -n "$ncn_tool_prefix"; then
9591     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9596   $as_echo_n "(cached) " >&6
9597 else
9598   if test -n "$OBJDUMP"; then
9599   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9600 else
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615
9616 fi
9617 fi
9618 OBJDUMP=$ac_cv_prog_OBJDUMP
9619 if test -n "$OBJDUMP"; then
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9621 $as_echo "$OBJDUMP" >&6; }
9622 else
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625 fi
9626
9627
9628   fi
9629   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9630     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9631 set dummy ${ncn_progname}; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   if test -n "$OBJDUMP"; then
9638   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643   IFS=$as_save_IFS
9644   test -z "$as_dir" && as_dir=.
9645     for ac_exec_ext in '' $ac_executable_extensions; do
9646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647     ac_cv_prog_OBJDUMP="${ncn_progname}"
9648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649     break 2
9650   fi
9651 done
9652   done
9653 IFS=$as_save_IFS
9654
9655 fi
9656 fi
9657 OBJDUMP=$ac_cv_prog_OBJDUMP
9658 if test -n "$OBJDUMP"; then
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9660 $as_echo "$OBJDUMP" >&6; }
9661 else
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667   fi
9668   test -n "$ac_cv_prog_OBJDUMP" && break
9669 done
9670
9671 if test -z "$ac_cv_prog_OBJDUMP" ; then
9672   set dummy objdump
9673   if test $build = $host ; then
9674     OBJDUMP="$2"
9675   else
9676     OBJDUMP="${ncn_tool_prefix}$2"
9677   fi
9678 fi
9679
9680
9681
9682
9683
9684
9685 # Target tools.
9686
9687 # Check whether --with-build-time-tools was given.
9688 if test "${with_build_time_tools+set}" = set; then :
9689   withval=$with_build_time_tools; case x"$withval" in
9690      x/*) ;;
9691      *)
9692        with_build_time_tools=
9693        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9694 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9695        ;;
9696    esac
9697 else
9698   with_build_time_tools=
9699 fi
9700
9701
9702
9703
9704 if test -n "$CC_FOR_TARGET"; then
9705   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9706 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9707   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9708 fi
9709
9710 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711   for ncn_progname in cc gcc; do
9712     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   if test -n "$CC_FOR_TARGET"; then
9720   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_exec_ext in '' $ac_executable_extensions; do
9728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731     break 2
9732   fi
9733 done
9734   done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9740 if test -n "$CC_FOR_TARGET"; then
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9742 $as_echo "$CC_FOR_TARGET" >&6; }
9743 else
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747
9748
9749   done
9750 fi
9751
9752 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9753   for ncn_progname in cc gcc; do
9754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9755 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9756     if test -x $with_build_time_tools/${ncn_progname}; then
9757       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759 $as_echo "yes" >&6; }
9760       break
9761     else
9762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9764     fi
9765   done
9766 fi
9767
9768 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9769   for ncn_progname in cc gcc; do
9770     if test -n "$ncn_target_tool_prefix"; then
9771       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9772 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9776   $as_echo_n "(cached) " >&6
9777 else
9778   if test -n "$CC_FOR_TARGET"; then
9779   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9780 else
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784   IFS=$as_save_IFS
9785   test -z "$as_dir" && as_dir=.
9786     for ac_exec_ext in '' $ac_executable_extensions; do
9787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790     break 2
9791   fi
9792 done
9793   done
9794 IFS=$as_save_IFS
9795
9796 fi
9797 fi
9798 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9799 if test -n "$CC_FOR_TARGET"; then
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9801 $as_echo "$CC_FOR_TARGET" >&6; }
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808     fi
9809     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9810       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9811 set dummy ${ncn_progname}; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   if test -n "$CC_FOR_TARGET"; then
9818   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823   IFS=$as_save_IFS
9824   test -z "$as_dir" && as_dir=.
9825     for ac_exec_ext in '' $ac_executable_extensions; do
9826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829     break 2
9830   fi
9831 done
9832   done
9833 IFS=$as_save_IFS
9834
9835 fi
9836 fi
9837 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9838 if test -n "$CC_FOR_TARGET"; then
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9840 $as_echo "$CC_FOR_TARGET" >&6; }
9841 else
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9844 fi
9845
9846
9847     fi
9848     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9849   done
9850 fi
9851
9852 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9853   set dummy cc gcc
9854   if test $build = $target ; then
9855     CC_FOR_TARGET="$2"
9856   else
9857     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9858   fi
9859 else
9860   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9861 fi
9862
9863
9864
9865 if test -n "$CXX_FOR_TARGET"; then
9866   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9867 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9868   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9869 fi
9870
9871 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872   for ncn_progname in c++ g++ cxx gxx; do
9873     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9874 set dummy ${ncn_progname}; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   if test -n "$CXX_FOR_TARGET"; then
9881   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888     for ac_exec_ext in '' $ac_executable_extensions; do
9889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895   done
9896 IFS=$as_save_IFS
9897
9898 fi
9899 fi
9900 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9901 if test -n "$CXX_FOR_TARGET"; then
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9903 $as_echo "$CXX_FOR_TARGET" >&6; }
9904 else
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9907 fi
9908
9909
9910   done
9911 fi
9912
9913 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9914   for ncn_progname in c++ g++ cxx gxx; do
9915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9916 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9917     if test -x $with_build_time_tools/${ncn_progname}; then
9918       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920 $as_echo "yes" >&6; }
9921       break
9922     else
9923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9925     fi
9926   done
9927 fi
9928
9929 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9930   for ncn_progname in c++ g++ cxx gxx; do
9931     if test -n "$ncn_target_tool_prefix"; then
9932       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9933 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9937   $as_echo_n "(cached) " >&6
9938 else
9939   if test -n "$CXX_FOR_TARGET"; then
9940   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9944 do
9945   IFS=$as_save_IFS
9946   test -z "$as_dir" && as_dir=.
9947     for ac_exec_ext in '' $ac_executable_extensions; do
9948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951     break 2
9952   fi
9953 done
9954   done
9955 IFS=$as_save_IFS
9956
9957 fi
9958 fi
9959 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9960 if test -n "$CXX_FOR_TARGET"; then
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9962 $as_echo "$CXX_FOR_TARGET" >&6; }
9963 else
9964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9966 fi
9967
9968
9969     fi
9970     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9971       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9972 set dummy ${ncn_progname}; ac_word=$2
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 $as_echo_n "checking for $ac_word... " >&6; }
9975 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9976   $as_echo_n "(cached) " >&6
9977 else
9978   if test -n "$CXX_FOR_TARGET"; then
9979   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984   IFS=$as_save_IFS
9985   test -z "$as_dir" && as_dir=.
9986     for ac_exec_ext in '' $ac_executable_extensions; do
9987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990     break 2
9991   fi
9992 done
9993   done
9994 IFS=$as_save_IFS
9995
9996 fi
9997 fi
9998 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9999 if test -n "$CXX_FOR_TARGET"; then
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10001 $as_echo "$CXX_FOR_TARGET" >&6; }
10002 else
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005 fi
10006
10007
10008     fi
10009     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10010   done
10011 fi
10012
10013 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10014   set dummy c++ g++ cxx gxx
10015   if test $build = $target ; then
10016     CXX_FOR_TARGET="$2"
10017   else
10018     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10019   fi
10020 else
10021   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10022 fi
10023
10024
10025
10026 if test -n "$GCC_FOR_TARGET"; then
10027   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10028 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10029   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10030 fi
10031
10032 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033   for ncn_progname in gcc; do
10034     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10035 set dummy ${ncn_progname}; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   if test -n "$GCC_FOR_TARGET"; then
10042   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10043 else
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10046 do
10047   IFS=$as_save_IFS
10048   test -z "$as_dir" && as_dir=.
10049     for ac_exec_ext in '' $ac_executable_extensions; do
10050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053     break 2
10054   fi
10055 done
10056   done
10057 IFS=$as_save_IFS
10058
10059 fi
10060 fi
10061 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10062 if test -n "$GCC_FOR_TARGET"; then
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10064 $as_echo "$GCC_FOR_TARGET" >&6; }
10065 else
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 fi
10069
10070
10071   done
10072 fi
10073
10074 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10075   for ncn_progname in gcc; do
10076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10077 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10078     if test -x $with_build_time_tools/${ncn_progname}; then
10079       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10081 $as_echo "yes" >&6; }
10082       break
10083     else
10084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10086     fi
10087   done
10088 fi
10089
10090 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10091   for ncn_progname in gcc; do
10092     if test -n "$ncn_target_tool_prefix"; then
10093       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10094 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   if test -n "$GCC_FOR_TARGET"; then
10101   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106   IFS=$as_save_IFS
10107   test -z "$as_dir" && as_dir=.
10108     for ac_exec_ext in '' $ac_executable_extensions; do
10109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112     break 2
10113   fi
10114 done
10115   done
10116 IFS=$as_save_IFS
10117
10118 fi
10119 fi
10120 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10121 if test -n "$GCC_FOR_TARGET"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10123 $as_echo "$GCC_FOR_TARGET" >&6; }
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10129
10130     fi
10131     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10132       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133 set dummy ${ncn_progname}; ac_word=$2
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   if test -n "$GCC_FOR_TARGET"; then
10140   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10141 else
10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143 for as_dir in $PATH
10144 do
10145   IFS=$as_save_IFS
10146   test -z "$as_dir" && as_dir=.
10147     for ac_exec_ext in '' $ac_executable_extensions; do
10148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10149     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10151     break 2
10152   fi
10153 done
10154   done
10155 IFS=$as_save_IFS
10156
10157 fi
10158 fi
10159 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10160 if test -n "$GCC_FOR_TARGET"; then
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10162 $as_echo "$GCC_FOR_TARGET" >&6; }
10163 else
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10166 fi
10167
10168
10169     fi
10170     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10171   done
10172 fi
10173
10174 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10175   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10176 else
10177   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10178 fi
10179
10180
10181
10182 if test -n "$GCJ_FOR_TARGET"; then
10183   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10184 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10185   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10186 fi
10187
10188 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189   for ncn_progname in gcj; do
10190     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10191 set dummy ${ncn_progname}; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197   if test -n "$GCJ_FOR_TARGET"; then
10198   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10199 else
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10202 do
10203   IFS=$as_save_IFS
10204   test -z "$as_dir" && as_dir=.
10205     for ac_exec_ext in '' $ac_executable_extensions; do
10206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209     break 2
10210   fi
10211 done
10212   done
10213 IFS=$as_save_IFS
10214
10215 fi
10216 fi
10217 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10218 if test -n "$GCJ_FOR_TARGET"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10220 $as_echo "$GCJ_FOR_TARGET" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225
10226
10227   done
10228 fi
10229
10230 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10231   for ncn_progname in gcj; do
10232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10233 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10234     if test -x $with_build_time_tools/${ncn_progname}; then
10235       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237 $as_echo "yes" >&6; }
10238       break
10239     else
10240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242     fi
10243   done
10244 fi
10245
10246 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10247   for ncn_progname in gcj; do
10248     if test -n "$ncn_target_tool_prefix"; then
10249       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10250 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   if test -n "$GCJ_FOR_TARGET"; then
10257   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10258 else
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262   IFS=$as_save_IFS
10263   test -z "$as_dir" && as_dir=.
10264     for ac_exec_ext in '' $ac_executable_extensions; do
10265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268     break 2
10269   fi
10270 done
10271   done
10272 IFS=$as_save_IFS
10273
10274 fi
10275 fi
10276 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10277 if test -n "$GCJ_FOR_TARGET"; then
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10279 $as_echo "$GCJ_FOR_TARGET" >&6; }
10280 else
10281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 fi
10284
10285
10286     fi
10287     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10288       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289 set dummy ${ncn_progname}; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   if test -n "$GCJ_FOR_TARGET"; then
10296   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10297 else
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301   IFS=$as_save_IFS
10302   test -z "$as_dir" && as_dir=.
10303     for ac_exec_ext in '' $ac_executable_extensions; do
10304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10305     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307     break 2
10308   fi
10309 done
10310   done
10311 IFS=$as_save_IFS
10312
10313 fi
10314 fi
10315 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10316 if test -n "$GCJ_FOR_TARGET"; then
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10318 $as_echo "$GCJ_FOR_TARGET" >&6; }
10319 else
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323
10324
10325     fi
10326     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10327   done
10328 fi
10329
10330 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10331   set dummy gcj
10332   if test $build = $target ; then
10333     GCJ_FOR_TARGET="$2"
10334   else
10335     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10336   fi
10337 else
10338   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10339 fi
10340
10341
10342
10343 if test -n "$GFORTRAN_FOR_TARGET"; then
10344   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10345 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10346   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10347 fi
10348
10349 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350   for ncn_progname in gfortran; do
10351     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10352 set dummy ${ncn_progname}; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   if test -n "$GFORTRAN_FOR_TARGET"; then
10359   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10363 do
10364   IFS=$as_save_IFS
10365   test -z "$as_dir" && as_dir=.
10366     for ac_exec_ext in '' $ac_executable_extensions; do
10367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10368     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370     break 2
10371   fi
10372 done
10373   done
10374 IFS=$as_save_IFS
10375
10376 fi
10377 fi
10378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10379 if test -n "$GFORTRAN_FOR_TARGET"; then
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10381 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10382 else
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386
10387
10388   done
10389 fi
10390
10391 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10392   for ncn_progname in gfortran; do
10393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10395     if test -x $with_build_time_tools/${ncn_progname}; then
10396       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; }
10399       break
10400     else
10401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10403     fi
10404   done
10405 fi
10406
10407 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10408   for ncn_progname in gfortran; do
10409     if test -n "$ncn_target_tool_prefix"; then
10410       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   if test -n "$GFORTRAN_FOR_TARGET"; then
10418   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10422 do
10423   IFS=$as_save_IFS
10424   test -z "$as_dir" && as_dir=.
10425     for ac_exec_ext in '' $ac_executable_extensions; do
10426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429     break 2
10430   fi
10431 done
10432   done
10433 IFS=$as_save_IFS
10434
10435 fi
10436 fi
10437 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10438 if test -n "$GFORTRAN_FOR_TARGET"; then
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10440 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10441 else
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 fi
10445
10446
10447     fi
10448     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10449       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10450 set dummy ${ncn_progname}; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   if test -n "$GFORTRAN_FOR_TARGET"; then
10457   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10458 else
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10461 do
10462   IFS=$as_save_IFS
10463   test -z "$as_dir" && as_dir=.
10464     for ac_exec_ext in '' $ac_executable_extensions; do
10465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468     break 2
10469   fi
10470 done
10471   done
10472 IFS=$as_save_IFS
10473
10474 fi
10475 fi
10476 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10477 if test -n "$GFORTRAN_FOR_TARGET"; then
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10479 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10480 else
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10483 fi
10484
10485
10486     fi
10487     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10488   done
10489 fi
10490
10491 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10492   set dummy gfortran
10493   if test $build = $target ; then
10494     GFORTRAN_FOR_TARGET="$2"
10495   else
10496     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10497   fi
10498 else
10499   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10500 fi
10501
10502
10503
10504 if test -n "$GOC_FOR_TARGET"; then
10505   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10506 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10507   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10508 fi
10509
10510 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511   for ncn_progname in gccgo; do
10512     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10513 set dummy ${ncn_progname}; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   if test -n "$GOC_FOR_TARGET"; then
10520   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10521 else
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10524 do
10525   IFS=$as_save_IFS
10526   test -z "$as_dir" && as_dir=.
10527     for ac_exec_ext in '' $ac_executable_extensions; do
10528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531     break 2
10532   fi
10533 done
10534   done
10535 IFS=$as_save_IFS
10536
10537 fi
10538 fi
10539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10540 if test -n "$GOC_FOR_TARGET"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10542 $as_echo "$GOC_FOR_TARGET" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548
10549   done
10550 fi
10551
10552 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10553   for ncn_progname in gccgo; do
10554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10556     if test -x $with_build_time_tools/${ncn_progname}; then
10557       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10560       break
10561     else
10562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564     fi
10565   done
10566 fi
10567
10568 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10569   for ncn_progname in gccgo; do
10570     if test -n "$ncn_target_tool_prefix"; then
10571       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   if test -n "$GOC_FOR_TARGET"; then
10579   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584   IFS=$as_save_IFS
10585   test -z "$as_dir" && as_dir=.
10586     for ac_exec_ext in '' $ac_executable_extensions; do
10587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590     break 2
10591   fi
10592 done
10593   done
10594 IFS=$as_save_IFS
10595
10596 fi
10597 fi
10598 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10599 if test -n "$GOC_FOR_TARGET"; then
10600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10601 $as_echo "$GOC_FOR_TARGET" >&6; }
10602 else
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 fi
10606
10607
10608     fi
10609     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10610       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10611 set dummy ${ncn_progname}; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   if test -n "$GOC_FOR_TARGET"; then
10618   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623   IFS=$as_save_IFS
10624   test -z "$as_dir" && as_dir=.
10625     for ac_exec_ext in '' $ac_executable_extensions; do
10626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629     break 2
10630   fi
10631 done
10632   done
10633 IFS=$as_save_IFS
10634
10635 fi
10636 fi
10637 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10638 if test -n "$GOC_FOR_TARGET"; then
10639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10640 $as_echo "$GOC_FOR_TARGET" >&6; }
10641 else
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10644 fi
10645
10646
10647     fi
10648     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10649   done
10650 fi
10651
10652 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10653   set dummy gccgo
10654   if test $build = $target ; then
10655     GOC_FOR_TARGET="$2"
10656   else
10657     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10658   fi
10659 else
10660   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10661 fi
10662
10663
10664
10665 cat > conftest.c << \EOF
10666 #ifdef __GNUC__
10667   gcc_yay;
10668 #endif
10669 EOF
10670 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10671   have_gcc_for_target=yes
10672 else
10673   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10674   have_gcc_for_target=no
10675 fi
10676 rm conftest.c
10677
10678
10679
10680
10681 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10682   if test -n "$with_build_time_tools"; then
10683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10684 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10685     if test -x $with_build_time_tools/ar; then
10686       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10687       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10689 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10690     else
10691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693     fi
10694   elif test $build != $host && test $have_gcc_for_target = yes; then
10695     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10696     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10697     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10698   fi
10699 fi
10700 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10701   # Extract the first word of "ar", so it can be a program name with args.
10702 set dummy ar; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10706   $as_echo_n "(cached) " >&6
10707 else
10708   case $AR_FOR_TARGET in
10709   [\\/]* | ?:[\\/]*)
10710   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10711   ;;
10712   *)
10713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $gcc_cv_tool_dirs
10715 do
10716   IFS=$as_save_IFS
10717   test -z "$as_dir" && as_dir=.
10718     for ac_exec_ext in '' $ac_executable_extensions; do
10719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722     break 2
10723   fi
10724 done
10725   done
10726 IFS=$as_save_IFS
10727
10728   ;;
10729 esac
10730 fi
10731 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10732 if test -n "$AR_FOR_TARGET"; then
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10734 $as_echo "$AR_FOR_TARGET" >&6; }
10735 else
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 fi
10739
10740
10741 fi
10742 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10743
10744
10745 if test -n "$AR_FOR_TARGET"; then
10746   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10747 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10748   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10749 fi
10750
10751 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752   for ncn_progname in ar; do
10753     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10754 set dummy ${ncn_progname}; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   if test -n "$AR_FOR_TARGET"; then
10761   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10762 else
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766   IFS=$as_save_IFS
10767   test -z "$as_dir" && as_dir=.
10768     for ac_exec_ext in '' $ac_executable_extensions; do
10769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772     break 2
10773   fi
10774 done
10775   done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10781 if test -n "$AR_FOR_TARGET"; then
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10783 $as_echo "$AR_FOR_TARGET" >&6; }
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790   done
10791 fi
10792
10793 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10794   for ncn_progname in ar; do
10795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10796 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10797     if test -x $with_build_time_tools/${ncn_progname}; then
10798       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800 $as_echo "yes" >&6; }
10801       break
10802     else
10803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805     fi
10806   done
10807 fi
10808
10809 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10810   for ncn_progname in ar; do
10811     if test -n "$ncn_target_tool_prefix"; then
10812       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10813 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   if test -n "$AR_FOR_TARGET"; then
10820   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10821 else
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825   IFS=$as_save_IFS
10826   test -z "$as_dir" && as_dir=.
10827     for ac_exec_ext in '' $ac_executable_extensions; do
10828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831     break 2
10832   fi
10833 done
10834   done
10835 IFS=$as_save_IFS
10836
10837 fi
10838 fi
10839 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10840 if test -n "$AR_FOR_TARGET"; then
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10842 $as_echo "$AR_FOR_TARGET" >&6; }
10843 else
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10846 fi
10847
10848
10849     fi
10850     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10851       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10852 set dummy ${ncn_progname}; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   if test -n "$AR_FOR_TARGET"; then
10859   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10860 else
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10863 do
10864   IFS=$as_save_IFS
10865   test -z "$as_dir" && as_dir=.
10866     for ac_exec_ext in '' $ac_executable_extensions; do
10867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10868     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870     break 2
10871   fi
10872 done
10873   done
10874 IFS=$as_save_IFS
10875
10876 fi
10877 fi
10878 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10879 if test -n "$AR_FOR_TARGET"; then
10880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10881 $as_echo "$AR_FOR_TARGET" >&6; }
10882 else
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10885 fi
10886
10887
10888     fi
10889     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10890   done
10891 fi
10892
10893 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10894   set dummy ar
10895   if test $build = $target ; then
10896     AR_FOR_TARGET="$2"
10897   else
10898     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10899   fi
10900 else
10901   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10902 fi
10903
10904 else
10905   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10906 fi
10907
10908
10909
10910
10911 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10912   if test -n "$with_build_time_tools"; then
10913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10914 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10915     if test -x $with_build_time_tools/as; then
10916       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10917       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10919 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10920     else
10921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923     fi
10924   elif test $build != $host && test $have_gcc_for_target = yes; then
10925     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10926     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10927     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10928   fi
10929 fi
10930 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10931   # Extract the first word of "as", so it can be a program name with args.
10932 set dummy as; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938   case $AS_FOR_TARGET in
10939   [\\/]* | ?:[\\/]*)
10940   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10941   ;;
10942   *)
10943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $gcc_cv_tool_dirs
10945 do
10946   IFS=$as_save_IFS
10947   test -z "$as_dir" && as_dir=.
10948     for ac_exec_ext in '' $ac_executable_extensions; do
10949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952     break 2
10953   fi
10954 done
10955   done
10956 IFS=$as_save_IFS
10957
10958   ;;
10959 esac
10960 fi
10961 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10962 if test -n "$AS_FOR_TARGET"; then
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10964 $as_echo "$AS_FOR_TARGET" >&6; }
10965 else
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968 fi
10969
10970
10971 fi
10972 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10973
10974
10975 if test -n "$AS_FOR_TARGET"; then
10976   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10977 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10978   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10979 fi
10980
10981 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982   for ncn_progname in as; do
10983     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10984 set dummy ${ncn_progname}; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10988   $as_echo_n "(cached) " >&6
10989 else
10990   if test -n "$AS_FOR_TARGET"; then
10991   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10992 else
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996   IFS=$as_save_IFS
10997   test -z "$as_dir" && as_dir=.
10998     for ac_exec_ext in '' $ac_executable_extensions; do
10999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002     break 2
11003   fi
11004 done
11005   done
11006 IFS=$as_save_IFS
11007
11008 fi
11009 fi
11010 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11011 if test -n "$AS_FOR_TARGET"; then
11012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11013 $as_echo "$AS_FOR_TARGET" >&6; }
11014 else
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018
11019
11020   done
11021 fi
11022
11023 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11024   for ncn_progname in as; do
11025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11026 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11027     if test -x $with_build_time_tools/${ncn_progname}; then
11028       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11031       break
11032     else
11033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035     fi
11036   done
11037 fi
11038
11039 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11040   for ncn_progname in as; do
11041     if test -n "$ncn_target_tool_prefix"; then
11042       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   if test -n "$AS_FOR_TARGET"; then
11050   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11051 else
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055   IFS=$as_save_IFS
11056   test -z "$as_dir" && as_dir=.
11057     for ac_exec_ext in '' $ac_executable_extensions; do
11058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061     break 2
11062   fi
11063 done
11064   done
11065 IFS=$as_save_IFS
11066
11067 fi
11068 fi
11069 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11070 if test -n "$AS_FOR_TARGET"; then
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11072 $as_echo "$AS_FOR_TARGET" >&6; }
11073 else
11074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11076 fi
11077
11078
11079     fi
11080     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11081       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082 set dummy ${ncn_progname}; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   if test -n "$AS_FOR_TARGET"; then
11089   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11090 else
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094   IFS=$as_save_IFS
11095   test -z "$as_dir" && as_dir=.
11096     for ac_exec_ext in '' $ac_executable_extensions; do
11097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100     break 2
11101   fi
11102 done
11103   done
11104 IFS=$as_save_IFS
11105
11106 fi
11107 fi
11108 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11109 if test -n "$AS_FOR_TARGET"; then
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11111 $as_echo "$AS_FOR_TARGET" >&6; }
11112 else
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11115 fi
11116
11117
11118     fi
11119     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11120   done
11121 fi
11122
11123 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11124   set dummy as
11125   if test $build = $target ; then
11126     AS_FOR_TARGET="$2"
11127   else
11128     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11129   fi
11130 else
11131   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11132 fi
11133
11134 else
11135   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11136 fi
11137
11138
11139
11140
11141 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11142   if test -n "$with_build_time_tools"; then
11143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11144 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11145     if test -x $with_build_time_tools/dlltool; then
11146       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11147       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11149 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11150     else
11151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153     fi
11154   elif test $build != $host && test $have_gcc_for_target = yes; then
11155     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11156     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11157     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11158   fi
11159 fi
11160 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11161   # Extract the first word of "dlltool", so it can be a program name with args.
11162 set dummy dlltool; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11166   $as_echo_n "(cached) " >&6
11167 else
11168   case $DLLTOOL_FOR_TARGET in
11169   [\\/]* | ?:[\\/]*)
11170   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11171   ;;
11172   *)
11173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $gcc_cv_tool_dirs
11175 do
11176   IFS=$as_save_IFS
11177   test -z "$as_dir" && as_dir=.
11178     for ac_exec_ext in '' $ac_executable_extensions; do
11179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182     break 2
11183   fi
11184 done
11185   done
11186 IFS=$as_save_IFS
11187
11188   ;;
11189 esac
11190 fi
11191 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11192 if test -n "$DLLTOOL_FOR_TARGET"; then
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11194 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11195 else
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199
11200
11201 fi
11202 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11203
11204
11205 if test -n "$DLLTOOL_FOR_TARGET"; then
11206   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11207 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11208   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11209 fi
11210
11211 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212   for ncn_progname in dlltool; do
11213     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214 set dummy ${ncn_progname}; ac_word=$2
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216 $as_echo_n "checking for $ac_word... " >&6; }
11217 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11218   $as_echo_n "(cached) " >&6
11219 else
11220   if test -n "$DLLTOOL_FOR_TARGET"; then
11221   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228     for ac_exec_ext in '' $ac_executable_extensions; do
11229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235   done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11241 if test -n "$DLLTOOL_FOR_TARGET"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11243 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250   done
11251 fi
11252
11253 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11254   for ncn_progname in dlltool; do
11255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11257     if test -x $with_build_time_tools/${ncn_progname}; then
11258       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; }
11261       break
11262     else
11263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11265     fi
11266   done
11267 fi
11268
11269 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11270   for ncn_progname in dlltool; do
11271     if test -n "$ncn_target_tool_prefix"; then
11272       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11277   $as_echo_n "(cached) " >&6
11278 else
11279   if test -n "$DLLTOOL_FOR_TARGET"; then
11280   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285   IFS=$as_save_IFS
11286   test -z "$as_dir" && as_dir=.
11287     for ac_exec_ext in '' $ac_executable_extensions; do
11288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294   done
11295 IFS=$as_save_IFS
11296
11297 fi
11298 fi
11299 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11300 if test -n "$DLLTOOL_FOR_TARGET"; then
11301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11302 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11303 else
11304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11306 fi
11307
11308
11309     fi
11310     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11311       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11312 set dummy ${ncn_progname}; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11316   $as_echo_n "(cached) " >&6
11317 else
11318   if test -n "$DLLTOOL_FOR_TARGET"; then
11319   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324   IFS=$as_save_IFS
11325   test -z "$as_dir" && as_dir=.
11326     for ac_exec_ext in '' $ac_executable_extensions; do
11327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330     break 2
11331   fi
11332 done
11333   done
11334 IFS=$as_save_IFS
11335
11336 fi
11337 fi
11338 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11339 if test -n "$DLLTOOL_FOR_TARGET"; then
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11341 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11342 else
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346
11347
11348     fi
11349     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11350   done
11351 fi
11352
11353 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11354   set dummy dlltool
11355   if test $build = $target ; then
11356     DLLTOOL_FOR_TARGET="$2"
11357   else
11358     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11359   fi
11360 else
11361   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11362 fi
11363
11364 else
11365   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11366 fi
11367
11368
11369
11370
11371 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11372   if test -n "$with_build_time_tools"; then
11373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11374 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11375     if test -x $with_build_time_tools/ld; then
11376       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11377       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11379 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11380     else
11381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383     fi
11384   elif test $build != $host && test $have_gcc_for_target = yes; then
11385     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11386     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11387     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11388   fi
11389 fi
11390 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11391   # Extract the first word of "ld", so it can be a program name with args.
11392 set dummy ld; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   case $LD_FOR_TARGET in
11399   [\\/]* | ?:[\\/]*)
11400   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11401   ;;
11402   *)
11403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $gcc_cv_tool_dirs
11405 do
11406   IFS=$as_save_IFS
11407   test -z "$as_dir" && as_dir=.
11408     for ac_exec_ext in '' $ac_executable_extensions; do
11409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412     break 2
11413   fi
11414 done
11415   done
11416 IFS=$as_save_IFS
11417
11418   ;;
11419 esac
11420 fi
11421 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11422 if test -n "$LD_FOR_TARGET"; then
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11424 $as_echo "$LD_FOR_TARGET" >&6; }
11425 else
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11433
11434
11435 if test -n "$LD_FOR_TARGET"; then
11436   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11437 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11438   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11439 fi
11440
11441 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442   for ncn_progname in ld; do
11443     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11444 set dummy ${ncn_progname}; ac_word=$2
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446 $as_echo_n "checking for $ac_word... " >&6; }
11447 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   if test -n "$LD_FOR_TARGET"; then
11451   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11452 else
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456   IFS=$as_save_IFS
11457   test -z "$as_dir" && as_dir=.
11458     for ac_exec_ext in '' $ac_executable_extensions; do
11459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462     break 2
11463   fi
11464 done
11465   done
11466 IFS=$as_save_IFS
11467
11468 fi
11469 fi
11470 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11471 if test -n "$LD_FOR_TARGET"; then
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11473 $as_echo "$LD_FOR_TARGET" >&6; }
11474 else
11475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11477 fi
11478
11479
11480   done
11481 fi
11482
11483 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11484   for ncn_progname in ld; do
11485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11486 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11487     if test -x $with_build_time_tools/${ncn_progname}; then
11488       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11490 $as_echo "yes" >&6; }
11491       break
11492     else
11493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495     fi
11496   done
11497 fi
11498
11499 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11500   for ncn_progname in ld; do
11501     if test -n "$ncn_target_tool_prefix"; then
11502       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11503 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   if test -n "$LD_FOR_TARGET"; then
11510   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11511 else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517     for ac_exec_ext in '' $ac_executable_extensions; do
11518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521     break 2
11522   fi
11523 done
11524   done
11525 IFS=$as_save_IFS
11526
11527 fi
11528 fi
11529 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11530 if test -n "$LD_FOR_TARGET"; then
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11532 $as_echo "$LD_FOR_TARGET" >&6; }
11533 else
11534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 fi
11537
11538
11539     fi
11540     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11541       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11542 set dummy ${ncn_progname}; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   if test -n "$LD_FOR_TARGET"; then
11549   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11550 else
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556     for ac_exec_ext in '' $ac_executable_extensions; do
11557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563   done
11564 IFS=$as_save_IFS
11565
11566 fi
11567 fi
11568 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11569 if test -n "$LD_FOR_TARGET"; then
11570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11571 $as_echo "$LD_FOR_TARGET" >&6; }
11572 else
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11575 fi
11576
11577
11578     fi
11579     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11580   done
11581 fi
11582
11583 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11584   set dummy ld
11585   if test $build = $target ; then
11586     LD_FOR_TARGET="$2"
11587   else
11588     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11589   fi
11590 else
11591   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11592 fi
11593
11594 else
11595   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11596 fi
11597
11598
11599
11600
11601 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11602   if test -n "$with_build_time_tools"; then
11603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11604 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11605     if test -x $with_build_time_tools/lipo; then
11606       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11607       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11609 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11610     else
11611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11613     fi
11614   elif test $build != $host && test $have_gcc_for_target = yes; then
11615     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11616     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11617     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11618   fi
11619 fi
11620 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11621   # Extract the first word of "lipo", so it can be a program name with args.
11622 set dummy lipo; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   case $LIPO_FOR_TARGET in
11629   [\\/]* | ?:[\\/]*)
11630   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11631   ;;
11632   *)
11633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $gcc_cv_tool_dirs
11635 do
11636   IFS=$as_save_IFS
11637   test -z "$as_dir" && as_dir=.
11638     for ac_exec_ext in '' $ac_executable_extensions; do
11639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642     break 2
11643   fi
11644 done
11645   done
11646 IFS=$as_save_IFS
11647
11648   ;;
11649 esac
11650 fi
11651 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11652 if test -n "$LIPO_FOR_TARGET"; then
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11654 $as_echo "$LIPO_FOR_TARGET" >&6; }
11655 else
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 fi
11662 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11663
11664
11665 if test -n "$LIPO_FOR_TARGET"; then
11666   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11667 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11668   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11669 fi
11670
11671 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672   for ncn_progname in lipo; do
11673     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11674 set dummy ${ncn_progname}; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   if test -n "$LIPO_FOR_TARGET"; then
11681   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11682 else
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11685 do
11686   IFS=$as_save_IFS
11687   test -z "$as_dir" && as_dir=.
11688     for ac_exec_ext in '' $ac_executable_extensions; do
11689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11690     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692     break 2
11693   fi
11694 done
11695   done
11696 IFS=$as_save_IFS
11697
11698 fi
11699 fi
11700 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11701 if test -n "$LIPO_FOR_TARGET"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11703 $as_echo "$LIPO_FOR_TARGET" >&6; }
11704 else
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708
11709
11710   done
11711 fi
11712
11713 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11714   for ncn_progname in lipo; do
11715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11716 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11717     if test -x $with_build_time_tools/${ncn_progname}; then
11718       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11721       break
11722     else
11723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11725     fi
11726   done
11727 fi
11728
11729 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11730   for ncn_progname in lipo; do
11731     if test -n "$ncn_target_tool_prefix"; then
11732       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11733 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   if test -n "$LIPO_FOR_TARGET"; then
11740   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11749     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756
11757 fi
11758 fi
11759 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11760 if test -n "$LIPO_FOR_TARGET"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11762 $as_echo "$LIPO_FOR_TARGET" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767
11768
11769     fi
11770     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11771       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11772 set dummy ${ncn_progname}; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   if test -n "$LIPO_FOR_TARGET"; then
11779   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11780 else
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_exec_ext in '' $ac_executable_extensions; do
11787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11788     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795
11796 fi
11797 fi
11798 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11799 if test -n "$LIPO_FOR_TARGET"; then
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11801 $as_echo "$LIPO_FOR_TARGET" >&6; }
11802 else
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 fi
11806
11807
11808     fi
11809     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11810   done
11811 fi
11812
11813 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11814   set dummy lipo
11815   if test $build = $target ; then
11816     LIPO_FOR_TARGET="$2"
11817   else
11818     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11819   fi
11820 else
11821   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11822 fi
11823
11824 else
11825   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11826 fi
11827
11828
11829
11830
11831 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11832   if test -n "$with_build_time_tools"; then
11833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11834 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11835     if test -x $with_build_time_tools/nm; then
11836       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11837       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11839 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11840     else
11841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843     fi
11844   elif test $build != $host && test $have_gcc_for_target = yes; then
11845     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11846     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11847     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11848   fi
11849 fi
11850 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11851   # Extract the first word of "nm", so it can be a program name with args.
11852 set dummy nm; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   case $NM_FOR_TARGET in
11859   [\\/]* | ?:[\\/]*)
11860   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11861   ;;
11862   *)
11863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $gcc_cv_tool_dirs
11865 do
11866   IFS=$as_save_IFS
11867   test -z "$as_dir" && as_dir=.
11868     for ac_exec_ext in '' $ac_executable_extensions; do
11869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872     break 2
11873   fi
11874 done
11875   done
11876 IFS=$as_save_IFS
11877
11878   ;;
11879 esac
11880 fi
11881 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11882 if test -n "$NM_FOR_TARGET"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11884 $as_echo "$NM_FOR_TARGET" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891 fi
11892 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11893
11894
11895 if test -n "$NM_FOR_TARGET"; then
11896   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11897 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11898   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11899 fi
11900
11901 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902   for ncn_progname in nm; do
11903     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11904 set dummy ${ncn_progname}; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11908   $as_echo_n "(cached) " >&6
11909 else
11910   if test -n "$NM_FOR_TARGET"; then
11911   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11912 else
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11915 do
11916   IFS=$as_save_IFS
11917   test -z "$as_dir" && as_dir=.
11918     for ac_exec_ext in '' $ac_executable_extensions; do
11919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922     break 2
11923   fi
11924 done
11925   done
11926 IFS=$as_save_IFS
11927
11928 fi
11929 fi
11930 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11931 if test -n "$NM_FOR_TARGET"; then
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11933 $as_echo "$NM_FOR_TARGET" >&6; }
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938
11939
11940   done
11941 fi
11942
11943 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11944   for ncn_progname in nm; do
11945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11946 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11947     if test -x $with_build_time_tools/${ncn_progname}; then
11948       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950 $as_echo "yes" >&6; }
11951       break
11952     else
11953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11955     fi
11956   done
11957 fi
11958
11959 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11960   for ncn_progname in nm; do
11961     if test -n "$ncn_target_tool_prefix"; then
11962       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   if test -n "$NM_FOR_TARGET"; then
11970   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11971 else
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11974 do
11975   IFS=$as_save_IFS
11976   test -z "$as_dir" && as_dir=.
11977     for ac_exec_ext in '' $ac_executable_extensions; do
11978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981     break 2
11982   fi
11983 done
11984   done
11985 IFS=$as_save_IFS
11986
11987 fi
11988 fi
11989 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11990 if test -n "$NM_FOR_TARGET"; then
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11992 $as_echo "$NM_FOR_TARGET" >&6; }
11993 else
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11996 fi
11997
11998
11999     fi
12000     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12001       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12002 set dummy ${ncn_progname}; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12006   $as_echo_n "(cached) " >&6
12007 else
12008   if test -n "$NM_FOR_TARGET"; then
12009   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12010 else
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014   IFS=$as_save_IFS
12015   test -z "$as_dir" && as_dir=.
12016     for ac_exec_ext in '' $ac_executable_extensions; do
12017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12018     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020     break 2
12021   fi
12022 done
12023   done
12024 IFS=$as_save_IFS
12025
12026 fi
12027 fi
12028 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12029 if test -n "$NM_FOR_TARGET"; then
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12031 $as_echo "$NM_FOR_TARGET" >&6; }
12032 else
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036
12037
12038     fi
12039     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12040   done
12041 fi
12042
12043 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12044   set dummy nm
12045   if test $build = $target ; then
12046     NM_FOR_TARGET="$2"
12047   else
12048     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12049   fi
12050 else
12051   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12052 fi
12053
12054 else
12055   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12056 fi
12057
12058
12059
12060
12061 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12062   if test -n "$with_build_time_tools"; then
12063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12064 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12065     if test -x $with_build_time_tools/objdump; then
12066       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12067       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12069 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12070     else
12071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12073     fi
12074   elif test $build != $host && test $have_gcc_for_target = yes; then
12075     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12076     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12077     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12078   fi
12079 fi
12080 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12081   # Extract the first word of "objdump", so it can be a program name with args.
12082 set dummy objdump; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   case $OBJDUMP_FOR_TARGET in
12089   [\\/]* | ?:[\\/]*)
12090   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12091   ;;
12092   *)
12093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $gcc_cv_tool_dirs
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107
12108   ;;
12109 esac
12110 fi
12111 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12112 if test -n "$OBJDUMP_FOR_TARGET"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12114 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12123
12124
12125 if test -n "$OBJDUMP_FOR_TARGET"; then
12126   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12127 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12128   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12129 fi
12130
12131 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132   for ncn_progname in objdump; do
12133     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12134 set dummy ${ncn_progname}; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   if test -n "$OBJDUMP_FOR_TARGET"; then
12141   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12142 else
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146   IFS=$as_save_IFS
12147   test -z "$as_dir" && as_dir=.
12148     for ac_exec_ext in '' $ac_executable_extensions; do
12149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152     break 2
12153   fi
12154 done
12155   done
12156 IFS=$as_save_IFS
12157
12158 fi
12159 fi
12160 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12161 if test -n "$OBJDUMP_FOR_TARGET"; then
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12163 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12164 else
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170   done
12171 fi
12172
12173 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12174   for ncn_progname in objdump; do
12175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12176 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12177     if test -x $with_build_time_tools/${ncn_progname}; then
12178       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; }
12181       break
12182     else
12183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185     fi
12186   done
12187 fi
12188
12189 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12190   for ncn_progname in objdump; do
12191     if test -n "$ncn_target_tool_prefix"; then
12192       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199   if test -n "$OBJDUMP_FOR_TARGET"; then
12200   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12201 else
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12204 do
12205   IFS=$as_save_IFS
12206   test -z "$as_dir" && as_dir=.
12207     for ac_exec_ext in '' $ac_executable_extensions; do
12208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211     break 2
12212   fi
12213 done
12214   done
12215 IFS=$as_save_IFS
12216
12217 fi
12218 fi
12219 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12220 if test -n "$OBJDUMP_FOR_TARGET"; then
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12222 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12223 else
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227
12228
12229     fi
12230     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12231       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12232 set dummy ${ncn_progname}; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   if test -n "$OBJDUMP_FOR_TARGET"; then
12239   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12240 else
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12248     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256 fi
12257 fi
12258 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12259 if test -n "$OBJDUMP_FOR_TARGET"; then
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12261 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12262 else
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266
12267
12268     fi
12269     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12270   done
12271 fi
12272
12273 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12274   set dummy objdump
12275   if test $build = $target ; then
12276     OBJDUMP_FOR_TARGET="$2"
12277   else
12278     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12279   fi
12280 else
12281   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12282 fi
12283
12284 else
12285   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12286 fi
12287
12288
12289
12290
12291 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12292   if test -n "$with_build_time_tools"; then
12293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12294 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12295     if test -x $with_build_time_tools/ranlib; then
12296       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12297       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12299 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12300     else
12301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303     fi
12304   elif test $build != $host && test $have_gcc_for_target = yes; then
12305     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12306     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12307     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12308   fi
12309 fi
12310 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12311   # Extract the first word of "ranlib", so it can be a program name with args.
12312 set dummy ranlib; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   case $RANLIB_FOR_TARGET in
12319   [\\/]* | ?:[\\/]*)
12320   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12321   ;;
12322   *)
12323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $gcc_cv_tool_dirs
12325 do
12326   IFS=$as_save_IFS
12327   test -z "$as_dir" && as_dir=.
12328     for ac_exec_ext in '' $ac_executable_extensions; do
12329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332     break 2
12333   fi
12334 done
12335   done
12336 IFS=$as_save_IFS
12337
12338   ;;
12339 esac
12340 fi
12341 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12342 if test -n "$RANLIB_FOR_TARGET"; then
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12344 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12345 else
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12353
12354
12355 if test -n "$RANLIB_FOR_TARGET"; then
12356   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12357 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12358   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12359 fi
12360
12361 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362   for ncn_progname in ranlib; do
12363     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12364 set dummy ${ncn_progname}; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   if test -n "$RANLIB_FOR_TARGET"; then
12371   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376   IFS=$as_save_IFS
12377   test -z "$as_dir" && as_dir=.
12378     for ac_exec_ext in '' $ac_executable_extensions; do
12379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382     break 2
12383   fi
12384 done
12385   done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12391 if test -n "$RANLIB_FOR_TARGET"; then
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12393 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12394 else
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398
12399
12400   done
12401 fi
12402
12403 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12404   for ncn_progname in ranlib; do
12405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12406 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12407     if test -x $with_build_time_tools/${ncn_progname}; then
12408       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410 $as_echo "yes" >&6; }
12411       break
12412     else
12413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415     fi
12416   done
12417 fi
12418
12419 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12420   for ncn_progname in ranlib; do
12421     if test -n "$ncn_target_tool_prefix"; then
12422       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12423 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   if test -n "$RANLIB_FOR_TARGET"; then
12430   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12431 else
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12434 do
12435   IFS=$as_save_IFS
12436   test -z "$as_dir" && as_dir=.
12437     for ac_exec_ext in '' $ac_executable_extensions; do
12438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12439     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441     break 2
12442   fi
12443 done
12444   done
12445 IFS=$as_save_IFS
12446
12447 fi
12448 fi
12449 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12450 if test -n "$RANLIB_FOR_TARGET"; then
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12452 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12453 else
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12456 fi
12457
12458
12459     fi
12460     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12461       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12462 set dummy ${ncn_progname}; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468   if test -n "$RANLIB_FOR_TARGET"; then
12469   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12470 else
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12473 do
12474   IFS=$as_save_IFS
12475   test -z "$as_dir" && as_dir=.
12476     for ac_exec_ext in '' $ac_executable_extensions; do
12477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480     break 2
12481   fi
12482 done
12483   done
12484 IFS=$as_save_IFS
12485
12486 fi
12487 fi
12488 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12489 if test -n "$RANLIB_FOR_TARGET"; then
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12491 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12492 else
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496
12497
12498     fi
12499     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12500   done
12501 fi
12502
12503 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12504   set dummy ranlib
12505   if test $build = $target ; then
12506     RANLIB_FOR_TARGET="$2"
12507   else
12508     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12509   fi
12510 else
12511   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12512 fi
12513
12514 else
12515   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12516 fi
12517
12518
12519
12520
12521 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12522   if test -n "$with_build_time_tools"; then
12523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12524 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12525     if test -x $with_build_time_tools/strip; then
12526       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12527       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12529 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12530     else
12531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12533     fi
12534   elif test $build != $host && test $have_gcc_for_target = yes; then
12535     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12536     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12537     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12538   fi
12539 fi
12540 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12541   # Extract the first word of "strip", so it can be a program name with args.
12542 set dummy strip; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548   case $STRIP_FOR_TARGET in
12549   [\\/]* | ?:[\\/]*)
12550   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12551   ;;
12552   *)
12553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $gcc_cv_tool_dirs
12555 do
12556   IFS=$as_save_IFS
12557   test -z "$as_dir" && as_dir=.
12558     for ac_exec_ext in '' $ac_executable_extensions; do
12559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562     break 2
12563   fi
12564 done
12565   done
12566 IFS=$as_save_IFS
12567
12568   ;;
12569 esac
12570 fi
12571 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12572 if test -n "$STRIP_FOR_TARGET"; then
12573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12574 $as_echo "$STRIP_FOR_TARGET" >&6; }
12575 else
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581 fi
12582 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12583
12584
12585 if test -n "$STRIP_FOR_TARGET"; then
12586   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12587 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12588   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12589 fi
12590
12591 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592   for ncn_progname in strip; do
12593     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12594 set dummy ${ncn_progname}; ac_word=$2
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12598   $as_echo_n "(cached) " >&6
12599 else
12600   if test -n "$STRIP_FOR_TARGET"; then
12601   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12602 else
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   test -z "$as_dir" && as_dir=.
12608     for ac_exec_ext in '' $ac_executable_extensions; do
12609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12610     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612     break 2
12613   fi
12614 done
12615   done
12616 IFS=$as_save_IFS
12617
12618 fi
12619 fi
12620 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12621 if test -n "$STRIP_FOR_TARGET"; then
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12623 $as_echo "$STRIP_FOR_TARGET" >&6; }
12624 else
12625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626 $as_echo "no" >&6; }
12627 fi
12628
12629
12630   done
12631 fi
12632
12633 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12634   for ncn_progname in strip; do
12635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12636 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12637     if test -x $with_build_time_tools/${ncn_progname}; then
12638       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640 $as_echo "yes" >&6; }
12641       break
12642     else
12643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645     fi
12646   done
12647 fi
12648
12649 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12650   for ncn_progname in strip; do
12651     if test -n "$ncn_target_tool_prefix"; then
12652       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12657   $as_echo_n "(cached) " >&6
12658 else
12659   if test -n "$STRIP_FOR_TARGET"; then
12660   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     for ac_exec_ext in '' $ac_executable_extensions; do
12668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671     break 2
12672   fi
12673 done
12674   done
12675 IFS=$as_save_IFS
12676
12677 fi
12678 fi
12679 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12680 if test -n "$STRIP_FOR_TARGET"; then
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12682 $as_echo "$STRIP_FOR_TARGET" >&6; }
12683 else
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686 fi
12687
12688
12689     fi
12690     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12691       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12692 set dummy ${ncn_progname}; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   if test -n "$STRIP_FOR_TARGET"; then
12699   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12700 else
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704   IFS=$as_save_IFS
12705   test -z "$as_dir" && as_dir=.
12706     for ac_exec_ext in '' $ac_executable_extensions; do
12707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12708     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710     break 2
12711   fi
12712 done
12713   done
12714 IFS=$as_save_IFS
12715
12716 fi
12717 fi
12718 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12719 if test -n "$STRIP_FOR_TARGET"; then
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12721 $as_echo "$STRIP_FOR_TARGET" >&6; }
12722 else
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12725 fi
12726
12727
12728     fi
12729     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12730   done
12731 fi
12732
12733 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12734   set dummy strip
12735   if test $build = $target ; then
12736     STRIP_FOR_TARGET="$2"
12737   else
12738     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12739   fi
12740 else
12741   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12742 fi
12743
12744 else
12745   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12746 fi
12747
12748
12749
12750
12751 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12752   if test -n "$with_build_time_tools"; then
12753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12754 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12755     if test -x $with_build_time_tools/windres; then
12756       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12757       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12759 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12760     else
12761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12763     fi
12764   elif test $build != $host && test $have_gcc_for_target = yes; then
12765     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12766     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12767     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12768   fi
12769 fi
12770 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12771   # Extract the first word of "windres", so it can be a program name with args.
12772 set dummy windres; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   case $WINDRES_FOR_TARGET in
12779   [\\/]* | ?:[\\/]*)
12780   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12781   ;;
12782   *)
12783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $gcc_cv_tool_dirs
12785 do
12786   IFS=$as_save_IFS
12787   test -z "$as_dir" && as_dir=.
12788     for ac_exec_ext in '' $ac_executable_extensions; do
12789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792     break 2
12793   fi
12794 done
12795   done
12796 IFS=$as_save_IFS
12797
12798   ;;
12799 esac
12800 fi
12801 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12802 if test -n "$WINDRES_FOR_TARGET"; then
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12804 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12805 else
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 fi
12812 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12813
12814
12815 if test -n "$WINDRES_FOR_TARGET"; then
12816   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12817 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12818   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12819 fi
12820
12821 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822   for ncn_progname in windres; do
12823     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12824 set dummy ${ncn_progname}; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   if test -n "$WINDRES_FOR_TARGET"; then
12831   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836   IFS=$as_save_IFS
12837   test -z "$as_dir" && as_dir=.
12838     for ac_exec_ext in '' $ac_executable_extensions; do
12839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842     break 2
12843   fi
12844 done
12845   done
12846 IFS=$as_save_IFS
12847
12848 fi
12849 fi
12850 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12851 if test -n "$WINDRES_FOR_TARGET"; then
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12853 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12854 else
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859
12860   done
12861 fi
12862
12863 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12864   for ncn_progname in windres; do
12865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12866 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12867     if test -x $with_build_time_tools/${ncn_progname}; then
12868       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870 $as_echo "yes" >&6; }
12871       break
12872     else
12873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875     fi
12876   done
12877 fi
12878
12879 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12880   for ncn_progname in windres; do
12881     if test -n "$ncn_target_tool_prefix"; then
12882       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12883 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 $as_echo_n "checking for $ac_word... " >&6; }
12886 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12887   $as_echo_n "(cached) " >&6
12888 else
12889   if test -n "$WINDRES_FOR_TARGET"; then
12890   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895   IFS=$as_save_IFS
12896   test -z "$as_dir" && as_dir=.
12897     for ac_exec_ext in '' $ac_executable_extensions; do
12898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12899     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901     break 2
12902   fi
12903 done
12904   done
12905 IFS=$as_save_IFS
12906
12907 fi
12908 fi
12909 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12910 if test -n "$WINDRES_FOR_TARGET"; then
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12912 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12913 else
12914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916 fi
12917
12918
12919     fi
12920     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12921       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12922 set dummy ${ncn_progname}; ac_word=$2
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924 $as_echo_n "checking for $ac_word... " >&6; }
12925 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   if test -n "$WINDRES_FOR_TARGET"; then
12929   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12930 else
12931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932 for as_dir in $PATH
12933 do
12934   IFS=$as_save_IFS
12935   test -z "$as_dir" && as_dir=.
12936     for ac_exec_ext in '' $ac_executable_extensions; do
12937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12938     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940     break 2
12941   fi
12942 done
12943   done
12944 IFS=$as_save_IFS
12945
12946 fi
12947 fi
12948 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12949 if test -n "$WINDRES_FOR_TARGET"; then
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12951 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12952 else
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956
12957
12958     fi
12959     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12960   done
12961 fi
12962
12963 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12964   set dummy windres
12965   if test $build = $target ; then
12966     WINDRES_FOR_TARGET="$2"
12967   else
12968     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12969   fi
12970 else
12971   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12972 fi
12973
12974 else
12975   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12976 fi
12977
12978
12979
12980
12981 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12982   if test -n "$with_build_time_tools"; then
12983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12984 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12985     if test -x $with_build_time_tools/windmc; then
12986       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12987       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12989 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12990     else
12991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12993     fi
12994   elif test $build != $host && test $have_gcc_for_target = yes; then
12995     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12996     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12997     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12998   fi
12999 fi
13000 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13001   # Extract the first word of "windmc", so it can be a program name with args.
13002 set dummy windmc; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004 $as_echo_n "checking for $ac_word... " >&6; }
13005 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   case $WINDMC_FOR_TARGET in
13009   [\\/]* | ?:[\\/]*)
13010   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13011   ;;
13012   *)
13013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $gcc_cv_tool_dirs
13015 do
13016   IFS=$as_save_IFS
13017   test -z "$as_dir" && as_dir=.
13018     for ac_exec_ext in '' $ac_executable_extensions; do
13019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022     break 2
13023   fi
13024 done
13025   done
13026 IFS=$as_save_IFS
13027
13028   ;;
13029 esac
13030 fi
13031 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13032 if test -n "$WINDMC_FOR_TARGET"; then
13033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13034 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13035 else
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040
13041 fi
13042 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13043
13044
13045 if test -n "$WINDMC_FOR_TARGET"; then
13046   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13047 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13048   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13049 fi
13050
13051 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052   for ncn_progname in windmc; do
13053     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13054 set dummy ${ncn_progname}; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   if test -n "$WINDMC_FOR_TARGET"; then
13061   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13062 else
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066   IFS=$as_save_IFS
13067   test -z "$as_dir" && as_dir=.
13068     for ac_exec_ext in '' $ac_executable_extensions; do
13069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072     break 2
13073   fi
13074 done
13075   done
13076 IFS=$as_save_IFS
13077
13078 fi
13079 fi
13080 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13081 if test -n "$WINDMC_FOR_TARGET"; then
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13083 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13084 else
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 fi
13088
13089
13090   done
13091 fi
13092
13093 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13094   for ncn_progname in windmc; do
13095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13096 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13097     if test -x $with_build_time_tools/${ncn_progname}; then
13098       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13100 $as_echo "yes" >&6; }
13101       break
13102     else
13103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105     fi
13106   done
13107 fi
13108
13109 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13110   for ncn_progname in windmc; do
13111     if test -n "$ncn_target_tool_prefix"; then
13112       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13113 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13117   $as_echo_n "(cached) " >&6
13118 else
13119   if test -n "$WINDMC_FOR_TARGET"; then
13120   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13124 do
13125   IFS=$as_save_IFS
13126   test -z "$as_dir" && as_dir=.
13127     for ac_exec_ext in '' $ac_executable_extensions; do
13128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131     break 2
13132   fi
13133 done
13134   done
13135 IFS=$as_save_IFS
13136
13137 fi
13138 fi
13139 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13140 if test -n "$WINDMC_FOR_TARGET"; then
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13142 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13143 else
13144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13146 fi
13147
13148
13149     fi
13150     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13151       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13152 set dummy ${ncn_progname}; ac_word=$2
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154 $as_echo_n "checking for $ac_word... " >&6; }
13155 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13156   $as_echo_n "(cached) " >&6
13157 else
13158   if test -n "$WINDMC_FOR_TARGET"; then
13159   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13160 else
13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162 for as_dir in $PATH
13163 do
13164   IFS=$as_save_IFS
13165   test -z "$as_dir" && as_dir=.
13166     for ac_exec_ext in '' $ac_executable_extensions; do
13167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13168     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170     break 2
13171   fi
13172 done
13173   done
13174 IFS=$as_save_IFS
13175
13176 fi
13177 fi
13178 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13179 if test -n "$WINDMC_FOR_TARGET"; then
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13181 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13182 else
13183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13185 fi
13186
13187
13188     fi
13189     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13190   done
13191 fi
13192
13193 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13194   set dummy windmc
13195   if test $build = $target ; then
13196     WINDMC_FOR_TARGET="$2"
13197   else
13198     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13199   fi
13200 else
13201   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13202 fi
13203
13204 else
13205   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13206 fi
13207
13208
13209 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13212 $as_echo_n "checking where to find the target ar... " >&6; }
13213 if test "x${build}" != "x${host}" ; then
13214   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13215     # We already found the complete path
13216     ac_dir=`dirname $AR_FOR_TARGET`
13217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13218 $as_echo "pre-installed in $ac_dir" >&6; }
13219   else
13220     # Canadian cross, just use what we found
13221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13222 $as_echo "pre-installed" >&6; }
13223   fi
13224 else
13225   ok=yes
13226   case " ${configdirs} " in
13227     *" binutils "*) ;;
13228     *) ok=no ;;
13229   esac
13230
13231   if test $ok = yes; then
13232     # An in-tree tool is available and we can use it
13233     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13235 $as_echo "just compiled" >&6; }
13236   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13237     # We already found the complete path
13238     ac_dir=`dirname $AR_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   elif test "x$target" = "x$host"; then
13242     # We can use an host tool
13243     AR_FOR_TARGET='$(AR)'
13244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13245 $as_echo "host tool" >&6; }
13246   else
13247     # We need a cross tool
13248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13249 $as_echo "pre-installed" >&6; }
13250   fi
13251 fi
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13254 $as_echo_n "checking where to find the target as... " >&6; }
13255 if test "x${build}" != "x${host}" ; then
13256   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13257     # We already found the complete path
13258     ac_dir=`dirname $AS_FOR_TARGET`
13259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13260 $as_echo "pre-installed in $ac_dir" >&6; }
13261   else
13262     # Canadian cross, just use what we found
13263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13264 $as_echo "pre-installed" >&6; }
13265   fi
13266 else
13267   ok=yes
13268   case " ${configdirs} " in
13269     *" gas "*) ;;
13270     *) ok=no ;;
13271   esac
13272
13273   if test $ok = yes; then
13274     # An in-tree tool is available and we can use it
13275     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13277 $as_echo "just compiled" >&6; }
13278   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13279     # We already found the complete path
13280     ac_dir=`dirname $AS_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   elif test "x$target" = "x$host"; then
13284     # We can use an host tool
13285     AS_FOR_TARGET='$(AS)'
13286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13287 $as_echo "host tool" >&6; }
13288   else
13289     # We need a cross tool
13290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13291 $as_echo "pre-installed" >&6; }
13292   fi
13293 fi
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13296 $as_echo_n "checking where to find the target cc... " >&6; }
13297 if test "x${build}" != "x${host}" ; then
13298   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13299     # We already found the complete path
13300     ac_dir=`dirname $CC_FOR_TARGET`
13301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13302 $as_echo "pre-installed in $ac_dir" >&6; }
13303   else
13304     # Canadian cross, just use what we found
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306 $as_echo "pre-installed" >&6; }
13307   fi
13308 else
13309   ok=yes
13310   case " ${configdirs} " in
13311     *" gcc "*) ;;
13312     *) ok=no ;;
13313   esac
13314
13315   if test $ok = yes; then
13316     # An in-tree tool is available and we can use it
13317     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13319 $as_echo "just compiled" >&6; }
13320   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13321     # We already found the complete path
13322     ac_dir=`dirname $CC_FOR_TARGET`
13323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13324 $as_echo "pre-installed in $ac_dir" >&6; }
13325   elif test "x$target" = "x$host"; then
13326     # We can use an host tool
13327     CC_FOR_TARGET='$(CC)'
13328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13329 $as_echo "host tool" >&6; }
13330   else
13331     # We need a cross tool
13332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13333 $as_echo "pre-installed" >&6; }
13334   fi
13335 fi
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13338 $as_echo_n "checking where to find the target c++... " >&6; }
13339 if test "x${build}" != "x${host}" ; then
13340   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13341     # We already found the complete path
13342     ac_dir=`dirname $CXX_FOR_TARGET`
13343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13344 $as_echo "pre-installed in $ac_dir" >&6; }
13345   else
13346     # Canadian cross, just use what we found
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13348 $as_echo "pre-installed" >&6; }
13349   fi
13350 else
13351   ok=yes
13352   case " ${configdirs} " in
13353     *" gcc "*) ;;
13354     *) ok=no ;;
13355   esac
13356   case ,${enable_languages}, in
13357     *,c++,*) ;;
13358     *) ok=no ;;
13359   esac
13360   if test $ok = yes; then
13361     # An in-tree tool is available and we can use it
13362     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13364 $as_echo "just compiled" >&6; }
13365   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13366     # We already found the complete path
13367     ac_dir=`dirname $CXX_FOR_TARGET`
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13369 $as_echo "pre-installed in $ac_dir" >&6; }
13370   elif test "x$target" = "x$host"; then
13371     # We can use an host tool
13372     CXX_FOR_TARGET='$(CXX)'
13373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13374 $as_echo "host tool" >&6; }
13375   else
13376     # We need a cross tool
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13378 $as_echo "pre-installed" >&6; }
13379   fi
13380 fi
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13383 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13384 if test "x${build}" != "x${host}" ; then
13385   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13386     # We already found the complete path
13387     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13389 $as_echo "pre-installed in $ac_dir" >&6; }
13390   else
13391     # Canadian cross, just use what we found
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13393 $as_echo "pre-installed" >&6; }
13394   fi
13395 else
13396   ok=yes
13397   case " ${configdirs} " in
13398     *" gcc "*) ;;
13399     *) ok=no ;;
13400   esac
13401   case ,${enable_languages}, in
13402     *,c++,*) ;;
13403     *) ok=no ;;
13404   esac
13405   if test $ok = yes; then
13406     # An in-tree tool is available and we can use it
13407     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'
13408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13409 $as_echo "just compiled" >&6; }
13410   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13411     # We already found the complete path
13412     ac_dir=`dirname $RAW_CXX_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   elif test "x$target" = "x$host"; then
13416     # We can use an host tool
13417     RAW_CXX_FOR_TARGET='$(CXX)'
13418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13419 $as_echo "host tool" >&6; }
13420   else
13421     # We need a cross tool
13422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13423 $as_echo "pre-installed" >&6; }
13424   fi
13425 fi
13426
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13428 $as_echo_n "checking where to find the target dlltool... " >&6; }
13429 if test "x${build}" != "x${host}" ; then
13430   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13431     # We already found the complete path
13432     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13434 $as_echo "pre-installed in $ac_dir" >&6; }
13435   else
13436     # Canadian cross, just use what we found
13437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13438 $as_echo "pre-installed" >&6; }
13439   fi
13440 else
13441   ok=yes
13442   case " ${configdirs} " in
13443     *" binutils "*) ;;
13444     *) ok=no ;;
13445   esac
13446
13447   if test $ok = yes; then
13448     # An in-tree tool is available and we can use it
13449     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13451 $as_echo "just compiled" >&6; }
13452   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13453     # We already found the complete path
13454     ac_dir=`dirname $DLLTOOL_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   elif test "x$target" = "x$host"; then
13458     # We can use an host tool
13459     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13461 $as_echo "host tool" >&6; }
13462   else
13463     # We need a cross tool
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13465 $as_echo "pre-installed" >&6; }
13466   fi
13467 fi
13468
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13470 $as_echo_n "checking where to find the target gcc... " >&6; }
13471 if test "x${build}" != "x${host}" ; then
13472   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13473     # We already found the complete path
13474     ac_dir=`dirname $GCC_FOR_TARGET`
13475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13476 $as_echo "pre-installed in $ac_dir" >&6; }
13477   else
13478     # Canadian cross, just use what we found
13479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13480 $as_echo "pre-installed" >&6; }
13481   fi
13482 else
13483   ok=yes
13484   case " ${configdirs} " in
13485     *" gcc "*) ;;
13486     *) ok=no ;;
13487   esac
13488
13489   if test $ok = yes; then
13490     # An in-tree tool is available and we can use it
13491     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13493 $as_echo "just compiled" >&6; }
13494   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13495     # We already found the complete path
13496     ac_dir=`dirname $GCC_FOR_TARGET`
13497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13498 $as_echo "pre-installed in $ac_dir" >&6; }
13499   elif test "x$target" = "x$host"; then
13500     # We can use an host tool
13501     GCC_FOR_TARGET='$()'
13502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13503 $as_echo "host tool" >&6; }
13504   else
13505     # We need a cross tool
13506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13507 $as_echo "pre-installed" >&6; }
13508   fi
13509 fi
13510
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13512 $as_echo_n "checking where to find the target gcj... " >&6; }
13513 if test "x${build}" != "x${host}" ; then
13514   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13515     # We already found the complete path
13516     ac_dir=`dirname $GCJ_FOR_TARGET`
13517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13518 $as_echo "pre-installed in $ac_dir" >&6; }
13519   else
13520     # Canadian cross, just use what we found
13521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13522 $as_echo "pre-installed" >&6; }
13523   fi
13524 else
13525   ok=yes
13526   case " ${configdirs} " in
13527     *" gcc "*) ;;
13528     *) ok=no ;;
13529   esac
13530   case ,${enable_languages}, in
13531     *,java,*) ;;
13532     *) ok=no ;;
13533   esac
13534   if test $ok = yes; then
13535     # An in-tree tool is available and we can use it
13536     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13538 $as_echo "just compiled" >&6; }
13539   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13540     # We already found the complete path
13541     ac_dir=`dirname $GCJ_FOR_TARGET`
13542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13543 $as_echo "pre-installed in $ac_dir" >&6; }
13544   elif test "x$target" = "x$host"; then
13545     # We can use an host tool
13546     GCJ_FOR_TARGET='$(GCJ)'
13547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13548 $as_echo "host tool" >&6; }
13549   else
13550     # We need a cross tool
13551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13552 $as_echo "pre-installed" >&6; }
13553   fi
13554 fi
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13557 $as_echo_n "checking where to find the target gfortran... " >&6; }
13558 if test "x${build}" != "x${host}" ; then
13559   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13560     # We already found the complete path
13561     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13563 $as_echo "pre-installed in $ac_dir" >&6; }
13564   else
13565     # Canadian cross, just use what we found
13566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13567 $as_echo "pre-installed" >&6; }
13568   fi
13569 else
13570   ok=yes
13571   case " ${configdirs} " in
13572     *" gcc "*) ;;
13573     *) ok=no ;;
13574   esac
13575   case ,${enable_languages}, in
13576     *,fortran,*) ;;
13577     *) ok=no ;;
13578   esac
13579   if test $ok = yes; then
13580     # An in-tree tool is available and we can use it
13581     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13583 $as_echo "just compiled" >&6; }
13584   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13585     # We already found the complete path
13586     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13588 $as_echo "pre-installed in $ac_dir" >&6; }
13589   elif test "x$target" = "x$host"; then
13590     # We can use an host tool
13591     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13593 $as_echo "host tool" >&6; }
13594   else
13595     # We need a cross tool
13596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13597 $as_echo "pre-installed" >&6; }
13598   fi
13599 fi
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13602 $as_echo_n "checking where to find the target gccgo... " >&6; }
13603 if test "x${build}" != "x${host}" ; then
13604   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13605     # We already found the complete path
13606     ac_dir=`dirname $GOC_FOR_TARGET`
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608 $as_echo "pre-installed in $ac_dir" >&6; }
13609   else
13610     # Canadian cross, just use what we found
13611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13612 $as_echo "pre-installed" >&6; }
13613   fi
13614 else
13615   ok=yes
13616   case " ${configdirs} " in
13617     *" gcc "*) ;;
13618     *) ok=no ;;
13619   esac
13620   case ,${enable_languages}, in
13621     *,go,*) ;;
13622     *) ok=no ;;
13623   esac
13624   if test $ok = yes; then
13625     # An in-tree tool is available and we can use it
13626     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13628 $as_echo "just compiled" >&6; }
13629   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13630     # We already found the complete path
13631     ac_dir=`dirname $GOC_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   elif test "x$target" = "x$host"; then
13635     # We can use an host tool
13636     GOC_FOR_TARGET='$(GOC)'
13637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13638 $as_echo "host tool" >&6; }
13639   else
13640     # We need a cross tool
13641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13642 $as_echo "pre-installed" >&6; }
13643   fi
13644 fi
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13647 $as_echo_n "checking where to find the target ld... " >&6; }
13648 if test "x${build}" != "x${host}" ; then
13649   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13650     # We already found the complete path
13651     ac_dir=`dirname $LD_FOR_TARGET`
13652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653 $as_echo "pre-installed in $ac_dir" >&6; }
13654   else
13655     # Canadian cross, just use what we found
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657 $as_echo "pre-installed" >&6; }
13658   fi
13659 else
13660   ok=yes
13661   case " ${configdirs} " in
13662     *" ld "*) ;;
13663     *) ok=no ;;
13664   esac
13665
13666   if test $ok = yes; then
13667     # An in-tree tool is available and we can use it
13668     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13670 $as_echo "just compiled" >&6; }
13671   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13672     # We already found the complete path
13673     ac_dir=`dirname $LD_FOR_TARGET`
13674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675 $as_echo "pre-installed in $ac_dir" >&6; }
13676   elif test "x$target" = "x$host"; then
13677     # We can use an host tool
13678     LD_FOR_TARGET='$(LD)'
13679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13680 $as_echo "host tool" >&6; }
13681   else
13682     # We need a cross tool
13683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684 $as_echo "pre-installed" >&6; }
13685   fi
13686 fi
13687
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13689 $as_echo_n "checking where to find the target lipo... " >&6; }
13690 if test "x${build}" != "x${host}" ; then
13691   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13692     # We already found the complete path
13693     ac_dir=`dirname $LIPO_FOR_TARGET`
13694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695 $as_echo "pre-installed in $ac_dir" >&6; }
13696   else
13697     # Canadian cross, just use what we found
13698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699 $as_echo "pre-installed" >&6; }
13700   fi
13701 else
13702   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13703     # We already found the complete path
13704     ac_dir=`dirname $LIPO_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   elif test "x$target" = "x$host"; then
13708     # We can use an host tool
13709     LIPO_FOR_TARGET='$(LIPO)'
13710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13711 $as_echo "host tool" >&6; }
13712   else
13713     # We need a cross tool
13714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715 $as_echo "pre-installed" >&6; }
13716   fi
13717 fi
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13720 $as_echo_n "checking where to find the target nm... " >&6; }
13721 if test "x${build}" != "x${host}" ; then
13722   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13723     # We already found the complete path
13724     ac_dir=`dirname $NM_FOR_TARGET`
13725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726 $as_echo "pre-installed in $ac_dir" >&6; }
13727   else
13728     # Canadian cross, just use what we found
13729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730 $as_echo "pre-installed" >&6; }
13731   fi
13732 else
13733   ok=yes
13734   case " ${configdirs} " in
13735     *" binutils "*) ;;
13736     *) ok=no ;;
13737   esac
13738
13739   if test $ok = yes; then
13740     # An in-tree tool is available and we can use it
13741     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743 $as_echo "just compiled" >&6; }
13744   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13745     # We already found the complete path
13746     ac_dir=`dirname $NM_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   elif test "x$target" = "x$host"; then
13750     # We can use an host tool
13751     NM_FOR_TARGET='$(NM)'
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753 $as_echo "host tool" >&6; }
13754   else
13755     # We need a cross tool
13756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13758   fi
13759 fi
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13762 $as_echo_n "checking where to find the target objdump... " >&6; }
13763 if test "x${build}" != "x${host}" ; then
13764   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13765     # We already found the complete path
13766     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769   else
13770     # Canadian cross, just use what we found
13771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13773   fi
13774 else
13775   ok=yes
13776   case " ${configdirs} " in
13777     *" binutils "*) ;;
13778     *) ok=no ;;
13779   esac
13780
13781   if test $ok = yes; then
13782     # An in-tree tool is available and we can use it
13783     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13785 $as_echo "just compiled" >&6; }
13786   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13787     # We already found the complete path
13788     ac_dir=`dirname $OBJDUMP_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   elif test "x$target" = "x$host"; then
13792     # We can use an host tool
13793     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13795 $as_echo "host tool" >&6; }
13796   else
13797     # We need a cross tool
13798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13799 $as_echo "pre-installed" >&6; }
13800   fi
13801 fi
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13804 $as_echo_n "checking where to find the target ranlib... " >&6; }
13805 if test "x${build}" != "x${host}" ; then
13806   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13807     # We already found the complete path
13808     ac_dir=`dirname $RANLIB_FOR_TARGET`
13809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810 $as_echo "pre-installed in $ac_dir" >&6; }
13811   else
13812     # Canadian cross, just use what we found
13813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814 $as_echo "pre-installed" >&6; }
13815   fi
13816 else
13817   ok=yes
13818   case " ${configdirs} " in
13819     *" binutils "*) ;;
13820     *) ok=no ;;
13821   esac
13822
13823   if test $ok = yes; then
13824     # An in-tree tool is available and we can use it
13825     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13827 $as_echo "just compiled" >&6; }
13828   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13829     # We already found the complete path
13830     ac_dir=`dirname $RANLIB_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   elif test "x$target" = "x$host"; then
13834     # We can use an host tool
13835     RANLIB_FOR_TARGET='$(RANLIB)'
13836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13837 $as_echo "host tool" >&6; }
13838   else
13839     # We need a cross tool
13840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841 $as_echo "pre-installed" >&6; }
13842   fi
13843 fi
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13846 $as_echo_n "checking where to find the target strip... " >&6; }
13847 if test "x${build}" != "x${host}" ; then
13848   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13849     # We already found the complete path
13850     ac_dir=`dirname $STRIP_FOR_TARGET`
13851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13852 $as_echo "pre-installed in $ac_dir" >&6; }
13853   else
13854     # Canadian cross, just use what we found
13855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856 $as_echo "pre-installed" >&6; }
13857   fi
13858 else
13859   ok=yes
13860   case " ${configdirs} " in
13861     *" binutils "*) ;;
13862     *) ok=no ;;
13863   esac
13864
13865   if test $ok = yes; then
13866     # An in-tree tool is available and we can use it
13867     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13869 $as_echo "just compiled" >&6; }
13870   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13871     # We already found the complete path
13872     ac_dir=`dirname $STRIP_FOR_TARGET`
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874 $as_echo "pre-installed in $ac_dir" >&6; }
13875   elif test "x$target" = "x$host"; then
13876     # We can use an host tool
13877     STRIP_FOR_TARGET='$(STRIP)'
13878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13879 $as_echo "host tool" >&6; }
13880   else
13881     # We need a cross tool
13882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13883 $as_echo "pre-installed" >&6; }
13884   fi
13885 fi
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13888 $as_echo_n "checking where to find the target windres... " >&6; }
13889 if test "x${build}" != "x${host}" ; then
13890   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13891     # We already found the complete path
13892     ac_dir=`dirname $WINDRES_FOR_TARGET`
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894 $as_echo "pre-installed in $ac_dir" >&6; }
13895   else
13896     # Canadian cross, just use what we found
13897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13899   fi
13900 else
13901   ok=yes
13902   case " ${configdirs} " in
13903     *" binutils "*) ;;
13904     *) ok=no ;;
13905   esac
13906
13907   if test $ok = yes; then
13908     # An in-tree tool is available and we can use it
13909     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13911 $as_echo "just compiled" >&6; }
13912   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13913     # We already found the complete path
13914     ac_dir=`dirname $WINDRES_FOR_TARGET`
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13916 $as_echo "pre-installed in $ac_dir" >&6; }
13917   elif test "x$target" = "x$host"; then
13918     # We can use an host tool
13919     WINDRES_FOR_TARGET='$(WINDRES)'
13920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13921 $as_echo "host tool" >&6; }
13922   else
13923     # We need a cross tool
13924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925 $as_echo "pre-installed" >&6; }
13926   fi
13927 fi
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13930 $as_echo_n "checking where to find the target windmc... " >&6; }
13931 if test "x${build}" != "x${host}" ; then
13932   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13933     # We already found the complete path
13934     ac_dir=`dirname $WINDMC_FOR_TARGET`
13935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13936 $as_echo "pre-installed in $ac_dir" >&6; }
13937   else
13938     # Canadian cross, just use what we found
13939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13940 $as_echo "pre-installed" >&6; }
13941   fi
13942 else
13943   ok=yes
13944   case " ${configdirs} " in
13945     *" binutils "*) ;;
13946     *) ok=no ;;
13947   esac
13948
13949   if test $ok = yes; then
13950     # An in-tree tool is available and we can use it
13951     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13953 $as_echo "just compiled" >&6; }
13954   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13955     # We already found the complete path
13956     ac_dir=`dirname $WINDMC_FOR_TARGET`
13957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13958 $as_echo "pre-installed in $ac_dir" >&6; }
13959   elif test "x$target" = "x$host"; then
13960     # We can use an host tool
13961     WINDMC_FOR_TARGET='$(WINDMC)'
13962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13963 $as_echo "host tool" >&6; }
13964   else
13965     # We need a cross tool
13966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13967 $as_echo "pre-installed" >&6; }
13968   fi
13969 fi
13970
13971
13972
13973
13974
13975 # Certain tools may need extra flags.
13976 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13977 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13978 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13979
13980 # When building target libraries, except in a Canadian cross, we use
13981 # the same toolchain as the compiler we just built.
13982 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13983 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13984 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13985 if test $host = $build; then
13986   case " $configdirs " in
13987     *" gcc "*)
13988       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13989       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13990       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13991       ;;
13992   esac
13993 fi
13994
13995
13996
13997
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14000 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14001 # Check whether --enable-maintainer-mode was given.
14002 if test "${enable_maintainer_mode+set}" = set; then :
14003   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14004 else
14005   USE_MAINTAINER_MODE=no
14006 fi
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14009 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14010
14011
14012 if test "$USE_MAINTAINER_MODE" = yes; then
14013   MAINTAINER_MODE_TRUE=
14014   MAINTAINER_MODE_FALSE='#'
14015 else
14016   MAINTAINER_MODE_TRUE='#'
14017   MAINTAINER_MODE_FALSE=
14018 fi
14019 MAINT=$MAINTAINER_MODE_TRUE
14020
14021 # ---------------------
14022 # GCC bootstrap support
14023 # ---------------------
14024
14025 # Stage specific cflags for build.
14026 stage1_cflags="-g"
14027 case $build in
14028   vax-*-*)
14029     case ${GCC} in
14030       yes) stage1_cflags="-g -Wa,-J" ;;
14031       *) stage1_cflags="-g -J" ;;
14032     esac ;;
14033 esac
14034
14035 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14036 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14037   saved_CFLAGS="$CFLAGS"
14038
14039   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14040   CFLAGS="$CFLAGS -fkeep-inline-functions"
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14042 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045
14046 #if (__GNUC__ < 3) \
14047     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14048                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14049 #error http://gcc.gnu.org/PR29382
14050 #endif
14051
14052 int
14053 main ()
14054 {
14055
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_compile "$LINENO"; then :
14061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14062 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14063 else
14064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068
14069   CFLAGS="$saved_CFLAGS"
14070 fi
14071
14072
14073
14074 # Enable --enable-checking in stage1 of the compiler.
14075 # Check whether --enable-stage1-checking was given.
14076 if test "${enable_stage1_checking+set}" = set; then :
14077   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14078 else
14079   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14080   stage1_checking=--enable-checking=yes,types
14081 else
14082   stage1_checking=--enable-checking=$enable_checking,types
14083 fi
14084 fi
14085
14086
14087
14088 # Enable -Werror in bootstrap stage2 and later.
14089 # Check whether --enable-werror was given.
14090 if test "${enable_werror+set}" = set; then :
14091   enableval=$enable_werror;
14092 else
14093   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14094   enable_werror=yes
14095 else
14096   enable_werror=no
14097 fi
14098 fi
14099
14100 case ${enable_werror} in
14101   yes) stage2_werror_flag="--enable-werror-always" ;;
14102   *) stage2_werror_flag="" ;;
14103 esac
14104
14105
14106 # Specify what files to not compare during bootstrap.
14107
14108 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14109 case "$target" in
14110   hppa*64*-*-hpux*) ;;
14111   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14112 esac
14113 case " $configdirs " in
14114 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14115 esac
14116
14117
14118 ac_config_files="$ac_config_files Makefile"
14119
14120 cat >confcache <<\_ACEOF
14121 # This file is a shell script that caches the results of configure
14122 # tests run on this system so they can be shared between configure
14123 # scripts and configure runs, see configure's option --config-cache.
14124 # It is not useful on other systems.  If it contains results you don't
14125 # want to keep, you may remove or edit it.
14126 #
14127 # config.status only pays attention to the cache file if you give it
14128 # the --recheck option to rerun configure.
14129 #
14130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14132 # following values.
14133
14134 _ACEOF
14135
14136 # The following way of writing the cache mishandles newlines in values,
14137 # but we know of no workaround that is simple, portable, and efficient.
14138 # So, we kill variables containing newlines.
14139 # Ultrix sh set writes to stderr and can't be redirected directly,
14140 # and sets the high bit in the cache file unless we assign to the vars.
14141 (
14142   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14143     eval ac_val=\$$ac_var
14144     case $ac_val in #(
14145     *${as_nl}*)
14146       case $ac_var in #(
14147       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14149       esac
14150       case $ac_var in #(
14151       _ | IFS | as_nl) ;; #(
14152       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14153       *) { eval $ac_var=; unset $ac_var;} ;;
14154       esac ;;
14155     esac
14156   done
14157
14158   (set) 2>&1 |
14159     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14160     *${as_nl}ac_space=\ *)
14161       # `set' does not quote correctly, so add quotes: double-quote
14162       # substitution turns \\\\ into \\, and sed turns \\ into \.
14163       sed -n \
14164         "s/'/'\\\\''/g;
14165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14166       ;; #(
14167     *)
14168       # `set' quotes correctly as required by POSIX, so do not add quotes.
14169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14170       ;;
14171     esac |
14172     sort
14173 ) |
14174   sed '
14175      /^ac_cv_env_/b end
14176      t clear
14177      :clear
14178      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14179      t end
14180      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14181      :end' >>confcache
14182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14183   if test -w "$cache_file"; then
14184     test "x$cache_file" != "x/dev/null" &&
14185       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14186 $as_echo "$as_me: updating cache $cache_file" >&6;}
14187     cat confcache >$cache_file
14188   else
14189     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14190 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14191   fi
14192 fi
14193 rm -f confcache
14194
14195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14196 # Let make expand exec_prefix.
14197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14198
14199 # Transform confdefs.h into DEFS.
14200 # Protect against shell expansion while executing Makefile rules.
14201 # Protect against Makefile macro expansion.
14202 #
14203 # If the first sed substitution is executed (which looks for macros that
14204 # take arguments), then branch to the quote section.  Otherwise,
14205 # look for a macro that doesn't take arguments.
14206 ac_script='
14207 :mline
14208 /\\$/{
14209  N
14210  s,\\\n,,
14211  b mline
14212 }
14213 t clear
14214 :clear
14215 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14216 t quote
14217 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14218 t quote
14219 b any
14220 :quote
14221 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14222 s/\[/\\&/g
14223 s/\]/\\&/g
14224 s/\$/$$/g
14225 H
14226 :any
14227 ${
14228         g
14229         s/^\n//
14230         s/\n/ /g
14231         p
14232 }
14233 '
14234 DEFS=`sed -n "$ac_script" confdefs.h`
14235
14236
14237 ac_libobjs=
14238 ac_ltlibobjs=
14239 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14240   # 1. Remove the extension, and $U if already installed.
14241   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14242   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14243   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14244   #    will be set to the directory where LIBOBJS objects are built.
14245   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14246   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14247 done
14248 LIBOBJS=$ac_libobjs
14249
14250 LTLIBOBJS=$ac_ltlibobjs
14251
14252
14253
14254 : ${CONFIG_STATUS=./config.status}
14255 ac_write_fail=0
14256 ac_clean_files_save=$ac_clean_files
14257 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14259 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14260 as_write_fail=0
14261 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14262 #! $SHELL
14263 # Generated by $as_me.
14264 # Run this file to recreate the current configuration.
14265 # Compiler output produced by configure, useful for debugging
14266 # configure, is in config.log if it exists.
14267
14268 debug=false
14269 ac_cs_recheck=false
14270 ac_cs_silent=false
14271
14272 SHELL=\${CONFIG_SHELL-$SHELL}
14273 export SHELL
14274 _ASEOF
14275 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14276 ## -------------------- ##
14277 ## M4sh Initialization. ##
14278 ## -------------------- ##
14279
14280 # Be more Bourne compatible
14281 DUALCASE=1; export DUALCASE # for MKS sh
14282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14283   emulate sh
14284   NULLCMD=:
14285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14286   # is contrary to our usage.  Disable this feature.
14287   alias -g '${1+"$@"}'='"$@"'
14288   setopt NO_GLOB_SUBST
14289 else
14290   case `(set -o) 2>/dev/null` in #(
14291   *posix*) :
14292     set -o posix ;; #(
14293   *) :
14294      ;;
14295 esac
14296 fi
14297
14298
14299 as_nl='
14300 '
14301 export as_nl
14302 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14303 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14306 # Prefer a ksh shell builtin over an external printf program on Solaris,
14307 # but without wasting forks for bash or zsh.
14308 if test -z "$BASH_VERSION$ZSH_VERSION" \
14309     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14310   as_echo='print -r --'
14311   as_echo_n='print -rn --'
14312 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14313   as_echo='printf %s\n'
14314   as_echo_n='printf %s'
14315 else
14316   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14317     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14318     as_echo_n='/usr/ucb/echo -n'
14319   else
14320     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14321     as_echo_n_body='eval
14322       arg=$1;
14323       case $arg in #(
14324       *"$as_nl"*)
14325         expr "X$arg" : "X\\(.*\\)$as_nl";
14326         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14327       esac;
14328       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14329     '
14330     export as_echo_n_body
14331     as_echo_n='sh -c $as_echo_n_body as_echo'
14332   fi
14333   export as_echo_body
14334   as_echo='sh -c $as_echo_body as_echo'
14335 fi
14336
14337 # The user is always right.
14338 if test "${PATH_SEPARATOR+set}" != set; then
14339   PATH_SEPARATOR=:
14340   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14341     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14342       PATH_SEPARATOR=';'
14343   }
14344 fi
14345
14346
14347 # IFS
14348 # We need space, tab and new line, in precisely that order.  Quoting is
14349 # there to prevent editors from complaining about space-tab.
14350 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14351 # splitting by setting IFS to empty value.)
14352 IFS=" ""        $as_nl"
14353
14354 # Find who we are.  Look in the path if we contain no directory separator.
14355 case $0 in #((
14356   *[\\/]* ) as_myself=$0 ;;
14357   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14359 do
14360   IFS=$as_save_IFS
14361   test -z "$as_dir" && as_dir=.
14362     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14363   done
14364 IFS=$as_save_IFS
14365
14366      ;;
14367 esac
14368 # We did not find ourselves, most probably we were run as `sh COMMAND'
14369 # in which case we are not to be found in the path.
14370 if test "x$as_myself" = x; then
14371   as_myself=$0
14372 fi
14373 if test ! -f "$as_myself"; then
14374   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14375   exit 1
14376 fi
14377
14378 # Unset variables that we do not need and which cause bugs (e.g. in
14379 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14380 # suppresses any "Segmentation fault" message there.  '((' could
14381 # trigger a bug in pdksh 5.2.14.
14382 for as_var in BASH_ENV ENV MAIL MAILPATH
14383 do eval test x\${$as_var+set} = xset \
14384   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14385 done
14386 PS1='$ '
14387 PS2='> '
14388 PS4='+ '
14389
14390 # NLS nuisances.
14391 LC_ALL=C
14392 export LC_ALL
14393 LANGUAGE=C
14394 export LANGUAGE
14395
14396 # CDPATH.
14397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14398
14399
14400 # as_fn_error ERROR [LINENO LOG_FD]
14401 # ---------------------------------
14402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14404 # script with status $?, using 1 if that was 0.
14405 as_fn_error ()
14406 {
14407   as_status=$?; test $as_status -eq 0 && as_status=1
14408   if test "$3"; then
14409     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14410     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14411   fi
14412   $as_echo "$as_me: error: $1" >&2
14413   as_fn_exit $as_status
14414 } # as_fn_error
14415
14416
14417 # as_fn_set_status STATUS
14418 # -----------------------
14419 # Set $? to STATUS, without forking.
14420 as_fn_set_status ()
14421 {
14422   return $1
14423 } # as_fn_set_status
14424
14425 # as_fn_exit STATUS
14426 # -----------------
14427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14428 as_fn_exit ()
14429 {
14430   set +e
14431   as_fn_set_status $1
14432   exit $1
14433 } # as_fn_exit
14434
14435 # as_fn_unset VAR
14436 # ---------------
14437 # Portably unset VAR.
14438 as_fn_unset ()
14439 {
14440   { eval $1=; unset $1;}
14441 }
14442 as_unset=as_fn_unset
14443 # as_fn_append VAR VALUE
14444 # ----------------------
14445 # Append the text in VALUE to the end of the definition contained in VAR. Take
14446 # advantage of any shell optimizations that allow amortized linear growth over
14447 # repeated appends, instead of the typical quadratic growth present in naive
14448 # implementations.
14449 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14450   eval 'as_fn_append ()
14451   {
14452     eval $1+=\$2
14453   }'
14454 else
14455   as_fn_append ()
14456   {
14457     eval $1=\$$1\$2
14458   }
14459 fi # as_fn_append
14460
14461 # as_fn_arith ARG...
14462 # ------------------
14463 # Perform arithmetic evaluation on the ARGs, and store the result in the
14464 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14465 # must be portable across $(()) and expr.
14466 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14467   eval 'as_fn_arith ()
14468   {
14469     as_val=$(( $* ))
14470   }'
14471 else
14472   as_fn_arith ()
14473   {
14474     as_val=`expr "$@" || test $? -eq 1`
14475   }
14476 fi # as_fn_arith
14477
14478
14479 if expr a : '\(a\)' >/dev/null 2>&1 &&
14480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14481   as_expr=expr
14482 else
14483   as_expr=false
14484 fi
14485
14486 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14487   as_basename=basename
14488 else
14489   as_basename=false
14490 fi
14491
14492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14493   as_dirname=dirname
14494 else
14495   as_dirname=false
14496 fi
14497
14498 as_me=`$as_basename -- "$0" ||
14499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14500          X"$0" : 'X\(//\)$' \| \
14501          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14502 $as_echo X/"$0" |
14503     sed '/^.*\/\([^/][^/]*\)\/*$/{
14504             s//\1/
14505             q
14506           }
14507           /^X\/\(\/\/\)$/{
14508             s//\1/
14509             q
14510           }
14511           /^X\/\(\/\).*/{
14512             s//\1/
14513             q
14514           }
14515           s/.*/./; q'`
14516
14517 # Avoid depending upon Character Ranges.
14518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14521 as_cr_digits='0123456789'
14522 as_cr_alnum=$as_cr_Letters$as_cr_digits
14523
14524 ECHO_C= ECHO_N= ECHO_T=
14525 case `echo -n x` in #(((((
14526 -n*)
14527   case `echo 'xy\c'` in
14528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14529   xy)  ECHO_C='\c';;
14530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14531        ECHO_T=' ';;
14532   esac;;
14533 *)
14534   ECHO_N='-n';;
14535 esac
14536
14537 rm -f conf$$ conf$$.exe conf$$.file
14538 if test -d conf$$.dir; then
14539   rm -f conf$$.dir/conf$$.file
14540 else
14541   rm -f conf$$.dir
14542   mkdir conf$$.dir 2>/dev/null
14543 fi
14544 if (echo >conf$$.file) 2>/dev/null; then
14545   if ln -s conf$$.file conf$$ 2>/dev/null; then
14546     as_ln_s='ln -s'
14547     # ... but there are two gotchas:
14548     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14549     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14550     # In both cases, we have to default to `cp -p'.
14551     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14552       as_ln_s='cp -p'
14553   elif ln conf$$.file conf$$ 2>/dev/null; then
14554     as_ln_s=ln
14555   else
14556     as_ln_s='cp -p'
14557   fi
14558 else
14559   as_ln_s='cp -p'
14560 fi
14561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14562 rmdir conf$$.dir 2>/dev/null
14563
14564
14565 # as_fn_mkdir_p
14566 # -------------
14567 # Create "$as_dir" as a directory, including parents if necessary.
14568 as_fn_mkdir_p ()
14569 {
14570
14571   case $as_dir in #(
14572   -*) as_dir=./$as_dir;;
14573   esac
14574   test -d "$as_dir" || eval $as_mkdir_p || {
14575     as_dirs=
14576     while :; do
14577       case $as_dir in #(
14578       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14579       *) as_qdir=$as_dir;;
14580       esac
14581       as_dirs="'$as_qdir' $as_dirs"
14582       as_dir=`$as_dirname -- "$as_dir" ||
14583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14584          X"$as_dir" : 'X\(//\)[^/]' \| \
14585          X"$as_dir" : 'X\(//\)$' \| \
14586          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14587 $as_echo X"$as_dir" |
14588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14589             s//\1/
14590             q
14591           }
14592           /^X\(\/\/\)[^/].*/{
14593             s//\1/
14594             q
14595           }
14596           /^X\(\/\/\)$/{
14597             s//\1/
14598             q
14599           }
14600           /^X\(\/\).*/{
14601             s//\1/
14602             q
14603           }
14604           s/.*/./; q'`
14605       test -d "$as_dir" && break
14606     done
14607     test -z "$as_dirs" || eval "mkdir $as_dirs"
14608   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14609
14610
14611 } # as_fn_mkdir_p
14612 if mkdir -p . 2>/dev/null; then
14613   as_mkdir_p='mkdir -p "$as_dir"'
14614 else
14615   test -d ./-p && rmdir ./-p
14616   as_mkdir_p=false
14617 fi
14618
14619 if test -x / >/dev/null 2>&1; then
14620   as_test_x='test -x'
14621 else
14622   if ls -dL / >/dev/null 2>&1; then
14623     as_ls_L_option=L
14624   else
14625     as_ls_L_option=
14626   fi
14627   as_test_x='
14628     eval sh -c '\''
14629       if test -d "$1"; then
14630         test -d "$1/.";
14631       else
14632         case $1 in #(
14633         -*)set "./$1";;
14634         esac;
14635         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14636         ???[sx]*):;;*)false;;esac;fi
14637     '\'' sh
14638   '
14639 fi
14640 as_executable_p=$as_test_x
14641
14642 # Sed expression to map a string onto a valid CPP name.
14643 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14644
14645 # Sed expression to map a string onto a valid variable name.
14646 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14647
14648
14649 exec 6>&1
14650 ## ----------------------------------- ##
14651 ## Main body of $CONFIG_STATUS script. ##
14652 ## ----------------------------------- ##
14653 _ASEOF
14654 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14655
14656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657 # Save the log message, to keep $0 and so on meaningful, and to
14658 # report actual input values of CONFIG_FILES etc. instead of their
14659 # values after options handling.
14660 ac_log="
14661 This file was extended by $as_me, which was
14662 generated by GNU Autoconf 2.64.  Invocation command line was
14663
14664   CONFIG_FILES    = $CONFIG_FILES
14665   CONFIG_HEADERS  = $CONFIG_HEADERS
14666   CONFIG_LINKS    = $CONFIG_LINKS
14667   CONFIG_COMMANDS = $CONFIG_COMMANDS
14668   $ $0 $@
14669
14670 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14671 "
14672
14673 _ACEOF
14674
14675 case $ac_config_files in *"
14676 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14677 esac
14678
14679
14680
14681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14682 # Files that config.status was made for.
14683 config_files="$ac_config_files"
14684
14685 _ACEOF
14686
14687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14688 ac_cs_usage="\
14689 \`$as_me' instantiates files and other configuration actions
14690 from templates according to the current configuration.  Unless the files
14691 and actions are specified as TAGs, all are instantiated by default.
14692
14693 Usage: $0 [OPTION]... [TAG]...
14694
14695   -h, --help       print this help, then exit
14696   -V, --version    print version number and configuration settings, then exit
14697   -q, --quiet, --silent
14698                    do not print progress messages
14699   -d, --debug      don't remove temporary files
14700       --recheck    update $as_me by reconfiguring in the same conditions
14701       --file=FILE[:TEMPLATE]
14702                    instantiate the configuration file FILE
14703
14704 Configuration files:
14705 $config_files
14706
14707 Report bugs to the package provider."
14708
14709 _ACEOF
14710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14711 ac_cs_version="\\
14712 config.status
14713 configured by $0, generated by GNU Autoconf 2.64,
14714   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14715
14716 Copyright (C) 2009 Free Software Foundation, Inc.
14717 This config.status script is free software; the Free Software Foundation
14718 gives unlimited permission to copy, distribute and modify it."
14719
14720 ac_pwd='$ac_pwd'
14721 srcdir='$srcdir'
14722 INSTALL='$INSTALL'
14723 AWK='$AWK'
14724 test -n "\$AWK" || AWK=awk
14725 _ACEOF
14726
14727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14728 # The default lists apply if the user does not specify any file.
14729 ac_need_defaults=:
14730 while test $# != 0
14731 do
14732   case $1 in
14733   --*=*)
14734     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14735     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14736     ac_shift=:
14737     ;;
14738   *)
14739     ac_option=$1
14740     ac_optarg=$2
14741     ac_shift=shift
14742     ;;
14743   esac
14744
14745   case $ac_option in
14746   # Handling of the options.
14747   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14748     ac_cs_recheck=: ;;
14749   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14750     $as_echo "$ac_cs_version"; exit ;;
14751   --debug | --debu | --deb | --de | --d | -d )
14752     debug=: ;;
14753   --file | --fil | --fi | --f )
14754     $ac_shift
14755     case $ac_optarg in
14756     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14757     esac
14758     as_fn_append CONFIG_FILES " '$ac_optarg'"
14759     ac_need_defaults=false;;
14760   --he | --h |  --help | --hel | -h )
14761     $as_echo "$ac_cs_usage"; exit ;;
14762   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14763   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14764     ac_cs_silent=: ;;
14765
14766   # This is an error.
14767   -*) as_fn_error "unrecognized option: \`$1'
14768 Try \`$0 --help' for more information." ;;
14769
14770   *) as_fn_append ac_config_targets " $1"
14771      ac_need_defaults=false ;;
14772
14773   esac
14774   shift
14775 done
14776
14777 ac_configure_extra_args=
14778
14779 if $ac_cs_silent; then
14780   exec 6>/dev/null
14781   ac_configure_extra_args="$ac_configure_extra_args --silent"
14782 fi
14783
14784 _ACEOF
14785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14786 if \$ac_cs_recheck; then
14787   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14788   shift
14789   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14790   CONFIG_SHELL='$SHELL'
14791   export CONFIG_SHELL
14792   exec "\$@"
14793 fi
14794
14795 _ACEOF
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 exec 5>>config.log
14798 {
14799   echo
14800   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14801 ## Running $as_me. ##
14802 _ASBOX
14803   $as_echo "$ac_log"
14804 } >&5
14805
14806 _ACEOF
14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808 #
14809 # INIT-COMMANDS
14810 #
14811 extrasub_build="$extrasub_build"
14812    extrasub_host="$extrasub_host"
14813    extrasub_target="$extrasub_target"
14814
14815 _ACEOF
14816
14817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14818
14819 # Handling of arguments.
14820 for ac_config_target in $ac_config_targets
14821 do
14822   case $ac_config_target in
14823     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14824
14825   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14826   esac
14827 done
14828
14829
14830 # If the user did not use the arguments to specify the items to instantiate,
14831 # then the envvar interface is used.  Set only those that are not.
14832 # We use the long form for the default assignment because of an extremely
14833 # bizarre bug on SunOS 4.1.3.
14834 if $ac_need_defaults; then
14835   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14836 fi
14837
14838 # Have a temporary directory for convenience.  Make it in the build tree
14839 # simply because there is no reason against having it here, and in addition,
14840 # creating and moving files from /tmp can sometimes cause problems.
14841 # Hook for its removal unless debugging.
14842 # Note that there is a small window in which the directory will not be cleaned:
14843 # after its creation but before its name has been assigned to `$tmp'.
14844 $debug ||
14845 {
14846   tmp=
14847   trap 'exit_status=$?
14848   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14849 ' 0
14850   trap 'as_fn_exit 1' 1 2 13 15
14851 }
14852 # Create a (secure) tmp directory for tmp files.
14853
14854 {
14855   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14856   test -n "$tmp" && test -d "$tmp"
14857 }  ||
14858 {
14859   tmp=./conf$$-$RANDOM
14860   (umask 077 && mkdir "$tmp")
14861 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14862
14863 # Set up the scripts for CONFIG_FILES section.
14864 # No need to generate them if there are no CONFIG_FILES.
14865 # This happens for instance with `./config.status config.h'.
14866 if test -n "$CONFIG_FILES"; then
14867
14868 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14869   ac_cs_awk_getline=:
14870   ac_cs_awk_pipe_init=
14871   ac_cs_awk_read_file='
14872       while ((getline aline < (F[key])) > 0)
14873         print(aline)
14874       close(F[key])'
14875   ac_cs_awk_pipe_fini=
14876 else
14877   ac_cs_awk_getline=false
14878   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14879   ac_cs_awk_read_file='
14880       print "|#_!!_#|"
14881       print "cat " F[key] " &&"
14882       '$ac_cs_awk_pipe_init
14883   # The final `:' finishes the AND list.
14884   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14885 fi
14886 ac_cr=`echo X | tr X '\015'`
14887 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14888 # But we know of no other shell where ac_cr would be empty at this
14889 # point, so we can use a bashism as a fallback.
14890 if test "x$ac_cr" = x; then
14891   eval ac_cr=\$\'\\r\'
14892 fi
14893 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14894 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14895   ac_cs_awk_cr='\r'
14896 else
14897   ac_cs_awk_cr=$ac_cr
14898 fi
14899
14900 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14901 _ACEOF
14902
14903 # Create commands to substitute file output variables.
14904 {
14905   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14906   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14907   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14908   echo "_ACAWK" &&
14909   echo "_ACEOF"
14910 } >conf$$files.sh &&
14911 . ./conf$$files.sh ||
14912   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14913 rm -f conf$$files.sh
14914
14915 {
14916   echo "cat >conf$$subs.awk <<_ACEOF" &&
14917   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14918   echo "_ACEOF"
14919 } >conf$$subs.sh ||
14920   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14922 ac_delim='%!_!# '
14923 for ac_last_try in false false false false false :; do
14924   . ./conf$$subs.sh ||
14925     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14926
14927   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14928   if test $ac_delim_n = $ac_delim_num; then
14929     break
14930   elif $ac_last_try; then
14931     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14932   else
14933     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14934   fi
14935 done
14936 rm -f conf$$subs.sh
14937
14938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14939 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14940 _ACEOF
14941 sed -n '
14942 h
14943 s/^/S["/; s/!.*/"]=/
14944 p
14945 g
14946 s/^[^!]*!//
14947 :repl
14948 t repl
14949 s/'"$ac_delim"'$//
14950 t delim
14951 :nl
14952 h
14953 s/\(.\{148\}\).*/\1/
14954 t more1
14955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14956 p
14957 n
14958 b repl
14959 :more1
14960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14961 p
14962 g
14963 s/.\{148\}//
14964 t nl
14965 :delim
14966 h
14967 s/\(.\{148\}\).*/\1/
14968 t more2
14969 s/["\\]/\\&/g; s/^/"/; s/$/"/
14970 p
14971 b
14972 :more2
14973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14974 p
14975 g
14976 s/.\{148\}//
14977 t delim
14978 ' <conf$$subs.awk | sed '
14979 /^[^""]/{
14980   N
14981   s/\n//
14982 }
14983 ' >>$CONFIG_STATUS || ac_write_fail=1
14984 rm -f conf$$subs.awk
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986 _ACAWK
14987 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14988   for (key in S) S_is_set[key] = 1
14989   FS = "\a"
14990   \$ac_cs_awk_pipe_init
14991 }
14992 {
14993   line = $ 0
14994   nfields = split(line, field, "@")
14995   substed = 0
14996   len = length(field[1])
14997   for (i = 2; i < nfields; i++) {
14998     key = field[i]
14999     keylen = length(key)
15000     if (S_is_set[key]) {
15001       value = S[key]
15002       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15003       len += length(value) + length(field[++i])
15004       substed = 1
15005     } else
15006       len += 1 + keylen
15007   }
15008   if (nfields == 3 && !substed) {
15009     key = field[2]
15010     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15011       \$ac_cs_awk_read_file
15012       next
15013     }
15014   }
15015   print line
15016 }
15017 \$ac_cs_awk_pipe_fini
15018 _ACAWK
15019 _ACEOF
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15022   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15023 else
15024   cat
15025 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15026   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15027 _ACEOF
15028
15029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15031 # trailing colons and then remove the whole line if VPATH becomes empty
15032 # (actually we leave an empty line to preserve line numbers).
15033 if test "x$srcdir" = x.; then
15034   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15035 s/:*\$(srcdir):*/:/
15036 s/:*\${srcdir}:*/:/
15037 s/:*@srcdir@:*/:/
15038 s/^\([^=]*=[     ]*\):*/\1/
15039 s/:*$//
15040 s/^[^=]*=[       ]*$//
15041 }'
15042 fi
15043
15044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15045 fi # test -n "$CONFIG_FILES"
15046
15047
15048 eval set X "  :F $CONFIG_FILES      "
15049 shift
15050 for ac_tag
15051 do
15052   case $ac_tag in
15053   :[FHLC]) ac_mode=$ac_tag; continue;;
15054   esac
15055   case $ac_mode$ac_tag in
15056   :[FHL]*:*);;
15057   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15058   :[FH]-) ac_tag=-:-;;
15059   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15060   esac
15061   ac_save_IFS=$IFS
15062   IFS=:
15063   set x $ac_tag
15064   IFS=$ac_save_IFS
15065   shift
15066   ac_file=$1
15067   shift
15068
15069   case $ac_mode in
15070   :L) ac_source=$1;;
15071   :[FH])
15072     ac_file_inputs=
15073     for ac_f
15074     do
15075       case $ac_f in
15076       -) ac_f="$tmp/stdin";;
15077       *) # Look for the file first in the build tree, then in the source tree
15078          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15079          # because $ac_f cannot contain `:'.
15080          test -f "$ac_f" ||
15081            case $ac_f in
15082            [\\/$]*) false;;
15083            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15084            esac ||
15085            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15086       esac
15087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15088       as_fn_append ac_file_inputs " '$ac_f'"
15089     done
15090
15091     # Let's still pretend it is `configure' which instantiates (i.e., don't
15092     # use $as_me), people would be surprised to read:
15093     #    /* config.h.  Generated by config.status.  */
15094     configure_input='Generated from '`
15095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15096         `' by configure.'
15097     if test x"$ac_file" != x-; then
15098       configure_input="$ac_file.  $configure_input"
15099       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15100 $as_echo "$as_me: creating $ac_file" >&6;}
15101     fi
15102     # Neutralize special characters interpreted by sed in replacement strings.
15103     case $configure_input in #(
15104     *\&* | *\|* | *\\* )
15105        ac_sed_conf_input=`$as_echo "$configure_input" |
15106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15107     *) ac_sed_conf_input=$configure_input;;
15108     esac
15109
15110     case $ac_tag in
15111     *:-:* | *:-) cat >"$tmp/stdin" \
15112       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15113     esac
15114     ;;
15115   esac
15116
15117   ac_dir=`$as_dirname -- "$ac_file" ||
15118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15119          X"$ac_file" : 'X\(//\)[^/]' \| \
15120          X"$ac_file" : 'X\(//\)$' \| \
15121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15122 $as_echo X"$ac_file" |
15123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15124             s//\1/
15125             q
15126           }
15127           /^X\(\/\/\)[^/].*/{
15128             s//\1/
15129             q
15130           }
15131           /^X\(\/\/\)$/{
15132             s//\1/
15133             q
15134           }
15135           /^X\(\/\).*/{
15136             s//\1/
15137             q
15138           }
15139           s/.*/./; q'`
15140   as_dir="$ac_dir"; as_fn_mkdir_p
15141   ac_builddir=.
15142
15143 case "$ac_dir" in
15144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15145 *)
15146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15147   # A ".." for each directory in $ac_dir_suffix.
15148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15149   case $ac_top_builddir_sub in
15150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15152   esac ;;
15153 esac
15154 ac_abs_top_builddir=$ac_pwd
15155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15156 # for backward compatibility:
15157 ac_top_builddir=$ac_top_build_prefix
15158
15159 case $srcdir in
15160   .)  # We are building in place.
15161     ac_srcdir=.
15162     ac_top_srcdir=$ac_top_builddir_sub
15163     ac_abs_top_srcdir=$ac_pwd ;;
15164   [\\/]* | ?:[\\/]* )  # Absolute name.
15165     ac_srcdir=$srcdir$ac_dir_suffix;
15166     ac_top_srcdir=$srcdir
15167     ac_abs_top_srcdir=$srcdir ;;
15168   *) # Relative name.
15169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15170     ac_top_srcdir=$ac_top_build_prefix$srcdir
15171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15172 esac
15173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15174
15175
15176   case $ac_mode in
15177   :F)
15178   #
15179   # CONFIG_FILE
15180   #
15181
15182   case $INSTALL in
15183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15185   esac
15186 _ACEOF
15187
15188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189 # If the template does not know about datarootdir, expand it.
15190 # FIXME: This hack should be removed a few years after 2.60.
15191 ac_datarootdir_hack=; ac_datarootdir_seen=
15192 ac_sed_dataroot='
15193 /datarootdir/ {
15194   p
15195   q
15196 }
15197 /@datadir@/p
15198 /@docdir@/p
15199 /@infodir@/p
15200 /@localedir@/p
15201 /@mandir@/p'
15202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15203 *datarootdir*) ac_datarootdir_seen=yes;;
15204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15205   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15207 _ACEOF
15208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209   ac_datarootdir_hack='
15210   s&@datadir@&$datadir&g
15211   s&@docdir@&$docdir&g
15212   s&@infodir@&$infodir&g
15213   s&@localedir@&$localedir&g
15214   s&@mandir@&$mandir&g
15215   s&\\\${datarootdir}&$datarootdir&g' ;;
15216 esac
15217 _ACEOF
15218
15219 # Neutralize VPATH when `$srcdir' = `.'.
15220 # Shell code in configure.ac might set extrasub.
15221 # FIXME: do we really want to maintain this feature?
15222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15223 ac_sed_extra="$ac_vpsub
15224 $extrasub
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 :t
15228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15229 s|@configure_input@|$ac_sed_conf_input|;t t
15230 s&@top_builddir@&$ac_top_builddir_sub&;t t
15231 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15232 s&@srcdir@&$ac_srcdir&;t t
15233 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15234 s&@top_srcdir@&$ac_top_srcdir&;t t
15235 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15236 s&@builddir@&$ac_builddir&;t t
15237 s&@abs_builddir@&$ac_abs_builddir&;t t
15238 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15239 s&@INSTALL@&$ac_INSTALL&;t t
15240 $ac_datarootdir_hack
15241 "
15242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15243 if $ac_cs_awk_getline; then
15244   $AWK -f "$tmp/subs.awk"
15245 else
15246   $AWK -f "$tmp/subs.awk" | $SHELL
15247 fi >$tmp/out \
15248   || as_fn_error "could not create $ac_file" "$LINENO" 5
15249
15250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15251   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15252   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15254 which seems to be undefined.  Please make sure it is defined." >&5
15255 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15256 which seems to be undefined.  Please make sure it is defined." >&2;}
15257
15258   rm -f "$tmp/stdin"
15259   case $ac_file in
15260   -) cat "$tmp/out" && rm -f "$tmp/out";;
15261   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15262   esac \
15263   || as_fn_error "could not create $ac_file" "$LINENO" 5
15264  ;;
15265
15266
15267
15268   esac
15269
15270
15271   case $ac_file$ac_mode in
15272     "Makefile":F) sed "$extrasub_build" Makefile |
15273    sed "$extrasub_host" |
15274    sed "$extrasub_target" > mf$$
15275    mv -f mf$$ Makefile ;;
15276
15277   esac
15278 done # for ac_tag
15279
15280
15281 as_fn_exit 0
15282 _ACEOF
15283 ac_clean_files=$ac_clean_files_save
15284
15285 test $ac_write_fail = 0 ||
15286   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15287
15288
15289 # configure is writing to config.log, and then calls config.status.
15290 # config.status does its own redirection, appending to config.log.
15291 # Unfortunately, on DOS this fails, as config.log is still kept open
15292 # by configure, so config.status won't be able to write to it; its
15293 # output is simply discarded.  So we exec the FD to /dev/null,
15294 # effectively closing config.log, so it can be properly (re)opened and
15295 # appended to by config.status.  When coming back to configure, we
15296 # need to make the FD available again.
15297 if test "$no_create" != yes; then
15298   ac_cs_success=:
15299   ac_config_status_args=
15300   test "$silent" = yes &&
15301     ac_config_status_args="$ac_config_status_args --quiet"
15302   exec 5>/dev/null
15303   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15304   exec 5>>config.log
15305   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15306   # would make configure fail if this is the last instruction.
15307   $ac_cs_success || as_fn_exit $?
15308 fi
15309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15310   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15312 fi
15313